Skip to content

Xircuits toolkit for creating and experimenting with BabyAGI/AutoGPT-style agents

License

Notifications You must be signed in to change notification settings

XpressAI/xai-gpt-agent-toolkit

Repository files navigation

GPT Agent Toolkit

License: MIT GitHub stars GitHub issues XpressAI Discord

Welcome to the GPT Agent Toolkit! This toolkit provides a comprehensive set of Xircuits components that allow you to experiment with and create Collaborative Large Language Model-based automatons (Agents) in the style of BabyAGI and Auto-GPT. By default, the toolkit comes with BabyAGI agents, but it is designed to be easily customizable with your own prompts.

BabyAGI demo

Table of Contents

Features

  • Pre-built BabyAGI agents
  • Support for both Vecto and Pinecone Memories
  • Support for Tools such as Python Exec, and SQLLite
  • Support for both OpenAI and LLAMA models
  • Open-source and community-driven

Ideas

Here are some ideas that you could try relatively easily with Xircuits.

  1. Make a critic agent that updates the objective to be more effective.
  2. Have the agents produce a status report on Slack and update the objective based on your reply.
  3. Upload a large image dataset on Vecto with image descriptions giving your agent sight.
  4. Connect to Whisper and have a daily standup meeting with the agent.
  5. Make 2 BabyAGIs and have 1 critic decide which action to actually perform.

Getting Started

These instructions will help you set up the GPT Agent Toolkit on your local machine.

This is a component library so you don't need to clone this directly. Instead install Xircuits and install this component library into it.

Shameless plug

If the following is too much work or too complicated. Sign up to the Xpress AI Platform waitlist to get access to a single app that has everything you need to get started.

Join the Xpress AI Platform Waitlist

Software Prerequisites

Before you begin, make sure you have the following software installed on your system:

  • Python 3.8 or higher
  • pip (Python package installer)
  • git

API Prerequisites

You will need an API key from Open AI to use GPT-3.5 and either a Vecto or Pinecone account for agent memory.

Create a .env file and put your API keys into the respective lines.

OPENAI_API_KEY=<Your OpenAI API Key here>
OPENAI_ORG=<Your OpenAI Org (if you have one)>

With the latest version you no longer need Vector or Pinecone to get started, but if you want to use them add one of the following credentials.

For Vecto users:

VECTO_API_KEY=<An ACCOUNT_MANAGEMENT Vecto key>

For Pinecone users:

PINECONE_API_KEY=<Your Pinecone API key>
PINECONE_ENVIRONMENT=<Your Pinecone environment>

Create a project

Windows:

mkdir project
cd project
python -m venv venv
venv\Scripts\activate

Linux of macOS:

mkdir project
cd project
python3 -m venv venv
source ./venv/bin/activate
git init .

Installation

  1. Install xircuits
pip install xircuits
  1. Launch xircuits-components tool to install the base component library
xircuits-components

Ignore the

  1. Install Vecto (if using vecto)
pip install git+https://github.com/XpressAI/vecto-python-sdk.git
  1. Add the OpenAI and GPT Agent Toolkit component libraries
git submodule add https://github.com/XpressAI/xai-openai xai_components/xai_openai
git submodule add https://github.com/XpressAI/xai-gpt-agent-toolkit.git xai_components/xai_gpt_agent_toolkit

pip install -r xai_components/xai_openai/requirements.txt
pip install -r xai_components/xai_gpt_agent_toolkit/requirements.txt
  1. Run the playwright installer to enable the Browser tool:
playwright install

Usage

Basic Usage

  1. Copy the sample BabyAGI Xircuits file to your project folder.
cp xai_components/xai_gpt_agent_toolkit/babyagi.xircuits .
  1. Start JupyterLab/Xircuits by running:
xircuits
  1. Use the printed out URLs to browse to http://localhost:8888/lab and double click the babyagi.xiruits file.

  2. Click play to watch it go and try to make the world a better place.

Browser Access/Usage

For the browser tool to work in the most useful way, you must start Chrome in remote debugging mode before starting your agents. To do that run the following in powershell

& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

Contributing

We appreciate your interest in contributing to the GPT Agent Toolkit! Any new tools or prompts are welcome.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

  • The team behind Xircuits. Give the project a star if it looks interesting!
  • The developers of BabyAGI and AutoGPT for their groundbreaking work on large language model-based agents

About

Xircuits toolkit for creating and experimenting with BabyAGI/AutoGPT-style agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages