Skip to content

Templates

Production-ready, end-to-end examples shipped with the SDK. Each template lives under examples/ and includes its own README, eval suite, and tests.

Template Pattern What it shows
Deep Research Agent Scope → parallel Research → Write Long-horizon research with structured trace spans, real web search/fetch, parallel sub-researchers via asyncio.gather. Pairs with the trace-learning loop for self-improving agents.
Regression from Trace capture → analyze → fix → save → verify The full trace → replay → fix → regression-test loop. Five small scripts demonstrating fork_at, with_tool_override, and save_as_test against a deliberately broken tool.
Customer Support Agent Single Agent + HITL Multi-turn support with checkpointer, memory, tool budget, KB retrieval, eval suite.
Research Agent Supervisor + 3 workers Researcher → Writer → Verifier with revision loop and citation auditing.
Sales SDR Agent Multi-step workflow Lead qualification chain with structured outputs.
Meeting Notes Agent Structured output Transcript → schema-validated meeting notes.
Personal Assistant Long-context memory Multi-tool orchestration with composable memory blocks.

Templates are meant to be read, copied, and adapted — not used as black-box dependencies. Each one stays under ~500 lines so a developer can hold it in their head.