Class ResponseComputerToolCall
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall
A tool call to a computer use tool. See the computer use guide for more information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseComputerToolCall.Builder
A builder for ResponseComputerToolCall.
public final class
ResponseComputerToolCall.Action
A click action.
public final class
ResponseComputerToolCall.PendingSafetyCheck
A pending safety check for the computer call.
public final class
ResponseComputerToolCall.Status
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.public final class
ResponseComputerToolCall.Type
The type of the computer call. Always
computer_call
.
-
Method Summary
-
-
Method Detail
-
action
final ResponseComputerToolCall.Action action()
A click action.
-
pendingSafetyChecks
final List<ResponseComputerToolCall.PendingSafetyCheck> pendingSafetyChecks()
The pending safety checks for the computer call.
-
status
final ResponseComputerToolCall.Status status()
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
type
final ResponseComputerToolCall.Type type()
The type of the computer call. Always
computer_call
.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_action
final JsonField<ResponseComputerToolCall.Action> _action()
Returns the raw JSON value of action.
Unlike action, this method doesn't throw if the JSON field has an unexpected type.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_pendingSafetyChecks
final JsonField<List<ResponseComputerToolCall.PendingSafetyCheck>> _pendingSafetyChecks()
Returns the raw JSON value of pendingSafetyChecks.
Unlike pendingSafetyChecks, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseComputerToolCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ResponseComputerToolCall.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseComputerToolCall.Builder toBuilder()
-
validate
final ResponseComputerToolCall validate()
-
builder
final static ResponseComputerToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ResponseComputerToolCall.
The following fields are required:
.id() .action() .callId() .pendingSafetyChecks() .status() .type()
-
-
-
-