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

> Control how agent responses are displayed

Configure output format - silent, verbose, or JSON.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    subgraph "Output Modes"
        A[🤖 Agent] --> O{Output}
        O --> S[🔇 Silent]
        O --> V[📢 Verbose]
        O --> J[📋 JSON]
    end
    
    classDef agent fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef mode fill:#10B981,stroke:#7C90A0,color:#fff
    
    class A agent
    class O,S,V,J mode
```

## Quick Start

<Steps>
  <Step title="Verbose Output">
    ```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    use praisonai::Agent;

    // Enable verbose output for debugging
    let agent = Agent::new()
        .name("Assistant")
        .instructions("You are a helpful assistant")
        .verbose(true)  // Show detailed output
        .build()?;

    let response = agent.chat("What's 2+2?").await?;
    println!("Response: {}", response);
    ```
  </Step>

  <Step title="Silent Mode">
    ```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    use praisonai::Agent;

    // Disable verbose output for production
    let agent = Agent::new()
        .name("Assistant")
        .verbose(false)  // Minimal output
        .build()?;

    // Only final result is shown
    let response = agent.chat("Analyze this data").await?;
    ```
  </Step>

  <Step title="Streaming Output">
    ```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    use praisonai::Agent;

    // Enable streaming for real-time output
    let agent = Agent::new()
        .name("Assistant")
        .stream(true)  // Stream responses as they arrive
        .build()?;

    let response = agent.chat("Write a story").await?;
    ```
  </Step>
</Steps>

***

## Choosing Output Mode

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph TB
    subgraph "Choose Mode"
        Q{Need?} --> |Debugging| V[verbose]
        Q --> |Production| S[silent]
        Q --> |API/Logs| J[json]
    end
    
    classDef question fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef mode fill:#10B981,stroke:#7C90A0,color:#fff
    
    class Q question
    class V,S,J mode
```

| Mode      | Best For                  |
| --------- | ------------------------- |
| `verbose` | Development, debugging    |
| `silent`  | Production, minimal noise |
| `json`    | APIs, logging, parsing    |

***

## Configuration

| Option | Type     | Default   | Description         |
| ------ | -------- | --------- | ------------------- |
| `mode` | `String` | `verbose` | Output mode         |
| `file` | `String` | None      | Save output to file |

***

## Related

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

  <Card title="Streaming" icon="stream" href="/docs/rust/streaming">
    Stream responses
  </Card>
</CardGroup>
