Package com.anthropic.models.messages
Class ServerToolUseBlock
-
- All Implemented Interfaces:
public final class ServerToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServerToolUseBlock.BuilderA builder for ServerToolUseBlock.
-
Method Summary
Modifier and Type Method Description final ServerToolUseBlockParamtoParam()final Stringid()final JsonValue_input()final JsonValue_name()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_search")final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("server_tool_use")final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final ServerToolUseBlock.BuildertoBuilder()final ServerToolUseBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServerToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ServerToolUseBlock. -
-
Method Detail
-
toParam
final ServerToolUseBlockParam toParam()
-
_name
final JsonValue _name()
Expected to always return the following:
JsonValue.from("web_search")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("server_tool_use")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ServerToolUseBlock.Builder toBuilder()
-
validate
final ServerToolUseBlock validate()
-
builder
final static ServerToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of ServerToolUseBlock.
The following fields are required:
.id() .input()
-
-
-
-