Optional
inputOptional
outputOptional
separateRetrieves memories from the Mem0 service and formats them for use
Input values containing optional search query
Promise resolving to formatted memory variables
Saves the current conversation context to the Mem0 service
Input messages to be saved
Output messages to be saved
Promise resolving when the context has been saved
Class used to manage the memory of a chat session using the Mem0 service. It handles loading and saving chat history, and provides methods to format the memory content for use in chat models.
Example