The Ultimate Modular Autonomous Multi AI Agent Framework.
Project description
Table of contents
- What is SuperAgentX?
- Why SuperAgentX?
- Getting Started
- Key Features
- Installing Dependencies
- Contribution
- License
What is SuperAgentX?
The Ultimate Modular Autonomous Agentic AGI Framework for Progressing Towards AGI.
SuperAgentX is an advanced agentic AI framework designed to accelerate the development of Artificial General Intelligence (AGI). It provides a powerful, modular, and flexible platform for building autonomous AI agents capable of executing complex tasks with minimal human intervention. By integrating cutting-edge AI technologies and promoting efficient, scalable agent behavior, SuperAgentX embodies a critical step forward in the path towards superintelligence and AGI. Whether for research, development, or deployment, SuperAgentX is built to push the boundaries of what's possible with autonomous AI systems.
Why SuperAgentX?
SuperAgentX is designed to address the growing need for highly capable, autonomous AI systems that can perform complex tasks with minimal human intervention. As we approach the limits of narrow AI, there's a need for an adaptable and scalable framework to bridge the gap toward AGI (Artificial General Intelligence). Here’s why SuperAgentX stands out:
Super : Cutting-edge AI systems with exceptional capabilities, paving the way to AGI (Artificial General Intelligence) and ASI (Artificial Super Intelligence).
Agent : Autonomous Multi AI agent framework designed to make decisions, act independently, and handle complex tasks. X : The unknown, the limitless, the extra factor that makes SuperAgentX revolutionary, futuristic, and transformative.Getting Started
pip install superagentx
Usage - Example SuperAgentX Code
This SuperAgentX example utilizes two handlers, Amazon and Walmart, to search for product items based on user input from the IO Console.
- It uses Parallel execution of handler in the agent
- Memory Context Enabled
- LLM configured to OpenAI
- Pre-requisites
Set OpenAI Key:
export OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxx
Set Rapid API Key Free Subscription for Amazon, Walmart Search APIs
export RAPID_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXX
# Additional lib needs to install
# pip install superagentx-handlers
# python3 superagentx_examples/ecom_iopipe.py
import asyncio
import os
import sys
from rich import print as rprint
from superagentx.memory import Memory
sys.path.extend([os.path.dirname(os.path.dirname(os.path.abspath(__file__)))])
from superagentx.agent import Agent
from superagentx.engine import Engine
from superagentx.llm import LLMClient
from superagentx.agentxpipe import AgentXPipe
from superagentx.pipeimpl.iopipe import IOPipe
from superagentx.prompt import PromptTemplate
from superagentx_handlers.ecommerce.amazon import AmazonHandler
from superagentx_handlers.ecommerce.walmart import WalmartHandler
async def main():
"""
Launches the e-commerce pipeline console client for processing requests and handling data.
"""
# LLM Configuration
llm_config = {'llm_type': 'openai'}
llm_client: LLMClient = LLMClient(llm_config=llm_config)
# Enable Memory
memory = Memory()
# Add Two Handlers (Tools) - Amazon, Walmart
amazon_ecom_handler = AmazonHandler()
walmart_ecom_handler = WalmartHandler()
# Prompt Template
prompt_template = PromptTemplate()
# Amazon & Walmart Engine to execute handlers
amazon_engine = Engine(
handler=amazon_ecom_handler,
llm=llm_client,
prompt_template=prompt_template
)
walmart_engine = Engine(
handler=walmart_ecom_handler,
llm=llm_client,
prompt_template=prompt_template
)
# Create Agent with Amazon, Walmart Engines execute in Parallel - Search Products from user prompts
ecom_agent = Agent(
name='Ecom Agent',
goal="Get me the best search results",
role="You are the best product searcher",
llm=llm_client,
prompt_template=prompt_template,
engines=[[amazon_engine, walmart_engine]]
)
# Pipe Interface to send it to public accessible interface (Cli Console / WebSocket / Restful API)
pipe = AgentXPipe(
agents=[ecom_agent],
memory=memory
)
# Create IO Cli Console - Interface
io_pipe = IOPipe(
search_name='SuperAgentX Ecom',
agentx_pipe=pipe,
read_prompt=f"\n[bold green]Enter your search here"
)
await io_pipe.start()
if __name__ == '__main__':
try:
asyncio.run(main())
except (KeyboardInterrupt, asyncio.CancelledError):
rprint("\nUser canceled the [bold yellow][i]pipe[/i]!")
Usage - Example SuperAgentX Result
SuperAgentX searches for product items requested by the user in the console, validates them against the set goal, and returns the result. It retains the context, allowing it to respond to the user's next prompt in the IO Console intelligently.
Architecture
Large Language Models
Icon | LLM Name | Status |
---|---|---|
OpenAI | ||
Azure OpenAI | ||
AWS Bedrock | ||
Google Gemini | ||
Meta Llama | ||
Ollama | ||
Claude AI | ||
Mistral AI | ||
IBM WatsonX |
Key Features
Easy-to-Publish Interfaces
Pipe - WebSocket, Interactive Cli Console, and RESTFul API (Coming Soon) enable a smooth and real-time interface for users and systems to interact with SuperAgentX.
Advanced Handler Engines
Handler Engines (Tools) operate either in parallel or sequentially, passing the output from one engine to the input of another. This flexible orchestration enhances efficiency, allowing agents to work in perfect harmony for complex tasks.
Multi-Mode Agents
Goal oriented agents with auto retry feature based on threshold, helps to achieve expected results. SuperAgentX supports agents running in parallel, sequential, or a hybrid mode (a combination of both). This ensures optimized task execution, whether processes are dependent or independent.
Intelligent Context Memory
A robust Context Memory captures user interactions and environmental data, enabling the system to provide efficient RAG (Retrieval-Augmented Generation) search features, significantly reducing operational costs by handling data intelligently.
Ease of Configuration for LLM Support in SuperAgentX
SuperAgentX supports multiple LLMs, including OpenAI, Azure OpenAI, AWS Bedrock LLMs, Llama 3+, Gemini AI, Claude AI, Ollama and IBM WatsonX is designed to effortlessly integrate with a variety of Large Language Models (LLMs), providing a smooth and flexible setup process.
Continuous Learning
Through built-in feedback mechanisms, SuperAgentX continuously learns and adapts, allowing it to memorize and improve its performance for future interactions.
Adaptability and Personalization
Highly adaptable and flexible, SuperAgentX can be extended and trained to create personalized AGI (Artificial General Intelligence) systems, ensuring that it meets specific needs and scenarios.
Simplified Autonomous Framework
The Autonomous Multi-Agent Framework simplifies the deployment of intelligent, autonomous systems, offering a foundation with AGI extendability capabilities, enabling a smooth evolution toward general intelligence.
Environment Setup
$ cd <path-to>/superagentx
$ python3.12 -m venv venv
$ source venv/bin/activate
(venv) $ pip install poetry
(venv) $ poetry install
Documentation (Coming Soon)
License
SuperAgentX is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file superagentx-0.1.5.tar.gz
.
File metadata
- Download URL: superagentx-0.1.5.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.6 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd35a9364cd5ec4d8ff0e29b49f0ba233d560ecd74db5cc4cceae8711e1c634 |
|
MD5 | e3d73c4d03bff391b968b9ead5ed9d9a |
|
BLAKE2b-256 | 9c6eac40b3693cd97616e4c2eb7a23aa75ed313b5e09d50e2f77c4599bc43c2a |
File details
Details for the file superagentx-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: superagentx-0.1.5-py3-none-any.whl
- Upload date:
- Size: 62.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.6 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f17ce2c33303eefac54d09b438b5fc0b4b79e21956a2432ca5c0da470e8d4c4 |
|
MD5 | d9f92ef81d84e50e7ac605a46875551b |
|
BLAKE2b-256 | 9faaf8cf50818002b80e8a9cb820f89f2f273756eef09fa72401d35a3b3dc4be |