From f2b4698b5439ed7776a48f03aa713ec76210033c Mon Sep 17 00:00:00 2001 From: Harikrishna Date: Sat, 24 May 2025 02:08:57 +0530 Subject: [PATCH] langchain[patch]: update AgentType docstring with correct documentation URL (#31333) ### What does this PR do? Updates the docstring for `AgentType` in the `langchain.agents.agent_types` module to reflect the current URL for the documentation. ### Why is this needed? The existing URL (https://python.langchain.com/docs/modules/agents/agent_types/) returns "Page Moved" message. This fix improves developer experience by pointing to the correct API reference documentation. ### Reference New link: https://python.langchain.com/api_reference/langchain/agents/langchain.agents.agent_types.AgentType.html Co-authored-by: Harikrishna --- libs/langchain/langchain/agents/agent_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/agents/agent_types.py b/libs/langchain/langchain/agents/agent_types.py index e6a72a98aef..f1eafc0b1bb 100644 --- a/libs/langchain/langchain/agents/agent_types.py +++ b/libs/langchain/langchain/agents/agent_types.py @@ -15,7 +15,7 @@ from langchain._api.deprecation import AGENT_DEPRECATION_WARNING class AgentType(str, Enum): """An enum for agent types. - See documentation: https://python.langchain.com/docs/modules/agents/agent_types/ + See documentation: https://python.langchain.com/api_reference/langchain/agents/langchain.agents.agent_types.AgentType.html """ ZERO_SHOT_REACT_DESCRIPTION = "zero-shot-react-description"