OpenAI::ComputerToolCall
Inherits JSON::Serializable < Reference < Object
A tool call to a computer use tool. See the computer use guide for more information.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ComputerToolCallType = ComputerToolCallType::ComputerCall, id : String = "", call_id : String = "", action : ComputerAction = ClickParam.new, pending_safety_checks : Array(ComputerCallSafetyCheckParam) = [] of ComputerCallSafetyCheckParam, status : ComputerToolCallStatus = ComputerToolCallStatus::InProgress)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
action
Sourceaction=(action : ComputerAction)
SourceThe pending safety checks for the computer call.
status
The status of the item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
status=(status : ComputerToolCallStatus)
The status of the item. One of in_progress, completed, or
incomplete. Populated when items are returned via API.
type_value=(type_value : ComputerToolCallType)
The type of the computer call. Always computer_call.