langchain.js
    Preparing search index...

    Function condenseZepMemoryIntoHumanMessage

    • Condenses Zep memory context into a single HumanMessage. This is particularly useful for models like Claude that have limitations with system messages (e.g., Anthropic's Claude only supports one system message and doesn't support multiple user messages in a row).

      Parameters

      • memory: ZepMemoryData

        The memory object containing conversation history.

      Returns any

      A HumanMessage containing the condensed memory context.