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
Update docstring (#1837)
Anusha Yellabbddb98aca3b
diff --git a/mem0/memory/graph_memory.py b/mem0/memory/graph_memory.pyindex 138c5119f..7cdeb025b 100644--- a/mem0/memory/graph_memory.py+++ b/mem0/memory/graph_memory.py@@ -44,10 +44,7 @@ class MemoryGraph:Args:data (str): The data to add to the graph.- stored_memories (list): A list of stored memories.-- Returns:- dict: A dictionary containing the entities added to the graph.+ filters (dict): A dictionary containing filters to be applied during the addition."""# retrieve the search results@@ -217,6 +214,7 @@ class MemoryGraph:Args:query (str): Query to search for.+ filters (dict): A dictionary containing filters to be applied during the search.Returns:dict: A dictionary containing:@@ -262,7 +260,7 @@ class MemoryGraph:Retrieves all nodes and relationships from the graph database based on optional filtering criteria.Args:- all_memories (list): A list of dictionaries, each containing:+ filters (dict): A dictionary containing filters to be applied during the retrieval.Returns:list: A list of dictionaries, each containing:- 'contexts': The base data store response for each memory.@@ -297,6 +295,7 @@ class MemoryGraph:source (str): The name of the source node.target (str): The name of the target node.relationship (str): The type of the relationship.+ filters (dict): A dictionary containing filters to be applied during the update.Raises:Exception: If the operation fails.