BriefsToolAvailable now
Amazon Bedrock now enforces JSON schemas on all Anthropic Claude AI models
Claude on Amazon Bedrock can return JSON that matches your schema, on the bedrock-runtime and bedrock-mantle endpoints, and the feature is generally available.
Summary
Amazon Bedrock now supports structured outputs for every Anthropic Claude model, wherever the model is available. It uses constrained decoding, so your JSON schema is enforced while the model generates tokens, not after the fact. The page also covers strict tool use, which checks tool parameters against schemas.
What changed
- Structured outputs work for all Claude models on bedrock-runtime and bedrock-mantle, where the model is available.
- Constrained decoding enforces your JSON schema during token generation, not after the fact.
- Strict tool use validates tool parameters against schemas, aimed at agentic workflows and function calling.
- Batch inference works with it. On bedrock-runtime, so does cross-Region inference, with no extra setup.
- You must set additionalProperties: false on all objects, or structured outputs won't work.
Availability
Available now“Structured outputs for Claude on Amazon Bedrock is now generally available.”
Founder takeaway
If you call Claude through Bedrock and have code that parses JSON or retries bad output, try a schema with additionalProperties set to false. Keep checking for refusals and max_tokens cutoffs, since both can still produce non-conforming responses.
Source
Researched and drafted with AI from the official sources above, then checked automatically before publishing. Spotted a mistake? Tell us.
Related
More briefs
Vercel adds sandbox plugin support for running Paseo AI agents
Paseo now supports running AI agents in the cloud using the Vercel Sandbox plugin.
Vercel1 min read
Vercel introduces Virtual Models on AI Gateway for AI apps
Vercel released Virtual Models on AI Gateway to let developers manage model strings and fallbacks centrally.
Vercel1 min read
Vercel CLI allows AI agents to enable web analytics and observability
AI agents can now enable Web Analytics and Observability Plus for projects without requiring an interactive terminal.
Vercel1 min read
One email, every Monday
Briefs are published here through the day. Monday Heist is the email: one useful AI workflow, the files to use it, and the catch. The first issue is being prepared; subscribers get it first. Free, and you can leave in one click.
One email. Every Monday.