From 2de44a4abc7f8a1263c00329d50dfeae62fe0089 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Tue, 12 Aug 2025 17:03:09 +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 0f387cbaf..3f3b35bfa 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1247,7 +1247,9 @@ def create_react_agent( workflow.set_entry_point(entrypoint) agent_paths = [] - post_model_hook_paths = [entrypoint, "tools"] + # Include all individual tool names instead of just 'tools' + tool_names = [tool.name for tool in tool_classes] + post_model_hook_paths = [entrypoint] + tool_names # Add a post model hook node if post_model_hook is provided if post_model_hook is not None: @@ -1381,3 +1383,4 @@ __all__ = [ +