Package com.tnsai.evaluation.benchmark
Record Class BenchmarkRunner.AgentOutput
java.lang.Object
java.lang.Record
com.tnsai.evaluation.benchmark.BenchmarkRunner.AgentOutput
- Enclosing class:
BenchmarkRunner
public static record BenchmarkRunner.AgentOutput(String response, List<String> toolSequence, double costUsd, int inputTokens, int outputTokens)
extends Record
Output from agent execution for a test case.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentOutput(String response, List<String> toolSequence, double costUsd, int inputTokens, int outputTokens) Creates an instance of aAgentOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublecostUsd()Returns the value of thecostUsdrecord component.final booleanIndicates whether some other object is "equal to" this one.static BenchmarkRunner.AgentOutputfinal inthashCode()Returns a hash code value for this object.intReturns the value of theinputTokensrecord component.static BenchmarkRunner.AgentOutputintReturns the value of theoutputTokensrecord component.response()Returns the value of theresponserecord component.static BenchmarkRunner.AgentOutputReturns the value of thetoolSequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentOutput
public AgentOutput(String response, List<String> toolSequence, double costUsd, int inputTokens, int outputTokens) Creates an instance of aAgentOutputrecord class.- Parameters:
response- the value for theresponserecord componenttoolSequence- the value for thetoolSequencerecord componentcostUsd- the value for thecostUsdrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord component
-
-
Method Details
-
of
public static BenchmarkRunner.AgentOutput of(String response, List<String> toolSequence, double costUsd, int inputTokens, int outputTokens) -
simple
-
error
-
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 '=='. -
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
toolSequence
Returns the value of thetoolSequencerecord component.- Returns:
- the value of the
toolSequencerecord component
-
costUsd
public double costUsd()Returns the value of thecostUsdrecord component.- Returns:
- the value of the
costUsdrecord component
-
inputTokens
public int inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public int outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-