actrone-memory
    Preparing search index...

    Function llamaindexMemory

    • LlamaIndex.TS: memory for a llamaindex chat engine. getSystemPrompt returns the governed context to pass as the leading system message of the turn's history (chatEngine.chat({ message, chatHistory: [{ role: "system", content }] }); chat() has no systemPrompt parameter), and saveTurn persists the completed exchange. Structural, so llamaindex stays an optional peer dependency.

      Parameters

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