WindowSizePreProcessor
A ChatMemoryPreProcessor that limits the number of messages to a sliding window of the most recent windowSize messages.
Example usage:
installChatMemory {
chatHistoryProvider = MyChatHistoryProvider()
addPreProcessor(WindowSizePreProcessor(20))
}Content copied to clipboard
Parameters
windowSize
The maximum number of recent messages to keep.