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.

Hierarchy

  • BaseChatMessageHistory
    • ZepCloudChatMessageHistory

Implements

  • ZepMemoryInput

Constructors

Properties

aiPrefix: string = "ai"
client: ZepClient
humanPrefix: string = "human"
memoryType: MemoryType
separateMessages: boolean = false
sessionId: string

Methods

  • Add a list of messages.

    Implementations should override this method to handle bulk addition of messages in an efficient manner to avoid unnecessary round-trips to the underlying store.

    Parameters

    • messages: BaseMessage[]

      A list of BaseMessage objects to store.

    Returns Promise<void>

  • Returns Serialized