Class BrowserReadNetworkToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class BrowserReadNetworkToolUseBlock.BuilderA builder for BrowserReadNetworkToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final BrowserReadNetworkToolUseBlock.Builderid(String id)final BrowserReadNetworkToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.Buildercaller(ToolUseCaller caller)Which party invoked the tool call: the model directly, or a server tool on its behalf. final BrowserReadNetworkToolUseBlock.Buildercaller(JsonField<ToolUseCaller> caller)Sets Builder.caller to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.Buildercaller(DirectCaller direct)Alias for calling caller with ToolUseCaller.ofDirect(direct).final BrowserReadNetworkToolUseBlock.Buildercaller(ServerToolCaller codeExecution20250825)Alias for calling caller with ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).final BrowserReadNetworkToolUseBlock.Buildercaller(ServerToolCaller20260120 codeExecution20260120)Alias for calling caller with ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).final BrowserReadNetworkToolUseBlock.Builderinput(BrowserReadNetworkInput input)Return the network requests (method, URL, status, MIME type, timing) recorded since the driver attached to the tab and since the last read, one line per entry. final BrowserReadNetworkToolUseBlock.Builderinput(JsonField<BrowserReadNetworkInput> input)Sets Builder.input to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.BuildertoolsetName(JsonValue toolsetName)Sets the field to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BrowserReadNetworkToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BrowserReadNetworkToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: ServerToolCaller.builder() .toolId(toolId) .build()final BrowserReadNetworkToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: ServerToolCaller20260120.builder() .toolId(toolId) .build()final BrowserReadNetworkToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final BrowserReadNetworkToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BrowserReadNetworkToolUseBlock.BuilderremoveAdditionalProperty(String key)final BrowserReadNetworkToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final BrowserReadNetworkToolUseBlockbuild()Returns an immutable instance of BrowserReadNetworkToolUseBlock. -
-
Method Detail
-
id
final BrowserReadNetworkToolUseBlock.Builder id(String id)
-
id
final BrowserReadNetworkToolUseBlock.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 BrowserReadNetworkToolUseBlock.Builder caller(ToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final BrowserReadNetworkToolUseBlock.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 BrowserReadNetworkToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
ToolUseCaller.ofDirect(direct).
-
caller
final BrowserReadNetworkToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BrowserReadNetworkToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
input
final BrowserReadNetworkToolUseBlock.Builder input(BrowserReadNetworkInput input)
Return the network requests (method, URL, status, MIME type, timing) recorded since the driver attached to the tab and since the last read, one line per entry. An empty result does not mean no traffic for a tab that predates attach.
-
input
final BrowserReadNetworkToolUseBlock.Builder input(JsonField<BrowserReadNetworkInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed BrowserReadNetworkInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BrowserReadNetworkToolUseBlock.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("read_network")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final BrowserReadNetworkToolUseBlock.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 BrowserReadNetworkToolUseBlock.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 BrowserReadNetworkToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final BrowserReadNetworkToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BrowserReadNetworkToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final BrowserReadNetworkToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BrowserReadNetworkToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BrowserReadNetworkToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BrowserReadNetworkToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BrowserReadNetworkToolUseBlock build()
Returns an immutable instance of BrowserReadNetworkToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input()
-
-
-
-