Class ValidationResult
java.lang.Object
com.tnsai.quality.validation.parallel.ValidationResult
Result of parallel validation across multiple agents.
Contains the aggregated result, individual agent responses, consensus points, divergences, and execution metrics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordRepresents a point where agents diverge. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResult.Builderbuilder()doubleGets the agreement ratio (0.0 to 1.0).Gets the agent that produced the best solution.Gets the best solution based on the aggregation strategy.Gets points where all agents agree.Gets points where agents diverge.Gets execution metrics.Gets all individual agent responses.Gets successful responses only.booleanWhether all agents agree on the core response.toString()
-
Method Details
-
builder
-
getPrompt
-
getStrategy
-
getBestSolution
Gets the best solution based on the aggregation strategy. -
getBestAgent
Gets the agent that produced the best solution. -
getResponses
Gets all individual agent responses. -
getSuccessfulResponses
Gets successful responses only. -
getConsensusPoints
Gets points where all agents agree. -
getDivergences
Gets points where agents diverge. -
getMetrics
Gets execution metrics. -
hasFullConsensus
public boolean hasFullConsensus()Whether all agents agree on the core response. -
getAgreementRatio
public double getAgreementRatio()Gets the agreement ratio (0.0 to 1.0). -
toString
-