Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ CloudAiNlLlmProtoServiceUsageMetadata
constructor
A new instance of CloudAiNlLlmProtoServiceUsageMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceUsageMetadata
Returns a new instance of CloudAiNlLlmProtoServiceUsageMetadata.
891 892 893 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 891 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
879 880 881 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 879 def candidates_token_count @candidates_token_count end |
#prompt_token_count ⇒ Fixnum
Number of tokens in the request.
Corresponds to the JSON property promptTokenCount
884 885 886 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 884 def prompt_token_count @prompt_token_count end |
#total_token_count ⇒ Fixnum
Corresponds to the JSON property totalTokenCount
889 890 891 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 889 def total_token_count @total_token_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
896 897 898 899 900 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 896 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 |