GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata class
Usage metadata about response(s).
Constructors
-
GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.new({List<
GoogleCloudAiplatformV1ModalityTokenCount> ? cacheTokensDetails, int? cachedContentTokenCount, int? candidatesTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? candidatesTokensDetails, int? promptTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? promptTokensDetails, int? toolUsePromptTokenCount, List<GoogleCloudAiplatformV1ModalityTokenCount> ? toolUsePromptTokensDetails, int? totalTokenCount}) - GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson(Map json_)
Properties
- cachedContentTokenCount ↔ int?
-
Number of tokens in the cached part in the input (the cached content).
getter/setter pair
-
cacheTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
List of modalities of the cached content in the request input.
getter/setter pair
- candidatesTokenCount ↔ int?
-
Number of tokens in the response(s).
getter/setter pair
-
candidatesTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
List of modalities that were returned in the response.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- promptTokenCount ↔ int?
-
Number of tokens in the request.
getter/setter pair
-
promptTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
List of modalities that were processed in the request input.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolUsePromptTokenCount ↔ int?
-
Number of tokens present in tool-use prompt(s).
getter/setter pair
-
toolUsePromptTokensDetails
↔ List<
GoogleCloudAiplatformV1ModalityTokenCount> ? -
List of modalities that were processed for tool-use request inputs.
getter/setter pair
- totalTokenCount ↔ int?
-
Total token count for prompt, response candidates, and tool-use prompts
(if present).
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