Package com.hw.langchain.schema
Interface BaseMemory
- All Known Implementing Classes:
BaseChatMemory
,ConversationBufferLimitedMemory
,ConversationBufferMemory
,ConversationBufferWindowMemory
public interface BaseMemory
Base interface for memory in chains.
- Author:
- HamaWhite
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear memory contents.loadMemoryVariables
(Map<String, Object> inputs) Return key-value pairs given the text input to the chain.Input keys this memory class will load dynamicallyvoid
Save the context of this model run to memory.
-
Method Details
-
memoryVariables
Input keys this memory class will load dynamically -
loadMemoryVariables
Return key-value pairs given the text input to the chain. If None, return all memories -
saveContext
Save the context of this model run to memory. -
clear
void clear()Clear memory contents.
-