Module debate

Module debate 

Source
Expand description

§Multi-Agent Debate Architecture

Implements adversarial debate between multiple agents for improved factuality. Based on ICML 2024 research showing +20% factuality improvement.

§Scientific Foundation

  • Du et al. (ICML 2024): “Improving Factuality and Reasoning through Self-Debate”
  • Irving et al. (2018): “AI Safety via Debate”

§Core Concept

┌─────────────────────────────────────────────────────────────────────┐
│                    MULTI-AGENT DEBATE                               │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│   ADVOCATE ◄─────────────────────────► CRITIC                      │
│   (Pro position)        Rounds        (Con position)               │
│        │                               │                           │
│        └───────────┬───────────────────┘                           │
│                    ▼                                               │
│              SYNTHESIZER                                           │
│        (Weighs arguments, final verdict)                           │
│                    │                                               │
│                    ▼                                               │
│              FINAL OUTPUT                                          │
│        (Balanced, fact-checked conclusion)                         │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

§Usage

use reasonkit::thinktool::debate::{DebateArena, AgentRole, DebateConfig};

let arena = DebateArena::new(DebateConfig {
    rounds: 3,
    ..Default::default()
});

let result = arena.debate("Is nuclear power safe?").await?;
println!("Verdict: {:?}", result.verdict);

Structs§

Argument
A single argument in the debate
Claim
DebateArena
The debate arena where agents debate
DebateConfig
Configuration for the debate
DebatePrompts
Prompt templates for debate agents
DebateResult
Complete result of a debate
DebateStats
DebateVerdict
Final verdict from the debate
Evidence
Rebuttal

Enums§

AgentRole
Role of an agent in the debate
VerdictType