Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debate Arena

Debate Arena is a Flask single-page web app that orchestrates three Backboard assistants:

  1. Proponent Agent argues for the submitted topic with three logical points and examples.
  2. Opponent Agent argues against the topic with three risks, flaws, or counterpoints.
  3. Judge Agent reviews both transcripts, checks fallacies, declares a winner, and assigns a 0-100 scorecard.

Requirements

  • Python 3.11+
  • A Backboard API key

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export BACKBOARD_API_KEY="your-backboard-api-key"
python app.py

Open the app at: http://localhost:5000

API

Run a debate directly:

curl -s -X POST http://localhost:5000/api/debate \
  -H 'Content-Type: application/json' \
  -d '{"topic":"Should artificial general intelligence development be open-source?"}'

The response includes proponent, opponent, and judge fields.

Assistant Reuse

On the first successful run, the app creates the three Backboard assistants and stores their IDs in agents.json. Later runs reuse those IDs. Delete agents.json only if you intentionally want to create a fresh trio of assistants.

Error Handling

The API key is read only from the BACKBOARD_API_KEY environment variable. If the key is missing or Backboard returns an error, the backend returns a JSON error and the frontend displays a friendly error banner instead of crashing.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages