mirror of https://github.com/hwchase17/langchain
parent
3e31d6e35f
commit
8aa545901a
@ -1,17 +1,47 @@
|
|||||||
|
"""Module definitions of agent types together with corresponding agents."""
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class AgentType(str, Enum):
|
class AgentType(str, Enum):
|
||||||
"""Enumerator with the Agent types."""
|
"""An enum for agent types.
|
||||||
|
|
||||||
|
See documentation: https://python.langchain.com/docs/modules/agents/agent_types/
|
||||||
|
"""
|
||||||
|
|
||||||
ZERO_SHOT_REACT_DESCRIPTION = "zero-shot-react-description"
|
ZERO_SHOT_REACT_DESCRIPTION = "zero-shot-react-description"
|
||||||
|
"""A zero shot agent that does a reasoning step before acting."""
|
||||||
|
|
||||||
REACT_DOCSTORE = "react-docstore"
|
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"
|
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"
|
CONVERSATIONAL_REACT_DESCRIPTION = "conversational-react-description"
|
||||||
CHAT_ZERO_SHOT_REACT_DESCRIPTION = "chat-zero-shot-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"
|
CHAT_CONVERSATIONAL_REACT_DESCRIPTION = "chat-conversational-react-description"
|
||||||
|
|
||||||
STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION = (
|
STRUCTURED_CHAT_ZERO_SHOT_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"
|
OPENAI_FUNCTIONS = "openai-functions"
|
||||||
|
"""An agent optimized for using open AI functions."""
|
||||||
|
|
||||||
OPENAI_MULTI_FUNCTIONS = "openai-multi-functions"
|
OPENAI_MULTI_FUNCTIONS = "openai-multi-functions"
|
||||||
|
Loading…
Reference in New Issue