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