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

# Teams

> Compose multi-agent teams visually in AgentOS Studio.

Build teams in AgentOS Studio by wiring up agents, tools, instructions, knowledge, and memory. No code required.

## Creating Teams

Create a new team by using existing agents and teams from your Registry or built in Studio, and configuring the team settings:

* **Team Members and Execution**: select agents or teams to include as members, and set the team mode and delegation behavior. Read more about [team members and execution](/agent-os/studio/teams#team-members-and-execution) here.
* **Instructions**: team-level instructions for the leader agent.
* **Success Criteria**: define when the team's task is complete.
* **Context Management**: configure session summary manager, enable session summaries, number of history runs, add history to context, and add session summary to context.
* **Memory**: configure memory manager, enable agentic memory, update memory on run, and add memories to context.
* **Knowledge**: configure knowledge, search knowledge, and add knowledge to context.
* **Session State**: configure session state, add session state to context, and enable agentic state.

<img src="https://mintcdn.com/phidatainc-agui/z86_O3EeJ5wD0p21/images/agent-os-studio-create-team.png?fit=max&auto=format&n=z86_O3EeJ5wD0p21&q=85&s=3caaed394c195d0962bcd6a299d3c4a0" alt="Create a team in AgentOS Studio" style={{ borderRadius: "8px" }} width="1428" height="913" data-path="images/agent-os-studio-create-team.png" />

### Team Members and Execution

* **Members**: select the agents or teams to include as members.
* **Team Mode** *(optional)*: controls how the team leader coordinates work with member agents (see [Delegation](/teams/delegation)):
  * **None**
  * **Coordinate** (default)
  * **Route**
  * **Broadcast**
  * **Tasks**
* **Respond Directly**: lets the team leader respond on its own instead of delegating.
* **Delegate to All Members**: sends the task to every member at once.

<Tip>
  Agents can be created directly in Studio or registered via code—both are available for team composition.
</Tip>

## Using Teams

Teams built in Studio can be used in multiple ways:

* **Chat directly** with the team via the Chat page
* **Use in Workflows** as step executors for complex automation

## Code Equivalent

A team instance created in Studio directly maps to the SDK `Team` class:

```python theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team import Team
from agno.tools.hackernews import HackerNewsTools
from agno.tools.websearch import WebSearchTools

researcher = Agent(
    name="Researcher",
    model=OpenAIChat(id="gpt-5-mini"),
    tools=[WebSearchTools()],
    instructions="Research topics thoroughly.",
)

hn_analyst = Agent(
    name="HN Analyst",
    model=OpenAIChat(id="gpt-5-mini"),
    tools=[HackerNewsTools()],
    instructions="Find relevant HackerNews discussions.",
)

team = Team(
    name="Research Team",
    mode="coordinate",
    members=[researcher, hn_analyst],
    instructions="Coordinate research across web and HackerNews.",
)
```

## Developer Resources

* [Team reference](/reference/teams/team)
* [Building teams](/teams/building-teams)
* [Studio Agents](/agent-os/studio/agents)
