diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 0f387cbaf..3f3b35bfa 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1247,7 +1247,9 @@ def create_react_agent( workflow.set_entry_point(entrypoint) agent_paths = [] - post_model_hook_paths = [entrypoint, "tools"] + # Include all individual tool names instead of just 'tools' + tool_names = [tool.name for tool in tool_classes] + post_model_hook_paths = [entrypoint] + tool_names # Add a post model hook node if post_model_hook is provided if post_model_hook is not None: @@ -1381,3 +1383,4 @@ __all__ = [ +