Optional
inputOptional
outputWhether to return separate messages for chat history with a SystemMessage containing facts and summary, or return a single HumanMessage with the entire memory context. Defaults to true (preserving message types) for backward compatibility.
Keep as true for models that fully support system messages. Set to false for models like Claude that have limitations with system messages.
Method 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.
The class provides options for handling different LLM requirements:
Example