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

# team

# `marvin.agents.team`

## Classes

### `RandomTeam`

```python theme={null}
class RandomTeam(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = 'A team of agents that randomly selects an agent to act.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
```

**Methods:**

* **`start_turn`**
  ```python theme={null}
  def start_turn(self, thread: Thread)
  ```

### `RoundRobinTeam`

```python theme={null}
class RoundRobinTeam(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = 'A team of agents that rotate turns.', verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
```

**Methods:**

* **`start_turn`**
  ```python theme={null}
  def start_turn(self, thread: Thread)
  ```

### `Swarm`

```python theme={null}
class Swarm(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
```

A swarm is a team that permits all agents to delegate to each other.

### `Team`

```python theme={null}
class Team(name: str = (lambda: random.choice(TEAM_NAMES))(), instructions: str | None = None, description: str | None = None, verbose: bool = False, prompt: str | Path = Path('team.jinja'), members: list[Actor], delegates: dict[Actor, list[Actor]] = dict())
```

A team is a container that maintains state for a group of agents.

**Methods:**

* **`end_turn`**
  ```python theme={null}
  def end_turn(self, thread: Thread, result: AgentRunResult)
  ```
* **`friendly_name`**
  ```python theme={null}
  def friendly_name(self, verbose: bool = True) -> str
  ```
* **`get_agentlet`**
  ```python theme={null}
  def get_agentlet(self, tools: list[Callable[..., Any]], end_turn_tools: list[EndTurn], active_mcp_servers: list[MCPServer] | None = None) -> pydantic_ai.Agent[Any, Any]
  ```
* **`get_end_turn_tools`**
  ```python theme={null}
  def get_end_turn_tools(self) -> list[EndTurn]
  ```
* **`get_memories`**
  ```python theme={null}
  def get_memories(self) -> list[Memory]
  ```
* **`get_prompt`**
  ```python theme={null}
  def get_prompt(self) -> str
  ```
* **`start_turn`**
  ```python theme={null}
  def start_turn(self, thread: Thread)
  ```

***

**Parent Module:** [`agents`](marvin-agents)
