Interface BaseMemory

All Known Implementing Classes:
BaseChatMemory, ConversationBufferLimitedMemory, ConversationBufferMemory, ConversationBufferWindowMemory

public interface BaseMemory
Base interface for memory in chains.
Author:
HamaWhite
  • Method Details

    • memoryVariables

      List<String> memoryVariables()
      Input keys this memory class will load dynamically
    • loadMemoryVariables

      Map<String,Object> loadMemoryVariables(Map<String,Object> inputs)
      Return key-value pairs given the text input to the chain. If None, return all memories
    • saveContext

      void saveContext(Map<String,Object> inputs, Map<String,String> outputs)
      Save the context of this model run to memory.
    • clear

      void clear()
      Clear memory contents.