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.

docs: correct client call shape and stale v1 response examples (#6901)

Kartikb4c50550bfbf
diff --git a/docs/docs.json b/docs/docs.json
index 61a595655..5449e2d4e 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -1043,6 +1043,10 @@
"source": "/open-source/features/graph-memory",
"destination": "/platform/features/graph-memory"
},
+ {
+ "source": "/open-source/features/reranking",
+ "destination": "/open-source/features/reranker-search"
+ },
{
"source": "/features/:slug",
"destination": "/platform/features/:slug"
diff --git a/docs/platform/features/multimodal-support.mdx b/docs/platform/features/multimodal-support.mdx
index 1ae115687..ce52c0553 100644
--- a/docs/platform/features/multimodal-support.mdx
+++ b/docs/platform/features/multimodal-support.mdx
@@ -76,18 +76,8 @@ await client.add(messages, { userId: "alice" })
```json Output
{
- "results": [
- {
- "memory": "Name is Alice",
- "event": "ADD",
- "id": "7ae113a3-3cb5-46e9-b6f7-486c36391847"
- },
- {
- "memory": "Likes large pizza with toppings including cherry tomatoes, black olives, green spinach, yellow bell peppers, diced ham, and sliced mushrooms",
- "event": "ADD",
- "id": "56545065-7dee-4acf-8bf2-a5b2535aabb3"
- }
- ]
+ "event_id": "evt-uuid",
+ "status": "PENDING"
}
```
</CodeGroup>
diff --git a/docs/platform/features/timestamp.mdx b/docs/platform/features/timestamp.mdx
index fcc439b5e..8b2fc3b39 100644
--- a/docs/platform/features/timestamp.mdx
+++ b/docs/platform/features/timestamp.mdx
@@ -82,11 +82,11 @@ client.add(messages, { userId: "user1", timestamp: unixTimestamp })
```
```bash cURL
-curl -X POST "https://api.mem0.ai/v1/memories/" \
+curl -X POST "https://api.mem0.ai/v3/memories/add/" \
-H "Authorization: Token your-api-key" \
-H "Content-Type: application/json" \
-d '{
- "messages": [{"role": "user", "content": "I'm travelling to SF"}],
+ "messages": [{"role": "user", "content": "Travelling to SF"}],
"user_id": "user1",
"timestamp": 1721577600
}'
@@ -94,13 +94,8 @@ curl -X POST "https://api.mem0.ai/v1/memories/" \
```json Output
{
- "results": [
- {
- "id": "a1b2c3d4-e5f6-4g7h-8i9j-k0l1m2n3o4p5",
- "data": {"memory": "Travelling to SF"},
- "event": "ADD"
- }
- ]
+ "event_id": "evt-uuid",
+ "status": "PENDING"
}
```