Tutorials
AgentFlow tutorials are the bridge between the quickstart pages and the reference docs. They take real example code from the repository and turn it into guided, runnable walkthroughs.
Tutorial track
From examples
These tutorials are based on code in agentflow/examples/:
- Agent Class Pattern
- Custom State
- Google GenAI Adapter
- Tool Decorator
- ReAct Agent
- ReAct Agent with Validation
- React Streaming
- Synchronous Streaming
- Stop Stream
Advanced integrations
- Dependency Injection
- MCP Server
- MCP Client
- MCP ReAct Agent
- GitHub MCP
- MCP File Download
- Memory
- Qdrant Memory
- Multimodal
- Multiagent
- Handoff
- Skills
- Skills Chat
- Testing
- Evaluation
- Graceful Shutdown
How to use this section
If you are new to AgentFlow, follow the pages in the order shown above. The tutorials are designed to build on each other:
- Start with
Agent Class Patternto learn the smallest useful graph. - Move to
Custom StateandTool Decoratorto understand how state and tools are modeled. - Use
ReAct Agentto assemble the core graph loop. - Add
ReAct Agent with Validationfor safer input handling. - Finish with the streaming tutorials to learn real-time output and cancellation patterns.
- Continue into the advanced section for MCP, memory, multimodal input, and multi-agent coordination.
- Finish with the sprint 9 tutorials to learn skills, testing, evaluation, and clean shutdown behavior.
Before you start
Most tutorials assume:
- Python 3.11 or later
10xscale-agentflowinstalled- Environment variables loaded from
.env - A provider key such as
GEMINI_API_KEYfor Google-based examples