Skip to content

Tutorials (from Examples)

The best way to learn XronAI is by exploring the hands-on examples provided in the repository. Each example is a self-contained script that demonstrates a specific feature of the framework.

We encourage you to read the code, run the examples, and modify them to get a deeper understanding.

Core Concepts

  • Standalone Agent with History: agent_history_basic.py
    See the simplest use-case: a single agent that remembers your conversation.

  • Hierarchical Structure: hierarchical_structure.py
    Learn how to nest Supervisors under a main Supervisor to create complex organizational charts.

  • Loading History: history_loading.py
    Understand how to stop and resume a conversation with a workflow.

Tool Usage

  • Agent with Multiple Tools: agent_tool_usage_benchmark.py
    A demonstration of how a supervisor can delegate to multiple agents, each with multiple tools, in a single turn.

  • Connecting to Remote Tools (MCP): agent_with_mcp_tools.py
    Learn how an agent can discover and use tools from a remote server.

YAML Configuration

  • Task Management System from YAML: task_management_with_yaml/
    A complete example showing how to define a complex, multi-agent workflow entirely in a config.yaml file.