Package com.tnsai.protocols.annotations
Annotation 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
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConsensus strategy options. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionRemote broker URL for distributed debates.booleanWhether this agent can initiate debates.booleanWhether this agent can vote.doubleConsensus threshold (0.0 - 1.0).intMaximum number of debate rounds before forced conclusion.longRound timeout in milliseconds.Strategy for determining consensus.Transport mode.
-
Element Details
-
maxRounds
int maxRoundsMaximum number of debate rounds before forced conclusion.- Default:
5
-
consensusThreshold
double consensusThresholdConsensus threshold (0.0 - 1.0). E.g., 0.66 means 66% agreement needed for consensus.- Default:
0.66
-
strategy
Debate.ConsensusStrategy strategyStrategy for determining consensus.- Default:
SUPERMAJORITY
-
roundTimeoutMs
long roundTimeoutMsRound timeout in milliseconds.- Default:
300000L
-
broker
String brokerRemote broker URL for distributed debates. If empty, uses internal.- Default:
""
-
transport
TransportMode transportTransport mode.- Default:
AUTO
-
canInitiate
boolean canInitiateWhether this agent can initiate debates.- Default:
true
-
canVote
boolean canVoteWhether this agent can vote.- Default:
true
-