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

# Truncate Presentation • AI Agent SDK

> truncate_presentation: Truncate a presentation to fit channel limits.

# truncate\_presentation

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

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

Truncate a presentation to fit channel limits.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def truncate_presentation(presentation: 'MessagePresentation') -> 'MessagePresentation'
```

## Parameters

<ParamField query="presentation" type="MessagePresentation" required={true}>
  The presentation to truncate
</ParamField>

### Returns

<ResponseField name="Returns" type="'MessagePresentation'">
  Truncated presentation that fits channel limits
</ResponseField>

## Source

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