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

Method

> This is a method of the [**BasePlatformAdapter**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/BasePlatformAdapter.md) class in the [**base**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/base.md) module.

Platform max message length (0 = unlimited).

## Signature

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

### Returns

**Returns** `int`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/base.py#L712)
>
> `praisonaiagents/bots/base.py` at line 712


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.