Converts Zep Memory to a list of BaseMessages, preserving the structure. Creates a SystemMessage from summary and facts, and converts the rest of the messages to their corresponding message types.

  • Parameters

    • memory: ZepMemoryData

      The memory object containing conversation history.

    • humanPrefix: string = "Human"

      The prefix to use for human messages (default: "Human").

    • aiPrefix: string = "AI"

      The prefix to use for AI messages (default: "AI").

    Returns BaseMessage[]

    An array of BaseMessage objects representing the conversation history.