Skip to main content
The DebateWithJudge architecture enables structured debates between two agents (Pro and Con) with a Judge providing refined synthesis over multiple rounds. This creates progressively improved answers through iterative argumentation and evaluation.

Overview


Step 1: Install and Import

Ensure you have Swarms installed and import the DebateWithJudge class:

Step 2: Create the Debate System

Create a DebateWithJudge system using preset agents (the simplest approach):

Step 3: Run the Debate

Execute the debate on a topic:

Complete Example

Here’s a complete working example:

Custom Agents Example

Create specialized agents for domain-specific debates:

Batch Processing

Process multiple debate topics:

Configuration Options

Output Types

The conversation records each round’s Pro argument, Con argument, and judge synthesis (each agent’s answer, not its full transcript). The task itself is not recorded.

Use Cases


Next Steps