Skip to main content

keep_last_n_messages

Method
This is a method of the handoff_filters class in the handoff module.
Keep only the last n messages in the history.

Signature

def keep_last_n_messages(n: int) -> Callable[[HandoffInputData], HandoffInputData]

Parameters

n
int
required
No description available.

Returns

Returns
Callable[[HandoffInputData], HandoffInputData]
The result of the operation.

Source

View on GitHub

praisonaiagents/agent/handoff.py at line 776