Class: Google::Cloud::AIPlatform::V1::CountTokensRequest
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::CountTokensRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/prediction_service.rb
Overview
Request message for [PredictionService.CountTokens][].
Instance Attribute Summary collapse
-
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Required.
-
#endpoint ⇒ ::String
Required.
-
#instances ⇒ ::Array<::Google::Protobuf::Value>
Required.
-
#model ⇒ ::String
Required.
Instance Attribute Details
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Returns Required. Input content.
444 445 446 447 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 444 class CountTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#endpoint ⇒ ::String
Returns Required. The name of the Endpoint requested to perform token counting.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}.
444 445 446 447 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 444 class CountTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#instances ⇒ ::Array<::Google::Protobuf::Value>
Returns Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
444 445 446 447 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 444 class CountTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
Returns Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*.
444 445 446 447 |
# File 'proto_docs/google/cloud/aiplatform/v1/prediction_service.rb', line 444 class CountTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |