Skip to content

Commit bf76bae

Browse files
committed
fix LangGraph notebooks (requiring langgraph>0.3.1)
1 parent c70377e commit bf76bae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python-recipes/agents/00_langgraph_redis_agentic_rag.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 1,
41+
"execution_count": null,
4242
"id": "969fb438",
4343
"metadata": {
4444
"id": "969fb438"
4545
},
4646
"outputs": [],
4747
"source": [
48-
"%pip install -q langchain-community tiktoken langchain-openai langchainhub \"langchain-redis>=0.2.0\" langchain langgraph langchain-text-splitters bs4"
48+
"%pip install -q langchain-community tiktoken langchain-openai langchainhub \"langchain-redis>=0.2.0\" langchain \"langgraph>0.3.1\" langchain-text-splitters bs4"
4949
]
5050
},
5151
{

python-recipes/agents/02_full_featured_agent.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 1,
33+
"execution_count": null,
3434
"metadata": {
3535
"id": "Zz62U5COgF21"
3636
},
3737
"outputs": [],
3838
"source": [
39-
"%pip install -q langchain langchain-openai \"langchain-redis>=0.2.0\" langgraph sentence-transformers"
39+
"%pip install -q langchain langchain-openai \"langchain-redis>=0.2.0\" \"langgraph>0.3.1\" sentence-transformers"
4040
]
4141
},
4242
{
@@ -985,7 +985,7 @@
985985
" if cache_hit:\n",
986986
" print(\"Cache hit - short circuit\")\n",
987987
" return cache_hit\n",
988-
" \n",
988+
"\n",
989989
" return graph.invoke({\"messages\": question})\n"
990990
]
991991
}

0 commit comments

Comments
 (0)