AgentType Class — langchain Architecture
Architecture documentation for the AgentType class in agent_types.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e1664047_3353_aa26_2a27_4fcd93c0a2f8["AgentType"] b618253c_9372_d223_1ec2_7937cef5aa7a["agent_types.py"] e1664047_3353_aa26_2a27_4fcd93c0a2f8 -->|defined in| b618253c_9372_d223_1ec2_7937cef5aa7a
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent_types.py lines 15–54
class AgentType(str, Enum):
"""An enum for agent types."""
ZERO_SHOT_REACT_DESCRIPTION = "zero-shot-react-description"
"""A zero shot agent that does a reasoning step before acting."""
REACT_DOCSTORE = "react-docstore"
"""A zero shot agent that does a reasoning step before acting.
This agent has access to a document store that allows it to look up
relevant information to answering the question.
"""
SELF_ASK_WITH_SEARCH = "self-ask-with-search"
"""An agent that breaks down a complex question into a series of simpler questions.
This agent uses a search tool to look up answers to the simpler questions
in order to answer the original complex question.
"""
CONVERSATIONAL_REACT_DESCRIPTION = "conversational-react-description"
CHAT_ZERO_SHOT_REACT_DESCRIPTION = "chat-zero-shot-react-description"
"""A zero shot agent that does a reasoning step before acting.
This agent is designed to be used in conjunction
"""
CHAT_CONVERSATIONAL_REACT_DESCRIPTION = "chat-conversational-react-description"
STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION = (
"structured-chat-zero-shot-react-description"
)
"""An zero-shot react agent optimized for chat models.
This agent is capable of invoking tools that have multiple inputs.
"""
OPENAI_FUNCTIONS = "openai-functions"
"""An agent optimized for using open AI functions."""
OPENAI_MULTI_FUNCTIONS = "openai-multi-functions"
Source
Frequently Asked Questions
What is the AgentType class?
AgentType is a class in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent_types.py.
Where is AgentType defined?
AgentType is defined in libs/langchain/langchain_classic/agents/agent_types.py at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free