Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-12 16:59:46 +00:00
parent 4b3313482c
commit 918ce9df01
@@ -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__ = [