Package akka.javasdk.testkit.eval
Record Class ReportDocument.Spend
- Record Components:
attemptsWithEvidence- attempts whose evidence carries model callsmodelCalls- summed over those attemptsinputTokens- summed over those attemptsoutputTokens- summed over those attemptslatencyMs- summed over those attempts
- Enclosing class:
ReportDocument
public static record ReportDocument.Spend(int attemptsWithEvidence, int modelCalls, long inputTokens, long outputTokens, long latencyMs)
extends Record
All zero when no attempt carries model calls.
-
Constructor Summary
ConstructorsConstructorDescriptionSpend(int attemptsWithEvidence, int modelCalls, long inputTokens, long outputTokens, long latencyMs) Creates an instance of aSpendrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptsWithEvidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinputTokensrecord component.longReturns the value of thelatencyMsrecord component.intReturns the value of themodelCallsrecord component.longReturns the value of theoutputTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Spend
public Spend(int attemptsWithEvidence, int modelCalls, long inputTokens, long outputTokens, long latencyMs) Creates an instance of aSpendrecord class.- Parameters:
attemptsWithEvidence- the value for theattemptsWithEvidencerecord componentmodelCalls- the value for themodelCallsrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentlatencyMs- the value for thelatencyMsrecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
attemptsWithEvidence
public int attemptsWithEvidence()Returns the value of theattemptsWithEvidencerecord component.- Returns:
- the value of the
attemptsWithEvidencerecord component
-
modelCalls
public int modelCalls()Returns the value of themodelCallsrecord component.- Returns:
- the value of the
modelCallsrecord component
-
inputTokens
public long inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public long outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
latencyMs
public long latencyMs()Returns the value of thelatencyMsrecord component.- Returns:
- the value of the
latencyMsrecord component
-