Class BetaTool.InputSchema
-
- All Implemented Interfaces:
public final class BetaTool.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 classBetaTool.InputSchema.BuilderA builder for InputSchema.
public final classBetaTool.InputSchema.Properties
-
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 Optional<BetaTool.InputSchema.Properties>properties()final Optional<List<String>>required()final JsonField<BetaTool.InputSchema.Properties>_properties()Returns the raw JSON value of properties. final JsonField<List<String>>_required()Returns the raw JSON value of required. final Map<String, JsonValue>_additionalProperties()final BetaTool.InputSchema.BuildertoBuilder()final BetaTool.InputSchemavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTool.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 Optional<BetaTool.InputSchema.Properties> properties()
-
_properties
final JsonField<BetaTool.InputSchema.Properties> _properties()
Returns the raw JSON value of properties.
Unlike properties, this method doesn't throw if the JSON field has an unexpected type.
-
_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 BetaTool.InputSchema.Builder toBuilder()
-
validate
final BetaTool.InputSchema 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 BetaTool.InputSchema.Builder builder()
Returns a mutable builder for constructing an instance of InputSchema.
-
-
-
-