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.

chore: add update project options (#3947)

Saket Aryan69a832dc58c1
diff --git a/docs/changelog.mdx b/docs/changelog.mdx
index 09499cedd..7146a61c9 100644
--- a/docs/changelog.mdx
+++ b/docs/changelog.mdx
@@ -7,6 +7,14 @@ mode: "wide"
<Tabs>
<Tab title="Python">
+<Update label="2026-01-29" description="v1.0.3">
+
+**New Features & Updates:**
+- **Project Settings:**
+ - Added inclusion prompt, exclusion prompt, memory depth, and usecase setting
+
+</Update>
+
<Update label="2026-01-13" description="v1.0.2">
**New Features & Updates:**
@@ -708,6 +716,14 @@ mode: "wide"
<Tab title="TypeScript">
+<Update label="2026-01-29" description="v2.2.2">
+
+**New Features & Updates:**
+- **Project Settings:**
+ - Added inclusion prompt, exclusion prompt, memory depth, and usecase setting
+
+</Update>
+
<Update label="2025-12-30" description="v2.2.1">
**Improvements:**
diff --git a/mem0-ts/package.json b/mem0-ts/package.json
index 32d9323bf..bee822f0b 100644
--- a/mem0-ts/package.json
+++ b/mem0-ts/package.json
@@ -1,6 +1,6 @@
{
"name": "mem0ai",
- "version": "2.2.1",
+ "version": "2.2.2",
"description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/mem0-ts/src/client/mem0.types.ts b/mem0-ts/src/client/mem0.types.ts
index e92ee2d16..15d22d686 100644
--- a/mem0-ts/src/client/mem0.types.ts
+++ b/mem0-ts/src/client/mem0.types.ts
@@ -160,6 +160,13 @@ interface custom_categories {
export interface PromptUpdatePayload {
custom_instructions?: string;
custom_categories?: custom_categories[];
+ retrieval_criteria?: any[];
+ enable_graph?: boolean;
+ version?: string;
+ inclusion_prompt?: string;
+ exclusion_prompt?: string;
+ memory_depth?: string | null;
+ usecase_setting?: string | number;
[key: string]: any;
}
diff --git a/mem0/client/main.py b/mem0/client/main.py
index 3bc181294..f2869cd13 100644
--- a/mem0/client/main.py
+++ b/mem0/client/main.py
@@ -667,6 +667,10 @@ class MemoryClient:
retrieval_criteria: Optional[List[Dict[str, Any]]] = None,
enable_graph: Optional[bool] = None,
version: Optional[str] = None,
+ inclusion_prompt: Optional[str] = None,
+ exclusion_prompt: Optional[str] = None,
+ memory_depth: Optional[str] = None,
+ usecase_setting: Optional[str] = None,
) -> Dict[str, Any]:
"""Update the project settings.
@@ -676,6 +680,10 @@ class MemoryClient:
retrieval_criteria: New retrieval criteria for the project
enable_graph: Enable or disable the graph for the project
version: Version of the project
+ inclusion_prompt: Inclusion prompt for the project
+ exclusion_prompt: Exclusion prompt for the project
+ memory_depth: Memory depth for the project
+ usecase_setting: Usecase setting for the project
Returns:
Dictionary containing the API response.
@@ -701,6 +709,10 @@ class MemoryClient:
and retrieval_criteria is None
and enable_graph is None
and version is None
+ and inclusion_prompt is None
+ and exclusion_prompt is None
+ and memory_depth is None
+ and usecase_setting is None
):
raise ValueError(
"Currently we only support updating custom_instructions or "
@@ -715,6 +727,10 @@ class MemoryClient:
"retrieval_criteria": retrieval_criteria,
"enable_graph": enable_graph,
"version": version,
+ "inclusion_prompt": inclusion_prompt,
+ "exclusion_prompt": exclusion_prompt,
+ "memory_depth": memory_depth,
+ "usecase_setting": usecase_setting,
}
)
response = self.client.patch(
@@ -731,6 +747,10 @@ class MemoryClient:
"retrieval_criteria": retrieval_criteria,
"enable_graph": enable_graph,
"version": version,
+ "inclusion_prompt": inclusion_prompt,
+ "exclusion_prompt": exclusion_prompt,
+ "memory_depth": memory_depth,
+ "usecase_setting": usecase_setting,
"sync_type": "sync",
},
)
diff --git a/pyproject.toml b/pyproject.toml
index 294a7ff69..279c81c4d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "mem0ai"
-version = "1.0.2"
+version = "1.0.3"
description = "Long-term memory for AI Agents"
authors = [
{ name = "Mem0", email = "[email protected]" }