A sophisticated debate system using multiple AI agents in a swarm configuration to research, construct arguments, provide rebuttals, and evaluate debates on any topic.
This project demonstrates an advanced approach to collaborative AI reasoning through structured debate. The system uses a team of specialized agents that work together with distinct roles:
The agents collaborate in a swarm pattern powered by AutoGen AgentChat and provide an interactive debate experience through a Chainlit UI.
Swarm is a multi-agent design pattern first introduced by OpenAI that implements a collaborative team where agents can hand off tasks to other agents based on their specialized capabilities.
The key innovation is that agents can delegate tasks to other team members using special tool calls, while maintaining a shared message context across the entire team. This approach enables decentralized task planning through local decision-making by individual agents, eliminating the need for a central orchestrator to coordinate all activities.

Before using this AI agent, ensure you have the following:
uv package installer, recommended for Python project management (Reference) git clone https://github.com/tezansahu/ai-garage.git
cd ai-garage/swarm-multiagent-debate-autogen-chainlit
uv:
uv venv
# On Windows
.\.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate
uv sync
.env file with your Serper API keys: SERPER_API_KEY=<your-api-key>model_config.yamlRun the application:
chainlit run app.py
This will start the Chainlit server, allowing you to: