call_id: String

The unique ID of the apply patch tool call generated by the model.

minLength1
maxLength64
operation: CreateFile{ diff, path, type} | DeleteFile{ path, type} | UpdateFile{ diff, path, type}

The specific create, delete, or update instruction for the apply_patch tool call.

One of the following:
class CreateFile { diff, path, type }

Instruction for creating a new file via the apply_patch tool.

diff: String

Unified diff content to apply when creating the file.

maxLength10485760
path: String

Path of the file to create relative to the workspace root.

minLength1
type: :create_file

The operation type. Always create_file.

class DeleteFile { path, type }

Instruction for deleting an existing file via the apply_patch tool.

path: String

Path of the file to delete relative to the workspace root.

minLength1
type: :delete_file

The operation type. Always delete_file.

class UpdateFile { diff, path, type }

Instruction for updating an existing file via the apply_patch tool.

diff: String

Unified diff content to apply to the existing file.

maxLength10485760
path: String

Path of the file to update relative to the workspace root.

minLength1
type: :update_file

The operation type. Always update_file.

status: :in_progress | :completed

The status of the apply patch tool call. One of in_progress or completed.

One of the following:
:in_progress
:completed
type: :apply_patch_call

The type of the item. Always apply_patch_call.

id: String

The unique ID of the apply patch tool call. Populated when this item is returned via API.

agent: Agent{ agent_name}

The agent that produced this item.

agent_name: String

The canonical name of the agent that produced this item.

caller_: Direct{ type} | Program{ caller_id, type}

The execution context that produced this tool call.

One of the following:
class Direct { type }
type: :direct

The caller type. Always direct.

class Program { caller_id, type }
caller_id: String

The call ID of the program item that produced this tool call.

minLength1
maxLength64
type: :program

The caller type. Always program.