Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Usage metadata about response(s).
Instance Attribute Summary collapse
-
#candidates_token_count ⇒ Fixnum
Number of tokens in the response(s).
-
#prompt_token_count ⇒ Fixnum
Number of tokens in the request.
-
#total_token_count ⇒ Fixnum
Corresponds to the JSON property
totalTokenCount.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
constructor
A new instance of GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
Returns a new instance of GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.
10090 10091 10092 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10090 def initialize(**args) update!(**args) end |
Instance Attribute Details
#candidates_token_count ⇒ Fixnum
Number of tokens in the response(s).
Corresponds to the JSON property candidatesTokenCount
10078 10079 10080 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10078 def candidates_token_count @candidates_token_count end |
#prompt_token_count ⇒ Fixnum
Number of tokens in the request.
Corresponds to the JSON property promptTokenCount
10083 10084 10085 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10083 def prompt_token_count @prompt_token_count end |
#total_token_count ⇒ Fixnum
Corresponds to the JSON property totalTokenCount
10088 10089 10090 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10088 def total_token_count @total_token_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10095 10096 10097 10098 10099 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10095 def update!(**args) @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count) @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count) @total_token_count = args[:total_token_count] if args.key?(:total_token_count) end |