Optional
inputOptional
outputLoads the memory variables for the conversation memory.
A promise that resolves to an object containing the 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.
Saves the context of the conversation memory.
Input values for the conversation.
Output values from the conversation.
A promise that resolves when the context has been saved.
Class that provides a concrete implementation of the conversation memory. It includes methods for loading memory variables, saving context, and clearing the memory.
Example