Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest

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

Request message for PredictionService.CountTokens.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1CountTokensRequest

Returns a new instance of GoogleCloudAiplatformV1CountTokensRequest.



2248
2249
2250
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2248

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

Instance Attribute Details

#instancesArray<Object>

Required. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model. Corresponds to the JSON property instances

Returns:

  • (Array<Object>)


2246
2247
2248
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2246

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2253
2254
2255
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2253

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