Package com.hw.langchain.memory.buffer
Class ConversationBufferWindowMemory
java.lang.Object
com.hw.langchain.memory.chat.memory.BaseChatMemory
com.hw.langchain.memory.buffer.ConversationBufferMemory
com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
com.hw.langchain.memory.buffer.ConversationBufferWindowMemory
- All Implemented Interfaces:
BaseMemory
- Author:
- zhangxiaojia002
-
Field Summary
Fields inherited from class com.hw.langchain.memory.chat.memory.BaseChatMemory
chatMemory, inputKey, outputKey, returnMessages
-
Constructor Summary
ConstructorDescriptionConversationBufferWindowMemory
(int k, boolean returnMessages) ConversationBufferWindowMemory
(int k, boolean returnMessages, BaseChatMessageHistory chatMessageHistory) -
Method Summary
Methods inherited from class com.hw.langchain.memory.buffer.ConversationBufferLimitedMemory
getMemoryMessages
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
-
ConversationBufferWindowMemory
public ConversationBufferWindowMemory(int k) -
ConversationBufferWindowMemory
public ConversationBufferWindowMemory(int k, boolean returnMessages) -
ConversationBufferWindowMemory
public ConversationBufferWindowMemory(int k, boolean returnMessages, BaseChatMessageHistory chatMessageHistory)
-