agentskit.js
Memory

Memory

Chat memory + vector stores + wrappers that make long-running agents practical.

#Chat memory (ordered history)

  • createInMemoryMemory β€” default, zero deps.
  • createLocalStorageMemory β€” browser-persisted.
  • fileChatMemory β€” JSON file.
  • sqliteChatMemory β€” SQLite-backed.
  • redisChatMemory β€” Redis-backed.

#Vector memory

  • fileVectorMemory β€” pure JS, file-persisted.
  • redisVectorMemory β€” Redis Vector.
  • pgvector β€” BYO SQL runner. Recipe.
  • pinecone / qdrant / chroma / upstashVector β€” HTTP-backed managed stores.

#Higher-order wrappers

  • createVirtualizedMemory β€” hot window + cold retriever. Recipe.
  • createHierarchicalMemory β€” MemGPT working / recall / archival. Recipe.
  • createAutoSummarizingMemory β€” fold oldest into a summary. Recipe.
  • createEncryptedMemory β€” AES-GCM over any ChatMemory. Recipe.
  • createInMemoryGraph β€” knowledge graph (nodes + edges). Recipe.
  • createInMemoryPersonalization β€” per-subject profile. Recipe.

Per-backend deep dives land in step 4 of the docs IA rollout.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page