Keep Last N • Rust AI Agent SDK
keep_last_n: Keep only the last n messages
keep_last_n
Method
</div>
This is a method of the HandoffFilters class in the handoff module.
Keep only the last n messages
Signature
def keep_last_n(n: usize) -> impl Fn(HandoffInputData) -> HandoffInputDataParameters
ParamField
usizeNo description available.
Returns
ResponseField
HandoffInputData”> The result of the operation.