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

# Output Config • Rust AI Agent SDK

> OutputConfig: Output configuration

# OutputConfig

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

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

Output configuration

## Fields

| Name   | Type                   | Description                              |
| ------ | ---------------------- | ---------------------------------------- |
| `mode` | `"silent"`             | -                                        |
| `mode` | `String`               | Output mode: "silent", "verbose", "json" |
| `file` | `Option&lt;String&gt;` | Output file path (optional)              |

## Methods

### `new`

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

Create a new output config

### `silent`

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

Set silent mode

### `verbose`

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

Set verbose mode

### `file`

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

Set output file

**Parameters:**

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/config.rs#L114">
  `praisonai/src/config.rs` at line 114
</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 Output" icon="file-export" href="/docs/rust/output" />

  <Card title="Rust Structured Output" icon="code" href="/docs/rust/structured-output" />

  <Card title="Rust Display" icon="display" href="/docs/rust/display" />
</CardGroup>
