Purge Old • AI Agent SDK

purge_old: Remove old sent messages.

purge_old

Async

Method

</div>

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

Remove old sent messages.

Signature

python
async def purge_old(max_age_seconds: int) -> int

Parameters

ParamField int

Age threshold for removal

Returns

ResponseField int

Number of messages purged

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2115