Skip to content

Commit 0000619

Browse files
authored
Add ToolMessage import (meta-llama#559)
2 parents 932928a + 3511674 commit 0000619

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

recipes/use_cases/agents/langchain/langgraph-tool-calling-agent.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,11 @@
138138
"source": [
139139
"import replicate\n",
140140
"\n",
141+
"from langchain_core.messages import ToolMessage\n",
142+
"from langchain_core.runnables import RunnableLambda\n",
141143
"from langchain_core.tools import tool\n",
142144
"from langgraph.prebuilt import ToolNode\n",
145+
"\n",
143146
"from langchain_community.tools.tavily_search import TavilySearchResults\n",
144147
"\n",
145148
"@tool\n",
@@ -375,7 +378,6 @@
375378
"from langgraph.checkpoint.sqlite import SqliteSaver\n",
376379
"from langgraph.graph import END, StateGraph\n",
377380
"from langgraph.prebuilt import ToolNode, tools_condition\n",
378-
"from langchain_core.runnables import RunnableLambda\n",
379381
"\n",
380382
"# Graph\n",
381383
"builder = StateGraph(State)\n",
@@ -690,7 +692,7 @@
690692
"name": "python",
691693
"nbconvert_exporter": "python",
692694
"pygments_lexer": "ipython3",
693-
"version": "3.10.14"
695+
"version": "3.11.8"
694696
}
695697
},
696698
"nbformat": 4,

0 commit comments

Comments
 (0)