> ## Documentation Index
> Fetch the complete documentation index at: https://spacesail.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Teams

> Build autonomous multi-agent systems with Agno Teams.

A Team is a collection of Agents (or other sub-teams) that work together to accomplish tasks.

A `Team` has a list of `members` that can be instances of either `Agent` or `Team`.

```python theme={null}
from agno.team import Team
from agno.agent import Agent

team = Team(members=[
    Agent(name="Agent 1", role="You answer questions in English"),
    Agent(name="Agent 2", role="You answer questions in Chinese"),
    Team(name="Team 1", members=[Agent(name="Agent 3", role="You answer questions in French")], role="You coordinate the team members to answer questions in French"),
])
```

<Note>
  It is highly recommended to first learn more about [Agents](/concepts/agents/overview) before diving into Teams.
</Note>

The team leader delegates tasks to members depending on the role of the members and the nature of the tasks.  See the [Delegation](/concepts/teams/delegation) guide for more details.

As with agents, teams support the following features:

* **Model:** Set the model that is used by the "team leader" to delegate tasks to the team members.
* **Instructions:** Instruct the team leader on how to solve problems. The names, descriptions and roles of team members are automatically provided to the team leader.
* **Tools:** If the team leader needs to be able to use tools directly, you can add tools to the team.
* **Reasoning:** Enables the team leader to "think" before responding or delegating tasks to team members, and "analyze" the results of team members' responses.
* **Knowledge:** If the team needs to search for information, you can add a knowledge base to the team. This is accessible to the team leader.
* **Storage:** The Team's session history and state is stored in a database. This enables your team to continue conversations from where they left off, enabling multi-turn, long-term conversations.
* **Memory:** Gives Teams the ability to store and recall information from previous interactions, allowing them to learn user preferences and personalize their responses.

<Note>
  If you are migrating from Agno v1.x.x, the `mode` parameter has been deprecated. Please see the [Migration Guide](/how-to/v2-migration#teams) for more details on how to migrate your teams.
</Note>

## Guides

<CardGroup cols={3}>
  <Card title="Building Teams" icon="wrench" iconType="duotone" href="/concepts/teams/building-teams">
    Learn how to build your teams.
  </Card>

  <Card title="Running your Team" icon="user-robot" iconType="duotone" href="/concepts/teams/running-teams">
    Learn how to run your teams.
  </Card>

  <Card title="Debugging Teams" icon="bug" iconType="duotone" href="/concepts/teams/debugging-teams">
    Learn how to debug and troubleshoot your teams.
  </Card>

  <Card title="Team Sessions" icon="comments" iconType="duotone" href="/concepts/teams/sessions">
    Learn about team sessions.
  </Card>

  <Card title="Input & Output" icon="fire" iconType="duotone" href="/concepts/teams/input-output">
    Learn about input and output for teams.
  </Card>

  <Card title="Context Engineering" icon="file-lines" iconType="duotone" href="/concepts/teams/context">
    Learn about context engineering.
  </Card>

  <Card title="Dependencies" icon="brackets-curly" iconType="duotone" href="/concepts/teams/dependencies">
    Learn about dependency injection in your team's context.
  </Card>

  <Card title="Team State" icon="crystal-ball" iconType="duotone" href="/concepts/teams/state">
    Learn about managing team state.
  </Card>

  <Card title="Team Storage" icon="database" iconType="duotone" href="/concepts/teams/storage">
    Learn about session storage.
  </Card>

  <Card title="Memory" icon="head-side-brain" iconType="duotone" href="/concepts/teams/memory">
    Learn about adding memory to your teams.
  </Card>

  <Card title="Knowledge" icon="books" iconType="duotone" href="/concepts/teams/knowledge">
    Learn about knowledge in teams.
  </Card>

  <Card title="Team Metrics" icon="chart-line" iconType="duotone" href="/concepts/teams/metrics">
    Learn how to track team metrics.
  </Card>

  <Card title="Pre-hooks & Post-hooks" icon="link" iconType="duotone" href="/concepts/teams/pre-hooks-and-post-hooks">
    Learn about pre-hooks and post-hooks for teams.
  </Card>

  <Card title="Guardrails" icon="shield-check" iconType="duotone" href="/concepts/teams/guardrails">
    Learn about implementing guardrails for your teams.
  </Card>
</CardGroup>

## Developer Resources

* View the [Team reference](/reference/teams/team)
* View [Usecases](/examples/use-cases/teams/)
* View [Examples](/examples/concepts/teams/)
* View [Cookbook](https://github.com/agno-agi/agno/tree/main/cookbook/teams/README.md)
