Class BetaComputerKeyToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class BetaComputerKeyToolUseBlock.BuilderA builder for BetaComputerKeyToolUseBlock.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaComputerKeyToolUseBlock.Builder id(String id)
-
id
final BetaComputerKeyToolUseBlock.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.
-
input
final BetaComputerKeyToolUseBlock.Builder input(BetaComputerKeyInput input)
Press a key or key-combination on the keyboard. Use "+" to combine modifiers with a key (e.g. "ctrl+s", "alt+Tab", "ctrl+shift+Escape"). Key names are case-insensitive; common names like "Return", "Tab", "Escape", "Up", "Down", "Left", "Right", "Home", "End", "Page_Up", "Page_Down", "Delete", "BackSpace" are supported.
-
input
final BetaComputerKeyToolUseBlock.Builder input(JsonField<BetaComputerKeyInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed BetaComputerKeyInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaComputerKeyToolUseBlock.Builder name(JsonValue name)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("key")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final BetaComputerKeyToolUseBlock.Builder toolsetName(JsonValue toolsetName)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("computer")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaComputerKeyToolUseBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaComputerKeyToolUseBlock.Builder caller(BetaToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final BetaComputerKeyToolUseBlock.Builder caller(JsonField<BetaToolUseCaller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed BetaToolUseCaller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaComputerKeyToolUseBlock.Builder caller(BetaDirectCaller direct)
Alias for calling caller with
BetaToolUseCaller.ofDirect(direct).
-
caller
final BetaComputerKeyToolUseBlock.Builder caller(BetaServerToolCaller codeExecution20250825)
Alias for calling caller with
BetaToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BetaComputerKeyToolUseBlock.Builder caller(BetaServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
BetaToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
additionalProperties
final BetaComputerKeyToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final BetaComputerKeyToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BetaComputerKeyToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final BetaComputerKeyToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaComputerKeyToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaComputerKeyToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaComputerKeyToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaComputerKeyToolUseBlock build()
Returns an immutable instance of BetaComputerKeyToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input()
-
-
-
-