langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Number of Agent Types Not Updated in the Docs

Open ENUMERA8OR opened this issue 1 year ago • 5 comments

URL

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

Checklist

  • [X] I added a very descriptive title to this issue.
  • [X] I included a link to the documentation page I am referring to (if applicable).

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

ENUMERA8OR avatar Nov 13 '24 17:11 ENUMERA8OR

@ENUMERA8OR Can I take this issue ?

AHB102 avatar Nov 14 '24 14:11 AHB102

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

ENUMERA8OR avatar Nov 14 '24 15:11 ENUMERA8OR

Hi, @ENUMERA8OR. I'm Dosu, and I'm helping the LangChain team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The issue highlights a discrepancy in the LangChain documentation about the number of supported agent types in the create_sql_agent class.
  • Documentation claims nine agent types are supported, but only four are actually available.
  • @AHB102 showed interest in fixing the issue, but you advised them to consult a maintainer and review the contribution guide.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the LangChain repository. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Feb 13 '25 16:02 dosubot[bot]

Yes relevant, if lnot already solved...

ENUMERA8OR avatar Feb 13 '25 16:02 ENUMERA8OR

@eyurtsev, the user @ENUMERA8OR has confirmed that this issue regarding the discrepancy in the LangChain documentation is still relevant. Could you please assist them with this?

dosubot[bot] avatar Feb 13 '25 16:02 dosubot[bot]