JsonSchema

@SerialName(value = "json_schema")
data class JsonSchema(val schema: JsonObject) : AnthropicOutputFormat(source)

JSON schema output format that constrains model output to match a given schema.

Constructors

Link copied to clipboard
constructor(schema: JsonObject)

Properties

Link copied to clipboard

The JSON schema that the model output must conform to.