Recipes
Recipes answer the question: how do I do X? Each one is a single sitting — a goal, the canonical code, the gotchas, and a link back to the concept page if you want the deeper read.
Concept pages explain the pieces. Recipes show the pieces wired up.
For route-level agent behavior, start with Memory, Planning, Skills, Subagents, and Reasoning Effort. Those features are building blocks rather than single recipes today.
Available recipes
- Add a tool — author a tool, get type-safe access from a route
- Typed state — declare state shapes, capture dynamic segments
- Auth middleware — short-circuit unauthorized requests
- Stream output — incremental responses via
/runs/stream - Retry flaky tools — recover from transient failures
- Dispatch from a route — call one route from another