Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest

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

Request message for PredictionService.CountTokens.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CountTokensRequest

Returns a new instance of GoogleCloudAiplatformV1beta1CountTokensRequest.



2292
2293
2294
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2292

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>)


2290
2291
2292
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2290

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2297
2298
2299
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2297

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