Skip to content

Commit 3914f4d

Browse files
authored
Fix langgraph doc (mem0ai#1898)
1 parent 8511eca commit 3914f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/integrations/langgraph.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ from typing import Annotated, TypedDict, List
2929
from langgraph.graph import StateGraph, START
3030
from langgraph.graph.message import add_messages
3131
from langchain_openai import ChatOpenAI
32-
from mem0 import Memory
32+
from mem0 import MemoryClient
3333
from langchain_core.messages import SystemMessage, HumanMessage, AIMessage
3434

3535
# Configuration
@@ -38,7 +38,7 @@ MEM0_API_KEY = 'your-mem0-key' # Replace with your actual Mem0 API key
3838

3939
# Initialize LangChain and Mem0
4040
llm = ChatOpenAI(model="gpt-4", api_key=OPENAI_API_KEY)
41-
mem0 = Memory(api_key=MEM0_API_KEY)
41+
mem0 = MemoryClient(api_key=MEM0_API_KEY)
4242
```
4343

4444
## Define State and Graph

0 commit comments

Comments
 (0)