How to get reliable structured JSON from Claude: structured outputs with JSON schemas, strict tool use, forced tool calls, prompt techniques, Pydantic validation, handling missing data and the difference between valid format and correct values.
How prompt caching works in the Claude API: cache_control breakpoints, automatic caching, the 5-minute and 1-hour cache lifetimes, pricing, prefix order, minimum sizes, reading cache usage fields and design patterns for big savings.
A hands-on guide to Claude tool use (function calling): defining tools with JSON schemas, the tool use loop, returning tool results, parallel calls, strict tool use, error handling, security and design tips for reliable tools.
A complete beginner-to-production guide to the Claude API: getting an API key, installing the Python and TypeScript SDKs, the Messages API, system prompts, multi-turn chat, streaming, model choice, errors and best practices.