GenerationUsage class
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
Constructors
-
GenerationUsage.new({double? inputTokens, double? outputTokens, double? totalTokens, double? inputCharacters, double? outputCharacters, double? inputImages, double? outputImages, double? inputVideos, double? outputVideos, double? inputAudioFiles, double? outputAudioFiles, Map<
String, dynamic> ? custom, double? thoughtsTokens, double? cachedContentTokens}) -
GenerationUsage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cachedContentTokens → double?
-
final
-
custom
→ Map<
String, dynamic> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputAudioFiles → double?
-
final
- inputCharacters → double?
-
final
- inputImages → double?
-
final
- inputTokens → double?
-
final
- inputVideos → double?
-
final
- outputAudioFiles → double?
-
final
- outputCharacters → double?
-
final
- outputImages → double?
-
final
- outputTokens → double?
-
final
- outputVideos → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thoughtsTokens → double?
-
final
- totalTokens → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited