Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputeTokensResponse

Returns a new instance of GoogleCloudAiplatformV1beta1ComputeTokensResponse.



3713
3714
3715
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3713

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#tokens_infoArray<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



3711
3712
3713
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3711

def tokens_info
  @tokens_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3718
3719
3720
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3718

def update!(**args)
  @tokens_info = args[:tokens_info] if args.key?(:tokens_info)
end