OpenAI::ApplyPatchToolCall
Inherits JSON::Serializable < Reference < Object
A tool call that applies file diffs by creating, deleting, or updating files.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ApplyPatchToolCallType = ApplyPatchToolCallType::ApplyPatchCall, id : String = "", call_id : String = "", status : ApplyPatchCallStatus = ApplyPatchCallStatus::InProgress, operation : ApplyPatchToolCallOperation = ApplyPatchCreateFileOperation.new, created_by : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
id=(id : String)
The unique ID of the apply patch tool call. Populated when this item is returned via API.
operation
One of the create_file, delete_file, or update_file operations applied via apply_patch.
operation=(operation : ApplyPatchToolCallOperation)
One of the create_file, delete_file, or update_file operations applied via apply_patch.
status=(status : ApplyPatchCallStatus)
The status of the apply patch tool call. One of in_progress or completed.
type_value=(type_value : ApplyPatchToolCallType)
The type of the item. Always apply_patch_call.