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.



1985
1986
1987
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1985

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



1983
1984
1985
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1983

def tokens_info
  @tokens_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1990
1991
1992
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1990

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