GenaiVertexV1InteractionUsage class

Statistics on the interaction request's token usage.

Constructors

GenaiVertexV1InteractionUsage({List<GenaiVertexV1InteractionUsageModalityTokens>? cachedTokensByModality, List<GenaiVertexV1InteractionUsageGroundingToolCount>? groundingToolCount, List<GenaiVertexV1InteractionUsageModalityTokens>? inputTokensByModality, List<GenaiVertexV1InteractionUsageModalityTokens>? outputTokensByModality, List<GenaiVertexV1InteractionUsageModalityTokens>? toolUseTokensByModality, int? totalCachedTokens, int? totalInputTokens, int? totalOutputTokens, int? totalThoughtTokens, int? totalTokens, int? totalToolUseTokens})
GenaiVertexV1InteractionUsage.fromJson(Map json_)

Properties

cachedTokensByModality ↔ List<GenaiVertexV1InteractionUsageModalityTokens>?
A breakdown of cached token usage by modality.
getter/setter pair
groundingToolCount ↔ List<GenaiVertexV1InteractionUsageGroundingToolCount>?
Grounding tool count.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
inputTokensByModality ↔ List<GenaiVertexV1InteractionUsageModalityTokens>?
A breakdown of input token usage by modality.
getter/setter pair
outputTokensByModality ↔ List<GenaiVertexV1InteractionUsageModalityTokens>?
A breakdown of output token usage by modality.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toolUseTokensByModality ↔ List<GenaiVertexV1InteractionUsageModalityTokens>?
A breakdown of tool-use token usage by modality.
getter/setter pair
totalCachedTokens ↔ int?
Number of tokens in the cached part of the prompt (the cached content).
getter/setter pair
totalInputTokens ↔ int?
Number of tokens in the prompt (context).
getter/setter pair
totalOutputTokens ↔ int?
Total number of tokens across all the generated responses.
getter/setter pair
totalThoughtTokens ↔ int?
Number of tokens of thoughts for thinking models.
getter/setter pair
totalTokens ↔ int?
Total token count for the interaction request (prompt + responses + other internal tokens).
getter/setter pair
totalToolUseTokens ↔ int?
Number of tokens present in tool-use prompt(s).
getter/setter pair

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