From 250d781af166fd8bff83e2f1339d907e1295c2a1 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Mon, 11 Aug 2025 20:22:22 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 9b35627cf..bf2179c88 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -971,9 +971,9 @@ def create_react_agent( ), ) if post_model_hook is not None: - post_model_hook_paths.append("respond") + post_model_hook_paths.extend(["respond", END]) else: - agent_paths.append("respond") + agent_paths.extend(["respond", END]) else: if post_model_hook is not None: post_model_hook_paths.append(END) @@ -1076,3 +1076,4 @@ __all__ = [ +