google-apis-aiplatform_v1 0.43.0 → 0.44.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.
@@ -474,7 +474,7 @@ module Google
|
|
474
474
|
end
|
475
475
|
end
|
476
476
|
|
477
|
-
# Create API error message for Vertex Pipeline.
|
477
|
+
# Create API error message for Vertex Pipeline.
|
478
478
|
class CloudAiPlatformCommonCreatePipelineJobApiErrorDetail
|
479
479
|
include Google::Apis::Core::Hashable
|
480
480
|
|
@@ -840,7 +840,8 @@ module Google
|
|
840
840
|
end
|
841
841
|
end
|
842
842
|
|
843
|
-
# The generic reusable api auth config.
|
843
|
+
# The generic reusable api auth config. Deprecated. Please use AuthConfig (
|
844
|
+
# google/cloud/aiplatform/master/auth.proto) instead.
|
844
845
|
class GoogleCloudAiplatformV1ApiAuth
|
845
846
|
include Google::Apis::Core::Hashable
|
846
847
|
|
@@ -1220,22 +1221,22 @@ module Google
|
|
1220
1221
|
class GoogleCloudAiplatformV1AutomaticResources
|
1221
1222
|
include Google::Apis::Core::Hashable
|
1222
1223
|
|
1223
|
-
# Immutable. The maximum number of replicas
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
#
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
#
|
1224
|
+
# Immutable. The maximum number of replicas that may be deployed on when the
|
1225
|
+
# traffic against it increases. If the requested value is too large, the
|
1226
|
+
# deployment will error, but if deployment succeeds then the ability to scale to
|
1227
|
+
# that many replicas is guaranteed (barring service outages). If traffic
|
1228
|
+
# increases beyond what its replicas at maximum may handle, a portion of the
|
1229
|
+
# traffic will be dropped. If this value is not provided, a no upper bound for
|
1230
|
+
# scaling under heavy traffic will be assume, though Vertex AI may be unable to
|
1231
|
+
# scale beyond certain replica number.
|
1231
1232
|
# Corresponds to the JSON property `maxReplicaCount`
|
1232
1233
|
# @return [Fixnum]
|
1233
1234
|
attr_accessor :max_replica_count
|
1234
1235
|
|
1235
|
-
# Immutable. The minimum number of replicas
|
1236
|
-
#
|
1237
|
-
#
|
1238
|
-
#
|
1236
|
+
# Immutable. The minimum number of replicas that will be always deployed on. If
|
1237
|
+
# traffic against it increases, it may dynamically be deployed onto more
|
1238
|
+
# replicas up to max_replica_count, and as traffic decreases, some of these
|
1239
|
+
# extra replicas may be freed. If the requested value is too large, the
|
1239
1240
|
# deployment will error.
|
1240
1241
|
# Corresponds to the JSON property `minReplicaCount`
|
1241
1242
|
# @return [Fixnum]
|
@@ -1252,6 +1253,48 @@ module Google
|
|
1252
1253
|
end
|
1253
1254
|
end
|
1254
1255
|
|
1256
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
1257
|
+
# EvaluateDataset.
|
1258
|
+
class GoogleCloudAiplatformV1AutoraterConfig
|
1259
|
+
include Google::Apis::Core::Hashable
|
1260
|
+
|
1261
|
+
# Optional. The fully qualified name of the publisher model or tuned autorater
|
1262
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
1263
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
1264
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
1265
|
+
# Corresponds to the JSON property `autoraterModel`
|
1266
|
+
# @return [String]
|
1267
|
+
attr_accessor :autorater_model
|
1268
|
+
|
1269
|
+
# Optional. Whether to flip the candidate and baseline responses. This is only
|
1270
|
+
# applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.
|
1271
|
+
# candidate_response_field_name and PairwiseMetricSpec.
|
1272
|
+
# baseline_response_field_name. When rendering PairwiseMetricSpec.
|
1273
|
+
# metric_prompt_template, the candidate and baseline fields will be flipped for
|
1274
|
+
# half of the samples to reduce bias.
|
1275
|
+
# Corresponds to the JSON property `flipEnabled`
|
1276
|
+
# @return [Boolean]
|
1277
|
+
attr_accessor :flip_enabled
|
1278
|
+
alias_method :flip_enabled?, :flip_enabled
|
1279
|
+
|
1280
|
+
# Optional. Number of samples for each instance in the dataset. If not specified,
|
1281
|
+
# the default is 4. Minimum value is 1, maximum value is 32.
|
1282
|
+
# Corresponds to the JSON property `samplingCount`
|
1283
|
+
# @return [Fixnum]
|
1284
|
+
attr_accessor :sampling_count
|
1285
|
+
|
1286
|
+
def initialize(**args)
|
1287
|
+
update!(**args)
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# Update properties of this object
|
1291
|
+
def update!(**args)
|
1292
|
+
@autorater_model = args[:autorater_model] if args.key?(:autorater_model)
|
1293
|
+
@flip_enabled = args[:flip_enabled] if args.key?(:flip_enabled)
|
1294
|
+
@sampling_count = args[:sampling_count] if args.key?(:sampling_count)
|
1295
|
+
end
|
1296
|
+
end
|
1297
|
+
|
1255
1298
|
# The metric specification that defines the target resource utilization (CPU
|
1256
1299
|
# utilization, accelerator's duty cycle, and so on) for calculating the desired
|
1257
1300
|
# replica count.
|
@@ -2447,6 +2490,13 @@ module Google
|
|
2447
2490
|
# @return [String]
|
2448
2491
|
attr_accessor :data
|
2449
2492
|
|
2493
|
+
# Optional. Display name of the blob. Used to provide a label or filename to
|
2494
|
+
# distinguish blobs. This field is only returned in PromptMessage for prompt
|
2495
|
+
# management. It is not currently used in the Gemini GenerateContent calls.
|
2496
|
+
# Corresponds to the JSON property `displayName`
|
2497
|
+
# @return [String]
|
2498
|
+
attr_accessor :display_name
|
2499
|
+
|
2450
2500
|
# Required. The IANA standard MIME type of the source data.
|
2451
2501
|
# Corresponds to the JSON property `mimeType`
|
2452
2502
|
# @return [String]
|
@@ -2459,6 +2509,7 @@ module Google
|
|
2459
2509
|
# Update properties of this object
|
2460
2510
|
def update!(**args)
|
2461
2511
|
@data = args[:data] if args.key?(:data)
|
2512
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2462
2513
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
2463
2514
|
end
|
2464
2515
|
end
|
@@ -2543,7 +2594,7 @@ module Google
|
|
2543
2594
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
2544
2595
|
attr_accessor :contents
|
2545
2596
|
|
2546
|
-
# Output only.
|
2597
|
+
# Output only. Creation time of the cache entry.
|
2547
2598
|
# Corresponds to the JSON property `createTime`
|
2548
2599
|
# @return [String]
|
2549
2600
|
attr_accessor :create_time
|
@@ -2560,8 +2611,9 @@ module Google
|
|
2560
2611
|
# @return [String]
|
2561
2612
|
attr_accessor :expire_time
|
2562
2613
|
|
2563
|
-
# Immutable. The name of the
|
2564
|
-
# projects/`
|
2614
|
+
# Immutable. The name of the `Model` to use for cached content. Currently, only
|
2615
|
+
# the published Gemini base models are supported, in form of projects/`PROJECT`/
|
2616
|
+
# locations/`LOCATION`/publishers/google/models/`MODEL`
|
2565
2617
|
# Corresponds to the JSON property `model`
|
2566
2618
|
# @return [String]
|
2567
2619
|
attr_accessor :model
|
@@ -3045,6 +3097,33 @@ module Google
|
|
3045
3097
|
end
|
3046
3098
|
end
|
3047
3099
|
|
3100
|
+
# Result of executing the [ExecutableCode]. Always follows a `part` containing
|
3101
|
+
# the [ExecutableCode].
|
3102
|
+
class GoogleCloudAiplatformV1CodeExecutionResult
|
3103
|
+
include Google::Apis::Core::Hashable
|
3104
|
+
|
3105
|
+
# Required. Outcome of the code execution.
|
3106
|
+
# Corresponds to the JSON property `outcome`
|
3107
|
+
# @return [String]
|
3108
|
+
attr_accessor :outcome
|
3109
|
+
|
3110
|
+
# Optional. Contains stdout when code execution is successful, stderr or other
|
3111
|
+
# description otherwise.
|
3112
|
+
# Corresponds to the JSON property `output`
|
3113
|
+
# @return [String]
|
3114
|
+
attr_accessor :output
|
3115
|
+
|
3116
|
+
def initialize(**args)
|
3117
|
+
update!(**args)
|
3118
|
+
end
|
3119
|
+
|
3120
|
+
# Update properties of this object
|
3121
|
+
def update!(**args)
|
3122
|
+
@outcome = args[:outcome] if args.key?(:outcome)
|
3123
|
+
@output = args[:output] if args.key?(:output)
|
3124
|
+
end
|
3125
|
+
end
|
3126
|
+
|
3048
3127
|
# Input for coherence metric.
|
3049
3128
|
class GoogleCloudAiplatformV1CoherenceInput
|
3050
3129
|
include Google::Apis::Core::Hashable
|
@@ -3824,6 +3903,11 @@ module Google
|
|
3824
3903
|
class GoogleCloudAiplatformV1CountTokensResponse
|
3825
3904
|
include Google::Apis::Core::Hashable
|
3826
3905
|
|
3906
|
+
# Output only. List of modalities that were processed in the request input.
|
3907
|
+
# Corresponds to the JSON property `promptTokensDetails`
|
3908
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
3909
|
+
attr_accessor :prompt_tokens_details
|
3910
|
+
|
3827
3911
|
# The total number of billable characters counted across all instances from the
|
3828
3912
|
# request.
|
3829
3913
|
# Corresponds to the JSON property `totalBillableCharacters`
|
@@ -3841,6 +3925,7 @@ module Google
|
|
3841
3925
|
|
3842
3926
|
# Update properties of this object
|
3843
3927
|
def update!(**args)
|
3928
|
+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
|
3844
3929
|
@total_billable_characters = args[:total_billable_characters] if args.key?(:total_billable_characters)
|
3845
3930
|
@total_tokens = args[:total_tokens] if args.key?(:total_tokens)
|
3846
3931
|
end
|
@@ -5172,7 +5257,9 @@ module Google
|
|
5172
5257
|
# @return [String]
|
5173
5258
|
attr_accessor :model_reference
|
5174
5259
|
|
5175
|
-
# Output only. Identifier. The resource name of the DatasetVersion.
|
5260
|
+
# Output only. Identifier. The resource name of the DatasetVersion. Format: `
|
5261
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
5262
|
+
# dataset_version``
|
5176
5263
|
# Corresponds to the JSON property `name`
|
5177
5264
|
# @return [String]
|
5178
5265
|
attr_accessor :name
|
@@ -5213,8 +5300,8 @@ module Google
|
|
5213
5300
|
end
|
5214
5301
|
end
|
5215
5302
|
|
5216
|
-
# A description of resources that are dedicated to a DeployedModel
|
5217
|
-
# need a higher degree of manual configuration.
|
5303
|
+
# A description of resources that are dedicated to a DeployedModel or
|
5304
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5218
5305
|
class GoogleCloudAiplatformV1DedicatedResources
|
5219
5306
|
include Google::Apis::Core::Hashable
|
5220
5307
|
|
@@ -5240,36 +5327,33 @@ module Google
|
|
5240
5327
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MachineSpec]
|
5241
5328
|
attr_accessor :machine_spec
|
5242
5329
|
|
5243
|
-
# Immutable. The maximum number of replicas
|
5244
|
-
#
|
5245
|
-
#
|
5246
|
-
#
|
5247
|
-
#
|
5248
|
-
#
|
5249
|
-
#
|
5250
|
-
#
|
5251
|
-
#
|
5252
|
-
#
|
5253
|
-
# selected machine type).
|
5330
|
+
# Immutable. The maximum number of replicas that may be deployed on when the
|
5331
|
+
# traffic against it increases. If the requested value is too large, the
|
5332
|
+
# deployment will error, but if deployment succeeds then the ability to scale to
|
5333
|
+
# that many replicas is guaranteed (barring service outages). If traffic
|
5334
|
+
# increases beyond what its replicas at maximum may handle, a portion of the
|
5335
|
+
# traffic will be dropped. If this value is not provided, will use
|
5336
|
+
# min_replica_count as the default value. The value of this field impacts the
|
5337
|
+
# charge against Vertex CPU and GPU quotas. Specifically, you will be charged
|
5338
|
+
# for (max_replica_count * number of cores in the selected machine type) and (
|
5339
|
+
# max_replica_count * number of GPUs per replica in the selected machine type).
|
5254
5340
|
# Corresponds to the JSON property `maxReplicaCount`
|
5255
5341
|
# @return [Fixnum]
|
5256
5342
|
attr_accessor :max_replica_count
|
5257
5343
|
|
5258
|
-
# Required. Immutable. The minimum number of machine replicas
|
5259
|
-
#
|
5260
|
-
#
|
5261
|
-
#
|
5262
|
-
# be freed.
|
5344
|
+
# Required. Immutable. The minimum number of machine replicas that will be
|
5345
|
+
# always deployed on. This value must be greater than or equal to 1. If traffic
|
5346
|
+
# increases, it may dynamically be deployed onto more replicas, and as traffic
|
5347
|
+
# decreases, some of these extra replicas may be freed.
|
5263
5348
|
# Corresponds to the JSON property `minReplicaCount`
|
5264
5349
|
# @return [Fixnum]
|
5265
5350
|
attr_accessor :min_replica_count
|
5266
5351
|
|
5267
5352
|
# 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.
|
5353
|
+
# This field is only needed when partial deployment/mutation is desired. If set,
|
5354
|
+
# the deploy/mutate operation will succeed once available_replica_count reaches
|
5355
|
+
# required_replica_count, and the rest of the replicas will be retried. If not
|
5356
|
+
# set, the default required_replica_count will be min_replica_count.
|
5273
5357
|
# Corresponds to the JSON property `requiredReplicaCount`
|
5274
5358
|
# @return [Fixnum]
|
5275
5359
|
attr_accessor :required_replica_count
|
@@ -5684,8 +5768,8 @@ module Google
|
|
5684
5768
|
# @return [String]
|
5685
5769
|
attr_accessor :create_time
|
5686
5770
|
|
5687
|
-
# A description of resources that are dedicated to a DeployedModel
|
5688
|
-
# need a higher degree of manual configuration.
|
5771
|
+
# A description of resources that are dedicated to a DeployedModel or
|
5772
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5689
5773
|
# Corresponds to the JSON property `dedicatedResources`
|
5690
5774
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
5691
5775
|
attr_accessor :dedicated_resources
|
@@ -5897,8 +5981,8 @@ module Google
|
|
5897
5981
|
# @return [String]
|
5898
5982
|
attr_accessor :create_time
|
5899
5983
|
|
5900
|
-
# A description of resources that are dedicated to a DeployedModel
|
5901
|
-
# need a higher degree of manual configuration.
|
5984
|
+
# A description of resources that are dedicated to a DeployedModel or
|
5985
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
5902
5986
|
# Corresponds to the JSON property `dedicatedResources`
|
5903
5987
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
5904
5988
|
attr_accessor :dedicated_resources
|
@@ -5992,6 +6076,11 @@ module Google
|
|
5992
6076
|
# @return [String]
|
5993
6077
|
attr_accessor :shared_resources
|
5994
6078
|
|
6079
|
+
# Configuration for Speculative Decoding.
|
6080
|
+
# Corresponds to the JSON property `speculativeDecodingSpec`
|
6081
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpec]
|
6082
|
+
attr_accessor :speculative_decoding_spec
|
6083
|
+
|
5995
6084
|
# Runtime status of the deployed model.
|
5996
6085
|
# Corresponds to the JSON property `status`
|
5997
6086
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployedModelStatus]
|
@@ -6024,6 +6113,7 @@ module Google
|
|
6024
6113
|
@private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
|
6025
6114
|
@service_account = args[:service_account] if args.key?(:service_account)
|
6026
6115
|
@shared_resources = args[:shared_resources] if args.key?(:shared_resources)
|
6116
|
+
@speculative_decoding_spec = args[:speculative_decoding_spec] if args.key?(:speculative_decoding_spec)
|
6027
6117
|
@status = args[:status] if args.key?(:status)
|
6028
6118
|
@system_labels = args[:system_labels] if args.key?(:system_labels)
|
6029
6119
|
end
|
@@ -6095,8 +6185,8 @@ module Google
|
|
6095
6185
|
# @return [String]
|
6096
6186
|
attr_accessor :create_time
|
6097
6187
|
|
6098
|
-
# A description of resources that are dedicated to a DeployedModel
|
6099
|
-
# need a higher degree of manual configuration.
|
6188
|
+
# A description of resources that are dedicated to a DeployedModel or
|
6189
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
6100
6190
|
# Corresponds to the JSON property `dedicatedResources`
|
6101
6191
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
6102
6192
|
attr_accessor :dedicated_resources
|
@@ -6466,6 +6556,11 @@ module Google
|
|
6466
6556
|
# @return [String]
|
6467
6557
|
attr_accessor :etag
|
6468
6558
|
|
6559
|
+
# Configuration for GenAiAdvancedFeatures.
|
6560
|
+
# Corresponds to the JSON property `genAiAdvancedFeaturesConfig`
|
6561
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig]
|
6562
|
+
attr_accessor :gen_ai_advanced_features_config
|
6563
|
+
|
6469
6564
|
# The labels with user-defined metadata to organize your Endpoints. Label keys
|
6470
6565
|
# and values can be no longer than 64 characters (Unicode codepoints), can only
|
6471
6566
|
# contain lowercase letters, numeric characters, underscores and dashes.
|
@@ -6552,6 +6647,7 @@ module Google
|
|
6552
6647
|
@enable_private_service_connect = args[:enable_private_service_connect] if args.key?(:enable_private_service_connect)
|
6553
6648
|
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
6554
6649
|
@etag = args[:etag] if args.key?(:etag)
|
6650
|
+
@gen_ai_advanced_features_config = args[:gen_ai_advanced_features_config] if args.key?(:gen_ai_advanced_features_config)
|
6555
6651
|
@labels = args[:labels] if args.key?(:labels)
|
6556
6652
|
@model_deployment_monitoring_job = args[:model_deployment_monitoring_job] if args.key?(:model_deployment_monitoring_job)
|
6557
6653
|
@name = args[:name] if args.key?(:name)
|
@@ -6779,10 +6875,54 @@ module Google
|
|
6779
6875
|
end
|
6780
6876
|
end
|
6781
6877
|
|
6878
|
+
# Request message for EvaluationService.EvaluateDataset.
|
6879
|
+
class GoogleCloudAiplatformV1EvaluateDatasetRequest
|
6880
|
+
include Google::Apis::Core::Hashable
|
6881
|
+
|
6882
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
6883
|
+
# EvaluateDataset.
|
6884
|
+
# Corresponds to the JSON property `autoraterConfig`
|
6885
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig]
|
6886
|
+
attr_accessor :autorater_config
|
6887
|
+
|
6888
|
+
# The dataset used for evaluation.
|
6889
|
+
# Corresponds to the JSON property `dataset`
|
6890
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationDataset]
|
6891
|
+
attr_accessor :dataset
|
6892
|
+
|
6893
|
+
# Required. The metrics used for evaluation.
|
6894
|
+
# Corresponds to the JSON property `metrics`
|
6895
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metric>]
|
6896
|
+
attr_accessor :metrics
|
6897
|
+
|
6898
|
+
# Config for evaluation output.
|
6899
|
+
# Corresponds to the JSON property `outputConfig`
|
6900
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OutputConfig]
|
6901
|
+
attr_accessor :output_config
|
6902
|
+
|
6903
|
+
def initialize(**args)
|
6904
|
+
update!(**args)
|
6905
|
+
end
|
6906
|
+
|
6907
|
+
# Update properties of this object
|
6908
|
+
def update!(**args)
|
6909
|
+
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
6910
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
6911
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
6912
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
6913
|
+
end
|
6914
|
+
end
|
6915
|
+
|
6782
6916
|
# Request message for EvaluationService.EvaluateInstances.
|
6783
6917
|
class GoogleCloudAiplatformV1EvaluateInstancesRequest
|
6784
6918
|
include Google::Apis::Core::Hashable
|
6785
6919
|
|
6920
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
6921
|
+
# EvaluateDataset.
|
6922
|
+
# Corresponds to the JSON property `autoraterConfig`
|
6923
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig]
|
6924
|
+
attr_accessor :autorater_config
|
6925
|
+
|
6786
6926
|
# Input for bleu metric.
|
6787
6927
|
# Corresponds to the JSON property `bleuInput`
|
6788
6928
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuInput]
|
@@ -6944,6 +7084,7 @@ module Google
|
|
6944
7084
|
|
6945
7085
|
# Update properties of this object
|
6946
7086
|
def update!(**args)
|
7087
|
+
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
6947
7088
|
@bleu_input = args[:bleu_input] if args.key?(:bleu_input)
|
6948
7089
|
@coherence_input = args[:coherence_input] if args.key?(:coherence_input)
|
6949
7090
|
@comet_input = args[:comet_input] if args.key?(:comet_input)
|
@@ -7283,6 +7424,31 @@ module Google
|
|
7283
7424
|
end
|
7284
7425
|
end
|
7285
7426
|
|
7427
|
+
# The dataset used for evaluation.
|
7428
|
+
class GoogleCloudAiplatformV1EvaluationDataset
|
7429
|
+
include Google::Apis::Core::Hashable
|
7430
|
+
|
7431
|
+
# The BigQuery location for the input content.
|
7432
|
+
# Corresponds to the JSON property `bigquerySource`
|
7433
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BigQuerySource]
|
7434
|
+
attr_accessor :bigquery_source
|
7435
|
+
|
7436
|
+
# The Google Cloud Storage location for the input content.
|
7437
|
+
# Corresponds to the JSON property `gcsSource`
|
7438
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsSource]
|
7439
|
+
attr_accessor :gcs_source
|
7440
|
+
|
7441
|
+
def initialize(**args)
|
7442
|
+
update!(**args)
|
7443
|
+
end
|
7444
|
+
|
7445
|
+
# Update properties of this object
|
7446
|
+
def update!(**args)
|
7447
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
7448
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
7449
|
+
end
|
7450
|
+
end
|
7451
|
+
|
7286
7452
|
# An edge describing the relationship between an Artifact and an Execution in a
|
7287
7453
|
# lineage graph.
|
7288
7454
|
class GoogleCloudAiplatformV1Event
|
@@ -7578,6 +7744,33 @@ module Google
|
|
7578
7744
|
end
|
7579
7745
|
end
|
7580
7746
|
|
7747
|
+
# Code generated by the model that is meant to be executed, and the result
|
7748
|
+
# returned to the model. Generated when using the [FunctionDeclaration] tool and
|
7749
|
+
# [FunctionCallingConfig] mode is set to [Mode.CODE].
|
7750
|
+
class GoogleCloudAiplatformV1ExecutableCode
|
7751
|
+
include Google::Apis::Core::Hashable
|
7752
|
+
|
7753
|
+
# Required. The code to be executed.
|
7754
|
+
# Corresponds to the JSON property `code`
|
7755
|
+
# @return [String]
|
7756
|
+
attr_accessor :code
|
7757
|
+
|
7758
|
+
# Required. Programming language of the `code`.
|
7759
|
+
# Corresponds to the JSON property `language`
|
7760
|
+
# @return [String]
|
7761
|
+
attr_accessor :language
|
7762
|
+
|
7763
|
+
def initialize(**args)
|
7764
|
+
update!(**args)
|
7765
|
+
end
|
7766
|
+
|
7767
|
+
# Update properties of this object
|
7768
|
+
def update!(**args)
|
7769
|
+
@code = args[:code] if args.key?(:code)
|
7770
|
+
@language = args[:language] if args.key?(:language)
|
7771
|
+
end
|
7772
|
+
end
|
7773
|
+
|
7581
7774
|
# Instance of a general execution.
|
7582
7775
|
class GoogleCloudAiplatformV1Execution
|
7583
7776
|
include Google::Apis::Core::Hashable
|
@@ -9786,6 +9979,22 @@ module Google
|
|
9786
9979
|
attr_accessor :satisfies_pzs
|
9787
9980
|
alias_method :satisfies_pzs?, :satisfies_pzs
|
9788
9981
|
|
9982
|
+
# Output only. A Service Account unique to this FeatureView. The role bigquery.
|
9983
|
+
# dataViewer should be granted to this service account to allow Vertex AI
|
9984
|
+
# Feature Store to sync data to the online store.
|
9985
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
9986
|
+
# @return [String]
|
9987
|
+
attr_accessor :service_account_email
|
9988
|
+
|
9989
|
+
# Optional. Service agent type used during data sync. By default, the Vertex AI
|
9990
|
+
# Service Agent is used. When using an IAM Policy to isolate this FeatureView
|
9991
|
+
# within a project, a separate service account should be provisioned by setting
|
9992
|
+
# this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate
|
9993
|
+
# service account to access the BigQuery source table.
|
9994
|
+
# Corresponds to the JSON property `serviceAgentType`
|
9995
|
+
# @return [String]
|
9996
|
+
attr_accessor :service_agent_type
|
9997
|
+
|
9789
9998
|
# Configuration for Sync. Only one option is set.
|
9790
9999
|
# Corresponds to the JSON property `syncConfig`
|
9791
10000
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncConfig]
|
@@ -9817,6 +10026,8 @@ module Google
|
|
9817
10026
|
@optimized_config = args[:optimized_config] if args.key?(:optimized_config)
|
9818
10027
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
9819
10028
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
10029
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
10030
|
+
@service_agent_type = args[:service_agent_type] if args.key?(:service_agent_type)
|
9820
10031
|
@sync_config = args[:sync_config] if args.key?(:sync_config)
|
9821
10032
|
@update_time = args[:update_time] if args.key?(:update_time)
|
9822
10033
|
@vertex_rag_source = args[:vertex_rag_source] if args.key?(:vertex_rag_source)
|
@@ -10658,6 +10869,14 @@ module Google
|
|
10658
10869
|
class GoogleCloudAiplatformV1FileData
|
10659
10870
|
include Google::Apis::Core::Hashable
|
10660
10871
|
|
10872
|
+
# Optional. Display name of the file data. Used to provide a label or filename
|
10873
|
+
# to distinguish file datas. This field is only returned in PromptMessage for
|
10874
|
+
# prompt management. It is not currently used in the Gemini GenerateContent
|
10875
|
+
# calls.
|
10876
|
+
# Corresponds to the JSON property `displayName`
|
10877
|
+
# @return [String]
|
10878
|
+
attr_accessor :display_name
|
10879
|
+
|
10661
10880
|
# Required. URI.
|
10662
10881
|
# Corresponds to the JSON property `fileUri`
|
10663
10882
|
# @return [String]
|
@@ -10674,6 +10893,7 @@ module Google
|
|
10674
10893
|
|
10675
10894
|
# Update properties of this object
|
10676
10895
|
def update!(**args)
|
10896
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
10677
10897
|
@file_uri = args[:file_uri] if args.key?(:file_uri)
|
10678
10898
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
10679
10899
|
end
|
@@ -11356,6 +11576,47 @@ module Google
|
|
11356
11576
|
end
|
11357
11577
|
end
|
11358
11578
|
|
11579
|
+
# Configuration for GenAiAdvancedFeatures.
|
11580
|
+
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig
|
11581
|
+
include Google::Apis::Core::Hashable
|
11582
|
+
|
11583
|
+
# Configuration for Retrieval Augmented Generation feature.
|
11584
|
+
# Corresponds to the JSON property `ragConfig`
|
11585
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig]
|
11586
|
+
attr_accessor :rag_config
|
11587
|
+
|
11588
|
+
def initialize(**args)
|
11589
|
+
update!(**args)
|
11590
|
+
end
|
11591
|
+
|
11592
|
+
# Update properties of this object
|
11593
|
+
def update!(**args)
|
11594
|
+
@rag_config = args[:rag_config] if args.key?(:rag_config)
|
11595
|
+
end
|
11596
|
+
end
|
11597
|
+
|
11598
|
+
# Configuration for Retrieval Augmented Generation feature.
|
11599
|
+
class GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig
|
11600
|
+
include Google::Apis::Core::Hashable
|
11601
|
+
|
11602
|
+
# If true, enable Retrieval Augmented Generation in ChatCompletion request. Once
|
11603
|
+
# enabled, the endpoint will be identified as GenAI endpoint and Arthedain
|
11604
|
+
# router will be used.
|
11605
|
+
# Corresponds to the JSON property `enableRag`
|
11606
|
+
# @return [Boolean]
|
11607
|
+
attr_accessor :enable_rag
|
11608
|
+
alias_method :enable_rag?, :enable_rag
|
11609
|
+
|
11610
|
+
def initialize(**args)
|
11611
|
+
update!(**args)
|
11612
|
+
end
|
11613
|
+
|
11614
|
+
# Update properties of this object
|
11615
|
+
def update!(**args)
|
11616
|
+
@enable_rag = args[:enable_rag] if args.key?(:enable_rag)
|
11617
|
+
end
|
11618
|
+
end
|
11619
|
+
|
11359
11620
|
# Request message for [PredictionService.GenerateContent].
|
11360
11621
|
class GoogleCloudAiplatformV1GenerateContentRequest
|
11361
11622
|
include Google::Apis::Core::Hashable
|
@@ -11443,6 +11704,11 @@ module Google
|
|
11443
11704
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Candidate>]
|
11444
11705
|
attr_accessor :candidates
|
11445
11706
|
|
11707
|
+
# Output only. Timestamp when the request is made to the server.
|
11708
|
+
# Corresponds to the JSON property `createTime`
|
11709
|
+
# @return [String]
|
11710
|
+
attr_accessor :create_time
|
11711
|
+
|
11446
11712
|
# Output only. The model version used to generate the response.
|
11447
11713
|
# Corresponds to the JSON property `modelVersion`
|
11448
11714
|
# @return [String]
|
@@ -11453,6 +11719,12 @@ module Google
|
|
11453
11719
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback]
|
11454
11720
|
attr_accessor :prompt_feedback
|
11455
11721
|
|
11722
|
+
# Output only. response_id is used to identify each response. It is the encoding
|
11723
|
+
# of the event_id.
|
11724
|
+
# Corresponds to the JSON property `responseId`
|
11725
|
+
# @return [String]
|
11726
|
+
attr_accessor :response_id
|
11727
|
+
|
11456
11728
|
# Usage metadata about response(s).
|
11457
11729
|
# Corresponds to the JSON property `usageMetadata`
|
11458
11730
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata]
|
@@ -11465,8 +11737,10 @@ module Google
|
|
11465
11737
|
# Update properties of this object
|
11466
11738
|
def update!(**args)
|
11467
11739
|
@candidates = args[:candidates] if args.key?(:candidates)
|
11740
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11468
11741
|
@model_version = args[:model_version] if args.key?(:model_version)
|
11469
11742
|
@prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
|
11743
|
+
@response_id = args[:response_id] if args.key?(:response_id)
|
11470
11744
|
@usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
|
11471
11745
|
end
|
11472
11746
|
end
|
@@ -11506,6 +11780,11 @@ module Google
|
|
11506
11780
|
class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
|
11507
11781
|
include Google::Apis::Core::Hashable
|
11508
11782
|
|
11783
|
+
# Output only. List of modalities of the cached content in the request input.
|
11784
|
+
# Corresponds to the JSON property `cacheTokensDetails`
|
11785
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11786
|
+
attr_accessor :cache_tokens_details
|
11787
|
+
|
11509
11788
|
# Output only. Number of tokens in the cached part in the input (the cached
|
11510
11789
|
# content).
|
11511
11790
|
# Corresponds to the JSON property `cachedContentTokenCount`
|
@@ -11517,6 +11796,11 @@ module Google
|
|
11517
11796
|
# @return [Fixnum]
|
11518
11797
|
attr_accessor :candidates_token_count
|
11519
11798
|
|
11799
|
+
# Output only. List of modalities that were returned in the response.
|
11800
|
+
# Corresponds to the JSON property `candidatesTokensDetails`
|
11801
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11802
|
+
attr_accessor :candidates_tokens_details
|
11803
|
+
|
11520
11804
|
# Number of tokens in the request. When `cached_content` is set, this is still
|
11521
11805
|
# the total effective prompt size meaning this includes the number of tokens in
|
11522
11806
|
# the cached content.
|
@@ -11524,6 +11808,11 @@ module Google
|
|
11524
11808
|
# @return [Fixnum]
|
11525
11809
|
attr_accessor :prompt_token_count
|
11526
11810
|
|
11811
|
+
# Output only. List of modalities that were processed in the request input.
|
11812
|
+
# Corresponds to the JSON property `promptTokensDetails`
|
11813
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
11814
|
+
attr_accessor :prompt_tokens_details
|
11815
|
+
|
11527
11816
|
# Total token count for prompt and response candidates.
|
11528
11817
|
# Corresponds to the JSON property `totalTokenCount`
|
11529
11818
|
# @return [Fixnum]
|
@@ -11535,9 +11824,12 @@ module Google
|
|
11535
11824
|
|
11536
11825
|
# Update properties of this object
|
11537
11826
|
def update!(**args)
|
11827
|
+
@cache_tokens_details = args[:cache_tokens_details] if args.key?(:cache_tokens_details)
|
11538
11828
|
@cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
|
11539
11829
|
@candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
|
11830
|
+
@candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
|
11540
11831
|
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
|
11832
|
+
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
|
11541
11833
|
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
11542
11834
|
end
|
11543
11835
|
end
|
@@ -14266,6 +14558,32 @@ module Google
|
|
14266
14558
|
end
|
14267
14559
|
end
|
14268
14560
|
|
14561
|
+
# Response message for ModelService.ListModelVersionCheckpoints
|
14562
|
+
class GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse
|
14563
|
+
include Google::Apis::Core::Hashable
|
14564
|
+
|
14565
|
+
# List of Model Version checkpoints.
|
14566
|
+
# Corresponds to the JSON property `checkpoints`
|
14567
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelVersionCheckpoint>]
|
14568
|
+
attr_accessor :checkpoints
|
14569
|
+
|
14570
|
+
# A token to retrieve the next page of results. Pass to
|
14571
|
+
# ListModelVersionCheckpointsRequest.page_token to obtain that page.
|
14572
|
+
# Corresponds to the JSON property `nextPageToken`
|
14573
|
+
# @return [String]
|
14574
|
+
attr_accessor :next_page_token
|
14575
|
+
|
14576
|
+
def initialize(**args)
|
14577
|
+
update!(**args)
|
14578
|
+
end
|
14579
|
+
|
14580
|
+
# Update properties of this object
|
14581
|
+
def update!(**args)
|
14582
|
+
@checkpoints = args[:checkpoints] if args.key?(:checkpoints)
|
14583
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14584
|
+
end
|
14585
|
+
end
|
14586
|
+
|
14269
14587
|
# Response message for ModelService.ListModelVersions
|
14270
14588
|
class GoogleCloudAiplatformV1ListModelVersionsResponse
|
14271
14589
|
include Google::Apis::Core::Hashable
|
@@ -15022,6 +15340,12 @@ module Google
|
|
15022
15340
|
# @return [String]
|
15023
15341
|
attr_accessor :machine_type
|
15024
15342
|
|
15343
|
+
# Optional. Immutable. The number of nodes per replica for multihost GPU
|
15344
|
+
# deployments.
|
15345
|
+
# Corresponds to the JSON property `multihostGpuNodeCount`
|
15346
|
+
# @return [Fixnum]
|
15347
|
+
attr_accessor :multihost_gpu_node_count
|
15348
|
+
|
15025
15349
|
# A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a
|
15026
15350
|
# DeployedModel) to draw its Compute Engine resources from a Shared Reservation,
|
15027
15351
|
# or exclusively from on-demand capacity.
|
@@ -15044,6 +15368,7 @@ module Google
|
|
15044
15368
|
@accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
|
15045
15369
|
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
|
15046
15370
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
15371
|
+
@multihost_gpu_node_count = args[:multihost_gpu_node_count] if args.key?(:multihost_gpu_node_count)
|
15047
15372
|
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
15048
15373
|
@tpu_topology = args[:tpu_topology] if args.key?(:tpu_topology)
|
15049
15374
|
end
|
@@ -15312,6 +15637,58 @@ module Google
|
|
15312
15637
|
end
|
15313
15638
|
end
|
15314
15639
|
|
15640
|
+
# The metric used for dataset level evaluation.
|
15641
|
+
class GoogleCloudAiplatformV1Metric
|
15642
|
+
include Google::Apis::Core::Hashable
|
15643
|
+
|
15644
|
+
# Optional. The aggregation metrics to use.
|
15645
|
+
# Corresponds to the JSON property `aggregationMetrics`
|
15646
|
+
# @return [Array<String>]
|
15647
|
+
attr_accessor :aggregation_metrics
|
15648
|
+
|
15649
|
+
# Spec for bleu score metric - calculates the precision of n-grams in the
|
15650
|
+
# prediction as compared to reference - returns a score ranging between 0 to 1.
|
15651
|
+
# Corresponds to the JSON property `bleuSpec`
|
15652
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuSpec]
|
15653
|
+
attr_accessor :bleu_spec
|
15654
|
+
|
15655
|
+
# Spec for exact match metric - returns 1 if prediction and reference exactly
|
15656
|
+
# matches, otherwise 0.
|
15657
|
+
# Corresponds to the JSON property `exactMatchSpec`
|
15658
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchSpec]
|
15659
|
+
attr_accessor :exact_match_spec
|
15660
|
+
|
15661
|
+
# Spec for pairwise metric.
|
15662
|
+
# Corresponds to the JSON property `pairwiseMetricSpec`
|
15663
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec]
|
15664
|
+
attr_accessor :pairwise_metric_spec
|
15665
|
+
|
15666
|
+
# Spec for pointwise metric.
|
15667
|
+
# Corresponds to the JSON property `pointwiseMetricSpec`
|
15668
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PointwiseMetricSpec]
|
15669
|
+
attr_accessor :pointwise_metric_spec
|
15670
|
+
|
15671
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
15672
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
15673
|
+
# Corresponds to the JSON property `rougeSpec`
|
15674
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeSpec]
|
15675
|
+
attr_accessor :rouge_spec
|
15676
|
+
|
15677
|
+
def initialize(**args)
|
15678
|
+
update!(**args)
|
15679
|
+
end
|
15680
|
+
|
15681
|
+
# Update properties of this object
|
15682
|
+
def update!(**args)
|
15683
|
+
@aggregation_metrics = args[:aggregation_metrics] if args.key?(:aggregation_metrics)
|
15684
|
+
@bleu_spec = args[:bleu_spec] if args.key?(:bleu_spec)
|
15685
|
+
@exact_match_spec = args[:exact_match_spec] if args.key?(:exact_match_spec)
|
15686
|
+
@pairwise_metric_spec = args[:pairwise_metric_spec] if args.key?(:pairwise_metric_spec)
|
15687
|
+
@pointwise_metric_spec = args[:pointwise_metric_spec] if args.key?(:pointwise_metric_spec)
|
15688
|
+
@rouge_spec = args[:rouge_spec] if args.key?(:rouge_spec)
|
15689
|
+
end
|
15690
|
+
end
|
15691
|
+
|
15315
15692
|
# Input for MetricX metric.
|
15316
15693
|
class GoogleCloudAiplatformV1MetricxInput
|
15317
15694
|
include Google::Apis::Core::Hashable
|
@@ -15830,6 +16207,31 @@ module Google
|
|
15830
16207
|
end
|
15831
16208
|
end
|
15832
16209
|
|
16210
|
+
# Represents token counting info for a single modality.
|
16211
|
+
class GoogleCloudAiplatformV1ModalityTokenCount
|
16212
|
+
include Google::Apis::Core::Hashable
|
16213
|
+
|
16214
|
+
# The modality associated with this token count.
|
16215
|
+
# Corresponds to the JSON property `modality`
|
16216
|
+
# @return [String]
|
16217
|
+
attr_accessor :modality
|
16218
|
+
|
16219
|
+
# Number of tokens.
|
16220
|
+
# Corresponds to the JSON property `tokenCount`
|
16221
|
+
# @return [Fixnum]
|
16222
|
+
attr_accessor :token_count
|
16223
|
+
|
16224
|
+
def initialize(**args)
|
16225
|
+
update!(**args)
|
16226
|
+
end
|
16227
|
+
|
16228
|
+
# Update properties of this object
|
16229
|
+
def update!(**args)
|
16230
|
+
@modality = args[:modality] if args.key?(:modality)
|
16231
|
+
@token_count = args[:token_count] if args.key?(:token_count)
|
16232
|
+
end
|
16233
|
+
end
|
16234
|
+
|
15833
16235
|
# A trained machine learning Model.
|
15834
16236
|
class GoogleCloudAiplatformV1Model
|
15835
16237
|
include Google::Apis::Core::Hashable
|
@@ -15864,6 +16266,11 @@ module Google
|
|
15864
16266
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
|
15865
16267
|
attr_accessor :data_stats
|
15866
16268
|
|
16269
|
+
# The default checkpoint id of a model version.
|
16270
|
+
# Corresponds to the JSON property `defaultCheckpointId`
|
16271
|
+
# @return [String]
|
16272
|
+
attr_accessor :default_checkpoint_id
|
16273
|
+
|
15867
16274
|
# Output only. The pointers to DeployedModels created from this Model. Note that
|
15868
16275
|
# Model could have been deployed to Endpoints in different Locations.
|
15869
16276
|
# Corresponds to the JSON property `deployedModels`
|
@@ -16084,6 +16491,7 @@ module Google
|
|
16084
16491
|
@container_spec = args[:container_spec] if args.key?(:container_spec)
|
16085
16492
|
@create_time = args[:create_time] if args.key?(:create_time)
|
16086
16493
|
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
16494
|
+
@default_checkpoint_id = args[:default_checkpoint_id] if args.key?(:default_checkpoint_id)
|
16087
16495
|
@deployed_models = args[:deployed_models] if args.key?(:deployed_models)
|
16088
16496
|
@description = args[:description] if args.key?(:description)
|
16089
16497
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -17138,7 +17546,7 @@ module Google
|
|
17138
17546
|
# model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.
|
17139
17547
|
# org/js) model that can be used in the browser and in Node.js using JavaScript.
|
17140
17548
|
# * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was
|
17141
|
-
# uploaded or trained by custom code.
|
17549
|
+
# uploaded or trained by custom code. * `genie` A tuned Model Garden model.
|
17142
17550
|
# Corresponds to the JSON property `id`
|
17143
17551
|
# @return [String]
|
17144
17552
|
attr_accessor :id
|
@@ -17164,6 +17572,17 @@ module Google
|
|
17164
17572
|
# @return [String]
|
17165
17573
|
attr_accessor :public_model_name
|
17166
17574
|
|
17575
|
+
# Optional. Whether to avoid pulling the model from the HF cache.
|
17576
|
+
# Corresponds to the JSON property `skipHfModelCache`
|
17577
|
+
# @return [Boolean]
|
17578
|
+
attr_accessor :skip_hf_model_cache
|
17579
|
+
alias_method :skip_hf_model_cache?, :skip_hf_model_cache
|
17580
|
+
|
17581
|
+
# Optional. The model garden source model version ID.
|
17582
|
+
# Corresponds to the JSON property `versionId`
|
17583
|
+
# @return [String]
|
17584
|
+
attr_accessor :version_id
|
17585
|
+
|
17167
17586
|
def initialize(**args)
|
17168
17587
|
update!(**args)
|
17169
17588
|
end
|
@@ -17171,6 +17590,8 @@ module Google
|
|
17171
17590
|
# Update properties of this object
|
17172
17591
|
def update!(**args)
|
17173
17592
|
@public_model_name = args[:public_model_name] if args.key?(:public_model_name)
|
17593
|
+
@skip_hf_model_cache = args[:skip_hf_model_cache] if args.key?(:skip_hf_model_cache)
|
17594
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
17174
17595
|
end
|
17175
17596
|
end
|
17176
17597
|
|
@@ -17584,6 +18005,45 @@ module Google
|
|
17584
18005
|
end
|
17585
18006
|
end
|
17586
18007
|
|
18008
|
+
# Describes the machine learning model version checkpoint.
|
18009
|
+
class GoogleCloudAiplatformV1ModelVersionCheckpoint
|
18010
|
+
include Google::Apis::Core::Hashable
|
18011
|
+
|
18012
|
+
# The ID of the checkpoint.
|
18013
|
+
# Corresponds to the JSON property `checkpointId`
|
18014
|
+
# @return [String]
|
18015
|
+
attr_accessor :checkpoint_id
|
18016
|
+
|
18017
|
+
# The epoch of the checkpoint.
|
18018
|
+
# Corresponds to the JSON property `epoch`
|
18019
|
+
# @return [Fixnum]
|
18020
|
+
attr_accessor :epoch
|
18021
|
+
|
18022
|
+
# Identifier. The resource name of the ModelVersionCheckpoint. Format: `projects/
|
18023
|
+
# `project`/locations/`location`/models/`model`/versions/`version`/checkpoints/`
|
18024
|
+
# checkpoint``
|
18025
|
+
# Corresponds to the JSON property `name`
|
18026
|
+
# @return [String]
|
18027
|
+
attr_accessor :name
|
18028
|
+
|
18029
|
+
# The step of the checkpoint.
|
18030
|
+
# Corresponds to the JSON property `step`
|
18031
|
+
# @return [Fixnum]
|
18032
|
+
attr_accessor :step
|
18033
|
+
|
18034
|
+
def initialize(**args)
|
18035
|
+
update!(**args)
|
18036
|
+
end
|
18037
|
+
|
18038
|
+
# Update properties of this object
|
18039
|
+
def update!(**args)
|
18040
|
+
@checkpoint_id = args[:checkpoint_id] if args.key?(:checkpoint_id)
|
18041
|
+
@epoch = args[:epoch] if args.key?(:epoch)
|
18042
|
+
@name = args[:name] if args.key?(:name)
|
18043
|
+
@step = args[:step] if args.key?(:step)
|
18044
|
+
end
|
18045
|
+
end
|
18046
|
+
|
17587
18047
|
# Runtime operation information for IndexEndpointService.MutateDeployedIndex.
|
17588
18048
|
class GoogleCloudAiplatformV1MutateDeployedIndexOperationMetadata
|
17589
18049
|
include Google::Apis::Core::Hashable
|
@@ -18693,8 +19153,8 @@ module Google
|
|
18693
19153
|
# @return [String]
|
18694
19154
|
attr_accessor :notebook_runtime_template_resource_name
|
18695
19155
|
|
18696
|
-
#
|
18697
|
-
#
|
19156
|
+
# The Schedule resource name if this job is triggered by one. Format: `projects/`
|
19157
|
+
# project_id`/locations/`location`/schedules/`schedule_id``
|
18698
19158
|
# Corresponds to the JSON property `scheduleResourceName`
|
18699
19159
|
# @return [String]
|
18700
19160
|
attr_accessor :schedule_resource_name
|
@@ -19057,6 +19517,11 @@ module Google
|
|
19057
19517
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ShieldedVmConfig]
|
19058
19518
|
attr_accessor :shielded_vm_config
|
19059
19519
|
|
19520
|
+
# Notebook Software Config.
|
19521
|
+
# Corresponds to the JSON property `softwareConfig`
|
19522
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookSoftwareConfig]
|
19523
|
+
attr_accessor :software_config
|
19524
|
+
|
19060
19525
|
# Output only. Timestamp when this NotebookRuntime was most recently updated.
|
19061
19526
|
# Corresponds to the JSON property `updateTime`
|
19062
19527
|
# @return [String]
|
@@ -19097,6 +19562,7 @@ module Google
|
|
19097
19562
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
19098
19563
|
@service_account = args[:service_account] if args.key?(:service_account)
|
19099
19564
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
19565
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
19100
19566
|
@update_time = args[:update_time] if args.key?(:update_time)
|
19101
19567
|
@version = args[:version] if args.key?(:version)
|
19102
19568
|
end
|
@@ -19215,6 +19681,11 @@ module Google
|
|
19215
19681
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ShieldedVmConfig]
|
19216
19682
|
attr_accessor :shielded_vm_config
|
19217
19683
|
|
19684
|
+
# Notebook Software Config.
|
19685
|
+
# Corresponds to the JSON property `softwareConfig`
|
19686
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookSoftwareConfig]
|
19687
|
+
attr_accessor :software_config
|
19688
|
+
|
19218
19689
|
# Output only. Timestamp when this NotebookRuntimeTemplate was most recently
|
19219
19690
|
# updated.
|
19220
19691
|
# Corresponds to the JSON property `updateTime`
|
@@ -19244,6 +19715,7 @@ module Google
|
|
19244
19715
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
19245
19716
|
@service_account = args[:service_account] if args.key?(:service_account)
|
19246
19717
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
19718
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
19247
19719
|
@update_time = args[:update_time] if args.key?(:update_time)
|
19248
19720
|
end
|
19249
19721
|
end
|
@@ -19267,6 +19739,51 @@ module Google
|
|
19267
19739
|
end
|
19268
19740
|
end
|
19269
19741
|
|
19742
|
+
# Notebook Software Config.
|
19743
|
+
class GoogleCloudAiplatformV1NotebookSoftwareConfig
|
19744
|
+
include Google::Apis::Core::Hashable
|
19745
|
+
|
19746
|
+
# Optional. Environment variables to be passed to the container. Maximum limit
|
19747
|
+
# is 100.
|
19748
|
+
# Corresponds to the JSON property `env`
|
19749
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
|
19750
|
+
attr_accessor :env
|
19751
|
+
|
19752
|
+
# Post startup script config.
|
19753
|
+
# Corresponds to the JSON property `postStartupScriptConfig`
|
19754
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PostStartupScriptConfig]
|
19755
|
+
attr_accessor :post_startup_script_config
|
19756
|
+
|
19757
|
+
def initialize(**args)
|
19758
|
+
update!(**args)
|
19759
|
+
end
|
19760
|
+
|
19761
|
+
# Update properties of this object
|
19762
|
+
def update!(**args)
|
19763
|
+
@env = args[:env] if args.key?(:env)
|
19764
|
+
@post_startup_script_config = args[:post_startup_script_config] if args.key?(:post_startup_script_config)
|
19765
|
+
end
|
19766
|
+
end
|
19767
|
+
|
19768
|
+
# Config for evaluation output.
|
19769
|
+
class GoogleCloudAiplatformV1OutputConfig
|
19770
|
+
include Google::Apis::Core::Hashable
|
19771
|
+
|
19772
|
+
# The Google Cloud Storage location where the output is to be written to.
|
19773
|
+
# Corresponds to the JSON property `gcsDestination`
|
19774
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
|
19775
|
+
attr_accessor :gcs_destination
|
19776
|
+
|
19777
|
+
def initialize(**args)
|
19778
|
+
update!(**args)
|
19779
|
+
end
|
19780
|
+
|
19781
|
+
# Update properties of this object
|
19782
|
+
def update!(**args)
|
19783
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
19784
|
+
end
|
19785
|
+
end
|
19786
|
+
|
19270
19787
|
# PSC config that is used to automatically create forwarding rule via
|
19271
19788
|
# ServiceConnectionMap.
|
19272
19789
|
class GoogleCloudAiplatformV1PscAutomationConfig
|
@@ -19373,18 +19890,36 @@ module Google
|
|
19373
19890
|
class GoogleCloudAiplatformV1PairwiseMetricSpec
|
19374
19891
|
include Google::Apis::Core::Hashable
|
19375
19892
|
|
19893
|
+
# Optional. The field name of the baseline response.
|
19894
|
+
# Corresponds to the JSON property `baselineResponseFieldName`
|
19895
|
+
# @return [String]
|
19896
|
+
attr_accessor :baseline_response_field_name
|
19897
|
+
|
19898
|
+
# Optional. The field name of the candidate response.
|
19899
|
+
# Corresponds to the JSON property `candidateResponseFieldName`
|
19900
|
+
# @return [String]
|
19901
|
+
attr_accessor :candidate_response_field_name
|
19902
|
+
|
19376
19903
|
# Required. Metric prompt template for pairwise metric.
|
19377
19904
|
# Corresponds to the JSON property `metricPromptTemplate`
|
19378
19905
|
# @return [String]
|
19379
19906
|
attr_accessor :metric_prompt_template
|
19380
19907
|
|
19908
|
+
# Optional. System instructions for pairwise metric.
|
19909
|
+
# Corresponds to the JSON property `systemInstruction`
|
19910
|
+
# @return [String]
|
19911
|
+
attr_accessor :system_instruction
|
19912
|
+
|
19381
19913
|
def initialize(**args)
|
19382
19914
|
update!(**args)
|
19383
19915
|
end
|
19384
19916
|
|
19385
19917
|
# Update properties of this object
|
19386
19918
|
def update!(**args)
|
19919
|
+
@baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
|
19920
|
+
@candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
|
19387
19921
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
19922
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
19388
19923
|
end
|
19389
19924
|
end
|
19390
19925
|
|
@@ -19648,6 +20183,19 @@ module Google
|
|
19648
20183
|
class GoogleCloudAiplatformV1Part
|
19649
20184
|
include Google::Apis::Core::Hashable
|
19650
20185
|
|
20186
|
+
# Result of executing the [ExecutableCode]. Always follows a `part` containing
|
20187
|
+
# the [ExecutableCode].
|
20188
|
+
# Corresponds to the JSON property `codeExecutionResult`
|
20189
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CodeExecutionResult]
|
20190
|
+
attr_accessor :code_execution_result
|
20191
|
+
|
20192
|
+
# Code generated by the model that is meant to be executed, and the result
|
20193
|
+
# returned to the model. Generated when using the [FunctionDeclaration] tool and
|
20194
|
+
# [FunctionCallingConfig] mode is set to [Mode.CODE].
|
20195
|
+
# Corresponds to the JSON property `executableCode`
|
20196
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecutableCode]
|
20197
|
+
attr_accessor :executable_code
|
20198
|
+
|
19651
20199
|
# URI based data.
|
19652
20200
|
# Corresponds to the JSON property `fileData`
|
19653
20201
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData]
|
@@ -19689,6 +20237,8 @@ module Google
|
|
19689
20237
|
|
19690
20238
|
# Update properties of this object
|
19691
20239
|
def update!(**args)
|
20240
|
+
@code_execution_result = args[:code_execution_result] if args.key?(:code_execution_result)
|
20241
|
+
@executable_code = args[:executable_code] if args.key?(:executable_code)
|
19692
20242
|
@file_data = args[:file_data] if args.key?(:file_data)
|
19693
20243
|
@function_call = args[:function_call] if args.key?(:function_call)
|
19694
20244
|
@function_response = args[:function_response] if args.key?(:function_response)
|
@@ -20529,6 +21079,11 @@ module Google
|
|
20529
21079
|
# @return [String]
|
20530
21080
|
attr_accessor :metric_prompt_template
|
20531
21081
|
|
21082
|
+
# Optional. System instructions for pointwise metric.
|
21083
|
+
# Corresponds to the JSON property `systemInstruction`
|
21084
|
+
# @return [String]
|
21085
|
+
attr_accessor :system_instruction
|
21086
|
+
|
20532
21087
|
def initialize(**args)
|
20533
21088
|
update!(**args)
|
20534
21089
|
end
|
@@ -20536,6 +21091,7 @@ module Google
|
|
20536
21091
|
# Update properties of this object
|
20537
21092
|
def update!(**args)
|
20538
21093
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
21094
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
20539
21095
|
end
|
20540
21096
|
end
|
20541
21097
|
|
@@ -20559,6 +21115,39 @@ module Google
|
|
20559
21115
|
end
|
20560
21116
|
end
|
20561
21117
|
|
21118
|
+
# Post startup script config.
|
21119
|
+
class GoogleCloudAiplatformV1PostStartupScriptConfig
|
21120
|
+
include Google::Apis::Core::Hashable
|
21121
|
+
|
21122
|
+
# Optional. Post startup script to run after runtime is started.
|
21123
|
+
# Corresponds to the JSON property `postStartupScript`
|
21124
|
+
# @return [String]
|
21125
|
+
attr_accessor :post_startup_script
|
21126
|
+
|
21127
|
+
# Optional. Post startup script behavior that defines download and execution
|
21128
|
+
# behavior.
|
21129
|
+
# Corresponds to the JSON property `postStartupScriptBehavior`
|
21130
|
+
# @return [String]
|
21131
|
+
attr_accessor :post_startup_script_behavior
|
21132
|
+
|
21133
|
+
# Optional. Post startup script url to download. Example: https://bucket/script.
|
21134
|
+
# sh
|
21135
|
+
# Corresponds to the JSON property `postStartupScriptUrl`
|
21136
|
+
# @return [String]
|
21137
|
+
attr_accessor :post_startup_script_url
|
21138
|
+
|
21139
|
+
def initialize(**args)
|
21140
|
+
update!(**args)
|
21141
|
+
end
|
21142
|
+
|
21143
|
+
# Update properties of this object
|
21144
|
+
def update!(**args)
|
21145
|
+
@post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
|
21146
|
+
@post_startup_script_behavior = args[:post_startup_script_behavior] if args.key?(:post_startup_script_behavior)
|
21147
|
+
@post_startup_script_url = args[:post_startup_script_url] if args.key?(:post_startup_script_url)
|
21148
|
+
end
|
21149
|
+
end
|
21150
|
+
|
20562
21151
|
# The configuration for the prebuilt speaker to use.
|
20563
21152
|
class GoogleCloudAiplatformV1PrebuiltVoiceConfig
|
20564
21153
|
include Google::Apis::Core::Hashable
|
@@ -20923,6 +21512,12 @@ module Google
|
|
20923
21512
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeExecAction]
|
20924
21513
|
attr_accessor :exec
|
20925
21514
|
|
21515
|
+
# Number of consecutive failures before the probe is considered failed. Defaults
|
21516
|
+
# to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
|
21517
|
+
# Corresponds to the JSON property `failureThreshold`
|
21518
|
+
# @return [Fixnum]
|
21519
|
+
attr_accessor :failure_threshold
|
21520
|
+
|
20926
21521
|
# GrpcAction checks the health of a container using a gRPC service.
|
20927
21522
|
# Corresponds to the JSON property `grpc`
|
20928
21523
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeGrpcAction]
|
@@ -20933,6 +21528,12 @@ module Google
|
|
20933
21528
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeHttpGetAction]
|
20934
21529
|
attr_accessor :http_get
|
20935
21530
|
|
21531
|
+
# Number of seconds to wait before starting the probe. Defaults to 0. Minimum
|
21532
|
+
# value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
|
21533
|
+
# Corresponds to the JSON property `initialDelaySeconds`
|
21534
|
+
# @return [Fixnum]
|
21535
|
+
attr_accessor :initial_delay_seconds
|
21536
|
+
|
20936
21537
|
# How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
|
20937
21538
|
# value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
|
20938
21539
|
# argument 'periodSeconds'.
|
@@ -20940,6 +21541,13 @@ module Google
|
|
20940
21541
|
# @return [Fixnum]
|
20941
21542
|
attr_accessor :period_seconds
|
20942
21543
|
|
21544
|
+
# Number of consecutive successes before the probe is considered successful.
|
21545
|
+
# Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument '
|
21546
|
+
# successThreshold'.
|
21547
|
+
# Corresponds to the JSON property `successThreshold`
|
21548
|
+
# @return [Fixnum]
|
21549
|
+
attr_accessor :success_threshold
|
21550
|
+
|
20943
21551
|
# TcpSocketAction probes the health of a container by opening a TCP socket
|
20944
21552
|
# connection.
|
20945
21553
|
# Corresponds to the JSON property `tcpSocket`
|
@@ -20960,9 +21568,12 @@ module Google
|
|
20960
21568
|
# Update properties of this object
|
20961
21569
|
def update!(**args)
|
20962
21570
|
@exec = args[:exec] if args.key?(:exec)
|
21571
|
+
@failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
|
20963
21572
|
@grpc = args[:grpc] if args.key?(:grpc)
|
20964
21573
|
@http_get = args[:http_get] if args.key?(:http_get)
|
21574
|
+
@initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
|
20965
21575
|
@period_seconds = args[:period_seconds] if args.key?(:period_seconds)
|
21576
|
+
@success_threshold = args[:success_threshold] if args.key?(:success_threshold)
|
20966
21577
|
@tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
|
20967
21578
|
@timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
|
20968
21579
|
end
|
@@ -21354,8 +21965,8 @@ module Google
|
|
21354
21965
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelContainerSpec]
|
21355
21966
|
attr_accessor :container_spec
|
21356
21967
|
|
21357
|
-
# A description of resources that are dedicated to a DeployedModel
|
21358
|
-
# need a higher degree of manual configuration.
|
21968
|
+
# A description of resources that are dedicated to a DeployedModel or
|
21969
|
+
# DeployedIndex, and that need a higher degree of manual configuration.
|
21359
21970
|
# Corresponds to the JSON property `dedicatedResources`
|
21360
21971
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
21361
21972
|
attr_accessor :dedicated_resources
|
@@ -22909,7 +23520,8 @@ module Google
|
|
22909
23520
|
class GoogleCloudAiplatformV1RagVectorDbConfig
|
22910
23521
|
include Google::Apis::Core::Hashable
|
22911
23522
|
|
22912
|
-
# The generic reusable api auth config.
|
23523
|
+
# The generic reusable api auth config. Deprecated. Please use AuthConfig (
|
23524
|
+
# google/cloud/aiplatform/master/auth.proto) instead.
|
22913
23525
|
# Corresponds to the JSON property `apiAuth`
|
22914
23526
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth]
|
22915
23527
|
attr_accessor :api_auth
|
@@ -23998,6 +24610,34 @@ module Google
|
|
23998
24610
|
end
|
23999
24611
|
end
|
24000
24612
|
|
24613
|
+
# Retrieval config.
|
24614
|
+
class GoogleCloudAiplatformV1RetrievalConfig
|
24615
|
+
include Google::Apis::Core::Hashable
|
24616
|
+
|
24617
|
+
# The language code of the user.
|
24618
|
+
# Corresponds to the JSON property `languageCode`
|
24619
|
+
# @return [String]
|
24620
|
+
attr_accessor :language_code
|
24621
|
+
|
24622
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
24623
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
24624
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
24625
|
+
# must be within normalized ranges.
|
24626
|
+
# Corresponds to the JSON property `latLng`
|
24627
|
+
# @return [Google::Apis::AiplatformV1::GoogleTypeLatLng]
|
24628
|
+
attr_accessor :lat_lng
|
24629
|
+
|
24630
|
+
def initialize(**args)
|
24631
|
+
update!(**args)
|
24632
|
+
end
|
24633
|
+
|
24634
|
+
# Update properties of this object
|
24635
|
+
def update!(**args)
|
24636
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
24637
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
24638
|
+
end
|
24639
|
+
end
|
24640
|
+
|
24001
24641
|
# Metadata related to retrieval in the grounding flow.
|
24002
24642
|
class GoogleCloudAiplatformV1RetrievalMetadata
|
24003
24643
|
include Google::Apis::Core::Hashable
|
@@ -28229,8 +28869,9 @@ module Google
|
|
28229
28869
|
class GoogleCloudAiplatformV1SchemaTextDataItem
|
28230
28870
|
include Google::Apis::Core::Hashable
|
28231
28871
|
|
28232
|
-
# Output only. Google Cloud Storage URI points to the original text in
|
28233
|
-
# bucket. The text file is up to 10MB
|
28872
|
+
# Output only. Google Cloud Storage URI points to a copy of the original text in
|
28873
|
+
# the Vertex-managed bucket in the user's project. The text file is up to 10MB
|
28874
|
+
# in size.
|
28234
28875
|
# Corresponds to the JSON property `gcsUri`
|
28235
28876
|
# @return [String]
|
28236
28877
|
attr_accessor :gcs_uri
|
@@ -32313,6 +32954,81 @@ module Google
|
|
32313
32954
|
end
|
32314
32955
|
end
|
32315
32956
|
|
32957
|
+
# Configuration for Speculative Decoding.
|
32958
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpec
|
32959
|
+
include Google::Apis::Core::Hashable
|
32960
|
+
|
32961
|
+
# Draft model speculation works by using the smaller model to generate candidate
|
32962
|
+
# tokens for speculative decoding.
|
32963
|
+
# Corresponds to the JSON property `draftModelSpeculation`
|
32964
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation]
|
32965
|
+
attr_accessor :draft_model_speculation
|
32966
|
+
|
32967
|
+
# N-Gram speculation works by trying to find matching tokens in the previous
|
32968
|
+
# prompt sequence and use those as speculation for generating new tokens.
|
32969
|
+
# Corresponds to the JSON property `ngramSpeculation`
|
32970
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation]
|
32971
|
+
attr_accessor :ngram_speculation
|
32972
|
+
|
32973
|
+
# The number of speculative tokens to generate at each step.
|
32974
|
+
# Corresponds to the JSON property `speculativeTokenCount`
|
32975
|
+
# @return [Fixnum]
|
32976
|
+
attr_accessor :speculative_token_count
|
32977
|
+
|
32978
|
+
def initialize(**args)
|
32979
|
+
update!(**args)
|
32980
|
+
end
|
32981
|
+
|
32982
|
+
# Update properties of this object
|
32983
|
+
def update!(**args)
|
32984
|
+
@draft_model_speculation = args[:draft_model_speculation] if args.key?(:draft_model_speculation)
|
32985
|
+
@ngram_speculation = args[:ngram_speculation] if args.key?(:ngram_speculation)
|
32986
|
+
@speculative_token_count = args[:speculative_token_count] if args.key?(:speculative_token_count)
|
32987
|
+
end
|
32988
|
+
end
|
32989
|
+
|
32990
|
+
# Draft model speculation works by using the smaller model to generate candidate
|
32991
|
+
# tokens for speculative decoding.
|
32992
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation
|
32993
|
+
include Google::Apis::Core::Hashable
|
32994
|
+
|
32995
|
+
# Required. The resource name of the draft model.
|
32996
|
+
# Corresponds to the JSON property `draftModel`
|
32997
|
+
# @return [String]
|
32998
|
+
attr_accessor :draft_model
|
32999
|
+
|
33000
|
+
def initialize(**args)
|
33001
|
+
update!(**args)
|
33002
|
+
end
|
33003
|
+
|
33004
|
+
# Update properties of this object
|
33005
|
+
def update!(**args)
|
33006
|
+
@draft_model = args[:draft_model] if args.key?(:draft_model)
|
33007
|
+
end
|
33008
|
+
end
|
33009
|
+
|
33010
|
+
# N-Gram speculation works by trying to find matching tokens in the previous
|
33011
|
+
# prompt sequence and use those as speculation for generating new tokens.
|
33012
|
+
class GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation
|
33013
|
+
include Google::Apis::Core::Hashable
|
33014
|
+
|
33015
|
+
# The number of last N input tokens used as ngram to search/match against the
|
33016
|
+
# previous prompt sequence. This is equal to the N in N-Gram. The default value
|
33017
|
+
# is 3 if not specified.
|
33018
|
+
# Corresponds to the JSON property `ngramSize`
|
33019
|
+
# @return [Fixnum]
|
33020
|
+
attr_accessor :ngram_size
|
33021
|
+
|
33022
|
+
def initialize(**args)
|
33023
|
+
update!(**args)
|
33024
|
+
end
|
33025
|
+
|
33026
|
+
# Update properties of this object
|
33027
|
+
def update!(**args)
|
33028
|
+
@ngram_size = args[:ngram_size] if args.key?(:ngram_size)
|
33029
|
+
end
|
33030
|
+
end
|
33031
|
+
|
32316
33032
|
# The speech generation config.
|
32317
33033
|
class GoogleCloudAiplatformV1SpeechConfig
|
32318
33034
|
include Google::Apis::Core::Hashable
|
@@ -33872,6 +34588,12 @@ module Google
|
|
33872
34588
|
class GoogleCloudAiplatformV1SupervisedTuningDataStats
|
33873
34589
|
include Google::Apis::Core::Hashable
|
33874
34590
|
|
34591
|
+
# Output only. For each index in `truncated_example_indices`, the user-facing
|
34592
|
+
# reason why the example was dropped. Must not include example itself.
|
34593
|
+
# Corresponds to the JSON property `droppedExampleReasons`
|
34594
|
+
# @return [Array<String>]
|
34595
|
+
attr_accessor :dropped_example_reasons
|
34596
|
+
|
33875
34597
|
# Output only. Number of billable characters in the tuning dataset.
|
33876
34598
|
# Corresponds to the JSON property `totalBillableCharacterCount`
|
33877
34599
|
# @return [Fixnum]
|
@@ -33882,7 +34604,9 @@ module Google
|
|
33882
34604
|
# @return [Fixnum]
|
33883
34605
|
attr_accessor :total_billable_token_count
|
33884
34606
|
|
33885
|
-
# The number of examples in the dataset that have been
|
34607
|
+
# Output only. The number of examples in the dataset that have been dropped. An
|
34608
|
+
# example can be dropped for reasons including: too many tokens, contains an
|
34609
|
+
# invalid image, contains too many images, etc.
|
33886
34610
|
# Corresponds to the JSON property `totalTruncatedExampleCount`
|
33887
34611
|
# @return [Fixnum]
|
33888
34612
|
attr_accessor :total_truncated_example_count
|
@@ -33892,7 +34616,8 @@ module Google
|
|
33892
34616
|
# @return [Fixnum]
|
33893
34617
|
attr_accessor :total_tuning_character_count
|
33894
34618
|
|
33895
|
-
# A partial sample of the indices (starting from 1) of the
|
34619
|
+
# Output only. A partial sample of the indices (starting from 1) of the dropped
|
34620
|
+
# examples.
|
33896
34621
|
# Corresponds to the JSON property `truncatedExampleIndices`
|
33897
34622
|
# @return [Array<Fixnum>]
|
33898
34623
|
attr_accessor :truncated_example_indices
|
@@ -33933,6 +34658,7 @@ module Google
|
|
33933
34658
|
|
33934
34659
|
# Update properties of this object
|
33935
34660
|
def update!(**args)
|
34661
|
+
@dropped_example_reasons = args[:dropped_example_reasons] if args.key?(:dropped_example_reasons)
|
33936
34662
|
@total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
|
33937
34663
|
@total_billable_token_count = args[:total_billable_token_count] if args.key?(:total_billable_token_count)
|
33938
34664
|
@total_truncated_example_count = args[:total_truncated_example_count] if args.key?(:total_truncated_example_count)
|
@@ -34856,6 +35582,13 @@ module Google
|
|
34856
35582
|
class GoogleCloudAiplatformV1Tool
|
34857
35583
|
include Google::Apis::Core::Hashable
|
34858
35584
|
|
35585
|
+
# Tool that executes code generated by the model, and automatically returns the
|
35586
|
+
# result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
|
35587
|
+
# are input and output to this tool.
|
35588
|
+
# Corresponds to the JSON property `codeExecution`
|
35589
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolCodeExecution]
|
35590
|
+
attr_accessor :code_execution
|
35591
|
+
|
34859
35592
|
# Optional. Function tool type. One or more function declarations to be passed
|
34860
35593
|
# to the model along with the current user query. Model may decide to call a
|
34861
35594
|
# subset of these functions by populating FunctionCall in the response. User
|
@@ -34888,6 +35621,7 @@ module Google
|
|
34888
35621
|
|
34889
35622
|
# Update properties of this object
|
34890
35623
|
def update!(**args)
|
35624
|
+
@code_execution = args[:code_execution] if args.key?(:code_execution)
|
34891
35625
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
34892
35626
|
@google_search = args[:google_search] if args.key?(:google_search)
|
34893
35627
|
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
|
@@ -35021,6 +35755,21 @@ module Google
|
|
35021
35755
|
end
|
35022
35756
|
end
|
35023
35757
|
|
35758
|
+
# Tool that executes code generated by the model, and automatically returns the
|
35759
|
+
# result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
|
35760
|
+
# are input and output to this tool.
|
35761
|
+
class GoogleCloudAiplatformV1ToolCodeExecution
|
35762
|
+
include Google::Apis::Core::Hashable
|
35763
|
+
|
35764
|
+
def initialize(**args)
|
35765
|
+
update!(**args)
|
35766
|
+
end
|
35767
|
+
|
35768
|
+
# Update properties of this object
|
35769
|
+
def update!(**args)
|
35770
|
+
end
|
35771
|
+
end
|
35772
|
+
|
35024
35773
|
# Tool config. This config is shared for all tools provided in the request.
|
35025
35774
|
class GoogleCloudAiplatformV1ToolConfig
|
35026
35775
|
include Google::Apis::Core::Hashable
|
@@ -35030,6 +35779,11 @@ module Google
|
|
35030
35779
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCallingConfig]
|
35031
35780
|
attr_accessor :function_calling_config
|
35032
35781
|
|
35782
|
+
# Retrieval config.
|
35783
|
+
# Corresponds to the JSON property `retrievalConfig`
|
35784
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalConfig]
|
35785
|
+
attr_accessor :retrieval_config
|
35786
|
+
|
35033
35787
|
def initialize(**args)
|
35034
35788
|
update!(**args)
|
35035
35789
|
end
|
@@ -35037,6 +35791,7 @@ module Google
|
|
35037
35791
|
# Update properties of this object
|
35038
35792
|
def update!(**args)
|
35039
35793
|
@function_calling_config = args[:function_calling_config] if args.key?(:function_calling_config)
|
35794
|
+
@retrieval_config = args[:retrieval_config] if args.key?(:retrieval_config)
|
35040
35795
|
end
|
35041
35796
|
end
|
35042
35797
|
|
@@ -36339,7 +37094,7 @@ module Google
|
|
36339
37094
|
end
|
36340
37095
|
end
|
36341
37096
|
|
36342
|
-
# The Model Registry Model and Online Prediction Endpoint
|
37097
|
+
# The Model Registry Model and Online Prediction Endpoint associated with this
|
36343
37098
|
# TuningJob.
|
36344
37099
|
class GoogleCloudAiplatformV1TunedModel
|
36345
37100
|
include Google::Apis::Core::Hashable
|
@@ -36506,7 +37261,7 @@ module Google
|
|
36506
37261
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningSpec]
|
36507
37262
|
attr_accessor :supervised_tuning_spec
|
36508
37263
|
|
36509
|
-
# The Model Registry Model and Online Prediction Endpoint
|
37264
|
+
# The Model Registry Model and Online Prediction Endpoint associated with this
|
36510
37265
|
# TuningJob.
|
36511
37266
|
# Corresponds to the JSON property `tunedModel`
|
36512
37267
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TunedModel]
|
@@ -38361,6 +39116,34 @@ module Google
|
|
38361
39116
|
end
|
38362
39117
|
end
|
38363
39118
|
|
39119
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
39120
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
39121
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
39122
|
+
# must be within normalized ranges.
|
39123
|
+
class GoogleTypeLatLng
|
39124
|
+
include Google::Apis::Core::Hashable
|
39125
|
+
|
39126
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
39127
|
+
# Corresponds to the JSON property `latitude`
|
39128
|
+
# @return [Float]
|
39129
|
+
attr_accessor :latitude
|
39130
|
+
|
39131
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
39132
|
+
# Corresponds to the JSON property `longitude`
|
39133
|
+
# @return [Float]
|
39134
|
+
attr_accessor :longitude
|
39135
|
+
|
39136
|
+
def initialize(**args)
|
39137
|
+
update!(**args)
|
39138
|
+
end
|
39139
|
+
|
39140
|
+
# Update properties of this object
|
39141
|
+
def update!(**args)
|
39142
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
39143
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
39144
|
+
end
|
39145
|
+
end
|
39146
|
+
|
38364
39147
|
# Represents an amount of money with its currency type.
|
38365
39148
|
class GoogleTypeMoney
|
38366
39149
|
include Google::Apis::Core::Hashable
|