GoogleCloudAiplatformV1ModalityTokenCount class
Represents a breakdown of token usage by modality.
This message is used in CountTokensResponse and GenerateContentResponse.UsageMetadata to provide a detailed view of how many tokens are used by each modality (e.g., text, image, video) in a request. This is particularly useful for multimodal models, allowing you to track and manage token consumption for billing and quota purposes.
Constructors
- GoogleCloudAiplatformV1ModalityTokenCount({String? modality, int? tokenCount})
- GoogleCloudAiplatformV1ModalityTokenCount.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- modality ↔ String?
-
The modality that this token count applies to.
Possible string values are:
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenCount ↔ int?
-
The number of tokens counted for this modality.
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