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



583
584
585
586
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 583

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.



583
584
585
586
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 583

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

#total_token_count::Integer

Returns:

  • (::Integer)


583
584
585
586
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 583

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