DictionaryMemory Strategies See it in actionConversation cost tool
Trimming (Last-N)
Keeping only the most recent messages and forgetting older ones, like a chat that shows just the last few texts.
Definition
A simple context management strategy that keeps only the last N conversation turns and discards older ones. Fast and predictable but loses early context completely. Best for simple chatbots where recent context matters most.
Example
With N = 10, turn 11 drops turn 1, so a budget limit the user mentioned at the start is lost.