Class ComputerZoomToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ComputerZoomToolUseBlock.BuilderA builder for ComputerZoomToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final ComputerZoomToolUseBlock.Builderid(String id)final ComputerZoomToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ComputerZoomToolUseBlock.Buildercaller(ToolUseCaller caller)Which party invoked the tool call: the model directly, or a server tool on its behalf. final ComputerZoomToolUseBlock.Buildercaller(JsonField<ToolUseCaller> caller)Sets Builder.caller to an arbitrary JSON value. final ComputerZoomToolUseBlock.Buildercaller(DirectCaller direct)Alias for calling caller with ToolUseCaller.ofDirect(direct).final ComputerZoomToolUseBlock.Buildercaller(ServerToolCaller codeExecution20250825)Alias for calling caller with ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).final ComputerZoomToolUseBlock.Buildercaller(ServerToolCaller20260120 codeExecution20260120)Alias for calling caller with ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).final ComputerZoomToolUseBlock.Builderinput(ComputerZoomInput input)Take a screenshot of a rectangular region. final ComputerZoomToolUseBlock.Builderinput(JsonField<ComputerZoomInput> input)Sets Builder.input to an arbitrary JSON value. final ComputerZoomToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final ComputerZoomToolUseBlock.BuildertoolsetName(JsonValue toolsetName)Sets the field to an arbitrary JSON value. final ComputerZoomToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ComputerZoomToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerZoomToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: ServerToolCaller.builder() .toolId(toolId) .build()final ComputerZoomToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: ServerToolCaller20260120.builder() .toolId(toolId) .build()final ComputerZoomToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final ComputerZoomToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerZoomToolUseBlock.BuilderremoveAdditionalProperty(String key)final ComputerZoomToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final ComputerZoomToolUseBlockbuild()Returns an immutable instance of ComputerZoomToolUseBlock. -
-
Method Detail
-
id
final ComputerZoomToolUseBlock.Builder id(String id)
-
id
final ComputerZoomToolUseBlock.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 ComputerZoomToolUseBlock.Builder caller(ToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final ComputerZoomToolUseBlock.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 ComputerZoomToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
ToolUseCaller.ofDirect(direct).
-
caller
final ComputerZoomToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final ComputerZoomToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
input
final ComputerZoomToolUseBlock.Builder input(ComputerZoomInput input)
Take a screenshot of a rectangular region. Region coordinates are in the full-screenshot space (not physical display pixels). The crop is scaled up to fill the image budget so fine details become legible.
-
input
final ComputerZoomToolUseBlock.Builder input(JsonField<ComputerZoomInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed ComputerZoomInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ComputerZoomToolUseBlock.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("zoom")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final ComputerZoomToolUseBlock.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 ComputerZoomToolUseBlock.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 ComputerZoomToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final ComputerZoomToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final ComputerZoomToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final ComputerZoomToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerZoomToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerZoomToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerZoomToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerZoomToolUseBlock build()
Returns an immutable instance of ComputerZoomToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input()
-
-
-
-