Class ResponseComputerToolCall.Builder
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Builder
A builder for ResponseComputerToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseComputerToolCall.Builder id(String id)
The unique ID of the computer call.
-
id
final ResponseComputerToolCall.Builder id(JsonField<String> id)
The unique ID of the computer call.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action action)
A click action.
-
action
final ResponseComputerToolCall.Builder action(JsonField<ResponseComputerToolCall.Action> action)
A click action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Click click)
A click action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.DoubleClick doubleClick)
A double click action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Drag drag)
A drag action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Keypress keypress)
A collection of keypresses the model would like to perform.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Move move)
A mouse move action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Scroll scroll)
A scroll action.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Type type)
An action to type in text.
-
dragAction
final ResponseComputerToolCall.Builder dragAction(List<ResponseComputerToolCall.Action.Drag.Path> path)
A drag action.
-
keypressAction
final ResponseComputerToolCall.Builder keypressAction(List<String> keys)
A collection of keypresses the model would like to perform.
-
actionScreenshot
final ResponseComputerToolCall.Builder actionScreenshot()
A screenshot action.
-
typeAction
final ResponseComputerToolCall.Builder typeAction(String text)
An action to type in text.
-
actionWait
final ResponseComputerToolCall.Builder actionWait()
A wait action.
-
callId
final ResponseComputerToolCall.Builder callId(String callId)
An identifier used when responding to the tool call with output.
-
callId
final ResponseComputerToolCall.Builder callId(JsonField<String> callId)
An identifier used when responding to the tool call with output.
-
pendingSafetyChecks
final ResponseComputerToolCall.Builder pendingSafetyChecks(List<ResponseComputerToolCall.PendingSafetyCheck> pendingSafetyChecks)
The pending safety checks for the computer call.
-
pendingSafetyChecks
final ResponseComputerToolCall.Builder pendingSafetyChecks(JsonField<List<ResponseComputerToolCall.PendingSafetyCheck>> pendingSafetyChecks)
The pending safety checks for the computer call.
-
addPendingSafetyCheck
final ResponseComputerToolCall.Builder addPendingSafetyCheck(ResponseComputerToolCall.PendingSafetyCheck pendingSafetyCheck)
The pending safety checks for the computer call.
-
status
final ResponseComputerToolCall.Builder status(ResponseComputerToolCall.Status status)
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
status
final ResponseComputerToolCall.Builder status(JsonField<ResponseComputerToolCall.Status> status)
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
type
final ResponseComputerToolCall.Builder type(ResponseComputerToolCall.Type type)
The type of the computer call. Always
computer_call
.
-
type
final ResponseComputerToolCall.Builder type(JsonField<ResponseComputerToolCall.Type> type)
The type of the computer call. Always
computer_call
.
-
additionalProperties
final ResponseComputerToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseComputerToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseComputerToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseComputerToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseComputerToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseComputerToolCall build()
-
-
-
-