Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest

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 ComputeTokens RPC call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputeTokensRequest

Returns a new instance of GoogleCloudAiplatformV1ComputeTokensRequest.



1964
1965
1966
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1964

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

Instance Attribute Details

#instancesArray<Object>

Required. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models. Corresponds to the JSON property instances

Returns:

  • (Array<Object>)


1962
1963
1964
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1962

def instances
  @instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1969
1970
1971
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1969

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