Abstract
Optional
inputOptional
outputAbstract
loadAbstract method that should take an object of input values and return a Promise that resolves with an object of memory variables. The implementation of this method should load the memory variables from the provided input values.
An object of input values.
Promise that resolves with an object of memory variables.
Predicts a new summary for the conversation given the existing messages and summary.
Existing messages in the conversation.
Current summary of the conversation.
A promise that resolves to a new summary string.
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 structure for storing and managing the memory of a conversation. It includes methods for predicting a new summary for the conversation given the existing messages and summary.