Package com.anthropic.models.messages
Class Tool.InputSchema
-
- All Implemented Interfaces:
public final class Tool.InputSchemaJSON schema for this tool's input.
This defines the shape of the
inputthat your tool accepts and that the model will produce.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTool.InputSchema.BuilderA builder for InputSchema.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("object")final JsonValue_properties()final Optional<List<String>>required()final JsonField<List<String>>_required()Returns the raw JSON value of required. final Map<String, JsonValue>_additionalProperties()final Tool.InputSchema.BuildertoBuilder()final Tool.InputSchemavalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Tool.InputSchema.Builderbuilder()Returns a mutable builder for constructing an instance of InputSchema. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("object")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_properties
final JsonValue _properties()
-
_required
final JsonField<List<String>> _required()
Returns the raw JSON value of required.
Unlike required, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Tool.InputSchema.Builder toBuilder()
-
validate
final Tool.InputSchema validate()
-
builder
final static Tool.InputSchema.Builder builder()
Returns a mutable builder for constructing an instance of InputSchema.
-
-
-
-