fix: the execution error passed from ToolExecutor to create_react_agent (#1234)

This commit is contained in:
gbaian10
2024-08-06 17:51:55 +00:00
committed by GitHub
parent 997a2afc79
commit 43fb6012be
@@ -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