class

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(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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

action
Source
action=(action : ComputerAction)
Source
call_id

An identifier used when responding to the tool call with output.

Source
call_id=(call_id : String)

An identifier used when responding to the tool call with output.

Source
id

The unique ID of the computer call.

Source
id=(id : String)

The unique ID of the computer call.

Source
pending_safety_checks

The pending safety checks for the computer call.

Source
pending_safety_checks=(pending_safety_checks : Array(ComputerCallSafetyCheckParam))

The pending safety checks for the computer call.

Source
status

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
status=(status : ComputerToolCallStatus)

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Source
type_value

The type of the computer call. Always computer_call.

Source
type_value=(type_value : ComputerToolCallType)

The type of the computer call. Always computer_call.

Source