ai-garage

Multi-Agent Debate (Autogen Swarm + Chainlit)

A sophisticated debate system using multiple AI agents in a swarm configuration to research, construct arguments, provide rebuttals, and evaluate debates on any topic.

Overview

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.

What is “Swarm”?

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.

Features

Architecture

Setup & Usage

Prerequisites

Before using this AI agent, ensure you have the following:

Installation

  1. Clone the repository & get into the project directory
     git clone https://github.com/tezansahu/ai-garage.git
     cd ai-garage/swarm-multiagent-debate-autogen-chainlit
    
  2. Create and activate a virtual environment using uv:
     uv venv
     # On Windows
     .\.venv\Scripts\activate
     # On macOS/Linux
     source .venv/bin/activate
    
  3. Install all dependencies
     uv sync
    
  4. Create a .env file with your Serper API keys: SERPER_API_KEY=<your-api-key>
  5. Configure your model settings in model_config.yaml

Usage

Run the application:

chainlit run app.py

This will start the Chainlit server, allowing you to: