Using BabyAGI in Chinese to search the Internet
import time
from collections import deque
from typing import Dict, List, Optional, Any

class BabyAGI[source]

BabyAGI(memory:Optional[BaseMemory]=None, callback_manager:BaseCallbackManager=None, verbose:bool=None, task_list:deque=None, task_creation_chain:TaskCreationChain, task_prioritization_chain:TaskPrioritizationChain, execution_chain:Chain, task_id_counter:int=1, vectorstore:VectorStore, max_iterations:Optional[int]=None) :: Chain

Controller model for the BabyAGI agent.

class ZeroRoundAgent[source]

ZeroRoundAgent(llm_chain:LLMChain, output_parser:AgentOutputParser=None, allowed_tools:Optional[List[str]]=None) :: ZeroShotAgent

Agent for the MRKL chain.

class ChineseOutputParser[source]

ChineseOutputParser(default_action:Optional[str]=None, default_action_input:Optional[str]=None) :: AgentOutputParser

Class to parse the output of an LLM call.

Output parsers help structure language model responses.


Running the BabyAGI

mock_baby_agi[source]

mock_baby_agi(objective)