Package com.tnsai.evaluation.model
Record Class BenchmarkResult.TestCaseResult
java.lang.Object
java.lang.Record
com.tnsai.evaluation.model.BenchmarkResult.TestCaseResult
- Enclosing class:
BenchmarkResult
public static record BenchmarkResult.TestCaseResult(String testCaseId, String agentResponse, List<String> actualToolSequence, List<EvaluationResult> evaluationResults, long latencyMs, double costUsd)
extends Record
Result for a single test case within a benchmark run.
-
Constructor Summary
ConstructorsConstructorDescriptionTestCaseResult(String testCaseId, String agentResponse, List<String> actualToolSequence, List<EvaluationResult> evaluationResults, long latencyMs, double costUsd) Creates an instance of aTestCaseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualToolSequencerecord component.Returns the value of theagentResponserecord component.doublecostUsd()Returns the value of thecostUsdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationResultsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatencyMsrecord component.doubleReturns the value of thetestCaseIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestCaseResult
public TestCaseResult(String testCaseId, String agentResponse, List<String> actualToolSequence, List<EvaluationResult> evaluationResults, long latencyMs, double costUsd) Creates an instance of aTestCaseResultrecord class.- Parameters:
testCaseId- the value for thetestCaseIdrecord componentagentResponse- the value for theagentResponserecord componentactualToolSequence- the value for theactualToolSequencerecord componentevaluationResults- the value for theevaluationResultsrecord componentlatencyMs- the value for thelatencyMsrecord componentcostUsd- the value for thecostUsdrecord component
-
-
Method Details
-
overallScore
public double overallScore() -
scoresByEvaluator
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
testCaseId
Returns the value of thetestCaseIdrecord component.- Returns:
- the value of the
testCaseIdrecord component
-
agentResponse
Returns the value of theagentResponserecord component.- Returns:
- the value of the
agentResponserecord component
-
actualToolSequence
Returns the value of theactualToolSequencerecord component.- Returns:
- the value of the
actualToolSequencerecord component
-
evaluationResults
Returns the value of theevaluationResultsrecord component.- Returns:
- the value of the
evaluationResultsrecord component
-
latencyMs
public long latencyMs()Returns the value of thelatencyMsrecord component.- Returns:
- the value of the
latencyMsrecord component
-
costUsd
public double costUsd()Returns the value of thecostUsdrecord component.- Returns:
- the value of the
costUsdrecord component
-