Truncate Presentation • AI Agent SDK

truncate_presentation: Truncate a presentation to fit channel limits.

truncate_presentation

Method

</div>

This is a method of the SupportsPresentation class in the protocols module.

Truncate a presentation to fit channel limits.

Signature

python
def truncate_presentation(presentation: 'MessagePresentation') -> 'MessagePresentation'

Parameters

ParamField MessagePresentation

The presentation to truncate

Returns

ResponseField 'MessagePresentation'

Truncated presentation that fits channel limits

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1388