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
Updates in client to support summary (#2951)
Prateek Chhikaraa5a07d711b5a
diff --git a/mem0/client/main.py b/mem0/client/main.pyindex 5bdf9210b..e7bc245c3 100644--- a/mem0/client/main.py+++ b/mem0/client/main.py@@ -472,6 +472,22 @@ class MemoryClient:capture_client_event("client.get_memory_export", self, {"keys": list(kwargs.keys()), "sync_type": "sync"})return response.json()+ @api_error_handler+ def get_summary(self, filters: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:+ """Get the summary of a memory export.++ Args:+ filters: Optional filters to apply to the summary request++ Returns:+ Dict containing the export status and summary data+ """++ response = self.client.post("/v1/summary/", json=self._prepare_params({"filters": filters}))+ response.raise_for_status()+ capture_client_event("client.get_summary", self, {"sync_type": "sync"})+ return response.json()+@api_error_handlerdef get_project(self, fields: Optional[List[str]] = None) -> Dict[str, Any]:"""Get instructions or categories for the current project.diff --git a/pyproject.toml b/pyproject.tomlindex 1bed75791..b1232451e 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "mem0ai"-version = "0.1.107"+version = "0.1.107r1"description = "Long-term memory for AI Agents"authors = [{ name = "Mem0", email = "[email protected]" }