BabyAGI 2o is an exploration into creating the simplest self-building autonomous agent. Unlike its sibling project BabyAGI 2, which focuses on storing

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-10-18 21:30:03

BabyAGI 2o is an exploration into creating the simplest self-building autonomous agent. Unlike its sibling project BabyAGI 2, which focuses on storing and executing functions from a database, BabyAGI 2o aims to iteratively build itself by creating and registering tools as required to complete tasks provided by the user. As these functions are not stored, the goal is to integrate this with the BabyAGI 2 framework for persistence of tools created.

Because this installs dependencies and executes code based on an LLMs output, please execute in a safe environment and be mindful of the types of requests you make. I personally use Replit to test this, and you can fork the Replit version here.

BabyAGI 2o uses the litellm package to interface with language models. Depending on the model you choose (e.g., OpenAI's GPT-4, Anthropic's Claude), you'll need to set the appropriate API keys in your environment variables. You'll also need to specify the model by setting the LITELLM_MODEL environment variable. Ensure that the model you choose supports tool/function calling.

Ensure that the model you select supports tool/function calling. Not all models may have this capability. Refer to the litellm documentation or the model provider's documentation to confirm.

Leave a Comment