AOSSIE-Org / AOSSIE-Org/DebateAI

🧠 Feature Request: AI Devil’s Advocate Mode

Aperta
#189 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
84
Fork
198
Merge medio
2g 19h
PR unite (30g)
30

Descrizione

## 🧠 Feature Summary
Introduce an optional **AI Devil’s Advocate mode** that periodically injects neutral, critical questions during debates to challenge assumptions, uncover logical gaps, and promote deeper reasoning — without taking sides.

---

## šŸŽÆ Motivation / Problem Statement
Currently, debates in DebateAI rely solely on participants (human or AI) to challenge each other’s arguments. This can result in:

- Unchallenged assumptions
- Superficial rebuttals
- Missed opportunities for deeper critical thinking

An **impartial AI observer** acting as a Devil’s Advocate can significantly enhance the educational value of debates by encouraging reflection and stronger argumentation.

---

## šŸ’” Proposed Solution
Add a configurable **AI Devil’s Advocate** that:

- Observes the debate passively
- Periodically analyzes recent messages
- Injects **one concise, neutral question** aimed at:
- Exposing hidden assumptions
- Highlighting logical gaps
- Encouraging clarification or evidence

The AI **does not argue or take sides** — it only asks questions.

---

## ✨ Key Features (MVP Scope)
- [x] Optional toggle when creating a debate room
- [x] Configurable frequency (e.g., every N messages)
- [x] AI-generated questions based on recent transcript
- [x] Distinct message type (e.g., ā€œDevil’s Advocateā€)
- [x] Safe rate limits to avoid disruption

---

## 🧩 Implementation Overview (High-Level)

### Backend
- Extend debate room model to enable/disable Devil’s Advocate mode
- Track message count to trigger AI invocation
- Use existing LLM integration to generate questions
- Broadcast Devil’s Advocate messages via existing WebSocket flow

### Frontend
- UI toggle for enabling the mode
- Visual distinction for Devil’s Advocate messages
- No changes to core debate flow or controls

---

## 🧪 Non-Goals (Out of Scope)
- āŒ Real-time analysis for every message
- āŒ Argument scoring or moderation
- āŒ Taking sides or debating participants
- āŒ Interrupting structured debate phases (e.g., closing statements)

---

## šŸŽ“ Educational Impact
This feature:
- Encourages reflective and critical thinking
- Improves argument quality
- Aligns with DebateAI’s mission of AI-assisted learning
- Serves as a foundation for future research and GSoC-scale features

---

## šŸ”® Future Extensions (Optional)
- Post-debate summary of unanswered Devil’s Advocate questions
- Difficulty levels for question depth
- Integration with debate feedback and analytics

---

## šŸ™‹ Contribution Intent
I am willing to implement this feature and submit a PR following the project’s contribution guidelines.
Feedback on scope, design, or approach is very welcome.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non ĆØ ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.