Quantum Swarm (QUARM) is a powerful multi-agent system that processes queries through a coordinated swarm of specialized AI agents. Each agent has a unique role in analyzing and responding to user queries, providing comprehensive and well-thought-out responses.
-
Multi-Agent Processing: Complex queries are processed by multiple specialized agents:
- Query Triage: Determines query complexity
- Query Interpreter: Breaks down and analyzes queries
- Research Specialist: Identifies key areas for investigation
- Critical Analyzer: Evaluates information and identifies gaps
- Creative Explorer: Generates novel perspectives
- Information Synthesizer: Combines insights into coherent responses
-
Multiple Interfaces:
- CLI mode for direct interaction
- Telegram bot integration
- RESTful API with streaming support
- Web interface support
-
Advanced Capabilities:
- Streaming responses in real-time
- Conversation memory with automatic cleanup
- Customizable agent parameters
- Support for multiple LLM providers (OpenAI, Groq, Heurist)
- CORS support for web integration
- Clone the repository:
git clone https://github.com/QuarmFW/Quarm.git
cd quarm
- Install dependencies:
pip install -r requirements.txt
- Configure settings:
- Copy
config/settings.py
and configure your API keys and preferences
- Copy
We have also created a webpage that allows you to generate the roles file in the proper format. Click here to generate your roles file.
python main.py
- Get a bot token from @BotFather
- Add the token to
config/settings.py
- Run:
python main.py
- Configure API settings in
config/settings.py
- Run:
python main.py
The API will be available at http://localhost:8000
by default.
GET /health
: Health check endpointGET /agent-parameters
: Get available agent parametersPOST /query
: Process a query through the agent swarm
{
"text": "Your query here",
"user_id": "optional_user_id",
"parameters": {
"interpreter": {
"depth_of_analysis": 80
},
"researcher": {
"technical_depth": 90
}
}
}
Key settings in config/settings.py
:
-
LLM Provider Configuration:
OPENAI_API_KEY
: OpenAI API keyGROQ_API_KEY
: Groq API keyHEURIST_API_KEY
: Heurist API key
-
Interface Settings:
USE_API
: Enable/disable API serverUSE_MEMORY
: Enable/disable conversation memoryTELEGRAM_BOT_TOKEN
: Telegram bot token
-
Server Configuration:
API_HOST
: API server hostAPI_PORT
: API server portSSL_ENABLED
: Enable/disable SSL
Contributions are welcome. Please feel free to submit a Pull Request. Please note that this project is currently in development phase, and the codebase is not yet fully stable. It's currently capable of processing queries through a set pipeline of multiple agents, and possible integrations with frameworks like ElizaOS are in the works.
This project is licensed under the MIT License - see the LICENSE file for details.