Skip to main content

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/:

Advanced integrations

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 Pattern to learn the smallest useful graph.
  • Move to Custom State and Tool Decorator to understand how state and tools are modeled.
  • Use ReAct Agent to assemble the core graph loop.
  • Add ReAct Agent with Validation for 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-agentflow installed
  • Environment variables loaded from .env
  • A provider key such as GEMINI_API_KEY for Google-based examples