Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest
- 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 ComputeTokens RPC call.
Instance Attribute Summary collapse
-
#instances ⇒ Array<Object>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputeTokensRequest
constructor
A new instance of GoogleCloudAiplatformV1beta1ComputeTokensRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ComputeTokensRequest
Returns a new instance of GoogleCloudAiplatformV1beta1ComputeTokensRequest.
2008 2009 2010 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2008 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instances ⇒ Array<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
2006 2007 2008 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2006 def instances @instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2013 2014 2015 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2013 def update!(**args) @instances = args[:instances] if args.key?(:instances) end |