Abstract
Optional
fields: BaseChatMemoryInputOptional
inputOptional
outputMethod to clear the chat history.
Promise that resolves when the chat history has been cleared.
Method to add user and AI messages to the chat history in sequence.
The input values from the user.
The output values from the AI.
Promise that resolves when the context has been saved.
Abstract class that provides a base for implementing different types of memory systems. It is designed to maintain the state of an application, specifically the history of a conversation. This class is typically extended by other classes to create specific types of memory systems.