AutoGPT#
- class langchain_experimental.autonomous_agents.autogpt.agent.AutoGPT(ai_name: str, memory: VectorStoreRetriever, chain: LLMChain, output_parser: BaseAutoGPTOutputParser, tools: List[BaseTool], feedback_tool: HumanInputRun | None = None, chat_history_memory: BaseChatMessageHistory | None = None)[source]#
Agent for interacting with AutoGPT.
Methods
__init__
(ai_name,Β memory,Β chain,Β ...[,Β ...])from_llm_and_tools
(ai_name,Β ai_role,Β memory,Β ...)run
(goals)- Parameters:
ai_name (str) β
memory (VectorStoreRetriever) β
chain (LLMChain) β
output_parser (BaseAutoGPTOutputParser) β
tools (List[BaseTool]) β
feedback_tool (Optional[HumanInputRun]) β
chat_history_memory (Optional[BaseChatMessageHistory]) β
- __init__(ai_name: str, memory: VectorStoreRetriever, chain: LLMChain, output_parser: BaseAutoGPTOutputParser, tools: List[BaseTool], feedback_tool: HumanInputRun | None = None, chat_history_memory: BaseChatMessageHistory | None = None)[source]#
- Parameters:
ai_name (str) β
memory (VectorStoreRetriever) β
chain (LLMChain) β
output_parser (BaseAutoGPTOutputParser) β
tools (List[BaseTool]) β
feedback_tool (HumanInputRun | None) β
chat_history_memory (BaseChatMessageHistory | None) β
- classmethod from_llm_and_tools(ai_name: str, ai_role: str, memory: VectorStoreRetriever, tools: List[BaseTool], llm: BaseChatModel, human_in_the_loop: bool = False, output_parser: BaseAutoGPTOutputParser | None = None, chat_history_memory: BaseChatMessageHistory | None = None) AutoGPT [source]#
- Parameters:
ai_name (str) β
ai_role (str) β
memory (VectorStoreRetriever) β
tools (List[BaseTool]) β
llm (BaseChatModel) β
human_in_the_loop (bool) β
output_parser (BaseAutoGPTOutputParser | None) β
chat_history_memory (BaseChatMessageHistory | None) β
- Return type: