GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata class
Usage metadata about the content generation request and response.
This message provides a detailed breakdown of token usage and other relevant metrics.
Constructors
-
GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.new({List<
GoogleCloudAiplatformV1ModalityTokenCount> ? cacheTokensDetails, int? cachedContentTokenCount, int? candidatesTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? candidatesTokensDetails, int? promptTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? promptTokensDetails, int? thoughtsTokenCount, int? toolUsePromptTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? toolUsePromptTokensDetails, int? totalTokenCount, String? trafficType}) - GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson(Map json_)
Properties
- cachedContentTokenCount ↔ int?
-
The number of tokens in the cached content that was used for this request.
getter/setter pair
-
cacheTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
A detailed breakdown of the token count for each modality in the cached
content.
getter/setter pair
- candidatesTokenCount ↔ int?
-
The total number of tokens in the generated candidates.
getter/setter pair
-
candidatesTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
A detailed breakdown of the token count for each modality in the generated
candidates.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- promptTokenCount ↔ int?
-
The total number of tokens in the prompt.
getter/setter pair
-
promptTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
A detailed breakdown of the token count for each modality in the prompt.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thoughtsTokenCount ↔ int?
-
The number of tokens that were part of the model's generated "thoughts"
output, if applicable.
getter/setter pair
- toolUsePromptTokenCount ↔ int?
-
The number of tokens in the results from tool executions, which are
provided back to the model as input, if applicable.
getter/setter pair
-
toolUsePromptTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
A detailed breakdown by modality of the token counts from the results of
tool executions, which are provided back to the model as input.
getter/setter pair
- totalTokenCount ↔ int?
-
The total number of tokens for the entire request.
getter/setter pair
- trafficType ↔ String?
-
The traffic type for this request.
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