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
Remove session_id deprecation warning (#1994)
Dev Khantefd45c0c4d97
diff --git a/docs/platform/quickstart.mdx b/docs/platform/quickstart.mdxindex 5ad0c5586..82b877f88 100644--- a/docs/platform/quickstart.mdx+++ b/docs/platform/quickstart.mdx@@ -203,11 +203,6 @@ curl -X POST "https://api.mem0.ai/v1/memories/" \</CodeGroup>-<Note>- Please use `run_id` instead of `session_id`. The `session_id` parameter is deprecated and will be removed in version 0.1.20.-</Note>--#### Long-term memory for agentsAdd a memory layer for the assistants and agents so that their responses remain consistent across sessions.diff --git a/mem0/client/main.py b/mem0/client/main.pyindex 1dc1fba53..3996b05a7 100644--- a/mem0/client/main.py+++ b/mem0/client/main.py@@ -1,6 +1,5 @@import loggingimport os-import warningsfrom functools import wrapsfrom typing import Any, Dict, List, Optional, Union@@ -10,11 +9,6 @@ from mem0.memory.setup import get_user_id, setup_configfrom mem0.memory.telemetry import capture_client_eventlogger = logging.getLogger(__name__)-warnings.filterwarnings(- "always",- category=DeprecationWarning,- message="The 'session_id' parameter is deprecated. User 'run_id' instead.",-)# Setup user configsetup_config()@@ -332,16 +326,6 @@ class MemoryClient:elif isinstance(messages, list):payload["messages"] = messages- # Handle session_id deprecation- if "session_id" in kwargs:- warnings.warn(- "The 'session_id' parameter is deprecated and will be removed in version 0.1.20. "- "Use 'run_id' instead.",- DeprecationWarning,- stacklevel=2,- )- kwargs["run_id"] = kwargs.pop("session_id")-payload.update({k: v for k, v in kwargs.items() if v is not None})return payload@@ -355,16 +339,6 @@ class MemoryClient:A dictionary containing the prepared parameters."""- # Handle session_id deprecation- if "session_id" in kwargs:- warnings.warn(- "The 'session_id' parameter is deprecated and will be removed in version 0.1.20. "- "Use 'run_id' instead.",- DeprecationWarning,- stacklevel=2,- )- kwargs["run_id"] = kwargs.pop("session_id")-return {k: v for k, v in kwargs.items() if v is not None}diff --git a/pyproject.toml b/pyproject.tomlindex 90256b32c..5f9b7c9e6 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "mem0ai"-version = "0.1.25"+version = "0.1.26"description = "Long-term memory for AI Agents"authors = ["Mem0 <[email protected]>"]exclude = [