Class: Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata

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

Overview

Usage metadata about response(s).

Instance Attribute Summary collapse

Instance Attribute Details

#candidates_token_count::Integer

Returns Number of tokens in the response(s).

Returns:

  • (::Integer)

    Number of tokens in the response(s).



609
610
611
612
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 609

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

#prompt_token_count::Integer

Returns Number of tokens in the request. When cached_content is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.

Returns:

  • (::Integer)

    Number of tokens in the request. When cached_content is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.



609
610
611
612
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 609

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

#total_token_count::Integer

Returns Total token count for prompt and response candidates.

Returns:

  • (::Integer)

    Total token count for prompt and response candidates.



609
610
611
612
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 609

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