mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-12 20:57:52 +02:00
fix: the execution error passed from ToolExecutor to create_react_agent (#1234)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user