Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Response message for ComputeTokens RPC call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputeTokensResponse

Returns a new instance of GoogleCloudAiplatformV1ComputeTokensResponse.



2970
2971
2972
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2970

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

Instance Attribute Details

#tokens_infoArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TokensInfo>

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



2968
2969
2970
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2968

def tokens_info
  @tokens_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2975
2976
2977
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2975

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