Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-12 17:03:09 +00:00
parent 9ef76c1c1a
commit 2de44a4abc
@@ -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__ = [