Package com.hw.langchain.memory.buffer
Class BufferWindowMemoryMessagePicker
java.lang.Object
com.hw.langchain.memory.buffer.BufferWindowMemoryMessagePicker
- All Implemented Interfaces:
MemoryMessagePicker
- Author:
- zhangxiaojia002
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpickMemoryMessage
(List<BaseMessage> memoryMessages) pick up memory messages as needed
-
Constructor Details
-
BufferWindowMemoryMessagePicker
public BufferWindowMemoryMessagePicker(int k)
-
-
Method Details
-
pickMemoryMessage
Description copied from interface:MemoryMessagePicker
pick up memory messages as needed- Specified by:
pickMemoryMessage
in interfaceMemoryMessagePicker
- Parameters:
memoryMessages
- all history memory messages- Returns:
- memory messages picked
-