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.
zepMemoryToMessages(
memory: ZepMemoryData,
humanPrefix: string = "Human",
aiPrefix: string = "AI"
): BaseMessage<MessageStructure<MessageToolSet>, MessageType>[]| Name | Type | Description |
|---|---|---|
memory* | ZepMemoryData | The memory object containing conversation history. |
humanPrefix | string | Default: "Human"The prefix to use for human messages (default: "Human"). |
aiPrefix | string | Default: "AI"The prefix to use for AI messages (default: "AI"). |