Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest
- 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
-
#contents ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>
Optional.
-
#instances ⇒ Array<Object>
Optional.
-
#model ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputeTokensRequest
constructor
A new instance of GoogleCloudAiplatformV1ComputeTokensRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ComputeTokensRequest
Returns a new instance of GoogleCloudAiplatformV1ComputeTokensRequest.
2947 2948 2949 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2947 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>
Optional. Input content.
Corresponds to the JSON property contents
2932 2933 2934 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2932 def contents @contents end |
#instances ⇒ Array<Object>
Optional. 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
2939 2940 2941 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2939 def instances @instances end |
#model ⇒ String
Optional. The name of the publisher model requested to serve the prediction.
Format: projects/project
/locations/location
/publishers//models/
Corresponds to the JSON property model
2945 2946 2947 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2945 def model @model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2952 2953 2954 2955 2956 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2952 def update!(**args) @contents = args[:contents] if args.key?(:contents) @instances = args[:instances] if args.key?(:instances) @model = args[:model] if args.key?(:model) end |