Overview
TheMemoryStore interface provides methods for storing, retrieving, and managing agent memories.
Reference: src/memory/store.ts
Getting the Store
Methods
| Method | Description |
|---|---|
store(options) | Store a new memory |
get(options) | Retrieve with filters |
search(options) | Semantic search |
getById(id) | Get specific memory |
update(id, updates) | Modify a memory |
delete(id) | Remove a memory |
getStats() | Get statistics |
Storing Memories
Retrieving Memories
Searching
Updating and Deleting
Statistics
Deduplication Utilities
Reference:src/memory/deduplication.ts
Default Thresholds
| Type | Threshold |
|---|---|
| episodic | 0.92 |
| semantic | 0.95 |
| emotional | 0.88 |
| procedural | 0.97 |
| reflection | 0.90 |
Salience and Confidence
Embeddings
Reference:src/llm/embeddings.ts
Backend Support
| Method | Convex | In-Memory |
|---|---|---|
store() | Yes | Yes |
get() | Yes | Yes |
search() | Vector | Text |
update() | Optional | Yes |
delete() | Optional | Yes |