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

# Agent Team Builder • Rust AI Agent SDK

> AgentTeamBuilder: Builder for AgentTeam

# AgentTeamBuilder

> Defined in the [**workflows**](../modules/workflows) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Builder for AgentTeam

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    input["Input Data"] --> agent["Agent: AgentTeamBuilder"]
    agent --> output["Output Result"]
    style agent fill:#8B0000,color:#fff
    style input fill:#8B0000,color:#fff
    style output fill:#8B0000,color:#fff
```

## Fields

| Name      | Type                          | Description |
| --------- | ----------------------------- | ----------- |
| `agents`  | `Vec&lt;Arc&lt;Agent&gt;&gt;` | -           |
| `process` | `Process`                     | -           |
| `verbose` | `bool`                        | -           |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new() -> Self
```

Create a new builder

### `agent`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn agent(mut self, agent: Agent) -> Self
```

Add an agent

**Parameters:**

| Name    | Type    |
| ------- | ------- |
| `agent` | `Agent` |

### `agent_arc`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn agent_arc(mut self, agent: Arc<Agent>) -> Self
```

Add an agent (Arc version)

**Parameters:**

| Name    | Type               |
| ------- | ------------------ |
| `agent` | `Arc&lt;Agent&gt;` |

### `process`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn process(mut self, process: Process) -> Self
```

Set the process type

**Parameters:**

| Name      | Type      |
| --------- | --------- |
| `process` | `Process` |

### `verbose`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn verbose(mut self, enabled: bool) -> Self
```

Enable verbose output

**Parameters:**

| Name      | Type   |
| --------- | ------ |
| `enabled` | `bool` |

### `build`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn build(self) -> AgentTeam
```

Build the team

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/workflows/mod.rs#L254">
  `praisonai/src/workflows/mod.rs` at line 254
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Agent" icon="robot" href="/docs/rust/agent" />

  <Card title="Rust Overview" icon="book-open" href="/docs/rust/overview" />

  <Card title="Rust Quickstart" icon="rocket" href="/docs/rust/quickstart" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />

  <Card title="Rust Autonomy" icon="wand-magic-sparkles" href="/docs/rust/autonomy" />
</CardGroup>
