Class: Google::Cloud::AIPlatform::V1::ComputeTokensRequest
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::ComputeTokensRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb
Overview
Request message for ComputeTokens RPC call.
Instance Attribute Summary collapse
-
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Optional.
-
#endpoint ⇒ ::String
Required.
-
#instances ⇒ ::Array<::Google::Protobuf::Value>
Optional.
-
#model ⇒ ::String
Optional.
Instance Attribute Details
#contents ⇒ ::Array<::Google::Cloud::AIPlatform::V1::Content>
Returns Optional. Input content.
42 43 44 45 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 42 class ComputeTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#endpoint ⇒ ::String
Returns Required. The name of the Endpoint requested to get lists of tokens and token ids.
42 43 44 45 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 42 class ComputeTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#instances ⇒ ::Array<::Google::Protobuf::Value>
Returns Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.
42 43 44 45 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 42 class ComputeTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
Returns Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers//models/.
42 43 44 45 |
# File 'proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb', line 42 class ComputeTokensRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |