EvalSampleUsage class

Token usage for a sample.

Annotations
  • @immutable

Constructors

EvalSampleUsage({required int promptTokens, required int completionTokens, required int totalTokens, int? cachedTokens})
Creates an EvalSampleUsage.
const
EvalSampleUsage.fromJson(Map<String, dynamic> json)
Creates an EvalSampleUsage from JSON.
factory

Properties

cachedTokens int?
Number of cached tokens.
final
completionTokens int
Number of completion tokens.
final
hashCode int
The hash code for this object.
no setteroverride
promptTokens int
Number of prompt tokens.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTokens int
Total tokens.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override