> ## 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 Message Length • AI Agent SDK

> max_message_length: Platform max message length (0 = unlimited).

# max\_message\_length

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

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

Platform max message length (0 = unlimited).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def max_message_length() -> int
```

### Returns

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/base.py#L453">
  `praisonaiagents/bots/base.py` at line 453
</Card>
