Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ModalityTokenCount.
Represents token counting info for a single modality.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#modality
def modality() -> ::Google::Cloud::AIPlatform::V1::Modality
Returns
- (::Google::Cloud::AIPlatform::V1::Modality) — The modality associated with this token count.
#modality=
def modality=(value) -> ::Google::Cloud::AIPlatform::V1::Modality
Parameter
- value (::Google::Cloud::AIPlatform::V1::Modality) — The modality associated with this token count.
Returns
- (::Google::Cloud::AIPlatform::V1::Modality) — The modality associated with this token count.
#token_count
def token_count() -> ::Integer
Returns
- (::Integer) — Number of tokens.
#token_count=
def token_count=(value) -> ::Integer
Parameter
- value (::Integer) — Number of tokens.
Returns
- (::Integer) — Number of tokens.