Package com.anthropic.models.messages
Class ServerToolCaller
-
- All Implemented Interfaces:
public final class ServerToolCallerTool invocation generated by a server-side tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServerToolCaller.BuilderA builder for ServerToolCaller.
-
Method Summary
Modifier and Type Method Description final StringtoolId()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("code_execution_20250825")final JsonField<String>_toolId()Returns the raw JSON value of toolId. final Map<String, JsonValue>_additionalProperties()final ServerToolCaller.BuildertoBuilder()final ServerToolCallervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServerToolCaller.Builderbuilder()Returns a mutable builder for constructing an instance of ServerToolCaller. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("code_execution_20250825")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_toolId
final JsonField<String> _toolId()
Returns the raw JSON value of toolId.
Unlike toolId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ServerToolCaller.Builder toBuilder()
-
validate
final ServerToolCaller validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ServerToolCaller.Builder builder()
Returns a mutable builder for constructing an instance of ServerToolCaller.
The following fields are required:
.toolId()
-
-
-
-