@agentskit/memory 0.5.5 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,8 +4,8 @@ Persist conversations and add vector search to your agents — swap backends wit
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@agentskit/memory?color=blue)](https://www.npmjs.com/package/@agentskit/memory)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@agentskit/memory)](https://www.npmjs.com/package/@agentskit/memory)
7
- [![bundle size](https://img.shields.io/bundlephobia/minzip/@agentskit/memory)](https://bundlephobia.com/package/@agentskit/memory)
8
- [![license](https://img.shields.io/npm/l/@agentskit/memory)](../../LICENSE)
7
+ [![bundle size](https://img.shields.io/bundlejs/size/@agentskit/memory?label=bundle)](https://bundlejs.com/?q=@agentskit/memory)
8
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](../../LICENSE)
9
9
  [![stability](https://img.shields.io/badge/stability-stable-brightgreen)](../../docs/STABILITY.md)
10
10
  [![GitHub stars](https://img.shields.io/github/stars/AgentsKit-io/agentskit?style=social)](https://github.com/AgentsKit-io/agentskit)
11
11
 
@@ -49,10 +49,38 @@ Use a **vector** backend with [`@agentskit/rag`](https://www.npmjs.com/package/@
49
49
 
50
50
  ## Features
51
51
 
52
- - Chat memory: `inMemoryChatMemory`, `sqliteChatMemory`, `redisChatMemory`, `fileChatMemory`
53
- - Vector memory: `fileVectorMemory` (pure JS), `redisVectorMemory`
54
- - `VectorMemory` interface 3 methods, bring any custom store
55
- - Memory contract v1 (ADR 0003) — substitutable across `runtime`, `useChat`, and `@agentskit/ink`
52
+ ### Chat memory (3)
53
+
54
+ - `fileChatMemory({ path })` — JSON on disk; zero infra.
55
+ - `sqliteChatMemory({ path })`WAL-mode SQLite; indexed by session.
56
+ - `redisChatMemory({ client, keyPrefix })` — distributed, serverless-friendly.
57
+
58
+ All on top of `createInMemoryMemory` / `createLocalStorageMemory` from
59
+ `@agentskit/core`.
60
+
61
+ ### Vector memory (7)
62
+
63
+ - `fileVectorMemory` — pure-JS, file-persisted (good to ~10k vectors).
64
+ - `redisVectorMemory` — Redis Stack / Redis 8+ HNSW.
65
+ - `pgvector` — BYO SQL runner (`postgres.js`, `pg`, Drizzle, Prisma, Neon).
66
+ - `pinecone` — managed; namespaces + metadata filters.
67
+ - `qdrant` — self-hosted or cloud via HTTP.
68
+ - `chroma` — HTTP collection client.
69
+ - `upstashVector` — serverless HTTP.
70
+
71
+ Same 3-method `VectorStore` contract — swap without touching agent code.
72
+
73
+ ### Higher-order wrappers (6)
74
+
75
+ - `createHierarchicalMemory` — MemGPT-style tiers: working / recall / archival. [Recipe](https://www.agentskit.io/docs/recipes/hierarchical-memory).
76
+ - `createVirtualizedMemory` — hot window + cold retriever for long sessions. [Recipe](https://www.agentskit.io/docs/recipes/virtualized-memory).
77
+ - `createAutoSummarizingMemory` *(via `@agentskit/core/auto-summarize`)* — fold oldest turns into a running summary. [Recipe](https://www.agentskit.io/docs/recipes/auto-summarize).
78
+ - `createEncryptedMemory` — AES-GCM-256 envelope over any `ChatMemory`; keys never leave the caller. [Recipe](https://www.agentskit.io/docs/recipes/encrypted-memory).
79
+ - `createInMemoryGraph` — knowledge graph (nodes + edges + BFS). [Recipe](https://www.agentskit.io/docs/recipes/graph-memory).
80
+ - `createInMemoryPersonalization` + `renderProfileContext` — per-user trait profile. [Recipe](https://www.agentskit.io/docs/recipes/personalization).
81
+
82
+ Memory contract v1 (ADR 0003) — substitutable across `runtime`,
83
+ `useChat`, and every framework binding.
56
84
 
57
85
  ## Ecosystem
58
86