@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 +34 -6
- package/dist/index.cjs +701 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +293 -2
- package/dist/index.d.ts +293 -2
- package/dist/index.js +689 -7
- package/dist/index.js.map +1 -1
- package/package.json +14 -3
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ Persist conversations and add vector search to your agents — swap backends wit
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@agentskit/memory)
|
|
6
6
|
[](https://www.npmjs.com/package/@agentskit/memory)
|
|
7
|
-
[](https://bundlejs.com/?q=@agentskit/memory)
|
|
8
|
+
[](../../LICENSE)
|
|
9
9
|
[](../../docs/STABILITY.md)
|
|
10
10
|
[](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
|
-
|
|
53
|
-
|
|
54
|
-
- `
|
|
55
|
-
-
|
|
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
|
|