The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
docs: correct memory decay claims that contradict the SDK (#6905)
Kartik9e99eaadbc0b
diff --git a/docs/platform/features/custom-categories.mdx b/docs/platform/features/custom-categories.mdxindex f66bd26df..0e2dc6c6a 100644--- a/docs/platform/features/custom-categories.mdx+++ b/docs/platform/features/custom-categories.mdx@@ -75,7 +75,7 @@ print(response)```</CodeGroup>-This "Updated custom categories" message is specific to a PATCH-style partial update, which is what `client.project.update()` sends. Calling the raw API with a full PUT instead returns a generic `{"message": "Project updated successfully."}`, regardless of which fields changed.+Treat the `message` string as informational. The project endpoint accepts `PATCH` only, and its documented response is the generic `{"message": "Project updated successfully"}`. Confirm an update by reading the field back, as in the next step, rather than by matching on the message.### 2. Confirm the active catalogdiff --git a/docs/platform/features/memory-decay.mdx b/docs/platform/features/memory-decay.mdxindex c2bfe8ccc..7dd03eb37 100644--- a/docs/platform/features/memory-decay.mdx+++ b/docs/platform/features/memory-decay.mdx@@ -64,7 +64,7 @@ client.project.update(decay=True)``````javascript JavaScript-await client.project.update({ decay: true });+await client.updateProject({ decay: true });``````bash cURL@@ -75,32 +75,32 @@ curl -X PATCH https://api.mem0.ai/api/v1/orgs/organizations/$ORG_ID/projects/$PR``````json Response-{ "message": "Updated decay" }+{ "message": "Project updated successfully" }```</CodeGroup>### 2. Confirm the state-`decay` is returned on every project read; there is currently no way to narrow the response to just this field, so read the full project object and pick out `decay`.+`decay` is returned on every project read. To fetch only this field, use `?fields=decay`.<CodeGroup>```python Python-response = client.project.get()+response = client.project.get(fields=["decay"])print(response["decay"])``````javascript JavaScript-const response = await client.project.get();+const response = await client.getProject({ fields: ["decay"] });console.log(response.decay);``````bash cURL-curl "https://api.mem0.ai/api/v1/orgs/organizations/$ORG_ID/projects/$PROJECT_ID/" \+curl "https://api.mem0.ai/api/v1/orgs/organizations/$ORG_ID/projects/$PROJECT_ID/?fields=decay" \-H "Authorization: Token $MEM0_API_KEY"``````json Response-{ "decay": true, "...": "full project object" }+{ "decay": true }```</CodeGroup>@@ -114,7 +114,7 @@ client.project.update(decay=False)``````javascript JavaScript-await client.project.update({ decay: false });+await client.updateProject({ decay: false });``````bash cURL