From 44a64dacb3a0c2fde1275c7228394f063403781c Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Mon, 11 Aug 2025 20:21:01 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 5f0ab6682..abf38a8c6 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -972,6 +972,10 @@ def create_react_agent( arespond, ), ) + if post_model_hook is not None: + post_model_hook_paths.append("respond") + else: + agent_paths.append("respond") else: if post_model_hook is not None: post_model_hook_paths.append(END) @@ -1072,3 +1076,4 @@ __all__ = [ "AgentStateWithStructuredResponsePydantic", ] +