OpenAI::ApplyPatchToolCallItemParam
Inherits JSON::Serializable < Reference < Object
A tool call representing a request to create, delete, or update files using diff patches.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ApplyPatchToolCallItemParamType = ApplyPatchToolCallItemParamType::ApplyPatchCall, id : ApplyPatchToolCallItemParamId | Nil = nil, call_id : String = "", status : ApplyPatchCallStatusParam = ApplyPatchCallStatusParam::InProgress, operation : ApplyPatchOperationParam = ApplyPatchCreateFileOperationParam.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
id
Sourceid=(id : ApplyPatchToolCallItemParamId | Nil)
Sourceoperation=(operation : ApplyPatchOperationParam)
The specific create, delete, or update instruction for the apply_patch tool call.
status=(status : ApplyPatchCallStatusParam)
The status of the apply patch tool call. One of in_progress or completed.
type_value=(type_value : ApplyPatchToolCallItemParamType)
The type of the item. Always apply_patch_call.
validate!
Source