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()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()
-
builder
final static ServerToolCaller.Builder builder()
Returns a mutable builder for constructing an instance of ServerToolCaller.
The following fields are required:
.toolId()
-
-
-
-