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)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action action)
A click action.
-
action
final ResponseComputerToolCall.Builder action(JsonField<ResponseComputerToolCall.Action> action)
Sets Builder.action to an arbitrary JSON value.
You should usually call Builder.action with a well-typed Action value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Click click)
Alias for calling action with
Action.ofClick(click)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.DoubleClick doubleClick)
Alias for calling action with
Action.ofDoubleClick(doubleClick)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Drag drag)
Alias for calling action with
Action.ofDrag(drag)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Keypress keypress)
Alias for calling action with
Action.ofKeypress(keypress)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Move move)
Alias for calling action with
Action.ofMove(move)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Scroll scroll)
Alias for calling action with
Action.ofScroll(scroll)
.
-
action
final ResponseComputerToolCall.Builder action(ResponseComputerToolCall.Action.Type type)
Alias for calling action with
Action.ofType(type)
.
-
dragAction
final ResponseComputerToolCall.Builder dragAction(List<ResponseComputerToolCall.Action.Drag.Path> path)
Alias for calling action with the following:
Action.Drag.builder() .path(path) .build()
-
keypressAction
final ResponseComputerToolCall.Builder keypressAction(List<String> keys)
Alias for calling action with the following:
Action.Keypress.builder() .keys(keys) .build()
-
actionScreenshot
final ResponseComputerToolCall.Builder actionScreenshot()
Alias for calling action with
Action.ofScreenshot()
.
-
typeAction
final ResponseComputerToolCall.Builder typeAction(String text)
Alias for calling action with the following:
Action.Type.builder() .text(text) .build()
-
actionWait
final ResponseComputerToolCall.Builder actionWait()
Alias for calling action with
Action.ofWait()
.
-
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)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.pendingSafetyChecks to an arbitrary JSON value.
You should usually call Builder.pendingSafetyChecks with a well-typed
List<PendingSafetyCheck>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPendingSafetyCheck
final ResponseComputerToolCall.Builder addPendingSafetyCheck(ResponseComputerToolCall.PendingSafetyCheck pendingSafetyCheck)
Adds a single PendingSafetyCheck to pendingSafetyChecks.
-
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)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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()
Returns an immutable instance of ResponseComputerToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .action() .callId() .pendingSafetyChecks() .status() .type()
-
-
-
-