Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions docs/user-guide/concepts/multi-agent/swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Swarms operate on the principle of emergent intelligence - the idea that a group
2. Can see the history of which agents have worked on the task
3. Can access shared knowledge contributed by other agents
4. Can decide when to hand off to another agent with different expertise
5. Can mark a task as complete when the objective is achieved

```mermaid
graph TD
Expand Down Expand Up @@ -77,7 +76,7 @@ In this example:
3. Handoff to the `coder` to implement the API and architecture
4. The `coder` writes the code
5. Handoff to the `reviewer` for code review
6. Finally, the `reviewer` completes the task with the final result
6. Finally, the `reviewer` provides the final result

## Swarm Configuration

Expand Down Expand Up @@ -122,7 +121,7 @@ result = swarm(content_blocks)

When you create a Swarm, each agent is automatically equipped with special tools for coordination:

### 1. Handoff Tool
### Handoff Tool

Agents can transfer control to another agent when they need specialized help:

Expand All @@ -134,14 +133,6 @@ handoff_to_agent(
)
```

### 2. Completion Tool

Any agent can mark the task as complete:

```python
complete_swarm_task()
```

## Shared Context

The Swarm maintains a shared context that all agents can access. This includes:
Expand Down Expand Up @@ -169,7 +160,7 @@ Agent name: data_analyst. Agent description: Analyzes data and provides deeper i
Agent name: code_reviewer.
Agent name: security_specialist. Agent description: Focuses on secure coding practices and vulnerability assessment

You have access to swarm coordination tools if you need help from other agents or want to complete the task.
You have access to swarm coordination tools if you need help from other agents.
```

## Asynchronous Execution
Expand Down
Loading