Structured output format configuration for AI models that support schema-constrained responses.
When used with supported Anthropic models (claude-sonnet-4-5-20250929, claude-opus-4-1-20250805),
this guarantees that responses will strictly conform to the provided JSON schema through
constrained decoding - the model cannot generate tokens that violate the schema.
Structured output format configuration for AI models that support schema-constrained responses.
When used with supported Anthropic models (claude-sonnet-4-5-20250929, claude-opus-4-1-20250805), this guarantees that responses will strictly conform to the provided JSON schema through constrained decoding - the model cannot generate tokens that violate the schema.
Example:
See
https://docs.anthropic.com/en/docs/build-with-claude/structured-outputs