actrone-memory
    Preparing search index...

    Function llamaindexChatMemory

    • LlamaIndex.TS: a governed chat-memory store whose method names track the current LlamaIndex.TS Memory API (createMemory() → a Memory with add() / get() / clear()), not the removed legacy BaseMemory (put/get/reset). Use it to back or mirror an agent's memory with the governed store: add(message) buffers a user message then persists it with the following assistant reply as one governed turn, get()/getAll() return the recent turns as messages, and clear() clears the session. Structural, so llamaindex stays an optional peer dependency.

      Parameters

      Returns {
          get(): Promise<LiChatMessage[]>;
          getAll(): Promise<LiChatMessage[]>;
          add(message: LiChatMessage): Promise<void>;
          clear(): Promise<void>;
      }