langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
95.01k stars 15.39k forks source link

Number of Agent Types Not Updated in the Docs #28093

Open ENUMERA8OR opened 5 days ago

ENUMERA8OR commented 5 days ago

URL

https://python.langchain.com/api_reference/langchain/agents/langchain.agents.agent_types.AgentType.html

Checklist

Issue with current documentation:

In the api docs as well as the langchain official documentation, there is mention of nine types of agent types. But in creating, the sql agent using your create_sql_agent class & passing CHAT_ZERO_SHOT_REACT_DESCRIPTION as the agent type. It was showing valur error, only four agent types are supported openai tools openai functions, ZERO_SHOT_REACT_DESCRIPTION etc. Please update the documentation as needed, there is a lot of confusion regarding this.

Idea or request for content:

Changes needed to be made in these documents:

https://python.langchain.com/api_reference/_modules/langchain/agents/agent_types.html#AgentType

https://python.langchain.com/api_reference/langchain/agents/langchain.agents.agent_types.AgentType.html#langchain.agents.agent_types.AgentType.ZERO_SHOT_REACT_DESCRIPTION

AHB102 commented 4 days ago

@ENUMERA8OR Can I take this issue ?

ENUMERA8OR commented 4 days ago

I am not a maintainer. Please ask a maintainer of the repo... & Read the contribution guide.