Annotation Interface Debate


@Retention(RUNTIME) @Target(TYPE) public @interface Debate
Enables multi-agent debate and consensus building for an Agent. Supports structured discussions with rounds, voting, and consensus detection.

Example:

 @Debate(
     maxRounds = 5,
     consensusThreshold = 0.66,
     strategy = ConsensusStrategy.SUPERMAJORITY
 )
 public class ReviewerAgent extends Agent {
     // Can participate in debates and vote
 }
 
  • Element Details

    • maxRounds

      int maxRounds
      Maximum number of debate rounds before forced conclusion.
      Default:
      5
    • consensusThreshold

      double consensusThreshold
      Consensus threshold (0.0 - 1.0). E.g., 0.66 means 66% agreement needed for consensus.
      Default:
      0.66
    • strategy

      Strategy for determining consensus.
      Default:
      SUPERMAJORITY
    • roundTimeoutMs

      long roundTimeoutMs
      Round timeout in milliseconds.
      Default:
      300000L
    • broker

      String broker
      Remote broker URL for distributed debates. If empty, uses internal.
      Default:
      ""
    • transport

      TransportMode transport
      Transport mode.
      Default:
      AUTO
    • canInitiate

      boolean canInitiate
      Whether this agent can initiate debates.
      Default:
      true
    • canVote

      boolean canVote
      Whether this agent can vote.
      Default:
      true