Skip to main content
This guide shows you how to create systems where multiple agents collaborate to complete complex tasks.
The user submits one goal; agents hand work off until the team returns a finished answer.

Quick Start

1

Install

2

Create a multi-agent system

Prerequisites

Basic Multi-Agent Setup

Process Types

Sequential Process

Agents execute tasks one after another:

Hierarchical Process

A manager agent delegates to worker agents:

Agent Handoffs

Enable agents to hand off tasks to each other:

Shared Memory

Agents can share memory for context:

Task Dependencies

Define task dependencies for complex workflows:

Parallel Execution

Run independent tasks in parallel:

YAML Configuration

Define multi-agent systems in YAML:
Run with:

Best Practices

Give each agent a distinct role and goal so handoffs stay predictable.
Provide detailed instructions for each agent rather than one vague team prompt.
Use context on tasks to define dependencies between agents.
Give agents only the tools they need — fewer tools means fewer failure modes.

Next Steps

Single Agent

Build your first AI agent

Workflow Patterns

Sequential, parallel, and hierarchical workflows