Optional
inputOptional
outputMethod that retrieves the chat history from the Zep service and formats it into a list of messages.
Input values for the method.
Promise that resolves with the chat history formatted into a list of messages.
Method that saves the input and output messages to the Zep service.
Input messages to be saved.
Output messages to be saved.
Promise that resolves when the messages have been saved.
Class used to manage the memory of a chat session, including loading and saving the chat history, and clearing the memory when needed. It uses the ZepClient to interact with the Zep service for managing the chat session's memory.
Example