https://github.com/XpressAI/xai-gpt-agent-toolkit
Xircuits toolkit for creating and experimenting with BabyAGI/AutoGPT-style agents
https://github.com/XpressAI/xai-gpt-agent-toolkit
Last synced: 21 days ago
JSON representation
Xircuits toolkit for creating and experimenting with BabyAGI/AutoGPT-style agents
- Host: GitHub
- URL: https://github.com/XpressAI/xai-gpt-agent-toolkit
- Owner: XpressAI
- License: mit
- Created: 2023-04-14T01:50:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T21:46:45.000Z (over 1 year ago)
- Last Synced: 2024-08-02T00:22:08.814Z (9 months ago)
- Language: Python
- Size: 2.73 MB
- Stars: 288
- Watchers: 10
- Forks: 43
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Component Libraries •
Project Templates
Docs •
Install •
Tutorials •
Developer Guides •
Contribute •
Blog •
DiscordXircuits Component Library for GPT Agent Toolkit – Empower your workflows with intelligent task management and execution tools.
---
## Xircuits Component Library for GPT Agent ToolkitEffortlessly 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](#preview)
- [Prerequisites](#prerequisites)
- [Main Xircuits Components](#main-xircuits-components)
- [Try the Examples](#try-the-examples)
- [Installation](#installation)## Preview
### The Example:
### The 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.
### ToolRunner Component:
Executes tools specified within tasks and stores the results in memory for future reference.
### 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](https://xircuits.io/docs/main/Installation). You can then install the GPT Agent Toolkit library using the [component library interface](https://xircuits.io/docs/component-library/installation#installation-using-the-xircuits-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
```