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

# Vision Config • Rust AI Agent SDK

> VisionConfig: Configuration for vision processing settings.

# VisionConfig

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

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

Configuration for vision processing settings.

## Fields

| Name         | Type                   | Description                    |
| ------------ | ---------------------- | ------------------------------ |
| `detail`     | `String`               | Detail level (low, high, auto) |
| `max_tokens` | `u32`                  | Maximum tokens for response    |
| `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 VisionConfig

### `detail`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn detail(mut self, detail: impl Into<String>) -> Self
```

Set detail level

**Parameters:**

| Name     | Type                      |
| -------- | ------------------------- |
| `detail` | `impl Into&lt;String&gt;` |

### `max_tokens`

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

Set max tokens

**Parameters:**

| Name         | Type  |
| ------------ | ----- |
| `max_tokens` | `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#L899">
  `praisonai/src/agents/mod.rs` at line 899
</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 Vision" icon="eye" href="/docs/rust/vision" />

  <Card title="Rust Image" icon="image" href="/docs/rust/image" />
</CardGroup>
