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

# Max Response Output Tokens • Rust AI Agent SDK

> max_response_output_tokens: Set max tokens

# max\_response\_output\_tokens

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**RealtimeConfig**](../classes/RealtimeConfig) class in the [**agents**](../modules/agents) module.

Set max tokens

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def max_response_output_tokens(mut self, tokens: usize) -> Self
```

## Parameters

<ParamField query="tokens" type="usize" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <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" />

  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />

  <Card title="Rust Budget" icon="wallet" href="/docs/rust/budget" />
</CardGroup>
