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