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 langgraph doc (#1898)
Dev Khant3914f4d6ac4a
diff --git a/docs/integrations/langgraph.mdx b/docs/integrations/langgraph.mdxindex 06c3cd1d7..cb0a2f58c 100644--- a/docs/integrations/langgraph.mdx+++ b/docs/integrations/langgraph.mdx@@ -29,7 +29,7 @@ from typing import Annotated, TypedDict, Listfrom langgraph.graph import StateGraph, STARTfrom langgraph.graph.message import add_messagesfrom langchain_openai import ChatOpenAI-from mem0 import Memory+from mem0 import MemoryClientfrom langchain_core.messages import SystemMessage, HumanMessage, AIMessage# Configuration@@ -38,7 +38,7 @@ MEM0_API_KEY = 'your-mem0-key' # Replace with your actual Mem0 API key# Initialize LangChain and Mem0llm = ChatOpenAI(model="gpt-4", api_key=OPENAI_API_KEY)-mem0 = Memory(api_key=MEM0_API_KEY)+mem0 = MemoryClient(api_key=MEM0_API_KEY)```## Define State and Graph