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

# Session Timeout • Rust AI Agent SDK

> session_timeout: Set session timeout.

# session\_timeout

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

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

Set session timeout.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def session_timeout(mut self, timeout: u64) -> Self
```

## Parameters

<ParamField query="timeout" type="u64" 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 Sessions" icon="clock" href="/docs/rust/sessions" />

  <Card title="Rust Memory" icon="database" href="/docs/rust/memory" />
</CardGroup>
