Recipes Overview
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.
Build
- Add a Tool — author a tool, get type-safe access from a route
- Typed State — declare route state shapes and defaults
- Retry Transient Model Calls — recover from transient model/provider failures
- Dispatch from a Route — call one route from another
Integrate
- Auth Middleware — add execution authentication; thread management/state, cancellation, memory-candidate, and health routes need outer host/proxy authentication
- Stream Output — send incremental responses via
runs/stream - Research Assistant Web UI — wire a CopilotKit client to the research demo over AG-UI
Test
These canonical guides cover testing workflows rather than hidden recipe leaves:
Deploy
These canonical guides cover each supported deployment path: