actrone-memory
    Preparing search index...

    Function langchainMemory

    • LangChain.js: a chat-history-style memory backed by the governed store. Returns loadContext (retrieve → system string) and saveTurn (persist), which slot into an LCEL chain or a custom BaseChatMemory. Structural typing keeps @langchain/core an optional peer dependency.

      Parameters

      Returns {
          loadContext: (query: string, tokenBudget?: number) => Promise<string>;
          saveTurn: (
              userMessage: string,
              assistantMessage: string,
          ) => Promise<string>;
      }