compress_history
Method
This is a method of the handoff_filters class in the handoff module.Compress all messages into a single summary message. This filter concatenates all message contents into one user message, reducing token usage while preserving context. Useful for handoffs where the target agent needs context but not full conversation history.
Signature
Parameters
HandoffInputData
required
No description available.
Returns
HandoffInputData
The result of the operation.
Usage
Source
View on GitHub
praisonaiagents/agent/handoff.py at line 1230
