Package com.anthropic.models.messages
Class JsonOutputFormat
-
- All Implemented Interfaces:
public final class JsonOutputFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classJsonOutputFormat.BuilderA builder for JsonOutputFormat.
public final classJsonOutputFormat.SchemaThe JSON schema of the format
-
Method Summary
Modifier and Type Method Description final JsonOutputFormat.Schemaschema()The JSON schema of the format final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("json_schema")final JsonField<JsonOutputFormat.Schema>_schema()Returns the raw JSON value of schema. final Map<String, JsonValue>_additionalProperties()final JsonOutputFormat.BuildertoBuilder()final JsonOutputFormatvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static JsonOutputFormat.Builderbuilder()Returns a mutable builder for constructing an instance of JsonOutputFormat. -
-
Method Detail
-
schema
final JsonOutputFormat.Schema schema()
The JSON schema of the format
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("json_schema")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_schema
final JsonField<JsonOutputFormat.Schema> _schema()
Returns the raw JSON value of schema.
Unlike schema, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final JsonOutputFormat.Builder toBuilder()
-
validate
final JsonOutputFormat validate()
-
builder
final static JsonOutputFormat.Builder builder()
Returns a mutable builder for constructing an instance of JsonOutputFormat.
The following fields are required:
.schema()
-
-
-
-