pub struct JsonSchemaResponseFormat {
pub description: Option<String>,
pub name: String,
pub schema: Value,
pub strict: Option<bool>,
}Expand description
A JSON Schema output contract. OpenAI receives the name, description, schema and strict setting; Anthropic receives the schema in output_config.format and always uses its native strict enforcement.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§description: Option<String>Optional description passed to OpenAI providers.
name: StringName of the output schema, subject to the provider’s naming restrictions.
schema: ValueJSON Schema passed unchanged to the inference provider. Schemas larger than 32 MiB when JSON-encoded are rejected before admission, using the runtime’s existing request-size ceiling. This is not a guarantee that the entire model request fits. Supported keywords and schema restrictions are determined by the provider.
strict: Option<bool>Optional strict enforcement setting for OpenAI providers. Omitted uses the provider default. Anthropic always enforces its supported schema subset.