forked from Archives/langchain
55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
"""Interface for agents."""
|
|
from langchain.agents.agent import (
|
|
Agent,
|
|
AgentExecutor,
|
|
AgentOutputParser,
|
|
BaseSingleActionAgent,
|
|
LLMSingleActionAgent,
|
|
)
|
|
from langchain.agents.agent_toolkits import (
|
|
create_csv_agent,
|
|
create_json_agent,
|
|
create_openapi_agent,
|
|
create_pandas_dataframe_agent,
|
|
create_sql_agent,
|
|
create_vectorstore_agent,
|
|
create_vectorstore_router_agent,
|
|
)
|
|
from langchain.agents.conversational.base import ConversationalAgent
|
|
from langchain.agents.conversational_chat.base import ConversationalChatAgent
|
|
from langchain.agents.initialize import initialize_agent
|
|
from langchain.agents.load_tools import get_all_tool_names, load_tools
|
|
from langchain.agents.loading import load_agent
|
|
from langchain.agents.mrkl.base import MRKLChain, ZeroShotAgent
|
|
from langchain.agents.react.base import ReActChain, ReActTextWorldAgent
|
|
from langchain.agents.self_ask_with_search.base import SelfAskWithSearchChain
|
|
from langchain.agents.tools import Tool, tool
|
|
|
|
__all__ = [
|
|
"MRKLChain",
|
|
"SelfAskWithSearchChain",
|
|
"ReActChain",
|
|
"AgentExecutor",
|
|
"Agent",
|
|
"Tool",
|
|
"tool",
|
|
"initialize_agent",
|
|
"ZeroShotAgent",
|
|
"ReActTextWorldAgent",
|
|
"load_tools",
|
|
"get_all_tool_names",
|
|
"ConversationalAgent",
|
|
"ConversationalChatAgent",
|
|
"load_agent",
|
|
"create_sql_agent",
|
|
"create_json_agent",
|
|
"create_openapi_agent",
|
|
"create_vectorstore_router_agent",
|
|
"create_vectorstore_agent",
|
|
"create_pandas_dataframe_agent",
|
|
"create_csv_agent",
|
|
"LLMSingleActionAgent",
|
|
"AgentOutputParser",
|
|
"BaseSingleActionAgent",
|
|
]
|