Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-11 20:23:30 +00:00
parent 250d781af1
commit 6cf20694ff
@@ -903,6 +903,8 @@ def create_react_agent(
if not isinstance(last_message, AIMessage) or not last_message.tool_calls:
if post_model_hook is not None:
return "post_model_hook"
elif response_format is not None:
return "respond"
else:
return END
# Otherwise if there is, we continue
@@ -1077,3 +1079,4 @@ __all__ = [