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 <harikrishna.gurram@walmart.com>
This commit is contained in:
Harikrishna 2025-05-24 02:08:57 +05:30 committed by GitHub
parent e2b54a5d72
commit f2b4698b54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"