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
Fix: Missing app_id on Neptune Analytics client (#3278)
Andy Kwok9337a873ec86
diff --git a/mem0/graphs/configs.py b/mem0/graphs/configs.pyindex b48cc40ad..0b5e1e168 100644--- a/mem0/graphs/configs.py+++ b/mem0/graphs/configs.py@@ -42,6 +42,7 @@ class MemgraphConfig(BaseModel):class NeptuneConfig(BaseModel):+ app_id: Optional[str] = Field("Mem0", description="APP_ID for the connection")endpoint: Optional[str] = (Field(None,diff --git a/mem0/graphs/neptune/main.py b/mem0/graphs/neptune/main.pyindex 987442d8b..c47280b65 100644--- a/mem0/graphs/neptune/main.py+++ b/mem0/graphs/neptune/main.py@@ -4,6 +4,7 @@ from .base import NeptuneBasetry:from langchain_aws import NeptuneAnalyticsGraph+ from botocore.config import Configexcept ImportError:raise ImportError("langchain_aws is not installed. Please install it using 'make install_all'.")@@ -16,9 +17,11 @@ class MemoryGraph(NeptuneBase):self.graph = Noneendpoint = self.config.graph_store.config.endpoint+ app_id = self.config.graph_store.config.app_idif endpoint and endpoint.startswith("neptune-graph://"):graph_identifier = endpoint.replace("neptune-graph://", "")- self.graph = NeptuneAnalyticsGraph(graph_identifier)+ self.graph = NeptuneAnalyticsGraph(graph_identifier = graph_identifier,+ config = Config(user_agent_appid=app_id))if not self.graph:raise ValueError("Unable to create a Neptune client: missing 'endpoint' in config")