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

Component LibrariesProject Templates
DocsInstallTutorialsDeveloper GuidesContributeBlogDiscord

Xircuits Component Library for GPT Agent Toolkit – Empower your workflows with intelligent task management and execution tools.


Xircuits Component Library for GPT Agent Toolkit

Effortlessly integrate GPT-powered agents into Xircuits workflows. This library enables dynamic task creation, prioritization, execution, and critique, alongside tools for interaction, memory management, and contextual understanding.

Table of Contents

Preview

The Example:

baby_agi

The Result:

baby_agi_result

Prerequisites

Before you begin, you will need the following:

  1. Python3.9+.
  2. Xircuits.
  3. API key for OpenAI

Main Xircuits Components

TaskCreatorAgent Component:

Creates new tasks dynamically based on objectives, previous results, and the list of incomplete tasks.

TaskCreatorAgent

ToolRunner Component:

Executes tools specified within tasks and stores the results in memory for future reference.

ToolRunner

TaskPrioritizerAgent Component:

Reorders and prioritizes tasks to align with the overall objective efficiently.

TaskExecutorAgent Component:

Executes tasks using specified tools, memory, and context to achieve desired outcomes.

TaskCriticAgent Component:

Reviews and critiques executed actions to ensure accuracy and alignment with the task objective.

CreateTaskList Component:

Initializes a task list with a default or user-defined initial task.

ScratchPadTool Component:

Provides a scratch pad for storing and summarizing intermediate thoughts or insights.

PromptUserTool Component:

Prompts the user for input and captures their responses for use in workflows.

BrowserTool Component:

Automates browser interactions for tasks like navigation and data extraction.

SqliteTool Component:

Executes SQL queries on an SQLite database and returns the results for further processing.

Try the Examples

We have provided an example workflow to help you get started with the GPT Agent Toolkit component library. Give it a try and see how you can create custom GPT Agent Toolkit components for your applications.

BabyAGI Example

Explore the babyagi.xircuits workflow. This example demonstrates an iterative approach to task management, utilizing AI to execute, create, and prioritize tasks dynamically in a loop.

Installation

To use this component library, ensure that you have an existing Xircuits setup. You can then install the GPT Agent Toolkit library using the component library interface, or through the CLI using:

xircuits install gpt-agent-toolkit

You can also do it manually by cloning and installing it:

# base Xircuits directory
git clone https://github.com/XpressAI/xai-gpt-agent-toolkit xai_components/xai_gpt_agent_toolkit
pip install -r xai_components/xai_gpt_agent_toolkit/requirements.txt

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages