Class: Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata
- 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
-
#cache_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount>
readonly
Output only.
-
#cached_content_token_count ⇒ ::Integer
readonly
Output only.
-
#candidates_token_count ⇒ ::Integer
Number of tokens in the response(s).
-
#candidates_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount>
readonly
Output only.
-
#prompt_token_count ⇒ ::Integer
Number of tokens in the request.
-
#prompt_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount>
readonly
Output only.
-
#thoughts_token_count ⇒ ::Integer
readonly
Output only.
-
#total_token_count ⇒ ::Integer
Total token count for prompt and response candidates.
Instance Attribute Details
#cache_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount> (readonly)
Returns Output only. List of modalities of the cached content in the request input.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#cached_content_token_count ⇒ ::Integer (readonly)
Returns Output only. Number of tokens in the cached part in the input (the cached content).
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#candidates_token_count ⇒ ::Integer
Returns Number of tokens in the response(s).
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#candidates_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount> (readonly)
Returns Output only. List of modalities that were returned in the response.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 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.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#prompt_tokens_details ⇒ ::Array<::Google::Cloud::AIPlatform::V1::ModalityTokenCount> (readonly)
Returns Output only. List of modalities that were processed in the request input.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#thoughts_token_count ⇒ ::Integer (readonly)
Returns Output only. Number of tokens present in thoughts output.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 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.
666 667 668 669 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 666 class UsageMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |