Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse
- 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
Response message for ComputeTokens RPC call.
Instance Attribute Summary collapse
-
#tokens_info ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TokensInfo>
Lists of tokens info from the input.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputeTokensResponse
constructor
A new instance of GoogleCloudAiplatformV1beta1ComputeTokensResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputeTokensResponse
Returns a new instance of GoogleCloudAiplatformV1beta1ComputeTokensResponse.
3233 3234 3235 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tokens_info ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TokensInfo>
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
Corresponds to the JSON property tokensInfo
3231 3232 3233 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3231 def tokens_info @tokens_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3238 3239 3240 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3238 def update!(**args) @tokens_info = args[:tokens_info] if args.key?(:tokens_info) end |