From 43fb6012be112f90f0f28c544c533e04b268359f Mon Sep 17 00:00:00 2001 From: gbaian10 <34255899+gbaian10@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:51:55 +0800 Subject: [PATCH] fix: the execution error passed from ToolExecutor to create_react_agent (#1234) --- libs/langgraph/langgraph/prebuilt/chat_agent_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py index 86a1c13e5..546ad53bc 100644 --- a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py @@ -474,7 +474,7 @@ def create_react_agent( # Define the two nodes we will cycle between workflow.add_node("agent", RunnableLambda(call_model, acall_model)) - workflow.add_node("tools", ToolNode(tools)) + workflow.add_node("tools", ToolNode(tool_classes)) # Set the entrypoint as `agent` # This means that this node is the first one called