From 4b3313482ca338cb98d9fc3935aea170a68d4a86 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Tue, 12 Aug 2025 16:59:18 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 6eac095c2..88b36d34b 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1229,7 +1229,9 @@ def create_react_agent( RunnableCallable(call_model, acall_model), input_schema=input_schema, ) - workflow.add_node("tools", tool_node) + # Add individual tool nodes instead of a single tools node + for tool in tool_classes: + workflow.add_node(tool.name, ToolExecutor(tool)) # Optionally add a pre-model hook node that will be called # every time before the "agent" (LLM-calling node) @@ -1375,3 +1377,4 @@ __all__ = [ +