Class ResponseComputerToolCall
-
- All Implemented Interfaces:
public final class ResponseComputerToolCallA 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 classResponseComputerToolCall.BuilderA builder for ResponseComputerToolCall.
public final classResponseComputerToolCall.ActionA click action.
public final classResponseComputerToolCall.PendingSafetyCheckA pending safety check for the computer call.
public final classResponseComputerToolCall.StatusThe status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.public final classResponseComputerToolCall.TypeThe 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()
-
-
-
-