Recipes¶
Each recipe is a runnable example from the examples/ directory in
the repository, embedded verbatim and walked through. Run any of
them directly with python examples/<file>.py once you have the
relevant provider key in your environment.
The recipes are roughly ordered by the progressive complexity ladder: single agent → tools → composition → planning → production.
Single agent + tools¶
- React agent —
examples/langgraph/01_react_agent_weather.py - Researcher (single agent) —
examples/crewai/01_research_crew_single_agent.py
Sequential composition¶
- Researcher → reporter —
examples/crewai/02_research_and_report.py
Hierarchical / supervisor¶
- Supervisor pattern —
examples/langgraph/02_supervisor_research_math.py
Planning patterns¶
- Plan tool —
examples/patterns/plan_tool.py - Agent builds a plan —
examples/patterns/agent_builds_plan.py - Blackboard planner —
examples/patterns/blackboard_planner.py - Dynamic re-planning —
examples/patterns/dynamic_planner.py
Composition shapes¶
- Nested pipelines (horizontal)
— Plan-of-Plans, parallel bands of sub-pipelines, and LLM-decided
dispatch over sub-pipelines. Companion to the vertical
chain/Planrecipes above.
Observability¶
- Live visualization —
examples/viz_demo.py - Visualization mock —
examples/viz_mock_demo.py