babyagi.pl - An AI-driven task management system
perl babyagi_script.pl [options]
Options:
--api-key=<openai_api_key> Your OpenAI API key
--model=<openai_api_model> OpenAI API model, e.g., 'gpt-3.5-turbo'
--pinecone-key=<pinecone_api_key> Your Pinecone API key
--pinecone-env=<pinecone_env> Pinecone environment
--table-name=<table_name> Pinecone table name
--objective=<objective> Objective of the BabyAGI instance
--initial-task=<initial_task> Initial task to start with
This script is a command-line interface for the BabyAGI Perl module. It demonstrates how to use the BabyAGI module to manage, prioritize, and execute tasks using OpenAI and Pinecone.
The script includes the following subroutines:
- task_creation_agent - Creates new tasks based on the result of a completed task
- prioritization_agent - Reprioritizes the task list
- execution_agent - Executes a task based on the context
- context_agent - Retrieves the context for a given query
Before running the script, it's recommended to set the following environment variables:
- OPENAI_API_KEY
- OPENAI_API_MODEL
- PINECONE_API_KEY
- PINECONE_ENVIRONMENT
- TABLE_NAME
- OBJECTIVE
- INITIAL_TASK (or FIRST_TASK)
Perl version by Nelson Ferraz [email protected], based on @yoheinakajima's babyagi.