Minimal AWS SAM example for guaranteed structured JSON output from Amazon Bedrock using forced tool-use on the Converse API. No prompt-engineered JSON hoping.
-
Updated
Jul 7, 2026 - Python
Minimal AWS SAM example for guaranteed structured JSON output from Amazon Bedrock using forced tool-use on the Converse API. No prompt-engineered JSON hoping.
Sample code for two-tier LLM inference (cascading) on Amazon Bedrock, using a single Bedrock Converse API surface. NVIDIA Nemotron Nano handles routine support-ticket classification on every request; Anthropic Claude Sonnet handles cases the routing logic flags as harder. Includes a bake-off harness, sample data, and tests. Next.js + TypeScript.
Add a description, image, and links to the bedrock-converse-api topic page so that developers can more easily learn about it.
To associate your repository with the bedrock-converse-api topic, visit your repo's landing page and select "manage topics."