Package com.hw.langchain.memory.buffer
Interface MemoryMessagePicker
- All Known Implementing Classes:
BufferWindowMemoryMessagePicker
public interface MemoryMessagePicker
Since the token we input to LLM is limited, the history messages we add into gpt request is also limited.
This interface defines the behavior to pick up limited history memory.
This interface defines the behavior to pick up limited history memory.
- Author:
- zhangxiaojia002
-
Method Summary
Modifier and TypeMethodDescriptionpickMemoryMessage
(List<BaseMessage> memoryMessages) pick up memory messages as needed
-
Method Details
-
pickMemoryMessage
pick up memory messages as needed- Parameters:
memoryMessages
- all history memory messages- Returns:
- memory messages picked
-