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

# chunk • AI Agent SDK

> chunk: Split *text* to respect the platform max length.

# chunk

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

Split *text* to respect the platform max length.

Default uses a paragraph/line-aware splitter. Override to use a
richer platform-aware chunker (e.g. code-fence preserving).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def chunk(text: str) -> List[str]
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="List[str]">
  The result of the operation.
</ResponseField>

## Used By

* [`BasePlatformAdapter.deliver`](../functions/BasePlatformAdapter-deliver)

## Source

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