Class BetaResponseComputerToolCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseComputerToolCall.BuilderA builder for BetaResponseComputerToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseComputerToolCall.Builder id(String id)
The unique ID of the computer call.
-
id
final BetaResponseComputerToolCall.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.
-
callId
final BetaResponseComputerToolCall.Builder callId(String callId)
An identifier used when responding to the tool call with output.
-
callId
final BetaResponseComputerToolCall.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 BetaResponseComputerToolCall.Builder pendingSafetyChecks(List<BetaResponseComputerToolCall.PendingSafetyCheck> pendingSafetyChecks)
The pending safety checks for the computer call.
-
pendingSafetyChecks
final BetaResponseComputerToolCall.Builder pendingSafetyChecks(JsonField<List<BetaResponseComputerToolCall.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 BetaResponseComputerToolCall.Builder addPendingSafetyCheck(BetaResponseComputerToolCall.PendingSafetyCheck pendingSafetyCheck)
Adds a single PendingSafetyCheck to pendingSafetyChecks.
-
status
final BetaResponseComputerToolCall.Builder status(BetaResponseComputerToolCall.Status status)
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final BetaResponseComputerToolCall.Builder status(JsonField<BetaResponseComputerToolCall.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 BetaResponseComputerToolCall.Builder type(BetaResponseComputerToolCall.Type type)
The type of the computer call. Always
computer_call.
-
type
final BetaResponseComputerToolCall.Builder type(JsonField<BetaResponseComputerToolCall.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.
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction action)
A click action.
-
action
final BetaResponseComputerToolCall.Builder action(JsonField<BetaComputerAction> action)
Sets Builder.action to an arbitrary JSON value.
You should usually call Builder.action with a well-typed BetaComputerAction value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Click click)
Alias for calling action with
BetaComputerAction.ofClick(click).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.DoubleClick doubleClick)
Alias for calling action with
BetaComputerAction.ofDoubleClick(doubleClick).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Drag drag)
Alias for calling action with
BetaComputerAction.ofDrag(drag).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Keypress keypress)
Alias for calling action with
BetaComputerAction.ofKeypress(keypress).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Move move)
Alias for calling action with
BetaComputerAction.ofMove(move).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Scroll scroll)
Alias for calling action with
BetaComputerAction.ofScroll(scroll).
-
action
final BetaResponseComputerToolCall.Builder action(BetaComputerAction.Type type)
Alias for calling action with
BetaComputerAction.ofType(type).
-
dragAction
final BetaResponseComputerToolCall.Builder dragAction(List<BetaComputerAction.Drag.Path> path)
Alias for calling action with the following:
BetaComputerAction.Drag.builder() .path(path) .build()
-
keypressAction
final BetaResponseComputerToolCall.Builder keypressAction(List<String> keys)
Alias for calling action with the following:
BetaComputerAction.Keypress.builder() .keys(keys) .build()
-
actionScreenshot
final BetaResponseComputerToolCall.Builder actionScreenshot()
Alias for calling action with
BetaComputerAction.ofScreenshot().
-
typeAction
final BetaResponseComputerToolCall.Builder typeAction(String text)
Alias for calling action with the following:
BetaComputerAction.Type.builder() .text(text) .build()
-
actionWait
final BetaResponseComputerToolCall.Builder actionWait()
Alias for calling action with
BetaComputerAction.ofWait().
-
actions
final BetaResponseComputerToolCall.Builder actions(List<BetaComputerAction> actions)
Flattened batched actions for
computer_use. Each action includes antypediscriminator and action-specific fields.
-
actions
final BetaResponseComputerToolCall.Builder actions(JsonField<List<BetaComputerAction>> actions)
Sets Builder.actions to an arbitrary JSON value.
You should usually call Builder.actions with a well-typed
List<BetaComputerAction>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction action)
Adds a single BetaComputerAction to actions.
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Click click)
Alias for calling addAction with
BetaComputerAction.ofClick(click).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.DoubleClick doubleClick)
Alias for calling addAction with
BetaComputerAction.ofDoubleClick(doubleClick).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Drag drag)
Alias for calling addAction with
BetaComputerAction.ofDrag(drag).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Keypress keypress)
Alias for calling addAction with
BetaComputerAction.ofKeypress(keypress).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Move move)
Alias for calling addAction with
BetaComputerAction.ofMove(move).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Scroll scroll)
Alias for calling addAction with
BetaComputerAction.ofScroll(scroll).
-
addAction
final BetaResponseComputerToolCall.Builder addAction(BetaComputerAction.Type type)
Alias for calling addAction with
BetaComputerAction.ofType(type).
-
addDragAction
final BetaResponseComputerToolCall.Builder addDragAction(List<BetaComputerAction.Drag.Path> path)
Alias for calling addAction with the following:
BetaComputerAction.Drag.builder() .path(path) .build()
-
addKeypressAction
final BetaResponseComputerToolCall.Builder addKeypressAction(List<String> keys)
Alias for calling addAction with the following:
BetaComputerAction.Keypress.builder() .keys(keys) .build()
-
addActionScreenshot
final BetaResponseComputerToolCall.Builder addActionScreenshot()
Alias for calling addAction with
BetaComputerAction.ofScreenshot().
-
addTypeAction
final BetaResponseComputerToolCall.Builder addTypeAction(String text)
Alias for calling addAction with the following:
BetaComputerAction.Type.builder() .text(text) .build()
-
addActionWait
final BetaResponseComputerToolCall.Builder addActionWait()
Alias for calling addAction with
BetaComputerAction.ofWait().
-
agent
final BetaResponseComputerToolCall.Builder agent(BetaResponseComputerToolCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseComputerToolCall.Builder agent(Optional<BetaResponseComputerToolCall.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseComputerToolCall.Builder agent(JsonField<BetaResponseComputerToolCall.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseComputerToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseComputerToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseComputerToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseComputerToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseComputerToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseComputerToolCall build()
Returns an immutable instance of BetaResponseComputerToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .pendingSafetyChecks() .status() .type()
-
-
-
-