Class ComputerTypeToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ComputerTypeToolUseBlock.BuilderA builder for ComputerTypeToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final ComputerTypeToolUseBlock.Builderid(String id)final ComputerTypeToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ComputerTypeToolUseBlock.Buildercaller(ToolUseCaller caller)Which party invoked the tool call: the model directly, or a server tool on its behalf. final ComputerTypeToolUseBlock.Buildercaller(JsonField<ToolUseCaller> caller)Sets Builder.caller to an arbitrary JSON value. final ComputerTypeToolUseBlock.Buildercaller(DirectCaller direct)Alias for calling caller with ToolUseCaller.ofDirect(direct).final ComputerTypeToolUseBlock.Buildercaller(ServerToolCaller codeExecution20250825)Alias for calling caller with ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).final ComputerTypeToolUseBlock.Buildercaller(ServerToolCaller20260120 codeExecution20260120)Alias for calling caller with ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).final ComputerTypeToolUseBlock.Builderinput(ComputerTypeInput input)Type a string of text on the keyboard. final ComputerTypeToolUseBlock.Builderinput(JsonField<ComputerTypeInput> input)Sets Builder.input to an arbitrary JSON value. final ComputerTypeToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final ComputerTypeToolUseBlock.BuildertoolsetName(JsonValue toolsetName)Sets the field to an arbitrary JSON value. final ComputerTypeToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ComputerTypeToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerTypeToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: ServerToolCaller.builder() .toolId(toolId) .build()final ComputerTypeToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: ServerToolCaller20260120.builder() .toolId(toolId) .build()final ComputerTypeToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final ComputerTypeToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerTypeToolUseBlock.BuilderremoveAdditionalProperty(String key)final ComputerTypeToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final ComputerTypeToolUseBlockbuild()Returns an immutable instance of ComputerTypeToolUseBlock. -
-
Method Detail
-
id
final ComputerTypeToolUseBlock.Builder id(String id)
-
id
final ComputerTypeToolUseBlock.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.
-
caller
final ComputerTypeToolUseBlock.Builder caller(ToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final ComputerTypeToolUseBlock.Builder caller(JsonField<ToolUseCaller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed ToolUseCaller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final ComputerTypeToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
ToolUseCaller.ofDirect(direct).
-
caller
final ComputerTypeToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final ComputerTypeToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
input
final ComputerTypeToolUseBlock.Builder input(ComputerTypeInput input)
Type a string of text on the keyboard.
-
input
final ComputerTypeToolUseBlock.Builder input(JsonField<ComputerTypeInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed ComputerTypeInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ComputerTypeToolUseBlock.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("type")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final ComputerTypeToolUseBlock.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 ComputerTypeToolUseBlock.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.
-
additionalProperties
final ComputerTypeToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final ComputerTypeToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final ComputerTypeToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final ComputerTypeToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerTypeToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerTypeToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerTypeToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerTypeToolUseBlock build()
Returns an immutable instance of ComputerTypeToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input()
-
-
-
-