Related:
⬡ API & SDK/2026-05-26Advanced
Stabilizing Claude API Structured Responses in Production — Notes on tool_use, JSON Schema, and Layered Validation
Getting Claude to return JSON takes a few lines. Keeping that JSON usable in production is a different problem. Here is the layered design I landed on after running a wallpaper classification pipeline through Claude API, built around tool_use, JSON Schema, and domain validation.
⬡ API & SDK/2026-05-23Intermediate
Absorbing the Claude API "Tool Result Submitted" Error in a Retry Layer: A Small Conversation-History Repair
How I absorbed the Claude API "Tool result could not be submitted because the previous turn was not a tool use" error inside a small retry layer, with the diagnosis order I followed after it hit a production batch.
⬡ API & SDK/2026-04-28Intermediate
Why "The requested model does not exist" Won't Go Away — Claude API Naming and Access Pitfalls
The model_not_found error in the Claude API is almost always a typo or a stale model alias — not a permissions issue. Here are the current model IDs as of April 2026 and a clear order for narrowing down the cause.