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

# Deep Research Config • Rust AI Agent SDK

> DeepResearchConfig: Configuration for deep research settings.

# DeepResearchConfig

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

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

Configuration for deep research settings.

## Fields

| Name                | Type                   | Description                          |
| ------------------- | ---------------------- | ------------------------------------ |
| `max_sources`       | `usize`                | Maximum number of sources to include |
| `include_citations` | `bool`                 | Include citations in output          |
| `max_depth`         | `usize`                | Maximum research depth               |
| `timeout`           | `u32`                  | Timeout in seconds                   |
| `api_base`          | `Option&lt;String&gt;` | API base URL                         |
| `api_key`           | `Option&lt;String&gt;` | API key                              |

## Methods

### `new`

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

Create a new config

### `max_sources`

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

Set max sources

**Parameters:**

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

### `include_citations`

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

Set include citations

**Parameters:**

| Name      | Type   |
| --------- | ------ |
| `include` | `bool` |

### `max_depth`

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

Set max depth

**Parameters:**

| Name    | Type    |
| ------- | ------- |
| `depth` | `usize` |

### `timeout`

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

Set timeout

**Parameters:**

| Name      | Type  |
| --------- | ----- |
| `timeout` | `u32` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/agents/mod.rs#L1039">
  `praisonai/src/agents/mod.rs` at line 1039
</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" />

  <Card title="Rust Web Search" icon="search" href="/docs/rust/web-search" />

  <Card title="Rust Query" icon="magnifying-glass" href="/docs/rust/query" />
</CardGroup>
