Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ModalityTokenCount (v0.63.0)

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

#modality=

def modality=(value) -> ::Google::Cloud::AIPlatform::V1::Modality
Parameter
Returns

#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.