Class DebatePlanner

java.lang.Object
dev.langchain4j.agentic.patterns.debate.DebatePlanner
All Implemented Interfaces:
Planner

public class DebatePlanner extends Object implements Planner
A debate planner that orchestrates iterative adversarial rounds among debater agents.

Debaters generate independent positions in parallel, then enter critique rounds where they see each other's reasoning (via a "debateContext" scope key) and can revise their positions. Rounds continue until the ConvergenceStrategy reports convergence or maxRounds is reached, at which point the judge agent (the last registered subagent) renders a final verdict.