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