Purpose: BabyAGI is an experimental "self-building" autonomous agent framework, with the goal of exploring the simplest possible self-building structure to implement a general-purpose autonomous agent. The author states that this repository is for sharing ideas, sparking discussion, and for experienced developers to play with, and is not intended for production use; caution is required. The original BabyAGI from March 2023 has been archived and moved to the babyagi_archive repository (September 2024 snapshot).
Main capabilities: The core is the new functionz function framework, used to store, manage, and execute functions in a database, providing a graph-based structure to track imports, dependency functions, and authentication keys, with automatic loading and complete logging. It comes with a dashboard that can manage functions, execute updates, and view logs. It supports function metadata, including imports (external libraries), dependencies (dependency functions), key_dependencies (required keys), and description. It supports registering functions via register_function, or loading plugins and function packs via load_function; the built-in function packs are located in babyagi/functionz/packs. The logging system records function execution start and end, parameters, execution time, and errors, and automatically parses and records dependency relationships. The trigger mechanism allows functions to execute automatically when specific events occur. Built-in default function packs (execution, keys, triggers, log management) and AI function packs (automatically generating descriptions and embeddings, selecting similar functions by prompt). It also includes two experimental self-building agents: process_user_input in the code_writing_functions pack and self_build in the self_build pack.
Usage: The installation command is pip install babyagi. Load the dashboard: import babyagi; in main, app = babyagi.create_app('/dashboard'), then app.run(host='0.0.0.0', port=8080). Then in a browser visit http://localhost:8080/dashboard。可先导入 babyagi and register functions; key dependencies can also be managed from code or the dashboard.
Applicable scenarios and limitations: Suitable for developers researching and experimenting with autonomous agents, automatic function generation, and dependency management. Limitations include: the project has been archived; it is explicitly not suitable for production; use requires caution; the self-building agents are draft features, the generated code is relatively simple and may need improvement; improper use of triggers may lead to recursive execution or dependency conflicts. The author states that PR handling is slow. The project uses the MIT license. Other details such as pricing, platform, effects, etc. are not yet provided.