class

OpenAI::ApplyPatchToolCallItemParam

Inherits JSON::Serializable < Reference < Object

A tool call representing a request to create, delete, or update files using diff patches.

Constructors

new(type_value : ApplyPatchToolCallItemParamType = ApplyPatchToolCallItemParamType::ApplyPatchCall, id : ApplyPatchToolCallItemParamId | Nil = nil, call_id : String = "", status : ApplyPatchCallStatusParam = ApplyPatchCallStatusParam::InProgress, operation : ApplyPatchOperationParam = ApplyPatchCreateFileOperationParam.new)
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
id=(id : ApplyPatchToolCallItemParamId | Nil)
Source
operation

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

Source
operation=(operation : ApplyPatchOperationParam)

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

Source
status

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

Source
status=(status : ApplyPatchCallStatusParam)

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 : ApplyPatchToolCallItemParamType)

The type of the item. Always apply_patch_call.

Source
validate!
Source