Class ValidationResult

java.lang.Object
com.tnsai.quality.validation.parallel.ValidationResult

public class ValidationResult extends Object
Result of parallel validation across multiple agents.

Contains the aggregated result, individual agent responses, consensus points, divergences, and execution metrics.

  • Method Details

    • builder

      public static ValidationResult.Builder builder()
    • getPrompt

      public String getPrompt()
    • getStrategy

      public AggregationStrategy getStrategy()
    • getBestSolution

      public String getBestSolution()
      Gets the best solution based on the aggregation strategy.
    • getBestAgent

      public Optional<AgentResponse> getBestAgent()
      Gets the agent that produced the best solution.
    • getResponses

      public List<AgentResponse> getResponses()
      Gets all individual agent responses.
    • getSuccessfulResponses

      public List<AgentResponse> getSuccessfulResponses()
      Gets successful responses only.
    • getConsensusPoints

      public List<String> getConsensusPoints()
      Gets points where all agents agree.
    • getDivergences

      public List<ValidationResult.Divergence> getDivergences()
      Gets points where agents diverge.
    • getMetrics

      public ValidationMetrics 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

      public String toString()
      Overrides:
      toString in class Object