Package com.anthropic.models.messages
Class JsonOutputFormat.Builder
-
- All Implemented Interfaces:
public final class JsonOutputFormat.BuilderA builder for JsonOutputFormat.
-
-
Method Summary
Modifier and Type Method Description final JsonOutputFormat.Builderschema(JsonOutputFormat.Schema schema)The JSON schema of the format final JsonOutputFormat.Builderschema(JsonField<JsonOutputFormat.Schema> schema)Sets Builder.schema to an arbitrary JSON value. final JsonOutputFormat.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final JsonOutputFormat.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final JsonOutputFormat.BuilderputAdditionalProperty(String key, JsonValue value)final JsonOutputFormat.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final JsonOutputFormat.BuilderremoveAdditionalProperty(String key)final JsonOutputFormat.BuilderremoveAllAdditionalProperties(Set<String> keys)final JsonOutputFormatbuild()Returns an immutable instance of JsonOutputFormat. -
-
Method Detail
-
schema
final JsonOutputFormat.Builder schema(JsonOutputFormat.Schema schema)
The JSON schema of the format
-
schema
final JsonOutputFormat.Builder schema(JsonField<JsonOutputFormat.Schema> schema)
Sets Builder.schema to an arbitrary JSON value.
You should usually call Builder.schema with a well-typed Schema value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final JsonOutputFormat.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("json_schema")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final JsonOutputFormat.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final JsonOutputFormat.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final JsonOutputFormat.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final JsonOutputFormat.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final JsonOutputFormat.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final JsonOutputFormat build()
Returns an immutable instance of JsonOutputFormat.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.schema()
-
-
-
-