google-apis-aiplatform_v1 0.43.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,11 @@ module Google
|
|
41
41
|
# @return [Array<String>]
|
42
42
|
attr_accessor :rai_media_filtered_reasons
|
43
43
|
|
44
|
+
# List of videos, used to align naming with the external response.
|
45
|
+
# Corresponds to the JSON property `videos`
|
46
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionGenerateVideoResponseVideo>]
|
47
|
+
attr_accessor :videos
|
48
|
+
|
44
49
|
def initialize(**args)
|
45
50
|
update!(**args)
|
46
51
|
end
|
@@ -50,6 +55,38 @@ module Google
|
|
50
55
|
@generated_samples = args[:generated_samples] if args.key?(:generated_samples)
|
51
56
|
@rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
|
52
57
|
@rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
|
58
|
+
@videos = args[:videos] if args.key?(:videos)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
class CloudAiLargeModelsVisionGenerateVideoResponseVideo
|
64
|
+
include Google::Apis::Core::Hashable
|
65
|
+
|
66
|
+
# Base64 encoded bytes string representing the video.
|
67
|
+
# Corresponds to the JSON property `bytesBase64Encoded`
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :bytes_base64_encoded
|
70
|
+
|
71
|
+
# Cloud Storage URI where the generated video is written.
|
72
|
+
# Corresponds to the JSON property `gcsUri`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :gcs_uri
|
75
|
+
|
76
|
+
# The MIME type of the content of the video. - video/mp4
|
77
|
+
# Corresponds to the JSON property `mimeType`
|
78
|
+
# @return [String]
|
79
|
+
attr_accessor :mime_type
|
80
|
+
|
81
|
+
def initialize(**args)
|
82
|
+
update!(**args)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update properties of this object
|
86
|
+
def update!(**args)
|
87
|
+
@bytes_base64_encoded = args[:bytes_base64_encoded] if args.key?(:bytes_base64_encoded)
|
88
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
89
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
53
90
|
end
|
54
91
|
end
|
55
92
|
|
@@ -450,6 +487,11 @@ module Google
|
|
450
487
|
# @return [String]
|
451
488
|
attr_accessor :encoding
|
452
489
|
|
490
|
+
# Text/Expanded text input for Help Me Write.
|
491
|
+
# Corresponds to the JSON property `text`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :text
|
494
|
+
|
453
495
|
# Path to another storage (typically Google Cloud Storage).
|
454
496
|
# Corresponds to the JSON property `uri`
|
455
497
|
# @return [String]
|
@@ -469,12 +511,13 @@ module Google
|
|
469
511
|
def update!(**args)
|
470
512
|
@encoded_video = args[:encoded_video] if args.key?(:encoded_video)
|
471
513
|
@encoding = args[:encoding] if args.key?(:encoding)
|
514
|
+
@text = args[:text] if args.key?(:text)
|
472
515
|
@uri = args[:uri] if args.key?(:uri)
|
473
516
|
@video = args[:video] if args.key?(:video)
|
474
517
|
end
|
475
518
|
end
|
476
519
|
|
477
|
-
# Create API error message for Vertex Pipeline.
|
520
|
+
# Create API error message for Vertex Pipeline.
|
478
521
|
class CloudAiPlatformCommonCreatePipelineJobApiErrorDetail
|
479
522
|
include Google::Apis::Core::Hashable
|
480
523
|
|
@@ -840,7 +883,8 @@ module Google
|
|
840
883
|
end
|
841
884
|
end
|
842
885
|
|
843
|
-
# The generic reusable api auth config.
|
886
|
+
# The generic reusable api auth config. Deprecated. Please use AuthConfig (
|
887
|
+
# google/cloud/aiplatform/master/auth.proto) instead.
|
844
888
|
class GoogleCloudAiplatformV1ApiAuth
|
845
889
|
include Google::Apis::Core::Hashable
|
846
890
|
|
@@ -1220,22 +1264,22 @@ module Google
|
|
1220
1264
|
class GoogleCloudAiplatformV1AutomaticResources
|
1221
1265
|
include Google::Apis::Core::Hashable
|
1222
1266
|
|
1223
|
-
# Immutable. The maximum number of replicas
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
#
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
#
|
1267
|
+
# Immutable. The maximum number of replicas that may be deployed on when the
|
1268
|
+
# traffic against it increases. If the requested value is too large, the
|
1269
|
+
# deployment will error, but if deployment succeeds then the ability to scale to
|
1270
|
+
# that many replicas is guaranteed (barring service outages). If traffic
|
1271
|
+
# increases beyond what its replicas at maximum may handle, a portion of the
|
1272
|
+
# traffic will be dropped. If this value is not provided, a no upper bound for
|
1273
|
+
# scaling under heavy traffic will be assume, though Vertex AI may be unable to
|
1274
|
+
# scale beyond certain replica number.
|
1231
1275
|
# Corresponds to the JSON property `maxReplicaCount`
|
1232
1276
|
# @return [Fixnum]
|
1233
1277
|
attr_accessor :max_replica_count
|
1234
1278
|
|
1235
|
-
# Immutable. The minimum number of replicas
|
1236
|
-
#
|
1237
|
-
#
|
1238
|
-
#
|
1279
|
+
# Immutable. The minimum number of replicas that will be always deployed on. If
|
1280
|
+
# traffic against it increases, it may dynamically be deployed onto more
|
1281
|
+
# replicas up to max_replica_count, and as traffic decreases, some of these
|
1282
|
+
# extra replicas may be freed. If the requested value is too large, the
|
1239
1283
|
# deployment will error.
|
1240
1284
|
# Corresponds to the JSON property `minReplicaCount`
|
1241
1285
|
# @return [Fixnum]
|
@@ -1252,6 +1296,48 @@ module Google
|
|
1252
1296
|
end
|
1253
1297
|
end
|
1254
1298
|
|
1299
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
1300
|
+
# EvaluateDataset.
|
1301
|
+
class GoogleCloudAiplatformV1AutoraterConfig
|
1302
|
+
include Google::Apis::Core::Hashable
|
1303
|
+
|
1304
|
+
# Optional. The fully qualified name of the publisher model or tuned autorater
|
1305
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
1306
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
1307
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
1308
|
+
# Corresponds to the JSON property `autoraterModel`
|
1309
|
+
# @return [String]
|
1310
|
+
attr_accessor :autorater_model
|
1311
|
+
|
1312
|
+
# Optional. Whether to flip the candidate and baseline responses. This is only
|
1313
|
+
# applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.
|
1314
|
+
# candidate_response_field_name and PairwiseMetricSpec.
|
1315
|
+
# baseline_response_field_name. When rendering PairwiseMetricSpec.
|
1316
|
+
# metric_prompt_template, the candidate and baseline fields will be flipped for
|
1317
|
+
# half of the samples to reduce bias.
|
1318
|
+
# Corresponds to the JSON property `flipEnabled`
|
1319
|
+
# @return [Boolean]
|
1320
|
+
attr_accessor :flip_enabled
|
1321
|
+
alias_method :flip_enabled?, :flip_enabled
|
1322
|
+
|
1323
|
+
# Optional. Number of samples for each instance in the dataset. If not specified,
|
1324
|
+
# the default is 4. Minimum value is 1, maximum value is 32.
|
1325
|
+
# Corresponds to the JSON property `samplingCount`
|
1326
|
+
# @return [Fixnum]
|
1327
|
+
attr_accessor :sampling_count
|
1328
|
+
|
1329
|
+
def initialize(**args)
|
1330
|
+
update!(**args)
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# Update properties of this object
|
1334
|
+
def update!(**args)
|
1335
|
+
@autorater_model = args[:autorater_model] if args.key?(:autorater_model)
|
1336
|
+
@flip_enabled = args[:flip_enabled] if args.key?(:flip_enabled)
|
1337
|
+
@sampling_count = args[:sampling_count] if args.key?(:sampling_count)
|
1338
|
+
end
|
1339
|
+
end
|
1340
|
+
|
1255
1341
|
# The metric specification that defines the target resource utilization (CPU
|
1256
1342
|
# utilization, accelerator's duty cycle, and so on) for calculating the desired
|
1257
1343
|
# replica count.
|
@@ -2447,6 +2533,13 @@ module Google
|
|
2447
2533
|
# @return [String]
|
2448
2534
|
attr_accessor :data
|
2449
2535
|
|
2536
|
+
# Optional. Display name of the blob. Used to provide a label or filename to
|
2537
|
+
# distinguish blobs. This field is only returned in PromptMessage for prompt
|
2538
|
+
# management. It is not currently used in the Gemini GenerateContent calls.
|
2539
|
+
# Corresponds to the JSON property `displayName`
|
2540
|
+
# @return [String]
|
2541
|
+
attr_accessor :display_name
|
2542
|
+
|
2450
2543
|
# Required. The IANA standard MIME type of the source data.
|
2451
2544
|
# Corresponds to the JSON property `mimeType`
|
2452
2545
|
# @return [String]
|
@@ -2459,6 +2552,7 @@ module Google
|
|
2459
2552
|
# Update properties of this object
|
2460
2553
|
def update!(**args)
|
2461
2554
|
@data = args[:data] if args.key?(:data)
|
2555
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2462
2556
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
2463
2557
|
end
|
2464
2558
|
end
|
@@ -2543,7 +2637,7 @@ module Google
|
|
2543
2637
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
2544
2638
|
attr_accessor :contents
|
2545
2639
|
|
2546
|
-
# Output only.
|
2640
|
+
# Output only. Creation time of the cache entry.
|
2547
2641
|
# Corresponds to the JSON property `createTime`
|
2548
2642
|
# @return [String]
|
2549
2643
|
attr_accessor :create_time
|
@@ -2560,8 +2654,9 @@ module Google
|
|
2560
2654
|
# @return [String]
|
2561
2655
|
attr_accessor :expire_time
|
2562
2656
|
|
2563
|
-
# Immutable. The name of the
|
2564
|
-
# projects/`
|
2657
|
+
# Immutable. The name of the `Model` to use for cached content. Currently, only
|
2658
|
+
# the published Gemini base models are supported, in form of projects/`PROJECT`/
|
2659
|
+
# locations/`LOCATION`/publishers/google/models/`MODEL`
|
2565
2660
|
# Corresponds to the JSON property `model`
|
2566
2661
|
# @return [String]
|
2567
2662
|
attr_accessor :model
|
@@ -3045,6 +3140,33 @@ module Google
|
|
3045
3140
|
end
|
3046
3141
|
end
|
3047
3142
|
|
3143
|
+
# Result of executing the [ExecutableCode]. Always follows a `part` containing
|
3144
|
+
# the [ExecutableCode].
|
3145
|
+
class GoogleCloudAiplatformV1CodeExecutionResult
|
3146
|
+
include Google::Apis::Core::Hashable
|
3147
|
+
|
3148
|
+
# Required. Outcome of the code execution.
|
3149
|
+
# Corresponds to the JSON property `outcome`
|
3150
|
+
# @return [String]
|
3151
|
+
attr_accessor :outcome
|
3152
|
+
|
3153
|
+
# Optional. Contains stdout when code execution is successful, stderr or other
|
3154
|
+
# description otherwise.
|
3155
|
+
# Corresponds to the JSON property `output`
|
3156
|
+
# @return [String]
|
3157
|
+
attr_accessor :output
|
3158
|
+
|
3159
|
+
def initialize(**args)
|
3160
|
+
update!(**args)
|
3161
|
+
end
|
3162
|
+
|
3163
|
+
# Update properties of this object
|
3164
|
+
def update!(**args)
|
3165
|
+
@outcome = args[:outcome] if args.key?(:outcome)
|
3166
|
+
@output = args[:output] if args.key?(:output)
|
3167
|
+
end
|
3168
|
+
end
|
3169
|
+
|
3048
3170
|
# Input for coherence metric.
|
3049
3171
|
class GoogleCloudAiplatformV1CoherenceInput
|
3050
3172
|
include Google::Apis::Core::Hashable
|
@@ -3824,6 +3946,11 @@ module Google
|
|
3824
3946
|
class GoogleCloudAiplatformV1CountTokensResponse
|
3825
3947
|
include Google::Apis::Core::Hashable
|
3826
3948
|
|
3949
|
+
# Output only. List of modalities that were processed in the request input.
|
3950
|
+
# Corresponds to the JSON property `promptTokensDetails`
|
3951
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
3952
|
+
attr_accessor :prompt_tokens_details
|
3953
|
+
|
3827
3954
|
# The total number of billable characters counted across all instances from the
|
3828
3955
|
# request.
|
3829
3956
|
# Corresponds to the JSON property `totalBillableCharacters`
|
@@ -3841,6 +3968,7 @@ module Google
|
|
3841
3968
|
|
3842
3969
|
# Update properties of this object
|
3843
3970
|
def update!(**args)
|
3971
|
+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
|
3844
3972
|
@total_billable_characters = args[:total_billable_characters] if args.key?(:total_billable_characters)
|
3845
3973
|
@total_tokens = args[:total_tokens] if args.key?(:total_tokens)
|
3846
3974
|
end
|
@@ -5172,7 +5300,9 @@ module Google
|
|
5172
5300
|
# @return [String]
|
5173
5301
|
attr_accessor :model_reference
|
5174
5302
|
|
5175
|
-
# Output only. Identifier. The resource name of the DatasetVersion.
|
5303
|
+
# Output only. Identifier. The resource name of the DatasetVersion. Format: `
|
5304
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
5305
|
+
# dataset_version``
|
5176
5306
|
# Corresponds to the JSON property `name`
|
5177
5307
|
# @return [String]
|
5178
5308
|
attr_accessor :name
|
@@ -5213,8 +5343,8 @@ module Google
|
|
5213
5343
|
end
|
5214
5344
|
end
|
5215
5345
|
|
5216
|
-
# A description of resources that are dedicated to a DeployedModel
|
5217
|
-
# need a higher degree of manual configuration.
|
5346
|
+
# A description of resources that are dedicated to a DeployedModel or
|
5347
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5218
5348
|
class GoogleCloudAiplatformV1DedicatedResources
|
5219
5349
|
include Google::Apis::Core::Hashable
|
5220
5350
|
|
@@ -5240,36 +5370,33 @@ module Google
|
|
5240
5370
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MachineSpec]
|
5241
5371
|
attr_accessor :machine_spec
|
5242
5372
|
|
5243
|
-
# Immutable. The maximum number of replicas
|
5244
|
-
#
|
5245
|
-
#
|
5246
|
-
#
|
5247
|
-
#
|
5248
|
-
#
|
5249
|
-
#
|
5250
|
-
#
|
5251
|
-
#
|
5252
|
-
#
|
5253
|
-
# selected machine type).
|
5373
|
+
# Immutable. The maximum number of replicas that may be deployed on when the
|
5374
|
+
# traffic against it increases. If the requested value is too large, the
|
5375
|
+
# deployment will error, but if deployment succeeds then the ability to scale to
|
5376
|
+
# that many replicas is guaranteed (barring service outages). If traffic
|
5377
|
+
# increases beyond what its replicas at maximum may handle, a portion of the
|
5378
|
+
# traffic will be dropped. If this value is not provided, will use
|
5379
|
+
# min_replica_count as the default value. The value of this field impacts the
|
5380
|
+
# charge against Vertex CPU and GPU quotas. Specifically, you will be charged
|
5381
|
+
# for (max_replica_count * number of cores in the selected machine type) and (
|
5382
|
+
# max_replica_count * number of GPUs per replica in the selected machine type).
|
5254
5383
|
# Corresponds to the JSON property `maxReplicaCount`
|
5255
5384
|
# @return [Fixnum]
|
5256
5385
|
attr_accessor :max_replica_count
|
5257
5386
|
|
5258
|
-
# Required. Immutable. The minimum number of machine replicas
|
5259
|
-
#
|
5260
|
-
#
|
5261
|
-
#
|
5262
|
-
# be freed.
|
5387
|
+
# Required. Immutable. The minimum number of machine replicas that will be
|
5388
|
+
# always deployed on. This value must be greater than or equal to 1. If traffic
|
5389
|
+
# increases, it may dynamically be deployed onto more replicas, and as traffic
|
5390
|
+
# decreases, some of these extra replicas may be freed.
|
5263
5391
|
# Corresponds to the JSON property `minReplicaCount`
|
5264
5392
|
# @return [Fixnum]
|
5265
5393
|
attr_accessor :min_replica_count
|
5266
5394
|
|
5267
5395
|
# Optional. Number of required available replicas for the deployment to succeed.
|
5268
|
-
# This field is only needed when partial
|
5269
|
-
#
|
5270
|
-
#
|
5271
|
-
#
|
5272
|
-
# be min_replica_count.
|
5396
|
+
# This field is only needed when partial deployment/mutation is desired. If set,
|
5397
|
+
# the deploy/mutate operation will succeed once available_replica_count reaches
|
5398
|
+
# required_replica_count, and the rest of the replicas will be retried. If not
|
5399
|
+
# set, the default required_replica_count will be min_replica_count.
|
5273
5400
|
# Corresponds to the JSON property `requiredReplicaCount`
|
5274
5401
|
# @return [Fixnum]
|
5275
5402
|
attr_accessor :required_replica_count
|
@@ -5684,8 +5811,8 @@ module Google
|
|
5684
5811
|
# @return [String]
|
5685
5812
|
attr_accessor :create_time
|
5686
5813
|
|
5687
|
-
# A description of resources that are dedicated to a DeployedModel
|
5688
|
-
# need a higher degree of manual configuration.
|
5814
|
+
# A description of resources that are dedicated to a DeployedModel or
|
5815
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5689
5816
|
# Corresponds to the JSON property `dedicatedResources`
|
5690
5817
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
5691
5818
|
attr_accessor :dedicated_resources
|
@@ -5897,8 +6024,8 @@ module Google
|
|
5897
6024
|
# @return [String]
|
5898
6025
|
attr_accessor :create_time
|
5899
6026
|
|
5900
|
-
# A description of resources that are dedicated to a DeployedModel
|
5901
|
-
# need a higher degree of manual configuration.
|
6027
|
+
# A description of resources that are dedicated to a DeployedModel or
|
6028
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5902
6029
|
# Corresponds to the JSON property `dedicatedResources`
|
5903
6030
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
5904
6031
|
attr_accessor :dedicated_resources
|
@@ -5992,6 +6119,11 @@ module Google
|
|
5992
6119
|
# @return [String]
|
5993
6120
|
attr_accessor :shared_resources
|
5994
6121
|
|
6122
|
+
# Configuration for Speculative Decoding.
|
6123
|
+
# Corresponds to the JSON property `speculativeDecodingSpec`
|
6124
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpec]
|
6125
|
+
attr_accessor :speculative_decoding_spec
|
6126
|
+
|
5995
6127
|
# Runtime status of the deployed model.
|
5996
6128
|
# Corresponds to the JSON property `status`
|
5997
6129
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployedModelStatus]
|
@@ -6024,6 +6156,7 @@ module Google
|
|
6024
6156
|
@private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
|
6025
6157
|
@service_account = args[:service_account] if args.key?(:service_account)
|
6026
6158
|
@shared_resources = args[:shared_resources] if args.key?(:shared_resources)
|
6159
|
+
@speculative_decoding_spec = args[:speculative_decoding_spec] if args.key?(:speculative_decoding_spec)
|
6027
6160
|
@status = args[:status] if args.key?(:status)
|
6028
6161
|
@system_labels = args[:system_labels] if args.key?(:system_labels)
|
6029
6162
|
end
|
@@ -6095,8 +6228,8 @@ module Google
|
|
6095
6228
|
# @return [String]
|
6096
6229
|
attr_accessor :create_time
|
6097
6230
|
|
6098
|
-
# A description of resources that are dedicated to a DeployedModel
|
6099
|
-
# need a higher degree of manual configuration.
|
6231
|
+
# A description of resources that are dedicated to a DeployedModel or
|
6232
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
6100
6233
|
# Corresponds to the JSON property `dedicatedResources`
|
6101
6234
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
6102
6235
|
attr_accessor :dedicated_resources
|
@@ -6466,6 +6599,11 @@ module Google
|
|
6466
6599
|
# @return [String]
|
6467
6600
|
attr_accessor :etag
|
6468
6601
|
|
6602
|
+
# Configuration for GenAiAdvancedFeatures.
|
6603
|
+
# Corresponds to the JSON property `genAiAdvancedFeaturesConfig`
|
6604
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig]
|
6605
|
+
attr_accessor :gen_ai_advanced_features_config
|
6606
|
+
|
6469
6607
|
# The labels with user-defined metadata to organize your Endpoints. Label keys
|
6470
6608
|
# and values can be no longer than 64 characters (Unicode codepoints), can only
|
6471
6609
|
# contain lowercase letters, numeric characters, underscores and dashes.
|
@@ -6552,6 +6690,7 @@ module Google
|
|
6552
6690
|
@enable_private_service_connect = args[:enable_private_service_connect] if args.key?(:enable_private_service_connect)
|
6553
6691
|
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
6554
6692
|
@etag = args[:etag] if args.key?(:etag)
|
6693
|
+
@gen_ai_advanced_features_config = args[:gen_ai_advanced_features_config] if args.key?(:gen_ai_advanced_features_config)
|
6555
6694
|
@labels = args[:labels] if args.key?(:labels)
|
6556
6695
|
@model_deployment_monitoring_job = args[:model_deployment_monitoring_job] if args.key?(:model_deployment_monitoring_job)
|
6557
6696
|
@name = args[:name] if args.key?(:name)
|
@@ -6565,6 +6704,20 @@ module Google
|
|
6565
6704
|
end
|
6566
6705
|
end
|
6567
6706
|
|
6707
|
+
# Tool to search public web data, powered by Vertex AI Search and Sec4
|
6708
|
+
# compliance.
|
6709
|
+
class GoogleCloudAiplatformV1EnterpriseWebSearch
|
6710
|
+
include Google::Apis::Core::Hashable
|
6711
|
+
|
6712
|
+
def initialize(**args)
|
6713
|
+
update!(**args)
|
6714
|
+
end
|
6715
|
+
|
6716
|
+
# Update properties of this object
|
6717
|
+
def update!(**args)
|
6718
|
+
end
|
6719
|
+
end
|
6720
|
+
|
6568
6721
|
# Selector for entityId. Getting ids from the given source.
|
6569
6722
|
class GoogleCloudAiplatformV1EntityIdSelector
|
6570
6723
|
include Google::Apis::Core::Hashable
|
@@ -6779,10 +6932,54 @@ module Google
|
|
6779
6932
|
end
|
6780
6933
|
end
|
6781
6934
|
|
6935
|
+
# Request message for EvaluationService.EvaluateDataset.
|
6936
|
+
class GoogleCloudAiplatformV1EvaluateDatasetRequest
|
6937
|
+
include Google::Apis::Core::Hashable
|
6938
|
+
|
6939
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
6940
|
+
# EvaluateDataset.
|
6941
|
+
# Corresponds to the JSON property `autoraterConfig`
|
6942
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig]
|
6943
|
+
attr_accessor :autorater_config
|
6944
|
+
|
6945
|
+
# The dataset used for evaluation.
|
6946
|
+
# Corresponds to the JSON property `dataset`
|
6947
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationDataset]
|
6948
|
+
attr_accessor :dataset
|
6949
|
+
|
6950
|
+
# Required. The metrics used for evaluation.
|
6951
|
+
# Corresponds to the JSON property `metrics`
|
6952
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metric>]
|
6953
|
+
attr_accessor :metrics
|
6954
|
+
|
6955
|
+
# Config for evaluation output.
|
6956
|
+
# Corresponds to the JSON property `outputConfig`
|
6957
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OutputConfig]
|
6958
|
+
attr_accessor :output_config
|
6959
|
+
|
6960
|
+
def initialize(**args)
|
6961
|
+
update!(**args)
|
6962
|
+
end
|
6963
|
+
|
6964
|
+
# Update properties of this object
|
6965
|
+
def update!(**args)
|
6966
|
+
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
6967
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
6968
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
6969
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
6970
|
+
end
|
6971
|
+
end
|
6972
|
+
|
6782
6973
|
# Request message for EvaluationService.EvaluateInstances.
|
6783
6974
|
class GoogleCloudAiplatformV1EvaluateInstancesRequest
|
6784
6975
|
include Google::Apis::Core::Hashable
|
6785
6976
|
|
6977
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
6978
|
+
# EvaluateDataset.
|
6979
|
+
# Corresponds to the JSON property `autoraterConfig`
|
6980
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig]
|
6981
|
+
attr_accessor :autorater_config
|
6982
|
+
|
6786
6983
|
# Input for bleu metric.
|
6787
6984
|
# Corresponds to the JSON property `bleuInput`
|
6788
6985
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuInput]
|
@@ -6944,6 +7141,7 @@ module Google
|
|
6944
7141
|
|
6945
7142
|
# Update properties of this object
|
6946
7143
|
def update!(**args)
|
7144
|
+
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
6947
7145
|
@bleu_input = args[:bleu_input] if args.key?(:bleu_input)
|
6948
7146
|
@coherence_input = args[:coherence_input] if args.key?(:coherence_input)
|
6949
7147
|
@comet_input = args[:comet_input] if args.key?(:comet_input)
|
@@ -7283,6 +7481,31 @@ module Google
|
|
7283
7481
|
end
|
7284
7482
|
end
|
7285
7483
|
|
7484
|
+
# The dataset used for evaluation.
|
7485
|
+
class GoogleCloudAiplatformV1EvaluationDataset
|
7486
|
+
include Google::Apis::Core::Hashable
|
7487
|
+
|
7488
|
+
# The BigQuery location for the input content.
|
7489
|
+
# Corresponds to the JSON property `bigquerySource`
|
7490
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BigQuerySource]
|
7491
|
+
attr_accessor :bigquery_source
|
7492
|
+
|
7493
|
+
# The Google Cloud Storage location for the input content.
|
7494
|
+
# Corresponds to the JSON property `gcsSource`
|
7495
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsSource]
|
7496
|
+
attr_accessor :gcs_source
|
7497
|
+
|
7498
|
+
def initialize(**args)
|
7499
|
+
update!(**args)
|
7500
|
+
end
|
7501
|
+
|
7502
|
+
# Update properties of this object
|
7503
|
+
def update!(**args)
|
7504
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
7505
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
7506
|
+
end
|
7507
|
+
end
|
7508
|
+
|
7286
7509
|
# An edge describing the relationship between an Artifact and an Execution in a
|
7287
7510
|
# lineage graph.
|
7288
7511
|
class GoogleCloudAiplatformV1Event
|
@@ -7578,6 +7801,33 @@ module Google
|
|
7578
7801
|
end
|
7579
7802
|
end
|
7580
7803
|
|
7804
|
+
# Code generated by the model that is meant to be executed, and the result
|
7805
|
+
# returned to the model. Generated when using the [FunctionDeclaration] tool and
|
7806
|
+
# [FunctionCallingConfig] mode is set to [Mode.CODE].
|
7807
|
+
class GoogleCloudAiplatformV1ExecutableCode
|
7808
|
+
include Google::Apis::Core::Hashable
|
7809
|
+
|
7810
|
+
# Required. The code to be executed.
|
7811
|
+
# Corresponds to the JSON property `code`
|
7812
|
+
# @return [String]
|
7813
|
+
attr_accessor :code
|
7814
|
+
|
7815
|
+
# Required. Programming language of the `code`.
|
7816
|
+
# Corresponds to the JSON property `language`
|
7817
|
+
# @return [String]
|
7818
|
+
attr_accessor :language
|
7819
|
+
|
7820
|
+
def initialize(**args)
|
7821
|
+
update!(**args)
|
7822
|
+
end
|
7823
|
+
|
7824
|
+
# Update properties of this object
|
7825
|
+
def update!(**args)
|
7826
|
+
@code = args[:code] if args.key?(:code)
|
7827
|
+
@language = args[:language] if args.key?(:language)
|
7828
|
+
end
|
7829
|
+
end
|
7830
|
+
|
7581
7831
|
# Instance of a general execution.
|
7582
7832
|
class GoogleCloudAiplatformV1Execution
|
7583
7833
|
include Google::Apis::Core::Hashable
|
@@ -9786,6 +10036,22 @@ module Google
|
|
9786
10036
|
attr_accessor :satisfies_pzs
|
9787
10037
|
alias_method :satisfies_pzs?, :satisfies_pzs
|
9788
10038
|
|
10039
|
+
# Output only. A Service Account unique to this FeatureView. The role bigquery.
|
10040
|
+
# dataViewer should be granted to this service account to allow Vertex AI
|
10041
|
+
# Feature Store to sync data to the online store.
|
10042
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
10043
|
+
# @return [String]
|
10044
|
+
attr_accessor :service_account_email
|
10045
|
+
|
10046
|
+
# Optional. Service agent type used during data sync. By default, the Vertex AI
|
10047
|
+
# Service Agent is used. When using an IAM Policy to isolate this FeatureView
|
10048
|
+
# within a project, a separate service account should be provisioned by setting
|
10049
|
+
# this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate
|
10050
|
+
# service account to access the BigQuery source table.
|
10051
|
+
# Corresponds to the JSON property `serviceAgentType`
|
10052
|
+
# @return [String]
|
10053
|
+
attr_accessor :service_agent_type
|
10054
|
+
|
9789
10055
|
# Configuration for Sync. Only one option is set.
|
9790
10056
|
# Corresponds to the JSON property `syncConfig`
|
9791
10057
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncConfig]
|
@@ -9817,6 +10083,8 @@ module Google
|
|
9817
10083
|
@optimized_config = args[:optimized_config] if args.key?(:optimized_config)
|
9818
10084
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
9819
10085
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
10086
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
10087
|
+
@service_agent_type = args[:service_agent_type] if args.key?(:service_agent_type)
|
9820
10088
|
@sync_config = args[:sync_config] if args.key?(:sync_config)
|
9821
10089
|
@update_time = args[:update_time] if args.key?(:update_time)
|
9822
10090
|
@vertex_rag_source = args[:vertex_rag_source] if args.key?(:vertex_rag_source)
|
@@ -10658,6 +10926,14 @@ module Google
|
|
10658
10926
|
class GoogleCloudAiplatformV1FileData
|
10659
10927
|
include Google::Apis::Core::Hashable
|
10660
10928
|
|
10929
|
+
# Optional. Display name of the file data. Used to provide a label or filename
|
10930
|
+
# to distinguish file datas. This field is only returned in PromptMessage for
|
10931
|
+
# prompt management. It is not currently used in the Gemini GenerateContent
|
10932
|
+
# calls.
|
10933
|
+
# Corresponds to the JSON property `displayName`
|
10934
|
+
# @return [String]
|
10935
|
+
attr_accessor :display_name
|
10936
|
+
|
10661
10937
|
# Required. URI.
|
10662
10938
|
# Corresponds to the JSON property `fileUri`
|
10663
10939
|
# @return [String]
|
@@ -10674,6 +10950,7 @@ module Google
|
|
10674
10950
|
|
10675
10951
|
# Update properties of this object
|
10676
10952
|
def update!(**args)
|
10953
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
10677
10954
|
@file_uri = args[:file_uri] if args.key?(:file_uri)
|
10678
10955
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
10679
10956
|
end
|
@@ -11356,6 +11633,47 @@ module Google
|
|
11356
11633
|
end
|
11357
11634
|
end
|
11358
11635
|
|
11636
|
+
# Configuration for GenAiAdvancedFeatures.
|
11637
|
+
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig
|
11638
|
+
include Google::Apis::Core::Hashable
|
11639
|
+
|
11640
|
+
# Configuration for Retrieval Augmented Generation feature.
|
11641
|
+
# Corresponds to the JSON property `ragConfig`
|
11642
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig]
|
11643
|
+
attr_accessor :rag_config
|
11644
|
+
|
11645
|
+
def initialize(**args)
|
11646
|
+
update!(**args)
|
11647
|
+
end
|
11648
|
+
|
11649
|
+
# Update properties of this object
|
11650
|
+
def update!(**args)
|
11651
|
+
@rag_config = args[:rag_config] if args.key?(:rag_config)
|
11652
|
+
end
|
11653
|
+
end
|
11654
|
+
|
11655
|
+
# Configuration for Retrieval Augmented Generation feature.
|
11656
|
+
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig
|
11657
|
+
include Google::Apis::Core::Hashable
|
11658
|
+
|
11659
|
+
# If true, enable Retrieval Augmented Generation in ChatCompletion request. Once
|
11660
|
+
# enabled, the endpoint will be identified as GenAI endpoint and Arthedain
|
11661
|
+
# router will be used.
|
11662
|
+
# Corresponds to the JSON property `enableRag`
|
11663
|
+
# @return [Boolean]
|
11664
|
+
attr_accessor :enable_rag
|
11665
|
+
alias_method :enable_rag?, :enable_rag
|
11666
|
+
|
11667
|
+
def initialize(**args)
|
11668
|
+
update!(**args)
|
11669
|
+
end
|
11670
|
+
|
11671
|
+
# Update properties of this object
|
11672
|
+
def update!(**args)
|
11673
|
+
@enable_rag = args[:enable_rag] if args.key?(:enable_rag)
|
11674
|
+
end
|
11675
|
+
end
|
11676
|
+
|
11359
11677
|
# Request message for [PredictionService.GenerateContent].
|
11360
11678
|
class GoogleCloudAiplatformV1GenerateContentRequest
|
11361
11679
|
include Google::Apis::Core::Hashable
|
@@ -11443,6 +11761,11 @@ module Google
|
|
11443
11761
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Candidate>]
|
11444
11762
|
attr_accessor :candidates
|
11445
11763
|
|
11764
|
+
# Output only. Timestamp when the request is made to the server.
|
11765
|
+
# Corresponds to the JSON property `createTime`
|
11766
|
+
# @return [String]
|
11767
|
+
attr_accessor :create_time
|
11768
|
+
|
11446
11769
|
# Output only. The model version used to generate the response.
|
11447
11770
|
# Corresponds to the JSON property `modelVersion`
|
11448
11771
|
# @return [String]
|
@@ -11453,6 +11776,12 @@ module Google
|
|
11453
11776
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback]
|
11454
11777
|
attr_accessor :prompt_feedback
|
11455
11778
|
|
11779
|
+
# Output only. response_id is used to identify each response. It is the encoding
|
11780
|
+
# of the event_id.
|
11781
|
+
# Corresponds to the JSON property `responseId`
|
11782
|
+
# @return [String]
|
11783
|
+
attr_accessor :response_id
|
11784
|
+
|
11456
11785
|
# Usage metadata about response(s).
|
11457
11786
|
# Corresponds to the JSON property `usageMetadata`
|
11458
11787
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata]
|
@@ -11465,8 +11794,10 @@ module Google
|
|
11465
11794
|
# Update properties of this object
|
11466
11795
|
def update!(**args)
|
11467
11796
|
@candidates = args[:candidates] if args.key?(:candidates)
|
11797
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11468
11798
|
@model_version = args[:model_version] if args.key?(:model_version)
|
11469
11799
|
@prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
|
11800
|
+
@response_id = args[:response_id] if args.key?(:response_id)
|
11470
11801
|
@usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
|
11471
11802
|
end
|
11472
11803
|
end
|
@@ -11506,6 +11837,11 @@ module Google
|
|
11506
11837
|
class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
|
11507
11838
|
include Google::Apis::Core::Hashable
|
11508
11839
|
|
11840
|
+
# Output only. List of modalities of the cached content in the request input.
|
11841
|
+
# Corresponds to the JSON property `cacheTokensDetails`
|
11842
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11843
|
+
attr_accessor :cache_tokens_details
|
11844
|
+
|
11509
11845
|
# Output only. Number of tokens in the cached part in the input (the cached
|
11510
11846
|
# content).
|
11511
11847
|
# Corresponds to the JSON property `cachedContentTokenCount`
|
@@ -11517,6 +11853,11 @@ module Google
|
|
11517
11853
|
# @return [Fixnum]
|
11518
11854
|
attr_accessor :candidates_token_count
|
11519
11855
|
|
11856
|
+
# Output only. List of modalities that were returned in the response.
|
11857
|
+
# Corresponds to the JSON property `candidatesTokensDetails`
|
11858
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11859
|
+
attr_accessor :candidates_tokens_details
|
11860
|
+
|
11520
11861
|
# Number of tokens in the request. When `cached_content` is set, this is still
|
11521
11862
|
# the total effective prompt size meaning this includes the number of tokens in
|
11522
11863
|
# the cached content.
|
@@ -11524,7 +11865,24 @@ module Google
|
|
11524
11865
|
# @return [Fixnum]
|
11525
11866
|
attr_accessor :prompt_token_count
|
11526
11867
|
|
11527
|
-
#
|
11868
|
+
# Output only. List of modalities that were processed in the request input.
|
11869
|
+
# Corresponds to the JSON property `promptTokensDetails`
|
11870
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11871
|
+
attr_accessor :prompt_tokens_details
|
11872
|
+
|
11873
|
+
# Output only. Number of tokens present in tool-use prompt(s).
|
11874
|
+
# Corresponds to the JSON property `toolUsePromptTokenCount`
|
11875
|
+
# @return [Fixnum]
|
11876
|
+
attr_accessor :tool_use_prompt_token_count
|
11877
|
+
|
11878
|
+
# Output only. List of modalities that were processed for tool-use request
|
11879
|
+
# inputs.
|
11880
|
+
# Corresponds to the JSON property `toolUsePromptTokensDetails`
|
11881
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11882
|
+
attr_accessor :tool_use_prompt_tokens_details
|
11883
|
+
|
11884
|
+
# Total token count for prompt, response candidates, and tool-use prompts (if
|
11885
|
+
# present).
|
11528
11886
|
# Corresponds to the JSON property `totalTokenCount`
|
11529
11887
|
# @return [Fixnum]
|
11530
11888
|
attr_accessor :total_token_count
|
@@ -11535,13 +11893,86 @@ module Google
|
|
11535
11893
|
|
11536
11894
|
# Update properties of this object
|
11537
11895
|
def update!(**args)
|
11896
|
+
@cache_tokens_details = args[:cache_tokens_details] if args.key?(:cache_tokens_details)
|
11538
11897
|
@cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
|
11539
11898
|
@candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
|
11899
|
+
@candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
|
11540
11900
|
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
|
11901
|
+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
|
11902
|
+
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
|
11903
|
+
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
|
11541
11904
|
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
11542
11905
|
end
|
11543
11906
|
end
|
11544
11907
|
|
11908
|
+
# Generate video response.
|
11909
|
+
class GoogleCloudAiplatformV1GenerateVideoResponse
|
11910
|
+
include Google::Apis::Core::Hashable
|
11911
|
+
|
11912
|
+
# The cloud storage uris of the generated videos.
|
11913
|
+
# Corresponds to the JSON property `generatedSamples`
|
11914
|
+
# @return [Array<String>]
|
11915
|
+
attr_accessor :generated_samples
|
11916
|
+
|
11917
|
+
# Returns if any videos were filtered due to RAI policies.
|
11918
|
+
# Corresponds to the JSON property `raiMediaFilteredCount`
|
11919
|
+
# @return [Fixnum]
|
11920
|
+
attr_accessor :rai_media_filtered_count
|
11921
|
+
|
11922
|
+
# Returns rai failure reasons if any.
|
11923
|
+
# Corresponds to the JSON property `raiMediaFilteredReasons`
|
11924
|
+
# @return [Array<String>]
|
11925
|
+
attr_accessor :rai_media_filtered_reasons
|
11926
|
+
|
11927
|
+
# List of video bytes or Cloud Storage URIs of the generated videos.
|
11928
|
+
# Corresponds to the JSON property `videos`
|
11929
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateVideoResponseVideo>]
|
11930
|
+
attr_accessor :videos
|
11931
|
+
|
11932
|
+
def initialize(**args)
|
11933
|
+
update!(**args)
|
11934
|
+
end
|
11935
|
+
|
11936
|
+
# Update properties of this object
|
11937
|
+
def update!(**args)
|
11938
|
+
@generated_samples = args[:generated_samples] if args.key?(:generated_samples)
|
11939
|
+
@rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
|
11940
|
+
@rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
|
11941
|
+
@videos = args[:videos] if args.key?(:videos)
|
11942
|
+
end
|
11943
|
+
end
|
11944
|
+
|
11945
|
+
# A generated video.
|
11946
|
+
class GoogleCloudAiplatformV1GenerateVideoResponseVideo
|
11947
|
+
include Google::Apis::Core::Hashable
|
11948
|
+
|
11949
|
+
# Base64 encoded bytes string representing the video.
|
11950
|
+
# Corresponds to the JSON property `bytesBase64Encoded`
|
11951
|
+
# @return [String]
|
11952
|
+
attr_accessor :bytes_base64_encoded
|
11953
|
+
|
11954
|
+
# Cloud Storage URI where the generated video is written.
|
11955
|
+
# Corresponds to the JSON property `gcsUri`
|
11956
|
+
# @return [String]
|
11957
|
+
attr_accessor :gcs_uri
|
11958
|
+
|
11959
|
+
# The MIME type of the content of the video. - video/mp4
|
11960
|
+
# Corresponds to the JSON property `mimeType`
|
11961
|
+
# @return [String]
|
11962
|
+
attr_accessor :mime_type
|
11963
|
+
|
11964
|
+
def initialize(**args)
|
11965
|
+
update!(**args)
|
11966
|
+
end
|
11967
|
+
|
11968
|
+
# Update properties of this object
|
11969
|
+
def update!(**args)
|
11970
|
+
@bytes_base64_encoded = args[:bytes_base64_encoded] if args.key?(:bytes_base64_encoded)
|
11971
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
11972
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
11973
|
+
end
|
11974
|
+
end
|
11975
|
+
|
11545
11976
|
# Generation config.
|
11546
11977
|
class GoogleCloudAiplatformV1GenerationConfig
|
11547
11978
|
include Google::Apis::Core::Hashable
|
@@ -14266,6 +14697,32 @@ module Google
|
|
14266
14697
|
end
|
14267
14698
|
end
|
14268
14699
|
|
14700
|
+
# Response message for ModelService.ListModelVersionCheckpoints
|
14701
|
+
class GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse
|
14702
|
+
include Google::Apis::Core::Hashable
|
14703
|
+
|
14704
|
+
# List of Model Version checkpoints.
|
14705
|
+
# Corresponds to the JSON property `checkpoints`
|
14706
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelVersionCheckpoint>]
|
14707
|
+
attr_accessor :checkpoints
|
14708
|
+
|
14709
|
+
# A token to retrieve the next page of results. Pass to
|
14710
|
+
# ListModelVersionCheckpointsRequest.page_token to obtain that page.
|
14711
|
+
# Corresponds to the JSON property `nextPageToken`
|
14712
|
+
# @return [String]
|
14713
|
+
attr_accessor :next_page_token
|
14714
|
+
|
14715
|
+
def initialize(**args)
|
14716
|
+
update!(**args)
|
14717
|
+
end
|
14718
|
+
|
14719
|
+
# Update properties of this object
|
14720
|
+
def update!(**args)
|
14721
|
+
@checkpoints = args[:checkpoints] if args.key?(:checkpoints)
|
14722
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14723
|
+
end
|
14724
|
+
end
|
14725
|
+
|
14269
14726
|
# Response message for ModelService.ListModelVersions
|
14270
14727
|
class GoogleCloudAiplatformV1ListModelVersionsResponse
|
14271
14728
|
include Google::Apis::Core::Hashable
|
@@ -15312,6 +15769,58 @@ module Google
|
|
15312
15769
|
end
|
15313
15770
|
end
|
15314
15771
|
|
15772
|
+
# The metric used for dataset level evaluation.
|
15773
|
+
class GoogleCloudAiplatformV1Metric
|
15774
|
+
include Google::Apis::Core::Hashable
|
15775
|
+
|
15776
|
+
# Optional. The aggregation metrics to use.
|
15777
|
+
# Corresponds to the JSON property `aggregationMetrics`
|
15778
|
+
# @return [Array<String>]
|
15779
|
+
attr_accessor :aggregation_metrics
|
15780
|
+
|
15781
|
+
# Spec for bleu score metric - calculates the precision of n-grams in the
|
15782
|
+
# prediction as compared to reference - returns a score ranging between 0 to 1.
|
15783
|
+
# Corresponds to the JSON property `bleuSpec`
|
15784
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuSpec]
|
15785
|
+
attr_accessor :bleu_spec
|
15786
|
+
|
15787
|
+
# Spec for exact match metric - returns 1 if prediction and reference exactly
|
15788
|
+
# matches, otherwise 0.
|
15789
|
+
# Corresponds to the JSON property `exactMatchSpec`
|
15790
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchSpec]
|
15791
|
+
attr_accessor :exact_match_spec
|
15792
|
+
|
15793
|
+
# Spec for pairwise metric.
|
15794
|
+
# Corresponds to the JSON property `pairwiseMetricSpec`
|
15795
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec]
|
15796
|
+
attr_accessor :pairwise_metric_spec
|
15797
|
+
|
15798
|
+
# Spec for pointwise metric.
|
15799
|
+
# Corresponds to the JSON property `pointwiseMetricSpec`
|
15800
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PointwiseMetricSpec]
|
15801
|
+
attr_accessor :pointwise_metric_spec
|
15802
|
+
|
15803
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
15804
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
15805
|
+
# Corresponds to the JSON property `rougeSpec`
|
15806
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeSpec]
|
15807
|
+
attr_accessor :rouge_spec
|
15808
|
+
|
15809
|
+
def initialize(**args)
|
15810
|
+
update!(**args)
|
15811
|
+
end
|
15812
|
+
|
15813
|
+
# Update properties of this object
|
15814
|
+
def update!(**args)
|
15815
|
+
@aggregation_metrics = args[:aggregation_metrics] if args.key?(:aggregation_metrics)
|
15816
|
+
@bleu_spec = args[:bleu_spec] if args.key?(:bleu_spec)
|
15817
|
+
@exact_match_spec = args[:exact_match_spec] if args.key?(:exact_match_spec)
|
15818
|
+
@pairwise_metric_spec = args[:pairwise_metric_spec] if args.key?(:pairwise_metric_spec)
|
15819
|
+
@pointwise_metric_spec = args[:pointwise_metric_spec] if args.key?(:pointwise_metric_spec)
|
15820
|
+
@rouge_spec = args[:rouge_spec] if args.key?(:rouge_spec)
|
15821
|
+
end
|
15822
|
+
end
|
15823
|
+
|
15315
15824
|
# Input for MetricX metric.
|
15316
15825
|
class GoogleCloudAiplatformV1MetricxInput
|
15317
15826
|
include Google::Apis::Core::Hashable
|
@@ -15830,6 +16339,31 @@ module Google
|
|
15830
16339
|
end
|
15831
16340
|
end
|
15832
16341
|
|
16342
|
+
# Represents token counting info for a single modality.
|
16343
|
+
class GoogleCloudAiplatformV1ModalityTokenCount
|
16344
|
+
include Google::Apis::Core::Hashable
|
16345
|
+
|
16346
|
+
# The modality associated with this token count.
|
16347
|
+
# Corresponds to the JSON property `modality`
|
16348
|
+
# @return [String]
|
16349
|
+
attr_accessor :modality
|
16350
|
+
|
16351
|
+
# Number of tokens.
|
16352
|
+
# Corresponds to the JSON property `tokenCount`
|
16353
|
+
# @return [Fixnum]
|
16354
|
+
attr_accessor :token_count
|
16355
|
+
|
16356
|
+
def initialize(**args)
|
16357
|
+
update!(**args)
|
16358
|
+
end
|
16359
|
+
|
16360
|
+
# Update properties of this object
|
16361
|
+
def update!(**args)
|
16362
|
+
@modality = args[:modality] if args.key?(:modality)
|
16363
|
+
@token_count = args[:token_count] if args.key?(:token_count)
|
16364
|
+
end
|
16365
|
+
end
|
16366
|
+
|
15833
16367
|
# A trained machine learning Model.
|
15834
16368
|
class GoogleCloudAiplatformV1Model
|
15835
16369
|
include Google::Apis::Core::Hashable
|
@@ -15864,6 +16398,11 @@ module Google
|
|
15864
16398
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
|
15865
16399
|
attr_accessor :data_stats
|
15866
16400
|
|
16401
|
+
# The default checkpoint id of a model version.
|
16402
|
+
# Corresponds to the JSON property `defaultCheckpointId`
|
16403
|
+
# @return [String]
|
16404
|
+
attr_accessor :default_checkpoint_id
|
16405
|
+
|
15867
16406
|
# Output only. The pointers to DeployedModels created from this Model. Note that
|
15868
16407
|
# Model could have been deployed to Endpoints in different Locations.
|
15869
16408
|
# Corresponds to the JSON property `deployedModels`
|
@@ -16084,6 +16623,7 @@ module Google
|
|
16084
16623
|
@container_spec = args[:container_spec] if args.key?(:container_spec)
|
16085
16624
|
@create_time = args[:create_time] if args.key?(:create_time)
|
16086
16625
|
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
16626
|
+
@default_checkpoint_id = args[:default_checkpoint_id] if args.key?(:default_checkpoint_id)
|
16087
16627
|
@deployed_models = args[:deployed_models] if args.key?(:deployed_models)
|
16088
16628
|
@description = args[:description] if args.key?(:description)
|
16089
16629
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -17138,7 +17678,7 @@ module Google
|
|
17138
17678
|
# model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.
|
17139
17679
|
# org/js) model that can be used in the browser and in Node.js using JavaScript.
|
17140
17680
|
# * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was
|
17141
|
-
# uploaded or trained by custom code.
|
17681
|
+
# uploaded or trained by custom code. * `genie` A tuned Model Garden model.
|
17142
17682
|
# Corresponds to the JSON property `id`
|
17143
17683
|
# @return [String]
|
17144
17684
|
attr_accessor :id
|
@@ -17164,6 +17704,17 @@ module Google
|
|
17164
17704
|
# @return [String]
|
17165
17705
|
attr_accessor :public_model_name
|
17166
17706
|
|
17707
|
+
# Optional. Whether to avoid pulling the model from the HF cache.
|
17708
|
+
# Corresponds to the JSON property `skipHfModelCache`
|
17709
|
+
# @return [Boolean]
|
17710
|
+
attr_accessor :skip_hf_model_cache
|
17711
|
+
alias_method :skip_hf_model_cache?, :skip_hf_model_cache
|
17712
|
+
|
17713
|
+
# Optional. The model garden source model version ID.
|
17714
|
+
# Corresponds to the JSON property `versionId`
|
17715
|
+
# @return [String]
|
17716
|
+
attr_accessor :version_id
|
17717
|
+
|
17167
17718
|
def initialize(**args)
|
17168
17719
|
update!(**args)
|
17169
17720
|
end
|
@@ -17171,6 +17722,8 @@ module Google
|
|
17171
17722
|
# Update properties of this object
|
17172
17723
|
def update!(**args)
|
17173
17724
|
@public_model_name = args[:public_model_name] if args.key?(:public_model_name)
|
17725
|
+
@skip_hf_model_cache = args[:skip_hf_model_cache] if args.key?(:skip_hf_model_cache)
|
17726
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
17174
17727
|
end
|
17175
17728
|
end
|
17176
17729
|
|
@@ -17584,6 +18137,45 @@ module Google
|
|
17584
18137
|
end
|
17585
18138
|
end
|
17586
18139
|
|
18140
|
+
# Describes the machine learning model version checkpoint.
|
18141
|
+
class GoogleCloudAiplatformV1ModelVersionCheckpoint
|
18142
|
+
include Google::Apis::Core::Hashable
|
18143
|
+
|
18144
|
+
# The ID of the checkpoint.
|
18145
|
+
# Corresponds to the JSON property `checkpointId`
|
18146
|
+
# @return [String]
|
18147
|
+
attr_accessor :checkpoint_id
|
18148
|
+
|
18149
|
+
# The epoch of the checkpoint.
|
18150
|
+
# Corresponds to the JSON property `epoch`
|
18151
|
+
# @return [Fixnum]
|
18152
|
+
attr_accessor :epoch
|
18153
|
+
|
18154
|
+
# Identifier. The resource name of the ModelVersionCheckpoint. Format: `projects/
|
18155
|
+
# `project`/locations/`location`/models/`model`/versions/`version`/checkpoints/`
|
18156
|
+
# checkpoint``
|
18157
|
+
# Corresponds to the JSON property `name`
|
18158
|
+
# @return [String]
|
18159
|
+
attr_accessor :name
|
18160
|
+
|
18161
|
+
# The step of the checkpoint.
|
18162
|
+
# Corresponds to the JSON property `step`
|
18163
|
+
# @return [Fixnum]
|
18164
|
+
attr_accessor :step
|
18165
|
+
|
18166
|
+
def initialize(**args)
|
18167
|
+
update!(**args)
|
18168
|
+
end
|
18169
|
+
|
18170
|
+
# Update properties of this object
|
18171
|
+
def update!(**args)
|
18172
|
+
@checkpoint_id = args[:checkpoint_id] if args.key?(:checkpoint_id)
|
18173
|
+
@epoch = args[:epoch] if args.key?(:epoch)
|
18174
|
+
@name = args[:name] if args.key?(:name)
|
18175
|
+
@step = args[:step] if args.key?(:step)
|
18176
|
+
end
|
18177
|
+
end
|
18178
|
+
|
17587
18179
|
# Runtime operation information for IndexEndpointService.MutateDeployedIndex.
|
17588
18180
|
class GoogleCloudAiplatformV1MutateDeployedIndexOperationMetadata
|
17589
18181
|
include Google::Apis::Core::Hashable
|
@@ -18693,8 +19285,8 @@ module Google
|
|
18693
19285
|
# @return [String]
|
18694
19286
|
attr_accessor :notebook_runtime_template_resource_name
|
18695
19287
|
|
18696
|
-
#
|
18697
|
-
#
|
19288
|
+
# The Schedule resource name if this job is triggered by one. Format: `projects/`
|
19289
|
+
# project_id`/locations/`location`/schedules/`schedule_id``
|
18698
19290
|
# Corresponds to the JSON property `scheduleResourceName`
|
18699
19291
|
# @return [String]
|
18700
19292
|
attr_accessor :schedule_resource_name
|
@@ -19057,6 +19649,11 @@ module Google
|
|
19057
19649
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ShieldedVmConfig]
|
19058
19650
|
attr_accessor :shielded_vm_config
|
19059
19651
|
|
19652
|
+
# Notebook Software Config.
|
19653
|
+
# Corresponds to the JSON property `softwareConfig`
|
19654
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookSoftwareConfig]
|
19655
|
+
attr_accessor :software_config
|
19656
|
+
|
19060
19657
|
# Output only. Timestamp when this NotebookRuntime was most recently updated.
|
19061
19658
|
# Corresponds to the JSON property `updateTime`
|
19062
19659
|
# @return [String]
|
@@ -19097,6 +19694,7 @@ module Google
|
|
19097
19694
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
19098
19695
|
@service_account = args[:service_account] if args.key?(:service_account)
|
19099
19696
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
19697
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
19100
19698
|
@update_time = args[:update_time] if args.key?(:update_time)
|
19101
19699
|
@version = args[:version] if args.key?(:version)
|
19102
19700
|
end
|
@@ -19215,6 +19813,11 @@ module Google
|
|
19215
19813
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ShieldedVmConfig]
|
19216
19814
|
attr_accessor :shielded_vm_config
|
19217
19815
|
|
19816
|
+
# Notebook Software Config.
|
19817
|
+
# Corresponds to the JSON property `softwareConfig`
|
19818
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookSoftwareConfig]
|
19819
|
+
attr_accessor :software_config
|
19820
|
+
|
19218
19821
|
# Output only. Timestamp when this NotebookRuntimeTemplate was most recently
|
19219
19822
|
# updated.
|
19220
19823
|
# Corresponds to the JSON property `updateTime`
|
@@ -19244,6 +19847,7 @@ module Google
|
|
19244
19847
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
19245
19848
|
@service_account = args[:service_account] if args.key?(:service_account)
|
19246
19849
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
19850
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
19247
19851
|
@update_time = args[:update_time] if args.key?(:update_time)
|
19248
19852
|
end
|
19249
19853
|
end
|
@@ -19267,6 +19871,51 @@ module Google
|
|
19267
19871
|
end
|
19268
19872
|
end
|
19269
19873
|
|
19874
|
+
# Notebook Software Config.
|
19875
|
+
class GoogleCloudAiplatformV1NotebookSoftwareConfig
|
19876
|
+
include Google::Apis::Core::Hashable
|
19877
|
+
|
19878
|
+
# Optional. Environment variables to be passed to the container. Maximum limit
|
19879
|
+
# is 100.
|
19880
|
+
# Corresponds to the JSON property `env`
|
19881
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
|
19882
|
+
attr_accessor :env
|
19883
|
+
|
19884
|
+
# Post startup script config.
|
19885
|
+
# Corresponds to the JSON property `postStartupScriptConfig`
|
19886
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PostStartupScriptConfig]
|
19887
|
+
attr_accessor :post_startup_script_config
|
19888
|
+
|
19889
|
+
def initialize(**args)
|
19890
|
+
update!(**args)
|
19891
|
+
end
|
19892
|
+
|
19893
|
+
# Update properties of this object
|
19894
|
+
def update!(**args)
|
19895
|
+
@env = args[:env] if args.key?(:env)
|
19896
|
+
@post_startup_script_config = args[:post_startup_script_config] if args.key?(:post_startup_script_config)
|
19897
|
+
end
|
19898
|
+
end
|
19899
|
+
|
19900
|
+
# Config for evaluation output.
|
19901
|
+
class GoogleCloudAiplatformV1OutputConfig
|
19902
|
+
include Google::Apis::Core::Hashable
|
19903
|
+
|
19904
|
+
# The Google Cloud Storage location where the output is to be written to.
|
19905
|
+
# Corresponds to the JSON property `gcsDestination`
|
19906
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
|
19907
|
+
attr_accessor :gcs_destination
|
19908
|
+
|
19909
|
+
def initialize(**args)
|
19910
|
+
update!(**args)
|
19911
|
+
end
|
19912
|
+
|
19913
|
+
# Update properties of this object
|
19914
|
+
def update!(**args)
|
19915
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
19916
|
+
end
|
19917
|
+
end
|
19918
|
+
|
19270
19919
|
# PSC config that is used to automatically create forwarding rule via
|
19271
19920
|
# ServiceConnectionMap.
|
19272
19921
|
class GoogleCloudAiplatformV1PscAutomationConfig
|
@@ -19373,18 +20022,36 @@ module Google
|
|
19373
20022
|
class GoogleCloudAiplatformV1PairwiseMetricSpec
|
19374
20023
|
include Google::Apis::Core::Hashable
|
19375
20024
|
|
20025
|
+
# Optional. The field name of the baseline response.
|
20026
|
+
# Corresponds to the JSON property `baselineResponseFieldName`
|
20027
|
+
# @return [String]
|
20028
|
+
attr_accessor :baseline_response_field_name
|
20029
|
+
|
20030
|
+
# Optional. The field name of the candidate response.
|
20031
|
+
# Corresponds to the JSON property `candidateResponseFieldName`
|
20032
|
+
# @return [String]
|
20033
|
+
attr_accessor :candidate_response_field_name
|
20034
|
+
|
19376
20035
|
# Required. Metric prompt template for pairwise metric.
|
19377
20036
|
# Corresponds to the JSON property `metricPromptTemplate`
|
19378
20037
|
# @return [String]
|
19379
20038
|
attr_accessor :metric_prompt_template
|
19380
20039
|
|
20040
|
+
# Optional. System instructions for pairwise metric.
|
20041
|
+
# Corresponds to the JSON property `systemInstruction`
|
20042
|
+
# @return [String]
|
20043
|
+
attr_accessor :system_instruction
|
20044
|
+
|
19381
20045
|
def initialize(**args)
|
19382
20046
|
update!(**args)
|
19383
20047
|
end
|
19384
20048
|
|
19385
20049
|
# Update properties of this object
|
19386
20050
|
def update!(**args)
|
20051
|
+
@baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
|
20052
|
+
@candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
|
19387
20053
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
20054
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
19388
20055
|
end
|
19389
20056
|
end
|
19390
20057
|
|
@@ -19648,6 +20315,19 @@ module Google
|
|
19648
20315
|
class GoogleCloudAiplatformV1Part
|
19649
20316
|
include Google::Apis::Core::Hashable
|
19650
20317
|
|
20318
|
+
# Result of executing the [ExecutableCode]. Always follows a `part` containing
|
20319
|
+
# the [ExecutableCode].
|
20320
|
+
# Corresponds to the JSON property `codeExecutionResult`
|
20321
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CodeExecutionResult]
|
20322
|
+
attr_accessor :code_execution_result
|
20323
|
+
|
20324
|
+
# Code generated by the model that is meant to be executed, and the result
|
20325
|
+
# returned to the model. Generated when using the [FunctionDeclaration] tool and
|
20326
|
+
# [FunctionCallingConfig] mode is set to [Mode.CODE].
|
20327
|
+
# Corresponds to the JSON property `executableCode`
|
20328
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecutableCode]
|
20329
|
+
attr_accessor :executable_code
|
20330
|
+
|
19651
20331
|
# URI based data.
|
19652
20332
|
# Corresponds to the JSON property `fileData`
|
19653
20333
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData]
|
@@ -19689,6 +20369,8 @@ module Google
|
|
19689
20369
|
|
19690
20370
|
# Update properties of this object
|
19691
20371
|
def update!(**args)
|
20372
|
+
@code_execution_result = args[:code_execution_result] if args.key?(:code_execution_result)
|
20373
|
+
@executable_code = args[:executable_code] if args.key?(:executable_code)
|
19692
20374
|
@file_data = args[:file_data] if args.key?(:file_data)
|
19693
20375
|
@function_call = args[:function_call] if args.key?(:function_call)
|
19694
20376
|
@function_response = args[:function_response] if args.key?(:function_response)
|
@@ -20529,6 +21211,11 @@ module Google
|
|
20529
21211
|
# @return [String]
|
20530
21212
|
attr_accessor :metric_prompt_template
|
20531
21213
|
|
21214
|
+
# Optional. System instructions for pointwise metric.
|
21215
|
+
# Corresponds to the JSON property `systemInstruction`
|
21216
|
+
# @return [String]
|
21217
|
+
attr_accessor :system_instruction
|
21218
|
+
|
20532
21219
|
def initialize(**args)
|
20533
21220
|
update!(**args)
|
20534
21221
|
end
|
@@ -20536,6 +21223,7 @@ module Google
|
|
20536
21223
|
# Update properties of this object
|
20537
21224
|
def update!(**args)
|
20538
21225
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
21226
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
20539
21227
|
end
|
20540
21228
|
end
|
20541
21229
|
|
@@ -20559,6 +21247,39 @@ module Google
|
|
20559
21247
|
end
|
20560
21248
|
end
|
20561
21249
|
|
21250
|
+
# Post startup script config.
|
21251
|
+
class GoogleCloudAiplatformV1PostStartupScriptConfig
|
21252
|
+
include Google::Apis::Core::Hashable
|
21253
|
+
|
21254
|
+
# Optional. Post startup script to run after runtime is started.
|
21255
|
+
# Corresponds to the JSON property `postStartupScript`
|
21256
|
+
# @return [String]
|
21257
|
+
attr_accessor :post_startup_script
|
21258
|
+
|
21259
|
+
# Optional. Post startup script behavior that defines download and execution
|
21260
|
+
# behavior.
|
21261
|
+
# Corresponds to the JSON property `postStartupScriptBehavior`
|
21262
|
+
# @return [String]
|
21263
|
+
attr_accessor :post_startup_script_behavior
|
21264
|
+
|
21265
|
+
# Optional. Post startup script url to download. Example: https://bucket/script.
|
21266
|
+
# sh
|
21267
|
+
# Corresponds to the JSON property `postStartupScriptUrl`
|
21268
|
+
# @return [String]
|
21269
|
+
attr_accessor :post_startup_script_url
|
21270
|
+
|
21271
|
+
def initialize(**args)
|
21272
|
+
update!(**args)
|
21273
|
+
end
|
21274
|
+
|
21275
|
+
# Update properties of this object
|
21276
|
+
def update!(**args)
|
21277
|
+
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
21278
|
+
@post_startup_script_behavior = args[:post_startup_script_behavior] if args.key?(:post_startup_script_behavior)
|
21279
|
+
@post_startup_script_url = args[:post_startup_script_url] if args.key?(:post_startup_script_url)
|
21280
|
+
end
|
21281
|
+
end
|
21282
|
+
|
20562
21283
|
# The configuration for the prebuilt speaker to use.
|
20563
21284
|
class GoogleCloudAiplatformV1PrebuiltVoiceConfig
|
20564
21285
|
include Google::Apis::Core::Hashable
|
@@ -20923,6 +21644,12 @@ module Google
|
|
20923
21644
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeExecAction]
|
20924
21645
|
attr_accessor :exec
|
20925
21646
|
|
21647
|
+
# Number of consecutive failures before the probe is considered failed. Defaults
|
21648
|
+
# to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
|
21649
|
+
# Corresponds to the JSON property `failureThreshold`
|
21650
|
+
# @return [Fixnum]
|
21651
|
+
attr_accessor :failure_threshold
|
21652
|
+
|
20926
21653
|
# GrpcAction checks the health of a container using a gRPC service.
|
20927
21654
|
# Corresponds to the JSON property `grpc`
|
20928
21655
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeGrpcAction]
|
@@ -20933,6 +21660,12 @@ module Google
|
|
20933
21660
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeHttpGetAction]
|
20934
21661
|
attr_accessor :http_get
|
20935
21662
|
|
21663
|
+
# Number of seconds to wait before starting the probe. Defaults to 0. Minimum
|
21664
|
+
# value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
|
21665
|
+
# Corresponds to the JSON property `initialDelaySeconds`
|
21666
|
+
# @return [Fixnum]
|
21667
|
+
attr_accessor :initial_delay_seconds
|
21668
|
+
|
20936
21669
|
# How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
|
20937
21670
|
# value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
|
20938
21671
|
# argument 'periodSeconds'.
|
@@ -20940,6 +21673,13 @@ module Google
|
|
20940
21673
|
# @return [Fixnum]
|
20941
21674
|
attr_accessor :period_seconds
|
20942
21675
|
|
21676
|
+
# Number of consecutive successes before the probe is considered successful.
|
21677
|
+
# Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument '
|
21678
|
+
# successThreshold'.
|
21679
|
+
# Corresponds to the JSON property `successThreshold`
|
21680
|
+
# @return [Fixnum]
|
21681
|
+
attr_accessor :success_threshold
|
21682
|
+
|
20943
21683
|
# TcpSocketAction probes the health of a container by opening a TCP socket
|
20944
21684
|
# connection.
|
20945
21685
|
# Corresponds to the JSON property `tcpSocket`
|
@@ -20960,9 +21700,12 @@ module Google
|
|
20960
21700
|
# Update properties of this object
|
20961
21701
|
def update!(**args)
|
20962
21702
|
@exec = args[:exec] if args.key?(:exec)
|
21703
|
+
@failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
|
20963
21704
|
@grpc = args[:grpc] if args.key?(:grpc)
|
20964
21705
|
@http_get = args[:http_get] if args.key?(:http_get)
|
21706
|
+
@initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
|
20965
21707
|
@period_seconds = args[:period_seconds] if args.key?(:period_seconds)
|
21708
|
+
@success_threshold = args[:success_threshold] if args.key?(:success_threshold)
|
20966
21709
|
@tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
|
20967
21710
|
@timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
|
20968
21711
|
end
|
@@ -21354,8 +22097,8 @@ module Google
|
|
21354
22097
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelContainerSpec]
|
21355
22098
|
attr_accessor :container_spec
|
21356
22099
|
|
21357
|
-
# A description of resources that are dedicated to a DeployedModel
|
21358
|
-
# need a higher degree of manual configuration.
|
22100
|
+
# A description of resources that are dedicated to a DeployedModel or
|
22101
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
21359
22102
|
# Corresponds to the JSON property `dedicatedResources`
|
21360
22103
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
21361
22104
|
attr_accessor :dedicated_resources
|
@@ -22909,7 +23652,8 @@ module Google
|
|
22909
23652
|
class GoogleCloudAiplatformV1RagVectorDbConfig
|
22910
23653
|
include Google::Apis::Core::Hashable
|
22911
23654
|
|
22912
|
-
# The generic reusable api auth config.
|
23655
|
+
# The generic reusable api auth config. Deprecated. Please use AuthConfig (
|
23656
|
+
# google/cloud/aiplatform/master/auth.proto) instead.
|
22913
23657
|
# Corresponds to the JSON property `apiAuth`
|
22914
23658
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth]
|
22915
23659
|
attr_accessor :api_auth
|
@@ -23522,6 +24266,11 @@ module Google
|
|
23522
24266
|
# @return [Array<Hash<String,Object>>]
|
23523
24267
|
attr_accessor :class_methods
|
23524
24268
|
|
24269
|
+
# The specification of a Reasoning Engine deployment.
|
24270
|
+
# Corresponds to the JSON property `deploymentSpec`
|
24271
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec]
|
24272
|
+
attr_accessor :deployment_spec
|
24273
|
+
|
23525
24274
|
# User provided package spec like pickled object and package requirements.
|
23526
24275
|
# Corresponds to the JSON property `packageSpec`
|
23527
24276
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec]
|
@@ -23534,10 +24283,40 @@ module Google
|
|
23534
24283
|
# Update properties of this object
|
23535
24284
|
def update!(**args)
|
23536
24285
|
@class_methods = args[:class_methods] if args.key?(:class_methods)
|
24286
|
+
@deployment_spec = args[:deployment_spec] if args.key?(:deployment_spec)
|
23537
24287
|
@package_spec = args[:package_spec] if args.key?(:package_spec)
|
23538
24288
|
end
|
23539
24289
|
end
|
23540
24290
|
|
24291
|
+
# The specification of a Reasoning Engine deployment.
|
24292
|
+
class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec
|
24293
|
+
include Google::Apis::Core::Hashable
|
24294
|
+
|
24295
|
+
# Optional. Environment variables to be set with the Reasoning Engine deployment.
|
24296
|
+
# The environment variables can be updated through the UpdateReasoningEngine
|
24297
|
+
# API.
|
24298
|
+
# Corresponds to the JSON property `env`
|
24299
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
|
24300
|
+
attr_accessor :env
|
24301
|
+
|
24302
|
+
# Optional. Environment variables where the value is a secret in Cloud Secret
|
24303
|
+
# Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/
|
24304
|
+
# secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.
|
24305
|
+
# Corresponds to the JSON property `secretEnv`
|
24306
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SecretEnvVar>]
|
24307
|
+
attr_accessor :secret_env
|
24308
|
+
|
24309
|
+
def initialize(**args)
|
24310
|
+
update!(**args)
|
24311
|
+
end
|
24312
|
+
|
24313
|
+
# Update properties of this object
|
24314
|
+
def update!(**args)
|
24315
|
+
@env = args[:env] if args.key?(:env)
|
24316
|
+
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
24317
|
+
end
|
24318
|
+
end
|
24319
|
+
|
23541
24320
|
# User provided package spec like pickled object and package requirements.
|
23542
24321
|
class GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec
|
23543
24322
|
include Google::Apis::Core::Hashable
|
@@ -23737,7 +24516,7 @@ module Google
|
|
23737
24516
|
attr_accessor :reservation_affinity_type
|
23738
24517
|
|
23739
24518
|
# Optional. Corresponds to the label values of a reservation resource. This must
|
23740
|
-
# be the full resource name of the reservation.
|
24519
|
+
# be the full resource name of the reservation or reservation block.
|
23741
24520
|
# Corresponds to the JSON property `values`
|
23742
24521
|
# @return [Array<String>]
|
23743
24522
|
attr_accessor :values
|
@@ -23975,8 +24754,9 @@ module Google
|
|
23975
24754
|
attr_accessor :disable_attribution
|
23976
24755
|
alias_method :disable_attribution?, :disable_attribution
|
23977
24756
|
|
23978
|
-
# Retrieve from Vertex AI Search datastore for grounding.
|
23979
|
-
# google.com/products/agent-
|
24757
|
+
# Retrieve from Vertex AI Search datastore or engine for grounding. datastore
|
24758
|
+
# and engine are mutually exclusive. See https://cloud.google.com/products/agent-
|
24759
|
+
# builder
|
23980
24760
|
# Corresponds to the JSON property `vertexAiSearch`
|
23981
24761
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch]
|
23982
24762
|
attr_accessor :vertex_ai_search
|
@@ -23998,6 +24778,34 @@ module Google
|
|
23998
24778
|
end
|
23999
24779
|
end
|
24000
24780
|
|
24781
|
+
# Retrieval config.
|
24782
|
+
class GoogleCloudAiplatformV1RetrievalConfig
|
24783
|
+
include Google::Apis::Core::Hashable
|
24784
|
+
|
24785
|
+
# The language code of the user.
|
24786
|
+
# Corresponds to the JSON property `languageCode`
|
24787
|
+
# @return [String]
|
24788
|
+
attr_accessor :language_code
|
24789
|
+
|
24790
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
24791
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
24792
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
24793
|
+
# must be within normalized ranges.
|
24794
|
+
# Corresponds to the JSON property `latLng`
|
24795
|
+
# @return [Google::Apis::AiplatformV1::GoogleTypeLatLng]
|
24796
|
+
attr_accessor :lat_lng
|
24797
|
+
|
24798
|
+
def initialize(**args)
|
24799
|
+
update!(**args)
|
24800
|
+
end
|
24801
|
+
|
24802
|
+
# Update properties of this object
|
24803
|
+
def update!(**args)
|
24804
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
24805
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
24806
|
+
end
|
24807
|
+
end
|
24808
|
+
|
24001
24809
|
# Metadata related to retrieval in the grounding flow.
|
24002
24810
|
class GoogleCloudAiplatformV1RetrievalMetadata
|
24003
24811
|
include Google::Apis::Core::Hashable
|
@@ -28229,8 +29037,9 @@ module Google
|
|
28229
29037
|
class GoogleCloudAiplatformV1SchemaTextDataItem
|
28230
29038
|
include Google::Apis::Core::Hashable
|
28231
29039
|
|
28232
|
-
# Output only. Google Cloud Storage URI points to the original text in
|
28233
|
-
# bucket. The text file is up to 10MB
|
29040
|
+
# Output only. Google Cloud Storage URI points to a copy of the original text in
|
29041
|
+
# the Vertex-managed bucket in the user's project. The text file is up to 10MB
|
29042
|
+
# in size.
|
28234
29043
|
# Corresponds to the JSON property `gcsUri`
|
28235
29044
|
# @return [String]
|
28236
29045
|
attr_accessor :gcs_uri
|
@@ -31946,6 +32755,62 @@ module Google
|
|
31946
32755
|
end
|
31947
32756
|
end
|
31948
32757
|
|
32758
|
+
# Represents an environment variable where the value is a secret in Cloud Secret
|
32759
|
+
# Manager.
|
32760
|
+
class GoogleCloudAiplatformV1SecretEnvVar
|
32761
|
+
include Google::Apis::Core::Hashable
|
32762
|
+
|
32763
|
+
# Required. Name of the secret environment variable.
|
32764
|
+
# Corresponds to the JSON property `name`
|
32765
|
+
# @return [String]
|
32766
|
+
attr_accessor :name
|
32767
|
+
|
32768
|
+
# Reference to a secret stored in the Cloud Secret Manager that will provide the
|
32769
|
+
# value for this environment variable.
|
32770
|
+
# Corresponds to the JSON property `secretRef`
|
32771
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SecretRef]
|
32772
|
+
attr_accessor :secret_ref
|
32773
|
+
|
32774
|
+
def initialize(**args)
|
32775
|
+
update!(**args)
|
32776
|
+
end
|
32777
|
+
|
32778
|
+
# Update properties of this object
|
32779
|
+
def update!(**args)
|
32780
|
+
@name = args[:name] if args.key?(:name)
|
32781
|
+
@secret_ref = args[:secret_ref] if args.key?(:secret_ref)
|
32782
|
+
end
|
32783
|
+
end
|
32784
|
+
|
32785
|
+
# Reference to a secret stored in the Cloud Secret Manager that will provide the
|
32786
|
+
# value for this environment variable.
|
32787
|
+
class GoogleCloudAiplatformV1SecretRef
|
32788
|
+
include Google::Apis::Core::Hashable
|
32789
|
+
|
32790
|
+
# Required. The name of the secret in Cloud Secret Manager. Format: `secret_name`
|
32791
|
+
# if the secret is in the same project. projects/`project`/secrets/`secret_name`
|
32792
|
+
# if the secret is in a different project.
|
32793
|
+
# Corresponds to the JSON property `secret`
|
32794
|
+
# @return [String]
|
32795
|
+
attr_accessor :secret
|
32796
|
+
|
32797
|
+
# The Cloud Secret Manager secret version. Can be 'latest' for the latest
|
32798
|
+
# version, an integer for a specific version, or a version alias.
|
32799
|
+
# Corresponds to the JSON property `version`
|
32800
|
+
# @return [String]
|
32801
|
+
attr_accessor :version
|
32802
|
+
|
32803
|
+
def initialize(**args)
|
32804
|
+
update!(**args)
|
32805
|
+
end
|
32806
|
+
|
32807
|
+
# Update properties of this object
|
32808
|
+
def update!(**args)
|
32809
|
+
@secret = args[:secret] if args.key?(:secret)
|
32810
|
+
@version = args[:version] if args.key?(:version)
|
32811
|
+
end
|
32812
|
+
end
|
32813
|
+
|
31949
32814
|
# Segment of the content.
|
31950
32815
|
class GoogleCloudAiplatformV1Segment
|
31951
32816
|
include Google::Apis::Core::Hashable
|
@@ -32313,6 +33178,81 @@ module Google
|
|
32313
33178
|
end
|
32314
33179
|
end
|
32315
33180
|
|
33181
|
+
# Configuration for Speculative Decoding.
|
33182
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpec
|
33183
|
+
include Google::Apis::Core::Hashable
|
33184
|
+
|
33185
|
+
# Draft model speculation works by using the smaller model to generate candidate
|
33186
|
+
# tokens for speculative decoding.
|
33187
|
+
# Corresponds to the JSON property `draftModelSpeculation`
|
33188
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation]
|
33189
|
+
attr_accessor :draft_model_speculation
|
33190
|
+
|
33191
|
+
# N-Gram speculation works by trying to find matching tokens in the previous
|
33192
|
+
# prompt sequence and use those as speculation for generating new tokens.
|
33193
|
+
# Corresponds to the JSON property `ngramSpeculation`
|
33194
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation]
|
33195
|
+
attr_accessor :ngram_speculation
|
33196
|
+
|
33197
|
+
# The number of speculative tokens to generate at each step.
|
33198
|
+
# Corresponds to the JSON property `speculativeTokenCount`
|
33199
|
+
# @return [Fixnum]
|
33200
|
+
attr_accessor :speculative_token_count
|
33201
|
+
|
33202
|
+
def initialize(**args)
|
33203
|
+
update!(**args)
|
33204
|
+
end
|
33205
|
+
|
33206
|
+
# Update properties of this object
|
33207
|
+
def update!(**args)
|
33208
|
+
@draft_model_speculation = args[:draft_model_speculation] if args.key?(:draft_model_speculation)
|
33209
|
+
@ngram_speculation = args[:ngram_speculation] if args.key?(:ngram_speculation)
|
33210
|
+
@speculative_token_count = args[:speculative_token_count] if args.key?(:speculative_token_count)
|
33211
|
+
end
|
33212
|
+
end
|
33213
|
+
|
33214
|
+
# Draft model speculation works by using the smaller model to generate candidate
|
33215
|
+
# tokens for speculative decoding.
|
33216
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation
|
33217
|
+
include Google::Apis::Core::Hashable
|
33218
|
+
|
33219
|
+
# Required. The resource name of the draft model.
|
33220
|
+
# Corresponds to the JSON property `draftModel`
|
33221
|
+
# @return [String]
|
33222
|
+
attr_accessor :draft_model
|
33223
|
+
|
33224
|
+
def initialize(**args)
|
33225
|
+
update!(**args)
|
33226
|
+
end
|
33227
|
+
|
33228
|
+
# Update properties of this object
|
33229
|
+
def update!(**args)
|
33230
|
+
@draft_model = args[:draft_model] if args.key?(:draft_model)
|
33231
|
+
end
|
33232
|
+
end
|
33233
|
+
|
33234
|
+
# N-Gram speculation works by trying to find matching tokens in the previous
|
33235
|
+
# prompt sequence and use those as speculation for generating new tokens.
|
33236
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation
|
33237
|
+
include Google::Apis::Core::Hashable
|
33238
|
+
|
33239
|
+
# The number of last N input tokens used as ngram to search/match against the
|
33240
|
+
# previous prompt sequence. This is equal to the N in N-Gram. The default value
|
33241
|
+
# is 3 if not specified.
|
33242
|
+
# Corresponds to the JSON property `ngramSize`
|
33243
|
+
# @return [Fixnum]
|
33244
|
+
attr_accessor :ngram_size
|
33245
|
+
|
33246
|
+
def initialize(**args)
|
33247
|
+
update!(**args)
|
33248
|
+
end
|
33249
|
+
|
33250
|
+
# Update properties of this object
|
33251
|
+
def update!(**args)
|
33252
|
+
@ngram_size = args[:ngram_size] if args.key?(:ngram_size)
|
33253
|
+
end
|
33254
|
+
end
|
33255
|
+
|
32316
33256
|
# The speech generation config.
|
32317
33257
|
class GoogleCloudAiplatformV1SpeechConfig
|
32318
33258
|
include Google::Apis::Core::Hashable
|
@@ -33872,6 +34812,12 @@ module Google
|
|
33872
34812
|
class GoogleCloudAiplatformV1SupervisedTuningDataStats
|
33873
34813
|
include Google::Apis::Core::Hashable
|
33874
34814
|
|
34815
|
+
# Output only. For each index in `truncated_example_indices`, the user-facing
|
34816
|
+
# reason why the example was dropped. Must not include example itself.
|
34817
|
+
# Corresponds to the JSON property `droppedExampleReasons`
|
34818
|
+
# @return [Array<String>]
|
34819
|
+
attr_accessor :dropped_example_reasons
|
34820
|
+
|
33875
34821
|
# Output only. Number of billable characters in the tuning dataset.
|
33876
34822
|
# Corresponds to the JSON property `totalBillableCharacterCount`
|
33877
34823
|
# @return [Fixnum]
|
@@ -33882,7 +34828,9 @@ module Google
|
|
33882
34828
|
# @return [Fixnum]
|
33883
34829
|
attr_accessor :total_billable_token_count
|
33884
34830
|
|
33885
|
-
# The number of examples in the dataset that have been
|
34831
|
+
# Output only. The number of examples in the dataset that have been dropped. An
|
34832
|
+
# example can be dropped for reasons including: too many tokens, contains an
|
34833
|
+
# invalid image, contains too many images, etc.
|
33886
34834
|
# Corresponds to the JSON property `totalTruncatedExampleCount`
|
33887
34835
|
# @return [Fixnum]
|
33888
34836
|
attr_accessor :total_truncated_example_count
|
@@ -33892,7 +34840,8 @@ module Google
|
|
33892
34840
|
# @return [Fixnum]
|
33893
34841
|
attr_accessor :total_tuning_character_count
|
33894
34842
|
|
33895
|
-
# A partial sample of the indices (starting from 1) of the
|
34843
|
+
# Output only. A partial sample of the indices (starting from 1) of the dropped
|
34844
|
+
# examples.
|
33896
34845
|
# Corresponds to the JSON property `truncatedExampleIndices`
|
33897
34846
|
# @return [Array<Fixnum>]
|
33898
34847
|
attr_accessor :truncated_example_indices
|
@@ -33933,6 +34882,7 @@ module Google
|
|
33933
34882
|
|
33934
34883
|
# Update properties of this object
|
33935
34884
|
def update!(**args)
|
34885
|
+
@dropped_example_reasons = args[:dropped_example_reasons] if args.key?(:dropped_example_reasons)
|
33936
34886
|
@total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
|
33937
34887
|
@total_billable_token_count = args[:total_billable_token_count] if args.key?(:total_billable_token_count)
|
33938
34888
|
@total_truncated_example_count = args[:total_truncated_example_count] if args.key?(:total_truncated_example_count)
|
@@ -34856,6 +35806,19 @@ module Google
|
|
34856
35806
|
class GoogleCloudAiplatformV1Tool
|
34857
35807
|
include Google::Apis::Core::Hashable
|
34858
35808
|
|
35809
|
+
# Tool that executes code generated by the model, and automatically returns the
|
35810
|
+
# result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
|
35811
|
+
# are input and output to this tool.
|
35812
|
+
# Corresponds to the JSON property `codeExecution`
|
35813
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolCodeExecution]
|
35814
|
+
attr_accessor :code_execution
|
35815
|
+
|
35816
|
+
# Tool to search public web data, powered by Vertex AI Search and Sec4
|
35817
|
+
# compliance.
|
35818
|
+
# Corresponds to the JSON property `enterpriseWebSearch`
|
35819
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnterpriseWebSearch]
|
35820
|
+
attr_accessor :enterprise_web_search
|
35821
|
+
|
34859
35822
|
# Optional. Function tool type. One or more function declarations to be passed
|
34860
35823
|
# to the model along with the current user query. Model may decide to call a
|
34861
35824
|
# subset of these functions by populating FunctionCall in the response. User
|
@@ -34888,6 +35851,8 @@ module Google
|
|
34888
35851
|
|
34889
35852
|
# Update properties of this object
|
34890
35853
|
def update!(**args)
|
35854
|
+
@code_execution = args[:code_execution] if args.key?(:code_execution)
|
35855
|
+
@enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
|
34891
35856
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
34892
35857
|
@google_search = args[:google_search] if args.key?(:google_search)
|
34893
35858
|
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
|
@@ -35021,6 +35986,21 @@ module Google
|
|
35021
35986
|
end
|
35022
35987
|
end
|
35023
35988
|
|
35989
|
+
# Tool that executes code generated by the model, and automatically returns the
|
35990
|
+
# result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
|
35991
|
+
# are input and output to this tool.
|
35992
|
+
class GoogleCloudAiplatformV1ToolCodeExecution
|
35993
|
+
include Google::Apis::Core::Hashable
|
35994
|
+
|
35995
|
+
def initialize(**args)
|
35996
|
+
update!(**args)
|
35997
|
+
end
|
35998
|
+
|
35999
|
+
# Update properties of this object
|
36000
|
+
def update!(**args)
|
36001
|
+
end
|
36002
|
+
end
|
36003
|
+
|
35024
36004
|
# Tool config. This config is shared for all tools provided in the request.
|
35025
36005
|
class GoogleCloudAiplatformV1ToolConfig
|
35026
36006
|
include Google::Apis::Core::Hashable
|
@@ -35030,6 +36010,11 @@ module Google
|
|
35030
36010
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCallingConfig]
|
35031
36011
|
attr_accessor :function_calling_config
|
35032
36012
|
|
36013
|
+
# Retrieval config.
|
36014
|
+
# Corresponds to the JSON property `retrievalConfig`
|
36015
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalConfig]
|
36016
|
+
attr_accessor :retrieval_config
|
36017
|
+
|
35033
36018
|
def initialize(**args)
|
35034
36019
|
update!(**args)
|
35035
36020
|
end
|
@@ -35037,6 +36022,7 @@ module Google
|
|
35037
36022
|
# Update properties of this object
|
35038
36023
|
def update!(**args)
|
35039
36024
|
@function_calling_config = args[:function_calling_config] if args.key?(:function_calling_config)
|
36025
|
+
@retrieval_config = args[:retrieval_config] if args.key?(:retrieval_config)
|
35040
36026
|
end
|
35041
36027
|
end
|
35042
36028
|
|
@@ -36339,7 +37325,7 @@ module Google
|
|
36339
37325
|
end
|
36340
37326
|
end
|
36341
37327
|
|
36342
|
-
# The Model Registry Model and Online Prediction Endpoint
|
37328
|
+
# The Model Registry Model and Online Prediction Endpoint associated with this
|
36343
37329
|
# TuningJob.
|
36344
37330
|
class GoogleCloudAiplatformV1TunedModel
|
36345
37331
|
include Google::Apis::Core::Hashable
|
@@ -36506,7 +37492,7 @@ module Google
|
|
36506
37492
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningSpec]
|
36507
37493
|
attr_accessor :supervised_tuning_spec
|
36508
37494
|
|
36509
|
-
# The Model Registry Model and Online Prediction Endpoint
|
37495
|
+
# The Model Registry Model and Online Prediction Endpoint associated with this
|
36510
37496
|
# TuningJob.
|
36511
37497
|
# Corresponds to the JSON property `tunedModel`
|
36512
37498
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TunedModel]
|
@@ -37320,12 +38306,13 @@ module Google
|
|
37320
38306
|
end
|
37321
38307
|
end
|
37322
38308
|
|
37323
|
-
# Retrieve from Vertex AI Search datastore for grounding.
|
37324
|
-
# google.com/products/agent-
|
38309
|
+
# Retrieve from Vertex AI Search datastore or engine for grounding. datastore
|
38310
|
+
# and engine are mutually exclusive. See https://cloud.google.com/products/agent-
|
38311
|
+
# builder
|
37325
38312
|
class GoogleCloudAiplatformV1VertexAiSearch
|
37326
38313
|
include Google::Apis::Core::Hashable
|
37327
38314
|
|
37328
|
-
#
|
38315
|
+
# Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `
|
37329
38316
|
# projects/`project`/locations/`location`/collections/`collection`/dataStores/`
|
37330
38317
|
# dataStore``
|
37331
38318
|
# Corresponds to the JSON property `datastore`
|
@@ -38361,6 +39348,34 @@ module Google
|
|
38361
39348
|
end
|
38362
39349
|
end
|
38363
39350
|
|
39351
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
39352
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
39353
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
39354
|
+
# must be within normalized ranges.
|
39355
|
+
class GoogleTypeLatLng
|
39356
|
+
include Google::Apis::Core::Hashable
|
39357
|
+
|
39358
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
39359
|
+
# Corresponds to the JSON property `latitude`
|
39360
|
+
# @return [Float]
|
39361
|
+
attr_accessor :latitude
|
39362
|
+
|
39363
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
39364
|
+
# Corresponds to the JSON property `longitude`
|
39365
|
+
# @return [Float]
|
39366
|
+
attr_accessor :longitude
|
39367
|
+
|
39368
|
+
def initialize(**args)
|
39369
|
+
update!(**args)
|
39370
|
+
end
|
39371
|
+
|
39372
|
+
# Update properties of this object
|
39373
|
+
def update!(**args)
|
39374
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
39375
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
39376
|
+
end
|
39377
|
+
end
|
39378
|
+
|
38364
39379
|
# Represents an amount of money with its currency type.
|
38365
39380
|
class GoogleTypeMoney
|
38366
39381
|
include Google::Apis::Core::Hashable
|