Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-11 20:09:17 +00:00
parent f5b007c196
commit 3711cca7a1
@@ -925,6 +925,12 @@ def create_react_agent(
return END
# Otherwise if there is, we continue
else:
# Check if the response schema tool is called
if response_format is not None and response_tool_name is not None:
for tool_call in last_message.tool_calls:
if tool_call["name"] == response_tool_name:
return "respond"
if version == "v1":
return "tools"
elif version == "v2":
@@ -1089,3 +1095,4 @@ __all__ = [