Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

get_all returns dictionary (#1756)

Pranav Puranike8004537c1be
diff --git a/README.md b/README.md
index 258771806..e5e2b0279 100644
--- a/README.md
+++ b/README.md
@@ -134,7 +134,7 @@ related_memories = m.search(query="What are Alice's hobbies?", user_id="alice")
```python
# 4. Get all memories
all_memories = m.get_all()
-memory_id = all_memories[0]["id"] # get a memory_id
+memory_id = all_memories["memories"][0] ["id"] # get a memory_id
# All memory items --> 'Likes to play tennis on weekends.' and 'Looking for online suggestions.'
```