google-apis-aiplatform_v1 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,43 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module AiplatformV1
|
24
24
|
|
25
|
-
# Details for filtered input text.
|
26
|
-
class CloudAiLargeModelsVisionFilteredText
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Confidence level
|
30
|
-
# Corresponds to the JSON property `category`
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :category
|
33
|
-
|
34
|
-
# Filtered category
|
35
|
-
# Corresponds to the JSON property `confidence`
|
36
|
-
# @return [String]
|
37
|
-
attr_accessor :confidence
|
38
|
-
|
39
|
-
# Input prompt
|
40
|
-
# Corresponds to the JSON property `prompt`
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :prompt
|
43
|
-
|
44
|
-
# Score for category
|
45
|
-
# Corresponds to the JSON property `score`
|
46
|
-
# @return [Float]
|
47
|
-
attr_accessor :score
|
48
|
-
|
49
|
-
def initialize(**args)
|
50
|
-
update!(**args)
|
51
|
-
end
|
52
|
-
|
53
|
-
# Update properties of this object
|
54
|
-
def update!(**args)
|
55
|
-
@category = args[:category] if args.key?(:category)
|
56
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
57
|
-
@prompt = args[:prompt] if args.key?(:prompt)
|
58
|
-
@score = args[:score] if args.key?(:score)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
25
|
# Generate video response.
|
63
26
|
class CloudAiLargeModelsVisionGenerateVideoResponse
|
64
27
|
include Google::Apis::Core::Hashable
|
@@ -68,11 +31,6 @@ module Google
|
|
68
31
|
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionMedia>]
|
69
32
|
attr_accessor :generated_samples
|
70
33
|
|
71
|
-
# Returns rai error message for filtered videos.
|
72
|
-
# Corresponds to the JSON property `raiErrorMessage`
|
73
|
-
# @return [String]
|
74
|
-
attr_accessor :rai_error_message
|
75
|
-
|
76
34
|
# Returns if any videos were filtered due to RAI policies.
|
77
35
|
# Corresponds to the JSON property `raiMediaFilteredCount`
|
78
36
|
# @return [Fixnum]
|
@@ -83,11 +41,6 @@ module Google
|
|
83
41
|
# @return [Array<String>]
|
84
42
|
attr_accessor :rai_media_filtered_reasons
|
85
43
|
|
86
|
-
# Details for filtered input text.
|
87
|
-
# Corresponds to the JSON property `raiTextFilteredReason`
|
88
|
-
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionFilteredText]
|
89
|
-
attr_accessor :rai_text_filtered_reason
|
90
|
-
|
91
44
|
def initialize(**args)
|
92
45
|
update!(**args)
|
93
46
|
end
|
@@ -95,10 +48,8 @@ module Google
|
|
95
48
|
# Update properties of this object
|
96
49
|
def update!(**args)
|
97
50
|
@generated_samples = args[:generated_samples] if args.key?(:generated_samples)
|
98
|
-
@rai_error_message = args[:rai_error_message] if args.key?(:rai_error_message)
|
99
51
|
@rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
|
100
52
|
@rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
|
101
|
-
@rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
|
102
53
|
end
|
103
54
|
end
|
104
55
|
|
@@ -261,6 +212,11 @@ module Google
|
|
261
212
|
class CloudAiLargeModelsVisionRaiInfo
|
262
213
|
include Google::Apis::Core::Hashable
|
263
214
|
|
215
|
+
# The list of detected labels for different rai categories.
|
216
|
+
# Corresponds to the JSON property `detectedLabels`
|
217
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabels>]
|
218
|
+
attr_accessor :detected_labels
|
219
|
+
|
264
220
|
# List of rai categories' information to return
|
265
221
|
# Corresponds to the JSON property `raiCategories`
|
266
222
|
# @return [Array<String>]
|
@@ -277,11 +233,119 @@ module Google
|
|
277
233
|
|
278
234
|
# Update properties of this object
|
279
235
|
def update!(**args)
|
236
|
+
@detected_labels = args[:detected_labels] if args.key?(:detected_labels)
|
280
237
|
@rai_categories = args[:rai_categories] if args.key?(:rai_categories)
|
281
238
|
@scores = args[:scores] if args.key?(:scores)
|
282
239
|
end
|
283
240
|
end
|
284
241
|
|
242
|
+
# Filters returning list of deteceted labels, scores, and bounding boxes.
|
243
|
+
class CloudAiLargeModelsVisionRaiInfoDetectedLabels
|
244
|
+
include Google::Apis::Core::Hashable
|
245
|
+
|
246
|
+
# The list of detected entities for the rai signal.
|
247
|
+
# Corresponds to the JSON property `entities`
|
248
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity>]
|
249
|
+
attr_accessor :entities
|
250
|
+
|
251
|
+
# The RAI category for the deteceted labels.
|
252
|
+
# Corresponds to the JSON property `raiCategory`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :rai_category
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
@entities = args[:entities] if args.key?(:entities)
|
263
|
+
@rai_category = args[:rai_category] if args.key?(:rai_category)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# An integer bounding box of original pixels of the image for the detected
|
268
|
+
# labels.
|
269
|
+
class CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox
|
270
|
+
include Google::Apis::Core::Hashable
|
271
|
+
|
272
|
+
# The X coordinate of the top-left corner, in pixels.
|
273
|
+
# Corresponds to the JSON property `x1`
|
274
|
+
# @return [Fixnum]
|
275
|
+
attr_accessor :x1
|
276
|
+
|
277
|
+
# The X coordinate of the bottom-right corner, in pixels.
|
278
|
+
# Corresponds to the JSON property `x2`
|
279
|
+
# @return [Fixnum]
|
280
|
+
attr_accessor :x2
|
281
|
+
|
282
|
+
# The Y coordinate of the top-left corner, in pixels.
|
283
|
+
# Corresponds to the JSON property `y1`
|
284
|
+
# @return [Fixnum]
|
285
|
+
attr_accessor :y1
|
286
|
+
|
287
|
+
# The Y coordinate of the bottom-right corner, in pixels.
|
288
|
+
# Corresponds to the JSON property `y2`
|
289
|
+
# @return [Fixnum]
|
290
|
+
attr_accessor :y2
|
291
|
+
|
292
|
+
def initialize(**args)
|
293
|
+
update!(**args)
|
294
|
+
end
|
295
|
+
|
296
|
+
# Update properties of this object
|
297
|
+
def update!(**args)
|
298
|
+
@x1 = args[:x1] if args.key?(:x1)
|
299
|
+
@x2 = args[:x2] if args.key?(:x2)
|
300
|
+
@y1 = args[:y1] if args.key?(:y1)
|
301
|
+
@y2 = args[:y2] if args.key?(:y2)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# The properties for a detected entity from the rai signal.
|
306
|
+
class CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity
|
307
|
+
include Google::Apis::Core::Hashable
|
308
|
+
|
309
|
+
# An integer bounding box of original pixels of the image for the detected
|
310
|
+
# labels.
|
311
|
+
# Corresponds to the JSON property `boundingBox`
|
312
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox]
|
313
|
+
attr_accessor :bounding_box
|
314
|
+
|
315
|
+
# Description of the label
|
316
|
+
# Corresponds to the JSON property `description`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :description
|
319
|
+
|
320
|
+
# The intersection ratio between the detection bounding box and the mask.
|
321
|
+
# Corresponds to the JSON property `iouScore`
|
322
|
+
# @return [Float]
|
323
|
+
attr_accessor :iou_score
|
324
|
+
|
325
|
+
# MID of the label
|
326
|
+
# Corresponds to the JSON property `mid`
|
327
|
+
# @return [String]
|
328
|
+
attr_accessor :mid
|
329
|
+
|
330
|
+
# Confidence score of the label
|
331
|
+
# Corresponds to the JSON property `score`
|
332
|
+
# @return [Float]
|
333
|
+
attr_accessor :score
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
342
|
+
@description = args[:description] if args.key?(:description)
|
343
|
+
@iou_score = args[:iou_score] if args.key?(:iou_score)
|
344
|
+
@mid = args[:mid] if args.key?(:mid)
|
345
|
+
@score = args[:score] if args.key?(:score)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
285
349
|
#
|
286
350
|
class CloudAiLargeModelsVisionSemanticFilterResponse
|
287
351
|
include Google::Apis::Core::Hashable
|
@@ -338,6 +402,31 @@ module Google
|
|
338
402
|
end
|
339
403
|
end
|
340
404
|
|
405
|
+
# Create API error message for Vertex Pipeline. Next Id: 3.
|
406
|
+
class CloudAiPlatformCommonCreatePipelineJobApiErrorDetail
|
407
|
+
include Google::Apis::Core::Hashable
|
408
|
+
|
409
|
+
# The error root cause returned by CreatePipelineJob API.
|
410
|
+
# Corresponds to the JSON property `errorCause`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :error_cause
|
413
|
+
|
414
|
+
# Public messages contains actionable items for the error cause.
|
415
|
+
# Corresponds to the JSON property `publicMessage`
|
416
|
+
# @return [String]
|
417
|
+
attr_accessor :public_message
|
418
|
+
|
419
|
+
def initialize(**args)
|
420
|
+
update!(**args)
|
421
|
+
end
|
422
|
+
|
423
|
+
# Update properties of this object
|
424
|
+
def update!(**args)
|
425
|
+
@error_cause = args[:error_cause] if args.key?(:error_cause)
|
426
|
+
@public_message = args[:public_message] if args.key?(:public_message)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
341
430
|
# Message that represents an arbitrary HTTP body. It should only be used for
|
342
431
|
# payload formats that can't be represented as JSON, such as raw binary or an
|
343
432
|
# HTML page. This message can be used both in streaming and non-streaming API
|
@@ -4045,6 +4134,160 @@ module Google
|
|
4045
4134
|
end
|
4046
4135
|
end
|
4047
4136
|
|
4137
|
+
# Distribution computed over a tuning dataset.
|
4138
|
+
class GoogleCloudAiplatformV1DatasetDistribution
|
4139
|
+
include Google::Apis::Core::Hashable
|
4140
|
+
|
4141
|
+
# Output only. Defines the histogram bucket.
|
4142
|
+
# Corresponds to the JSON property `buckets`
|
4143
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetDistributionDistributionBucket>]
|
4144
|
+
attr_accessor :buckets
|
4145
|
+
|
4146
|
+
# Output only. The maximum of the population values.
|
4147
|
+
# Corresponds to the JSON property `max`
|
4148
|
+
# @return [Float]
|
4149
|
+
attr_accessor :max
|
4150
|
+
|
4151
|
+
# Output only. The arithmetic mean of the values in the population.
|
4152
|
+
# Corresponds to the JSON property `mean`
|
4153
|
+
# @return [Float]
|
4154
|
+
attr_accessor :mean
|
4155
|
+
|
4156
|
+
# Output only. The median of the values in the population.
|
4157
|
+
# Corresponds to the JSON property `median`
|
4158
|
+
# @return [Float]
|
4159
|
+
attr_accessor :median
|
4160
|
+
|
4161
|
+
# Output only. The minimum of the population values.
|
4162
|
+
# Corresponds to the JSON property `min`
|
4163
|
+
# @return [Float]
|
4164
|
+
attr_accessor :min
|
4165
|
+
|
4166
|
+
# Output only. The 5th percentile of the values in the population.
|
4167
|
+
# Corresponds to the JSON property `p5`
|
4168
|
+
# @return [Float]
|
4169
|
+
attr_accessor :p5
|
4170
|
+
|
4171
|
+
# Output only. The 95th percentile of the values in the population.
|
4172
|
+
# Corresponds to the JSON property `p95`
|
4173
|
+
# @return [Float]
|
4174
|
+
attr_accessor :p95
|
4175
|
+
|
4176
|
+
# Output only. Sum of a given population of values.
|
4177
|
+
# Corresponds to the JSON property `sum`
|
4178
|
+
# @return [Float]
|
4179
|
+
attr_accessor :sum
|
4180
|
+
|
4181
|
+
def initialize(**args)
|
4182
|
+
update!(**args)
|
4183
|
+
end
|
4184
|
+
|
4185
|
+
# Update properties of this object
|
4186
|
+
def update!(**args)
|
4187
|
+
@buckets = args[:buckets] if args.key?(:buckets)
|
4188
|
+
@max = args[:max] if args.key?(:max)
|
4189
|
+
@mean = args[:mean] if args.key?(:mean)
|
4190
|
+
@median = args[:median] if args.key?(:median)
|
4191
|
+
@min = args[:min] if args.key?(:min)
|
4192
|
+
@p5 = args[:p5] if args.key?(:p5)
|
4193
|
+
@p95 = args[:p95] if args.key?(:p95)
|
4194
|
+
@sum = args[:sum] if args.key?(:sum)
|
4195
|
+
end
|
4196
|
+
end
|
4197
|
+
|
4198
|
+
# Dataset bucket used to create a histogram for the distribution given a
|
4199
|
+
# population of values.
|
4200
|
+
class GoogleCloudAiplatformV1DatasetDistributionDistributionBucket
|
4201
|
+
include Google::Apis::Core::Hashable
|
4202
|
+
|
4203
|
+
# Output only. Number of values in the bucket.
|
4204
|
+
# Corresponds to the JSON property `count`
|
4205
|
+
# @return [Fixnum]
|
4206
|
+
attr_accessor :count
|
4207
|
+
|
4208
|
+
# Output only. Left bound of the bucket.
|
4209
|
+
# Corresponds to the JSON property `left`
|
4210
|
+
# @return [Float]
|
4211
|
+
attr_accessor :left
|
4212
|
+
|
4213
|
+
# Output only. Right bound of the bucket.
|
4214
|
+
# Corresponds to the JSON property `right`
|
4215
|
+
# @return [Float]
|
4216
|
+
attr_accessor :right
|
4217
|
+
|
4218
|
+
def initialize(**args)
|
4219
|
+
update!(**args)
|
4220
|
+
end
|
4221
|
+
|
4222
|
+
# Update properties of this object
|
4223
|
+
def update!(**args)
|
4224
|
+
@count = args[:count] if args.key?(:count)
|
4225
|
+
@left = args[:left] if args.key?(:left)
|
4226
|
+
@right = args[:right] if args.key?(:right)
|
4227
|
+
end
|
4228
|
+
end
|
4229
|
+
|
4230
|
+
# Statistics computed over a tuning dataset.
|
4231
|
+
class GoogleCloudAiplatformV1DatasetStats
|
4232
|
+
include Google::Apis::Core::Hashable
|
4233
|
+
|
4234
|
+
# Output only. Number of billable characters in the tuning dataset.
|
4235
|
+
# Corresponds to the JSON property `totalBillableCharacterCount`
|
4236
|
+
# @return [Fixnum]
|
4237
|
+
attr_accessor :total_billable_character_count
|
4238
|
+
|
4239
|
+
# Output only. Number of tuning characters in the tuning dataset.
|
4240
|
+
# Corresponds to the JSON property `totalTuningCharacterCount`
|
4241
|
+
# @return [Fixnum]
|
4242
|
+
attr_accessor :total_tuning_character_count
|
4243
|
+
|
4244
|
+
# Output only. Number of examples in the tuning dataset.
|
4245
|
+
# Corresponds to the JSON property `tuningDatasetExampleCount`
|
4246
|
+
# @return [Fixnum]
|
4247
|
+
attr_accessor :tuning_dataset_example_count
|
4248
|
+
|
4249
|
+
# Output only. Number of tuning steps for this Tuning Job.
|
4250
|
+
# Corresponds to the JSON property `tuningStepCount`
|
4251
|
+
# @return [Fixnum]
|
4252
|
+
attr_accessor :tuning_step_count
|
4253
|
+
|
4254
|
+
# Output only. Sample user messages in the training dataset uri.
|
4255
|
+
# Corresponds to the JSON property `userDatasetExamples`
|
4256
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
4257
|
+
attr_accessor :user_dataset_examples
|
4258
|
+
|
4259
|
+
# Distribution computed over a tuning dataset.
|
4260
|
+
# Corresponds to the JSON property `userInputTokenDistribution`
|
4261
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetDistribution]
|
4262
|
+
attr_accessor :user_input_token_distribution
|
4263
|
+
|
4264
|
+
# Distribution computed over a tuning dataset.
|
4265
|
+
# Corresponds to the JSON property `userMessagePerExampleDistribution`
|
4266
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetDistribution]
|
4267
|
+
attr_accessor :user_message_per_example_distribution
|
4268
|
+
|
4269
|
+
# Distribution computed over a tuning dataset.
|
4270
|
+
# Corresponds to the JSON property `userOutputTokenDistribution`
|
4271
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetDistribution]
|
4272
|
+
attr_accessor :user_output_token_distribution
|
4273
|
+
|
4274
|
+
def initialize(**args)
|
4275
|
+
update!(**args)
|
4276
|
+
end
|
4277
|
+
|
4278
|
+
# Update properties of this object
|
4279
|
+
def update!(**args)
|
4280
|
+
@total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
|
4281
|
+
@total_tuning_character_count = args[:total_tuning_character_count] if args.key?(:total_tuning_character_count)
|
4282
|
+
@tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
|
4283
|
+
@tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
|
4284
|
+
@user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
|
4285
|
+
@user_input_token_distribution = args[:user_input_token_distribution] if args.key?(:user_input_token_distribution)
|
4286
|
+
@user_message_per_example_distribution = args[:user_message_per_example_distribution] if args.key?(:user_message_per_example_distribution)
|
4287
|
+
@user_output_token_distribution = args[:user_output_token_distribution] if args.key?(:user_output_token_distribution)
|
4288
|
+
end
|
4289
|
+
end
|
4290
|
+
|
4048
4291
|
# Describes the dataset version.
|
4049
4292
|
class GoogleCloudAiplatformV1DatasetVersion
|
4050
4293
|
include Google::Apis::Core::Hashable
|
@@ -4920,6 +5163,23 @@ module Google
|
|
4920
5163
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
4921
5164
|
attr_accessor :dedicated_resources
|
4922
5165
|
|
5166
|
+
# If the DeploymentResourcePool is deployed with custom-trained Models or AutoML
|
5167
|
+
# Tabular Models, the container(s) of the DeploymentResourcePool will send `
|
5168
|
+
# stderr` and `stdout` streams to Cloud Logging by default. Please note that the
|
5169
|
+
# logs incur cost, which are subject to [Cloud Logging pricing](https://cloud.
|
5170
|
+
# google.com/logging/pricing). User can disable container logging by setting
|
5171
|
+
# this flag to true.
|
5172
|
+
# Corresponds to the JSON property `disableContainerLogging`
|
5173
|
+
# @return [Boolean]
|
5174
|
+
attr_accessor :disable_container_logging
|
5175
|
+
alias_method :disable_container_logging?, :disable_container_logging
|
5176
|
+
|
5177
|
+
# Represents a customer-managed encryption key spec that can be applied to a top-
|
5178
|
+
# level resource.
|
5179
|
+
# Corresponds to the JSON property `encryptionSpec`
|
5180
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec]
|
5181
|
+
attr_accessor :encryption_spec
|
5182
|
+
|
4923
5183
|
# Immutable. The resource name of the DeploymentResourcePool. Format: `projects/`
|
4924
5184
|
# project`/locations/`location`/deploymentResourcePools/`
|
4925
5185
|
# deployment_resource_pool``
|
@@ -4927,6 +5187,16 @@ module Google
|
|
4927
5187
|
# @return [String]
|
4928
5188
|
attr_accessor :name
|
4929
5189
|
|
5190
|
+
# The service account that the DeploymentResourcePool's container(s) run as.
|
5191
|
+
# Specify the email address of the service account. If this service account is
|
5192
|
+
# not specified, the container(s) run as a service account that doesn't have
|
5193
|
+
# access to the resource project. Users deploying the Models to this
|
5194
|
+
# DeploymentResourcePool must have the `iam.serviceAccounts.actAs` permission on
|
5195
|
+
# this service account.
|
5196
|
+
# Corresponds to the JSON property `serviceAccount`
|
5197
|
+
# @return [String]
|
5198
|
+
attr_accessor :service_account
|
5199
|
+
|
4930
5200
|
def initialize(**args)
|
4931
5201
|
update!(**args)
|
4932
5202
|
end
|
@@ -4935,7 +5205,10 @@ module Google
|
|
4935
5205
|
def update!(**args)
|
4936
5206
|
@create_time = args[:create_time] if args.key?(:create_time)
|
4937
5207
|
@dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
|
5208
|
+
@disable_container_logging = args[:disable_container_logging] if args.key?(:disable_container_logging)
|
5209
|
+
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
4938
5210
|
@name = args[:name] if args.key?(:name)
|
5211
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
4939
5212
|
end
|
4940
5213
|
end
|
4941
5214
|
|
@@ -5090,6 +5363,25 @@ module Google
|
|
5090
5363
|
end
|
5091
5364
|
end
|
5092
5365
|
|
5366
|
+
# Statistics computed for datasets used for distillation.
|
5367
|
+
class GoogleCloudAiplatformV1DistillationDataStats
|
5368
|
+
include Google::Apis::Core::Hashable
|
5369
|
+
|
5370
|
+
# Statistics computed over a tuning dataset.
|
5371
|
+
# Corresponds to the JSON property `trainingDatasetStats`
|
5372
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetStats]
|
5373
|
+
attr_accessor :training_dataset_stats
|
5374
|
+
|
5375
|
+
def initialize(**args)
|
5376
|
+
update!(**args)
|
5377
|
+
end
|
5378
|
+
|
5379
|
+
# Update properties of this object
|
5380
|
+
def update!(**args)
|
5381
|
+
@training_dataset_stats = args[:training_dataset_stats] if args.key?(:training_dataset_stats)
|
5382
|
+
end
|
5383
|
+
end
|
5384
|
+
|
5093
5385
|
# A list of double values.
|
5094
5386
|
class GoogleCloudAiplatformV1DoubleArray
|
5095
5387
|
include Google::Apis::Core::Hashable
|
@@ -7330,6 +7622,12 @@ module Google
|
|
7330
7622
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint]
|
7331
7623
|
attr_accessor :dedicated_serving_endpoint
|
7332
7624
|
|
7625
|
+
# Represents a customer-managed encryption key spec that can be applied to a top-
|
7626
|
+
# level resource.
|
7627
|
+
# Corresponds to the JSON property `encryptionSpec`
|
7628
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec]
|
7629
|
+
attr_accessor :encryption_spec
|
7630
|
+
|
7333
7631
|
# Optional. Used to perform consistent read-modify-write updates. If not set, a
|
7334
7632
|
# blind "overwrite" update happens.
|
7335
7633
|
# Corresponds to the JSON property `etag`
|
@@ -7378,6 +7676,7 @@ module Google
|
|
7378
7676
|
@bigtable = args[:bigtable] if args.key?(:bigtable)
|
7379
7677
|
@create_time = args[:create_time] if args.key?(:create_time)
|
7380
7678
|
@dedicated_serving_endpoint = args[:dedicated_serving_endpoint] if args.key?(:dedicated_serving_endpoint)
|
7679
|
+
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
7381
7680
|
@etag = args[:etag] if args.key?(:etag)
|
7382
7681
|
@labels = args[:labels] if args.key?(:labels)
|
7383
7682
|
@name = args[:name] if args.key?(:name)
|
@@ -7637,6 +7936,11 @@ module Google
|
|
7637
7936
|
# @return [String]
|
7638
7937
|
attr_accessor :string_value
|
7639
7938
|
|
7939
|
+
# Struct (or object) type feature value.
|
7940
|
+
# Corresponds to the JSON property `structValue`
|
7941
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StructValue]
|
7942
|
+
attr_accessor :struct_value
|
7943
|
+
|
7640
7944
|
def initialize(**args)
|
7641
7945
|
update!(**args)
|
7642
7946
|
end
|
@@ -7653,6 +7957,7 @@ module Google
|
|
7653
7957
|
@metadata = args[:metadata] if args.key?(:metadata)
|
7654
7958
|
@string_array_value = args[:string_array_value] if args.key?(:string_array_value)
|
7655
7959
|
@string_value = args[:string_value] if args.key?(:string_value)
|
7960
|
+
@struct_value = args[:struct_value] if args.key?(:struct_value)
|
7656
7961
|
end
|
7657
7962
|
end
|
7658
7963
|
|
@@ -8860,6 +9165,33 @@ module Google
|
|
8860
9165
|
end
|
8861
9166
|
end
|
8862
9167
|
|
9168
|
+
# Function calling config.
|
9169
|
+
class GoogleCloudAiplatformV1FunctionCallingConfig
|
9170
|
+
include Google::Apis::Core::Hashable
|
9171
|
+
|
9172
|
+
# Optional. Function names to call. Only set when the Mode is ANY. Function
|
9173
|
+
# names should match [FunctionDeclaration.name]. With mode set to ANY, model
|
9174
|
+
# will predict a function call from the set of function names provided.
|
9175
|
+
# Corresponds to the JSON property `allowedFunctionNames`
|
9176
|
+
# @return [Array<String>]
|
9177
|
+
attr_accessor :allowed_function_names
|
9178
|
+
|
9179
|
+
# Optional. Function calling mode.
|
9180
|
+
# Corresponds to the JSON property `mode`
|
9181
|
+
# @return [String]
|
9182
|
+
attr_accessor :mode
|
9183
|
+
|
9184
|
+
def initialize(**args)
|
9185
|
+
update!(**args)
|
9186
|
+
end
|
9187
|
+
|
9188
|
+
# Update properties of this object
|
9189
|
+
def update!(**args)
|
9190
|
+
@allowed_function_names = args[:allowed_function_names] if args.key?(:allowed_function_names)
|
9191
|
+
@mode = args[:mode] if args.key?(:mode)
|
9192
|
+
end
|
9193
|
+
end
|
9194
|
+
|
8863
9195
|
# Structured representation of a function declaration as defined by the [OpenAPI
|
8864
9196
|
# 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
|
8865
9197
|
# declaration are the function name and parameters. This FunctionDeclaration is
|
@@ -9001,6 +9333,11 @@ module Google
|
|
9001
9333
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
9002
9334
|
attr_accessor :system_instruction
|
9003
9335
|
|
9336
|
+
# Tool config. This config is shared for all tools provided in the request.
|
9337
|
+
# Corresponds to the JSON property `toolConfig`
|
9338
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig]
|
9339
|
+
attr_accessor :tool_config
|
9340
|
+
|
9004
9341
|
# Optional. A list of `Tools` the model may use to generate the next response. A
|
9005
9342
|
# `Tool` is a piece of code that enables the system to interact with external
|
9006
9343
|
# systems to perform an action, or set of actions, outside of knowledge and
|
@@ -9019,6 +9356,7 @@ module Google
|
|
9019
9356
|
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
9020
9357
|
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
9021
9358
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
9359
|
+
@tool_config = args[:tool_config] if args.key?(:tool_config)
|
9022
9360
|
@tools = args[:tools] if args.key?(:tools)
|
9023
9361
|
end
|
9024
9362
|
end
|
@@ -9149,11 +9487,12 @@ module Google
|
|
9149
9487
|
# @return [String]
|
9150
9488
|
attr_accessor :response_mime_type
|
9151
9489
|
|
9152
|
-
#
|
9153
|
-
#
|
9154
|
-
#
|
9155
|
-
#
|
9156
|
-
|
9490
|
+
# Schema is used to define the format of input/output data. Represents a select
|
9491
|
+
# subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
|
9492
|
+
# schema). More fields may be added in the future as needed.
|
9493
|
+
# Corresponds to the JSON property `responseSchema`
|
9494
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema]
|
9495
|
+
attr_accessor :response_schema
|
9157
9496
|
|
9158
9497
|
# Optional. Stop sequences.
|
9159
9498
|
# Corresponds to the JSON property `stopSequences`
|
@@ -9186,7 +9525,7 @@ module Google
|
|
9186
9525
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
9187
9526
|
@presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
|
9188
9527
|
@response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
|
9189
|
-
@
|
9528
|
+
@response_schema = args[:response_schema] if args.key?(:response_schema)
|
9190
9529
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
9191
9530
|
@temperature = args[:temperature] if args.key?(:temperature)
|
9192
9531
|
@top_k = args[:top_k] if args.key?(:top_k)
|
@@ -9248,6 +9587,19 @@ module Google
|
|
9248
9587
|
end
|
9249
9588
|
end
|
9250
9589
|
|
9590
|
+
# Tool to retrieve public web data for grounding, powered by Google.
|
9591
|
+
class GoogleCloudAiplatformV1GoogleSearchRetrieval
|
9592
|
+
include Google::Apis::Core::Hashable
|
9593
|
+
|
9594
|
+
def initialize(**args)
|
9595
|
+
update!(**args)
|
9596
|
+
end
|
9597
|
+
|
9598
|
+
# Update properties of this object
|
9599
|
+
def update!(**args)
|
9600
|
+
end
|
9601
|
+
end
|
9602
|
+
|
9251
9603
|
# Metadata returned to client when grounding is enabled.
|
9252
9604
|
class GoogleCloudAiplatformV1GroundingMetadata
|
9253
9605
|
include Google::Apis::Core::Hashable
|
@@ -11973,6 +12325,11 @@ module Google
|
|
11973
12325
|
# @return [String]
|
11974
12326
|
attr_accessor :create_time
|
11975
12327
|
|
12328
|
+
# Represents Dataplex integration settings.
|
12329
|
+
# Corresponds to the JSON property `dataplexConfig`
|
12330
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataStoreDataplexConfig]
|
12331
|
+
attr_accessor :dataplex_config
|
12332
|
+
|
11976
12333
|
# Description of the MetadataStore.
|
11977
12334
|
# Corresponds to the JSON property `description`
|
11978
12335
|
# @return [String]
|
@@ -12006,6 +12363,7 @@ module Google
|
|
12006
12363
|
# Update properties of this object
|
12007
12364
|
def update!(**args)
|
12008
12365
|
@create_time = args[:create_time] if args.key?(:create_time)
|
12366
|
+
@dataplex_config = args[:dataplex_config] if args.key?(:dataplex_config)
|
12009
12367
|
@description = args[:description] if args.key?(:description)
|
12010
12368
|
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
12011
12369
|
@name = args[:name] if args.key?(:name)
|
@@ -12014,6 +12372,27 @@ module Google
|
|
12014
12372
|
end
|
12015
12373
|
end
|
12016
12374
|
|
12375
|
+
# Represents Dataplex integration settings.
|
12376
|
+
class GoogleCloudAiplatformV1MetadataStoreDataplexConfig
|
12377
|
+
include Google::Apis::Core::Hashable
|
12378
|
+
|
12379
|
+
# Optional. Whether or not Data Lineage synchronization is enabled for Vertex
|
12380
|
+
# Pipelines.
|
12381
|
+
# Corresponds to the JSON property `enabledPipelinesLineage`
|
12382
|
+
# @return [Boolean]
|
12383
|
+
attr_accessor :enabled_pipelines_lineage
|
12384
|
+
alias_method :enabled_pipelines_lineage?, :enabled_pipelines_lineage
|
12385
|
+
|
12386
|
+
def initialize(**args)
|
12387
|
+
update!(**args)
|
12388
|
+
end
|
12389
|
+
|
12390
|
+
# Update properties of this object
|
12391
|
+
def update!(**args)
|
12392
|
+
@enabled_pipelines_lineage = args[:enabled_pipelines_lineage] if args.key?(:enabled_pipelines_lineage)
|
12393
|
+
end
|
12394
|
+
end
|
12395
|
+
|
12017
12396
|
# Represents state information for a MetadataStore.
|
12018
12397
|
class GoogleCloudAiplatformV1MetadataStoreMetadataStoreState
|
12019
12398
|
include Google::Apis::Core::Hashable
|
@@ -15141,42 +15520,6 @@ module Google
|
|
15141
15520
|
end
|
15142
15521
|
end
|
15143
15522
|
|
15144
|
-
# Notebook Reservation Affinity for consuming Zonal reservation.
|
15145
|
-
class GoogleCloudAiplatformV1NotebookReservationAffinity
|
15146
|
-
include Google::Apis::Core::Hashable
|
15147
|
-
|
15148
|
-
# Required. Specifies the type of reservation from which this instance can
|
15149
|
-
# consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
|
15150
|
-
# RESERVATION_NONE. See Consuming reserved instances for examples.
|
15151
|
-
# Corresponds to the JSON property `consumeReservationType`
|
15152
|
-
# @return [String]
|
15153
|
-
attr_accessor :consume_reservation_type
|
15154
|
-
|
15155
|
-
# Optional. Corresponds to the label key of a reservation resource. To target a
|
15156
|
-
# RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
|
15157
|
-
# the key and specify the name of your reservation as its value.
|
15158
|
-
# Corresponds to the JSON property `key`
|
15159
|
-
# @return [String]
|
15160
|
-
attr_accessor :key
|
15161
|
-
|
15162
|
-
# Optional. Corresponds to the label values of a reservation resource. This must
|
15163
|
-
# be the full path name of Reservation.
|
15164
|
-
# Corresponds to the JSON property `values`
|
15165
|
-
# @return [Array<String>]
|
15166
|
-
attr_accessor :values
|
15167
|
-
|
15168
|
-
def initialize(**args)
|
15169
|
-
update!(**args)
|
15170
|
-
end
|
15171
|
-
|
15172
|
-
# Update properties of this object
|
15173
|
-
def update!(**args)
|
15174
|
-
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
15175
|
-
@key = args[:key] if args.key?(:key)
|
15176
|
-
@values = args[:values] if args.key?(:values)
|
15177
|
-
end
|
15178
|
-
end
|
15179
|
-
|
15180
15523
|
# A runtime is a virtual machine allocated to a particular user for a particular
|
15181
15524
|
# Notebook file on temporary basis with lifetime limited to 24 hours.
|
15182
15525
|
class GoogleCloudAiplatformV1NotebookRuntime
|
@@ -15198,6 +15541,12 @@ module Google
|
|
15198
15541
|
# @return [String]
|
15199
15542
|
attr_accessor :display_name
|
15200
15543
|
|
15544
|
+
# Represents a customer-managed encryption key spec that can be applied to a top-
|
15545
|
+
# level resource.
|
15546
|
+
# Corresponds to the JSON property `encryptionSpec`
|
15547
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec]
|
15548
|
+
attr_accessor :encryption_spec
|
15549
|
+
|
15201
15550
|
# Output only. Timestamp when this NotebookRuntime will be expired: 1. System
|
15202
15551
|
# Predefined NotebookRuntime: 24 hours after creation. After expiration, system
|
15203
15552
|
# predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months
|
@@ -15212,6 +15561,12 @@ module Google
|
|
15212
15561
|
# @return [String]
|
15213
15562
|
attr_accessor :health_state
|
15214
15563
|
|
15564
|
+
# The idle shutdown configuration of NotebookRuntimeTemplate, which contains the
|
15565
|
+
# idle_timeout as required field.
|
15566
|
+
# Corresponds to the JSON property `idleShutdownConfig`
|
15567
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookIdleShutdownConfig]
|
15568
|
+
attr_accessor :idle_shutdown_config
|
15569
|
+
|
15215
15570
|
# Output only. Whether NotebookRuntime is upgradable.
|
15216
15571
|
# Corresponds to the JSON property `isUpgradable`
|
15217
15572
|
# @return [Boolean]
|
@@ -15261,11 +15616,6 @@ module Google
|
|
15261
15616
|
# @return [String]
|
15262
15617
|
attr_accessor :proxy_uri
|
15263
15618
|
|
15264
|
-
# Notebook Reservation Affinity for consuming Zonal reservation.
|
15265
|
-
# Corresponds to the JSON property `reservationAffinity`
|
15266
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
15267
|
-
attr_accessor :reservation_affinity
|
15268
|
-
|
15269
15619
|
# Output only. The runtime (instance) state of the NotebookRuntime.
|
15270
15620
|
# Corresponds to the JSON property `runtimeState`
|
15271
15621
|
# @return [String]
|
@@ -15312,8 +15662,10 @@ module Google
|
|
15312
15662
|
@create_time = args[:create_time] if args.key?(:create_time)
|
15313
15663
|
@description = args[:description] if args.key?(:description)
|
15314
15664
|
@display_name = args[:display_name] if args.key?(:display_name)
|
15665
|
+
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
15315
15666
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
15316
15667
|
@health_state = args[:health_state] if args.key?(:health_state)
|
15668
|
+
@idle_shutdown_config = args[:idle_shutdown_config] if args.key?(:idle_shutdown_config)
|
15317
15669
|
@is_upgradable = args[:is_upgradable] if args.key?(:is_upgradable)
|
15318
15670
|
@labels = args[:labels] if args.key?(:labels)
|
15319
15671
|
@name = args[:name] if args.key?(:name)
|
@@ -15321,7 +15673,6 @@ module Google
|
|
15321
15673
|
@notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
|
15322
15674
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
15323
15675
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
15324
|
-
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
15325
15676
|
@runtime_state = args[:runtime_state] if args.key?(:runtime_state)
|
15326
15677
|
@runtime_user = args[:runtime_user] if args.key?(:runtime_user)
|
15327
15678
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
@@ -15359,6 +15710,12 @@ module Google
|
|
15359
15710
|
# @return [String]
|
15360
15711
|
attr_accessor :display_name
|
15361
15712
|
|
15713
|
+
# Represents a customer-managed encryption key spec that can be applied to a top-
|
15714
|
+
# level resource.
|
15715
|
+
# Corresponds to the JSON property `encryptionSpec`
|
15716
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec]
|
15717
|
+
attr_accessor :encryption_spec
|
15718
|
+
|
15362
15719
|
# Used to perform consistent read-modify-write updates. If not set, a blind "
|
15363
15720
|
# overwrite" update happens.
|
15364
15721
|
# Corresponds to the JSON property `etag`
|
@@ -15417,11 +15774,6 @@ module Google
|
|
15417
15774
|
# @return [String]
|
15418
15775
|
attr_accessor :notebook_runtime_type
|
15419
15776
|
|
15420
|
-
# Notebook Reservation Affinity for consuming Zonal reservation.
|
15421
|
-
# Corresponds to the JSON property `reservationAffinity`
|
15422
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
15423
|
-
attr_accessor :reservation_affinity
|
15424
|
-
|
15425
15777
|
# The service account that the runtime workload runs as. You can use any service
|
15426
15778
|
# account within the same project, but you must have the service account user
|
15427
15779
|
# permission to use the instance. If not specified, the [Compute Engine default
|
@@ -15454,6 +15806,7 @@ module Google
|
|
15454
15806
|
@data_persistent_disk_spec = args[:data_persistent_disk_spec] if args.key?(:data_persistent_disk_spec)
|
15455
15807
|
@description = args[:description] if args.key?(:description)
|
15456
15808
|
@display_name = args[:display_name] if args.key?(:display_name)
|
15809
|
+
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
15457
15810
|
@etag = args[:etag] if args.key?(:etag)
|
15458
15811
|
@euc_config = args[:euc_config] if args.key?(:euc_config)
|
15459
15812
|
@idle_shutdown_config = args[:idle_shutdown_config] if args.key?(:idle_shutdown_config)
|
@@ -15464,7 +15817,6 @@ module Google
|
|
15464
15817
|
@network_spec = args[:network_spec] if args.key?(:network_spec)
|
15465
15818
|
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
15466
15819
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
15467
|
-
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
15468
15820
|
@service_account = args[:service_account] if args.key?(:service_account)
|
15469
15821
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
15470
15822
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -17490,18 +17842,73 @@ module Google
|
|
17490
17842
|
end
|
17491
17843
|
end
|
17492
17844
|
|
17845
|
+
# Configuration for the Ray metrics.
|
17846
|
+
class GoogleCloudAiplatformV1RayMetricSpec
|
17847
|
+
include Google::Apis::Core::Hashable
|
17848
|
+
|
17849
|
+
# Optional. Flag to disable the Ray metrics collection.
|
17850
|
+
# Corresponds to the JSON property `disabled`
|
17851
|
+
# @return [Boolean]
|
17852
|
+
attr_accessor :disabled
|
17853
|
+
alias_method :disabled?, :disabled
|
17854
|
+
|
17855
|
+
def initialize(**args)
|
17856
|
+
update!(**args)
|
17857
|
+
end
|
17858
|
+
|
17859
|
+
# Update properties of this object
|
17860
|
+
def update!(**args)
|
17861
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
17862
|
+
end
|
17863
|
+
end
|
17864
|
+
|
17493
17865
|
# Configuration information for the Ray cluster. For experimental launch, Ray
|
17494
17866
|
# cluster creation and Persistent cluster creation are 1:1 mapping: We will
|
17495
17867
|
# provision all the nodes within the Persistent cluster as Ray nodes.
|
17496
17868
|
class GoogleCloudAiplatformV1RaySpec
|
17497
17869
|
include Google::Apis::Core::Hashable
|
17498
17870
|
|
17871
|
+
# Optional. This will be used to indicate which resource pool will serve as the
|
17872
|
+
# Ray head node(the first node within that pool). Will use the machine from the
|
17873
|
+
# first workerpool as the head node by default if this field isn't set.
|
17874
|
+
# Corresponds to the JSON property `headNodeResourcePoolId`
|
17875
|
+
# @return [String]
|
17876
|
+
attr_accessor :head_node_resource_pool_id
|
17877
|
+
|
17878
|
+
# Optional. Default image for user to choose a preferred ML framework (for
|
17879
|
+
# example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](
|
17880
|
+
# https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either
|
17881
|
+
# this or the resource_pool_images is required. Use this field if you need all
|
17882
|
+
# the resource pools to have the same Ray image. Otherwise, use the `@code
|
17883
|
+
# resource_pool_images` field.
|
17884
|
+
# Corresponds to the JSON property `imageUri`
|
17885
|
+
# @return [String]
|
17886
|
+
attr_accessor :image_uri
|
17887
|
+
|
17888
|
+
# Configuration for the Ray metrics.
|
17889
|
+
# Corresponds to the JSON property `rayMetricSpec`
|
17890
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RayMetricSpec]
|
17891
|
+
attr_accessor :ray_metric_spec
|
17892
|
+
|
17893
|
+
# Optional. Required if image_uri isn't set. A map of resource_pool_id to
|
17894
|
+
# prebuild Ray image if user need to use different images for different head/
|
17895
|
+
# worker pools. This map needs to cover all the resource pool ids. Example: ` "
|
17896
|
+
# ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "
|
17897
|
+
# ray_worker_node_pool2": "another worker image" `
|
17898
|
+
# Corresponds to the JSON property `resourcePoolImages`
|
17899
|
+
# @return [Hash<String,String>]
|
17900
|
+
attr_accessor :resource_pool_images
|
17901
|
+
|
17499
17902
|
def initialize(**args)
|
17500
17903
|
update!(**args)
|
17501
17904
|
end
|
17502
17905
|
|
17503
17906
|
# Update properties of this object
|
17504
17907
|
def update!(**args)
|
17908
|
+
@head_node_resource_pool_id = args[:head_node_resource_pool_id] if args.key?(:head_node_resource_pool_id)
|
17909
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
17910
|
+
@ray_metric_spec = args[:ray_metric_spec] if args.key?(:ray_metric_spec)
|
17911
|
+
@resource_pool_images = args[:resource_pool_images] if args.key?(:resource_pool_images)
|
17505
17912
|
end
|
17506
17913
|
end
|
17507
17914
|
|
@@ -17861,6 +18268,31 @@ module Google
|
|
17861
18268
|
end
|
17862
18269
|
end
|
17863
18270
|
|
18271
|
+
# Statistics computed for datasets used for reinforcement learning.
|
18272
|
+
class GoogleCloudAiplatformV1ReinforcementLearningDataStats
|
18273
|
+
include Google::Apis::Core::Hashable
|
18274
|
+
|
18275
|
+
# Statistics computed over a tuning dataset.
|
18276
|
+
# Corresponds to the JSON property `preferenceDatasetStats`
|
18277
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetStats]
|
18278
|
+
attr_accessor :preference_dataset_stats
|
18279
|
+
|
18280
|
+
# Statistics computed over a tuning dataset.
|
18281
|
+
# Corresponds to the JSON property `promptDatasetStats`
|
18282
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetStats]
|
18283
|
+
attr_accessor :prompt_dataset_stats
|
18284
|
+
|
18285
|
+
def initialize(**args)
|
18286
|
+
update!(**args)
|
18287
|
+
end
|
18288
|
+
|
18289
|
+
# Update properties of this object
|
18290
|
+
def update!(**args)
|
18291
|
+
@preference_dataset_stats = args[:preference_dataset_stats] if args.key?(:preference_dataset_stats)
|
18292
|
+
@prompt_dataset_stats = args[:prompt_dataset_stats] if args.key?(:prompt_dataset_stats)
|
18293
|
+
end
|
18294
|
+
end
|
18295
|
+
|
17864
18296
|
# Request message for MetadataService.DeleteContextChildrenRequest.
|
17865
18297
|
class GoogleCloudAiplatformV1RemoveContextChildrenRequest
|
17866
18298
|
include Google::Apis::Core::Hashable
|
@@ -18009,12 +18441,20 @@ module Google
|
|
18009
18441
|
class GoogleCloudAiplatformV1ResourceRuntime
|
18010
18442
|
include Google::Apis::Core::Hashable
|
18011
18443
|
|
18444
|
+
# Output only. URIs for user to connect to the Cluster. Example: ` "
|
18445
|
+
# RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" "RAY_DASHBOARD_URI": "ray-
|
18446
|
+
# dashboard-address:8888" `
|
18447
|
+
# Corresponds to the JSON property `accessUris`
|
18448
|
+
# @return [Hash<String,String>]
|
18449
|
+
attr_accessor :access_uris
|
18450
|
+
|
18012
18451
|
def initialize(**args)
|
18013
18452
|
update!(**args)
|
18014
18453
|
end
|
18015
18454
|
|
18016
18455
|
# Update properties of this object
|
18017
18456
|
def update!(**args)
|
18457
|
+
@access_uris = args[:access_uris] if args.key?(:access_uris)
|
18018
18458
|
end
|
18019
18459
|
end
|
18020
18460
|
|
@@ -21643,6 +22083,12 @@ module Google
|
|
21643
22083
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig]
|
21644
22084
|
attr_accessor :grounding_config
|
21645
22085
|
|
22086
|
+
# Whether the prompt dataset has prompt variable.
|
22087
|
+
# Corresponds to the JSON property `hasPromptVariable`
|
22088
|
+
# @return [Boolean]
|
22089
|
+
attr_accessor :has_prompt_variable
|
22090
|
+
alias_method :has_prompt_variable?, :has_prompt_variable
|
22091
|
+
|
21646
22092
|
# Value of the maximum number of tokens generated set when the dataset was saved.
|
21647
22093
|
# Corresponds to the JSON property `maxOutputTokens`
|
21648
22094
|
# @return [Fixnum]
|
@@ -21663,6 +22109,11 @@ module Google
|
|
21663
22109
|
# @return [Array<String>]
|
21664
22110
|
attr_accessor :stop_sequences
|
21665
22111
|
|
22112
|
+
# The content of the prompt dataset system instruction.
|
22113
|
+
# Corresponds to the JSON property `systemInstruction`
|
22114
|
+
# @return [String]
|
22115
|
+
attr_accessor :system_instruction
|
22116
|
+
|
21666
22117
|
# The Google Cloud Storage URI that stores the system instruction, starting with
|
21667
22118
|
# gs://.
|
21668
22119
|
# Corresponds to the JSON property `systemInstructionGcsUri`
|
@@ -21702,10 +22153,12 @@ module Google
|
|
21702
22153
|
@candidate_count = args[:candidate_count] if args.key?(:candidate_count)
|
21703
22154
|
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
21704
22155
|
@grounding_config = args[:grounding_config] if args.key?(:grounding_config)
|
22156
|
+
@has_prompt_variable = args[:has_prompt_variable] if args.key?(:has_prompt_variable)
|
21705
22157
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
21706
22158
|
@note = args[:note] if args.key?(:note)
|
21707
22159
|
@prompt_type = args[:prompt_type] if args.key?(:prompt_type)
|
21708
22160
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
22161
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
21709
22162
|
@system_instruction_gcs_uri = args[:system_instruction_gcs_uri] if args.key?(:system_instruction_gcs_uri)
|
21710
22163
|
@temperature = args[:temperature] if args.key?(:temperature)
|
21711
22164
|
@text = args[:text] if args.key?(:text)
|
@@ -25624,6 +26077,50 @@ module Google
|
|
25624
26077
|
end
|
25625
26078
|
end
|
25626
26079
|
|
26080
|
+
# One field of a Struct (or object) type feature value.
|
26081
|
+
class GoogleCloudAiplatformV1StructFieldValue
|
26082
|
+
include Google::Apis::Core::Hashable
|
26083
|
+
|
26084
|
+
# Name of the field in the struct feature.
|
26085
|
+
# Corresponds to the JSON property `name`
|
26086
|
+
# @return [String]
|
26087
|
+
attr_accessor :name
|
26088
|
+
|
26089
|
+
# Value for a feature.
|
26090
|
+
# Corresponds to the JSON property `value`
|
26091
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureValue]
|
26092
|
+
attr_accessor :value
|
26093
|
+
|
26094
|
+
def initialize(**args)
|
26095
|
+
update!(**args)
|
26096
|
+
end
|
26097
|
+
|
26098
|
+
# Update properties of this object
|
26099
|
+
def update!(**args)
|
26100
|
+
@name = args[:name] if args.key?(:name)
|
26101
|
+
@value = args[:value] if args.key?(:value)
|
26102
|
+
end
|
26103
|
+
end
|
26104
|
+
|
26105
|
+
# Struct (or object) type feature value.
|
26106
|
+
class GoogleCloudAiplatformV1StructValue
|
26107
|
+
include Google::Apis::Core::Hashable
|
26108
|
+
|
26109
|
+
# A list of field values.
|
26110
|
+
# Corresponds to the JSON property `values`
|
26111
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StructFieldValue>]
|
26112
|
+
attr_accessor :values
|
26113
|
+
|
26114
|
+
def initialize(**args)
|
26115
|
+
update!(**args)
|
26116
|
+
end
|
26117
|
+
|
26118
|
+
# Update properties of this object
|
26119
|
+
def update!(**args)
|
26120
|
+
@values = args[:values] if args.key?(:values)
|
26121
|
+
end
|
26122
|
+
end
|
26123
|
+
|
25627
26124
|
# A message representing a Study.
|
25628
26125
|
class GoogleCloudAiplatformV1Study
|
25629
26126
|
include Google::Apis::Core::Hashable
|
@@ -27438,6 +27935,11 @@ module Google
|
|
27438
27935
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionDeclaration>]
|
27439
27936
|
attr_accessor :function_declarations
|
27440
27937
|
|
27938
|
+
# Tool to retrieve public web data for grounding, powered by Google.
|
27939
|
+
# Corresponds to the JSON property `googleSearchRetrieval`
|
27940
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval]
|
27941
|
+
attr_accessor :google_search_retrieval
|
27942
|
+
|
27441
27943
|
# Defines a retrieval tool that model can call to access external knowledge.
|
27442
27944
|
# Corresponds to the JSON property `retrieval`
|
27443
27945
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval]
|
@@ -27450,10 +27952,30 @@ module Google
|
|
27450
27952
|
# Update properties of this object
|
27451
27953
|
def update!(**args)
|
27452
27954
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
27955
|
+
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
|
27453
27956
|
@retrieval = args[:retrieval] if args.key?(:retrieval)
|
27454
27957
|
end
|
27455
27958
|
end
|
27456
27959
|
|
27960
|
+
# Tool config. This config is shared for all tools provided in the request.
|
27961
|
+
class GoogleCloudAiplatformV1ToolConfig
|
27962
|
+
include Google::Apis::Core::Hashable
|
27963
|
+
|
27964
|
+
# Function calling config.
|
27965
|
+
# Corresponds to the JSON property `functionCallingConfig`
|
27966
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCallingConfig]
|
27967
|
+
attr_accessor :function_calling_config
|
27968
|
+
|
27969
|
+
def initialize(**args)
|
27970
|
+
update!(**args)
|
27971
|
+
end
|
27972
|
+
|
27973
|
+
# Update properties of this object
|
27974
|
+
def update!(**args)
|
27975
|
+
@function_calling_config = args[:function_calling_config] if args.key?(:function_calling_config)
|
27976
|
+
end
|
27977
|
+
end
|
27978
|
+
|
27457
27979
|
# CMLE training config. For every active learning labeling iteration, system
|
27458
27980
|
# will train a machine learning model on CMLE. The trained model will be used by
|
27459
27981
|
# data sampling algorithm to select DataItems.
|
@@ -27822,6 +28344,16 @@ module Google
|
|
27822
28344
|
class GoogleCloudAiplatformV1TuningDataStats
|
27823
28345
|
include Google::Apis::Core::Hashable
|
27824
28346
|
|
28347
|
+
# Statistics computed for datasets used for distillation.
|
28348
|
+
# Corresponds to the JSON property `distillationDataStats`
|
28349
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DistillationDataStats]
|
28350
|
+
attr_accessor :distillation_data_stats
|
28351
|
+
|
28352
|
+
# Statistics computed for datasets used for reinforcement learning.
|
28353
|
+
# Corresponds to the JSON property `reinforcementLearningDataStats`
|
28354
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReinforcementLearningDataStats]
|
28355
|
+
attr_accessor :reinforcement_learning_data_stats
|
28356
|
+
|
27825
28357
|
# Tuning data statistics for Supervised Tuning.
|
27826
28358
|
# Corresponds to the JSON property `supervisedTuningDataStats`
|
27827
28359
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDataStats]
|
@@ -27833,6 +28365,8 @@ module Google
|
|
27833
28365
|
|
27834
28366
|
# Update properties of this object
|
27835
28367
|
def update!(**args)
|
28368
|
+
@distillation_data_stats = args[:distillation_data_stats] if args.key?(:distillation_data_stats)
|
28369
|
+
@reinforcement_learning_data_stats = args[:reinforcement_learning_data_stats] if args.key?(:reinforcement_learning_data_stats)
|
27836
28370
|
@supervised_tuning_data_stats = args[:supervised_tuning_data_stats] if args.key?(:supervised_tuning_data_stats)
|
27837
28371
|
end
|
27838
28372
|
end
|