class

OpenAI::ApplyPatchToolCall

Inherits JSON::Serializable < Reference < Object

A tool call that applies file diffs by creating, deleting, or updating files.

Constructors

new(type_value : ApplyPatchToolCallType = ApplyPatchToolCallType::ApplyPatchCall, id : String = "", call_id : String = "", status : ApplyPatchCallStatus = ApplyPatchCallStatus::InProgress, operation : ApplyPatchToolCallOperation = ApplyPatchCreateFileOperation.new, created_by : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

call_id

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

Source
call_id=(call_id : String)

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

Source
created_by

The ID of the entity that created this tool call.

Source
created_by=(created_by : String | Nil)

The ID of the entity that created this tool call.

Source
id

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

Source
id=(id : String)

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

Source
operation

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

Source
operation=(operation : ApplyPatchToolCallOperation)

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

Source
status

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

Source
status=(status : ApplyPatchCallStatus)

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

Source
type_value

The type of the item. Always apply_patch_call.

Source
type_value=(type_value : ApplyPatchToolCallType)

The type of the item. Always apply_patch_call.

Source