From 6cf20694ff5f7ffd2a41f1c10d4255fe24691a04 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Mon, 11 Aug 2025 20:23:30 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index bf2179c88..4cbbcfc62 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -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__ = [ +