Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsageModalityTokens
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsageModalityTokens
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
The token count for a single response modality.
Instance Attribute Summary collapse
-
#modality ⇒ String
The modality associated with the token count.
-
#tokens ⇒ Fixnum
Number of tokens for the modality.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1InteractionUsageModalityTokens
constructor
A new instance of GenaiVertexV1beta1InteractionUsageModalityTokens.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1InteractionUsageModalityTokens
Returns a new instance of GenaiVertexV1beta1InteractionUsageModalityTokens.
3855 3856 3857 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#modality ⇒ String
The modality associated with the token count.
Corresponds to the JSON property modality
3848 3849 3850 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3848 def modality @modality end |
#tokens ⇒ Fixnum
Number of tokens for the modality.
Corresponds to the JSON property tokens
3853 3854 3855 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3853 def tokens @tokens end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3860 3861 3862 3863 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3860 def update!(**args) @modality = args[:modality] if args.key?(:modality) @tokens = args[:tokens] if args.key?(:tokens) end |