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