id: String

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

call_id: String

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

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

One of the create_file, delete_file, or update_file operations applied via apply_patch.

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

Instruction describing how to create a file via the apply_patch tool.

diff: String

Diff to apply.

path: String

Path of the file to create.

type: :create_file

Create a new file with the provided diff.

class DeleteFile { path, type }

Instruction describing how to delete a file via the apply_patch tool.

path: String

Path of the file to delete.

type: :delete_file

Delete the specified file.

class UpdateFile { diff, path, type }

Instruction describing how to update a file via the apply_patch tool.

diff: String

Diff to apply.

path: String

Path of the file to update.

type: :update_file

Update an existing file with the provided diff.

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.

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
class Program { caller_id, type }
caller_id: String

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

type: :program
created_by: String

The ID of the entity that created this tool call.