Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Represents token counting info for a single modality.
Instance Attribute Summary collapse
-
#modality ⇒ String
The modality associated with this token count.
-
#token_count ⇒ Fixnum
Number of tokens.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ModalityTokenCount
constructor
A new instance of GoogleCloudAiplatformV1ModalityTokenCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ModalityTokenCount
Returns a new instance of GoogleCloudAiplatformV1ModalityTokenCount.
16583 16584 16585 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16583 def initialize(**args) update!(**args) end |
Instance Attribute Details
#modality ⇒ String
The modality associated with this token count.
Corresponds to the JSON property modality
16576 16577 16578 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16576 def modality @modality end |
#token_count ⇒ Fixnum
Number of tokens.
Corresponds to the JSON property tokenCount
16581 16582 16583 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16581 def token_count @token_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16588 16589 16590 16591 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16588 def update!(**args) @modality = args[:modality] if args.key?(:modality) @token_count = args[:token_count] if args.key?(:token_count) end |