Skip to content

BabyAGI - an AI-driven task management system in Perl

Notifications You must be signed in to change notification settings

nferraz/babyagi-perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

babyagi.pl - An AI-driven task management system

SYNOPSIS

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

DESCRIPTION

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

CONFIGURATION

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)

AUTHOR

Perl version by Nelson Ferraz [email protected], based on @yoheinakajima's babyagi.

About

BabyAGI - an AI-driven task management system in Perl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages