Package com.hw.langchain.memory.buffer
Class ConversationBufferLimitedMemory
java.lang.Object
com.hw.langchain.memory.chat.memory.BaseChatMemory
com.hw.langchain.memory.buffer.ConversationBufferMemory
com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
- All Implemented Interfaces:
BaseMemory
- Direct Known Subclasses:
ConversationBufferWindowMemory
- Author:
- zhangxiaojia002
-
Field Summary
Fields inherited from class com.hw.langchain.memory.chat.memory.BaseChatMemory
chatMemory, inputKey, outputKey, returnMessages
-
Constructor Summary
ConstructorDescriptionConversationBufferLimitedMemory
(MemoryMessagePicker memoryMessagePicker) ConversationBufferLimitedMemory
(MemoryMessagePicker memoryMessagePicker, boolean returnMessage) ConversationBufferLimitedMemory
(MemoryMessagePicker memoryMessagePicker, boolean returnMessage, BaseChatMessageHistory chatMessageHistory) -
Method Summary
Methods inherited from class com.hw.langchain.memory.buffer.ConversationBufferMemory
buffer, loadMemoryVariables, memoryVariables
Methods inherited from class com.hw.langchain.memory.chat.memory.BaseChatMemory
clear, saveContext
-
Constructor Details
-
ConversationBufferLimitedMemory
-
ConversationBufferLimitedMemory
public ConversationBufferLimitedMemory(MemoryMessagePicker memoryMessagePicker, boolean returnMessage) -
ConversationBufferLimitedMemory
public ConversationBufferLimitedMemory(MemoryMessagePicker memoryMessagePicker, boolean returnMessage, BaseChatMessageHistory chatMessageHistory)
-
-
Method Details
-
getMemoryMessages
- Overrides:
getMemoryMessages
in classConversationBufferMemory
-