From 918ce9df0102e4abf9e81def166e275515f81b4b Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Tue, 12 Aug 2025 16:59:46 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 88b36d34b..81167c12a 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1231,7 +1231,7 @@ def create_react_agent( ) # Add individual tool nodes instead of a single tools node for tool in tool_classes: - workflow.add_node(tool.name, ToolExecutor(tool)) + workflow.add_node(tool.name, ToolExecutor(tool, handle_tool_errors=True, messages_key="messages")) # Optionally add a pre-model hook node that will be called # every time before the "agent" (LLM-calling node) @@ -1378,3 +1378,4 @@ __all__ = [ +