Class ValidationMetrics
java.lang.Object
com.tnsai.quality.validation.parallel.ValidationMetrics
Metrics from parallel validation execution.
Tracks execution times, agreement ratios, confidence distributions, and other statistics from multi-agent validation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationMetrics.Builderbuilder()static ValidationMetricsfromResponses(List<AgentResponse> responses, Duration totalTime, double agreementRatio) Creates metrics from a list of agent responses.doubledoubledoubleGets the confidence standard deviation.doubleintintdoubleGets the success rate (0.0 to 1.0).inttoString()
-
Method Details
-
builder
-
fromResponses
public static ValidationMetrics fromResponses(List<AgentResponse> responses, Duration totalTime, double agreementRatio) Creates metrics from a list of agent responses. -
getTotalAgents
public int getTotalAgents() -
getSuccessfulAgents
public int getSuccessfulAgents() -
getFailedAgents
public int getFailedAgents() -
getTotalExecutionTime
-
getAverageExecutionTime
-
getFastestExecutionTime
-
getSlowestExecutionTime
-
getAgreementRatio
public double getAgreementRatio() -
getAverageConfidence
public double getAverageConfidence() -
getConfidenceVariance
public double getConfidenceVariance() -
getAgentExecutionTimes
-
getSuccessRate
public double getSuccessRate()Gets the success rate (0.0 to 1.0). -
getConfidenceStdDev
public double getConfidenceStdDev()Gets the confidence standard deviation. -
toString
-