Class ServerToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ServerToolUseBlock.BuilderA builder for ServerToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final ServerToolUseBlock.Builderid(String id)final ServerToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ServerToolUseBlock.Builderinput(JsonValue input)final ServerToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final ServerToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ServerToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ServerToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final ServerToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ServerToolUseBlock.BuilderremoveAdditionalProperty(String key)final ServerToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final ServerToolUseBlockbuild()Returns an immutable instance of ServerToolUseBlock. -
-
Method Detail
-
id
final ServerToolUseBlock.Builder id(String id)
-
id
final ServerToolUseBlock.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.
-
input
final ServerToolUseBlock.Builder input(JsonValue input)
-
name
final ServerToolUseBlock.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("web_search")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ServerToolUseBlock.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("server_tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ServerToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ServerToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ServerToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ServerToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ServerToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ServerToolUseBlock build()
Returns an immutable instance of ServerToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input()
-
-
-
-