Class: Google::Cloud::AIPlatform::V1::ModalityTokenCount

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/content.rb

Overview

Represents token counting info for a single modality.

Instance Attribute Summary collapse

Instance Attribute Details

#modality::Google::Cloud::AIPlatform::V1::Modality

Returns The modality associated with this token count.

Returns:



954
955
956
957
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 954

class ModalityTokenCount
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#token_count::Integer

Returns Number of tokens.

Returns:

  • (::Integer)

    Number of tokens.



954
955
956
957
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 954

class ModalityTokenCount
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end