Structured outputs for Anthropic Claude models on Amazon Bedrock
Amazon Bedrock now supports structured outputs for all Anthropic Claude models on both the bedrock-runtime and bedrock-mantle endpoints. Receive schema-compliant JSON that conforms to a defined structure, without custom parsing, retry logic, or post-processing, using JSON Schema output format and strict tool use.
First seen by Oriel on .
AI summary
Amazon Bedrock now offers schema-constrained JSON outputs and strict tool-parameter validation for Anthropic Claude models on bedrock-runtime and bedrock-mantle, using constrained decoding.
- JSON Schema output format controls response structure, while strict tool use validates tool parameters for agent workflows.
- New schemas incur grammar compilation latency; compiled grammars are cached per account for 24 hours, and structural schema changes trigger recompilation.
- Structured outputs support batch inference, cross-Region inference on bedrock-runtime, and streaming typed events.
- The supported JSON Schema subset includes basic types, enums, selected composition and reference keywords, and string formats; several constraints, including numeric and string bounds, are not enforced.
- Applications must still handle refusals and max_tokens truncation, and schemas require additionalProperties: false on objects.
#amazon bedrock #anthropic claude #json schema #llm agents
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | a1099e0a38a56e4f447d2dfcf2f10f2a8cdb2b50 | https://aws.amazon.com/blogs/machine-learning/structured-outputs-for-anthropic-claude-models-on-amazon-bedrock/ Read discussion |