diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 5296f8351..498d5ee8f 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1021,7 +1021,7 @@ def create_react_agent( elif isinstance(messages[-1], ToolMessage): return entrypoint elif response_format is not None: - return "generate_structured_response" + return "respond" else: return END @@ -1092,3 +1092,4 @@ __all__ = [ +