Delete History Matching • AI Agent SDK
delete_history_matching: Delete all messages matching a pattern.
delete_history_matching
Method
</div>
Delete all messages matching a pattern.
Useful for removing all image-related messages after processing.
Signature
def delete_history_matching(pattern: str) -> intParameters
ParamField
strSubstring to match in message content
Returns
ResponseField
intNumber of messages deleted
Source
View on GitHubpraisonaiagents/agent/agent.py at line 4253