> ## 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.

# Execution Config • Rust AI Agent SDK

> ExecutionConfig: Execution configuration

# ExecutionConfig

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

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

Execution configuration

## Fields

| Name             | Type    | Description                  |
| ---------------- | ------- | ---------------------------- |
| `max_iterations` | `usize` | Maximum number of iterations |
| `timeout_secs`   | `u64`   | Timeout in seconds           |
| `stream`         | `bool`  | Enable streaming output      |

## Methods

### `new`

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

Create a new execution config

### `max_iterations`

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

Set max iterations

**Parameters:**

| Name  | Type    |
| ----- | ------- |
| `max` | `usize` |

### `timeout`

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

Set timeout

**Parameters:**

| Name   | Type  |
| ------ | ----- |
| `secs` | `u64` |

### `no_stream`

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

Disable streaming

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Configuration" icon="gear" href="/docs/rust/configuration" />

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