UsageMetadata class final
Metadata on the generation request's token usage.
Constructors
- UsageMetadata({int? promptTokenCount, int? candidatesTokenCount, int? totalTokenCount})
Properties
- candidatesTokenCount → int?
-
Total number of tokens across the generated candidates.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- promptTokenCount → int?
-
Number of tokens in the prompt.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalTokenCount → int?
-
Total token count for the generation request (prompt + candidates).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited