How varshith-reddy-m/multi-agent-ai-debate-system works
AI Debate Arena accepts a topic through either its Gradio UI or a terminal entry point, then runs a four-turn PRO/ANTI debate. The debate engine asks three independent judges for votes, resolves them into a winner, and asks an analyzer for a reasoning breakdown; the UI presents the transcript and results. Prompts define each agent’s role, and agents.py handles streamed OpenRouter requests with retries. The README documents cloud deployment, but deployment wiring is not shown in the sampled source.
Main entry points: debate_engine.py Debate engine · agents.py Streaming agent client · app.py Gradio interface · main.py Terminal entry
Components 13
Entry points
- Gradio interface
app.py - Terminal entry
main.py
Debate orchestration
- Debate engine
debate_engine.py - Agent prompts
prompts.py - PRO turns
debate_engine.py - ANTI turns
debate_engine.py
Evaluation and analysis
- Three judges
debate_engine.py - Consensus voting
debate_engine.py - Vote parser
winner.py - Debate analyzer
debate_engine.py
Model access
- Streaming agent client
agents.py
Other components
- Topic user
- OpenRouter API
Connections 17
- Topic user → Gradio interface: enters topic
app.py - Gradio interface → Debate engine: starts debate
app.py - Topic user → Terminal entry: enters topic
main.py - Terminal entry → Debate engine: runs debate
main.py - Debate engine → PRO turns: runs turns
debate_engine.py - Debate engine → ANTI turns: runs turns
debate_engine.py - Debate engine → Agent prompts: formats prompts
debate_engine.py - PRO turns → Streaming agent client: requests response
debate_engine.py - ANTI turns → Streaming agent client: requests response
debate_engine.py - Debate engine → Three judges: requests evaluations
debate_engine.py - Three judges → Streaming agent client: requests judgments
debate_engine.py - Debate engine → Vote parser: parses votes
debate_engine.py - Debate engine → Consensus voting: counts votes
debate_engine.py - Debate engine → Debate analyzer: requests analysis
debate_engine.py - Debate analyzer → Streaming agent client: requests breakdown
debate_engine.py - Streaming agent client → OpenRouter API: streams requests
agents.py - Debate engine → Gradio interface: returns results
app.py