google-apis-aiplatform_v1 0.52.0 → 0.54.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.
@@ -913,6 +913,11 @@ module Google
913
913
  # @return [String]
914
914
  attr_accessor :api_key_secret_version
915
915
 
916
+ # The API key string. Either this or `api_key_secret_version` must be set.
917
+ # Corresponds to the JSON property `apiKeyString`
918
+ # @return [String]
919
+ attr_accessor :api_key_string
920
+
916
921
  def initialize(**args)
917
922
  update!(**args)
918
923
  end
@@ -920,6 +925,7 @@ module Google
920
925
  # Update properties of this object
921
926
  def update!(**args)
922
927
  @api_key_secret_version = args[:api_key_secret_version] if args.key?(:api_key_secret_version)
928
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
923
929
  end
924
930
  end
925
931
 
@@ -1260,6 +1266,211 @@ module Google
1260
1266
  end
1261
1267
  end
1262
1268
 
1269
+ # Auth configuration to run the extension.
1270
+ class GoogleCloudAiplatformV1AuthConfig
1271
+ include Google::Apis::Core::Hashable
1272
+
1273
+ # Config for authentication with API key.
1274
+ # Corresponds to the JSON property `apiKeyConfig`
1275
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigApiKeyConfig]
1276
+ attr_accessor :api_key_config
1277
+
1278
+ # Type of auth scheme.
1279
+ # Corresponds to the JSON property `authType`
1280
+ # @return [String]
1281
+ attr_accessor :auth_type
1282
+
1283
+ # Config for Google Service Account Authentication.
1284
+ # Corresponds to the JSON property `googleServiceAccountConfig`
1285
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig]
1286
+ attr_accessor :google_service_account_config
1287
+
1288
+ # Config for HTTP Basic Authentication.
1289
+ # Corresponds to the JSON property `httpBasicAuthConfig`
1290
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig]
1291
+ attr_accessor :http_basic_auth_config
1292
+
1293
+ # Config for user oauth.
1294
+ # Corresponds to the JSON property `oauthConfig`
1295
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOauthConfig]
1296
+ attr_accessor :oauth_config
1297
+
1298
+ # Config for user OIDC auth.
1299
+ # Corresponds to the JSON property `oidcConfig`
1300
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOidcConfig]
1301
+ attr_accessor :oidc_config
1302
+
1303
+ def initialize(**args)
1304
+ update!(**args)
1305
+ end
1306
+
1307
+ # Update properties of this object
1308
+ def update!(**args)
1309
+ @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
1310
+ @auth_type = args[:auth_type] if args.key?(:auth_type)
1311
+ @google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
1312
+ @http_basic_auth_config = args[:http_basic_auth_config] if args.key?(:http_basic_auth_config)
1313
+ @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
1314
+ @oidc_config = args[:oidc_config] if args.key?(:oidc_config)
1315
+ end
1316
+ end
1317
+
1318
+ # Config for authentication with API key.
1319
+ class GoogleCloudAiplatformV1AuthConfigApiKeyConfig
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # Optional. The name of the SecretManager secret version resource storing the
1323
+ # API key. Format: `projects/`project`/secrets/`secrete`/versions/`version`` -
1324
+ # If both `api_key_secret` and `api_key_string` are specified, this field takes
1325
+ # precedence over `api_key_string`. - If specified, the `secretmanager.versions.
1326
+ # access` permission should be granted to Vertex AI Extension Service Agent (
1327
+ # https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
1328
+ # on the specified resource.
1329
+ # Corresponds to the JSON property `apiKeySecret`
1330
+ # @return [String]
1331
+ attr_accessor :api_key_secret
1332
+
1333
+ # Optional. The API key to be used in the request directly.
1334
+ # Corresponds to the JSON property `apiKeyString`
1335
+ # @return [String]
1336
+ attr_accessor :api_key_string
1337
+
1338
+ # Optional. The location of the API key.
1339
+ # Corresponds to the JSON property `httpElementLocation`
1340
+ # @return [String]
1341
+ attr_accessor :http_element_location
1342
+
1343
+ # Optional. The parameter name of the API key. E.g. If the API request is "https:
1344
+ # //example.com/act?api_key=", "api_key" would be the parameter name.
1345
+ # Corresponds to the JSON property `name`
1346
+ # @return [String]
1347
+ attr_accessor :name
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @api_key_secret = args[:api_key_secret] if args.key?(:api_key_secret)
1356
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
1357
+ @http_element_location = args[:http_element_location] if args.key?(:http_element_location)
1358
+ @name = args[:name] if args.key?(:name)
1359
+ end
1360
+ end
1361
+
1362
+ # Config for Google Service Account Authentication.
1363
+ class GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # Optional. The service account that the extension execution service runs as. -
1367
+ # If the service account is specified, the `iam.serviceAccounts.getAccessToken`
1368
+ # permission should be granted to Vertex AI Extension Service Agent (https://
1369
+ # cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the
1370
+ # specified service account. - If not specified, the Vertex AI Extension Service
1371
+ # Agent will be used to execute the Extension.
1372
+ # Corresponds to the JSON property `serviceAccount`
1373
+ # @return [String]
1374
+ attr_accessor :service_account
1375
+
1376
+ def initialize(**args)
1377
+ update!(**args)
1378
+ end
1379
+
1380
+ # Update properties of this object
1381
+ def update!(**args)
1382
+ @service_account = args[:service_account] if args.key?(:service_account)
1383
+ end
1384
+ end
1385
+
1386
+ # Config for HTTP Basic Authentication.
1387
+ class GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig
1388
+ include Google::Apis::Core::Hashable
1389
+
1390
+ # Required. The name of the SecretManager secret version resource storing the
1391
+ # base64 encoded credentials. Format: `projects/`project`/secrets/`secrete`/
1392
+ # versions/`version`` - If specified, the `secretmanager.versions.access`
1393
+ # permission should be granted to Vertex AI Extension Service Agent (https://
1394
+ # cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the
1395
+ # specified resource.
1396
+ # Corresponds to the JSON property `credentialSecret`
1397
+ # @return [String]
1398
+ attr_accessor :credential_secret
1399
+
1400
+ def initialize(**args)
1401
+ update!(**args)
1402
+ end
1403
+
1404
+ # Update properties of this object
1405
+ def update!(**args)
1406
+ @credential_secret = args[:credential_secret] if args.key?(:credential_secret)
1407
+ end
1408
+ end
1409
+
1410
+ # Config for user oauth.
1411
+ class GoogleCloudAiplatformV1AuthConfigOauthConfig
1412
+ include Google::Apis::Core::Hashable
1413
+
1414
+ # Access token for extension endpoint. Only used to propagate token from [[
1415
+ # ExecuteExtensionRequest.runtime_auth_config]] at request time.
1416
+ # Corresponds to the JSON property `accessToken`
1417
+ # @return [String]
1418
+ attr_accessor :access_token
1419
+
1420
+ # The service account used to generate access tokens for executing the Extension.
1421
+ # - If the service account is specified, the `iam.serviceAccounts.
1422
+ # getAccessToken` permission should be granted to Vertex AI Extension Service
1423
+ # Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-
1424
+ # agents) on the provided service account.
1425
+ # Corresponds to the JSON property `serviceAccount`
1426
+ # @return [String]
1427
+ attr_accessor :service_account
1428
+
1429
+ def initialize(**args)
1430
+ update!(**args)
1431
+ end
1432
+
1433
+ # Update properties of this object
1434
+ def update!(**args)
1435
+ @access_token = args[:access_token] if args.key?(:access_token)
1436
+ @service_account = args[:service_account] if args.key?(:service_account)
1437
+ end
1438
+ end
1439
+
1440
+ # Config for user OIDC auth.
1441
+ class GoogleCloudAiplatformV1AuthConfigOidcConfig
1442
+ include Google::Apis::Core::Hashable
1443
+
1444
+ # OpenID Connect formatted ID token for extension endpoint. Only used to
1445
+ # propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at
1446
+ # request time.
1447
+ # Corresponds to the JSON property `idToken`
1448
+ # @return [String]
1449
+ attr_accessor :id_token
1450
+
1451
+ # The service account used to generate an OpenID Connect (OIDC)-compatible JWT
1452
+ # token signed by the Google OIDC Provider (accounts.google.com) for extension
1453
+ # endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-
1454
+ # direct#sa-credentials-oidc). - The audience for the token will be set to the
1455
+ # URL in the server url defined in the OpenApi spec. - If the service account is
1456
+ # provided, the service account should grant `iam.serviceAccounts.getOpenIdToken`
1457
+ # permission to Vertex AI Extension Service Agent (https://cloud.google.com/
1458
+ # vertex-ai/docs/general/access-control#service-agents).
1459
+ # Corresponds to the JSON property `serviceAccount`
1460
+ # @return [String]
1461
+ attr_accessor :service_account
1462
+
1463
+ def initialize(**args)
1464
+ update!(**args)
1465
+ end
1466
+
1467
+ # Update properties of this object
1468
+ def update!(**args)
1469
+ @id_token = args[:id_token] if args.key?(:id_token)
1470
+ @service_account = args[:service_account] if args.key?(:service_account)
1471
+ end
1472
+ end
1473
+
1263
1474
  # A description of resources that to large degree are decided by Vertex AI, and
1264
1475
  # require only a modest additional configuration. Each Model supporting these
1265
1476
  # resources documents its specific guidelines.
@@ -3180,8 +3391,9 @@ module Google
3180
3391
  end
3181
3392
  end
3182
3393
 
3183
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
3184
- # the [ExecutableCode].
3394
+ # Result of executing the [ExecutableCode]. Only generated when using the [
3395
+ # CodeExecution] tool, and always follows a `part` containing the [
3396
+ # ExecutableCode].
3185
3397
  class GoogleCloudAiplatformV1CodeExecutionResult
3186
3398
  include Google::Apis::Core::Hashable
3187
3399
 
@@ -3301,6 +3513,34 @@ module Google
3301
3513
  end
3302
3514
  end
3303
3515
 
3516
+ # Colab image of the runtime.
3517
+ class GoogleCloudAiplatformV1ColabImage
3518
+ include Google::Apis::Core::Hashable
3519
+
3520
+ # Output only. A human-readable description of the specified colab image release,
3521
+ # populated by the system. Example: "Python 3.10", "Latest - current Python 3.
3522
+ # 11"
3523
+ # Corresponds to the JSON property `description`
3524
+ # @return [String]
3525
+ attr_accessor :description
3526
+
3527
+ # Optional. The release name of the NotebookRuntime Colab image, e.g. "py310".
3528
+ # If not specified, detault to the latest release.
3529
+ # Corresponds to the JSON property `releaseName`
3530
+ # @return [String]
3531
+ attr_accessor :release_name
3532
+
3533
+ def initialize(**args)
3534
+ update!(**args)
3535
+ end
3536
+
3537
+ # Update properties of this object
3538
+ def update!(**args)
3539
+ @description = args[:description] if args.key?(:description)
3540
+ @release_name = args[:release_name] if args.key?(:release_name)
3541
+ end
3542
+ end
3543
+
3304
3544
  # Input for Comet metric.
3305
3545
  class GoogleCloudAiplatformV1CometInput
3306
3546
  include Google::Apis::Core::Hashable
@@ -7946,8 +8186,9 @@ module Google
7946
8186
  end
7947
8187
 
7948
8188
  # Code generated by the model that is meant to be executed, and the result
7949
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
7950
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
8189
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
8190
+ # the code will be automatically executed, and a corresponding [
8191
+ # CodeExecutionResult] will also be generated.
7951
8192
  class GoogleCloudAiplatformV1ExecutableCode
7952
8193
  include Google::Apis::Core::Hashable
7953
8194
 
@@ -9245,6 +9486,104 @@ module Google
9245
9486
  end
9246
9487
  end
9247
9488
 
9489
+ # Retrieve from data source powered by external API for grounding. The external
9490
+ # API is not owned by Google, but need to follow the pre-defined API spec.
9491
+ class GoogleCloudAiplatformV1ExternalApi
9492
+ include Google::Apis::Core::Hashable
9493
+
9494
+ # The generic reusable api auth config. Deprecated. Please use AuthConfig (
9495
+ # google/cloud/aiplatform/master/auth.proto) instead.
9496
+ # Corresponds to the JSON property `apiAuth`
9497
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth]
9498
+ attr_accessor :api_auth
9499
+
9500
+ # The API spec that the external API implements.
9501
+ # Corresponds to the JSON property `apiSpec`
9502
+ # @return [String]
9503
+ attr_accessor :api_spec
9504
+
9505
+ # Auth configuration to run the extension.
9506
+ # Corresponds to the JSON property `authConfig`
9507
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig]
9508
+ attr_accessor :auth_config
9509
+
9510
+ # The search parameters to use for the ELASTIC_SEARCH spec.
9511
+ # Corresponds to the JSON property `elasticSearchParams`
9512
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams]
9513
+ attr_accessor :elastic_search_params
9514
+
9515
+ # The endpoint of the external API. The system will call the API at this
9516
+ # endpoint to retrieve the data for grounding. Example: https://acme.com:443/
9517
+ # search
9518
+ # Corresponds to the JSON property `endpoint`
9519
+ # @return [String]
9520
+ attr_accessor :endpoint
9521
+
9522
+ # The search parameters to use for SIMPLE_SEARCH spec.
9523
+ # Corresponds to the JSON property `simpleSearchParams`
9524
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams]
9525
+ attr_accessor :simple_search_params
9526
+
9527
+ def initialize(**args)
9528
+ update!(**args)
9529
+ end
9530
+
9531
+ # Update properties of this object
9532
+ def update!(**args)
9533
+ @api_auth = args[:api_auth] if args.key?(:api_auth)
9534
+ @api_spec = args[:api_spec] if args.key?(:api_spec)
9535
+ @auth_config = args[:auth_config] if args.key?(:auth_config)
9536
+ @elastic_search_params = args[:elastic_search_params] if args.key?(:elastic_search_params)
9537
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
9538
+ @simple_search_params = args[:simple_search_params] if args.key?(:simple_search_params)
9539
+ end
9540
+ end
9541
+
9542
+ # The search parameters to use for the ELASTIC_SEARCH spec.
9543
+ class GoogleCloudAiplatformV1ExternalApiElasticSearchParams
9544
+ include Google::Apis::Core::Hashable
9545
+
9546
+ # The ElasticSearch index to use.
9547
+ # Corresponds to the JSON property `index`
9548
+ # @return [String]
9549
+ attr_accessor :index
9550
+
9551
+ # Optional. Number of hits (chunks) to request. When specified, it is passed to
9552
+ # Elasticsearch as the `num_hits` param.
9553
+ # Corresponds to the JSON property `numHits`
9554
+ # @return [Fixnum]
9555
+ attr_accessor :num_hits
9556
+
9557
+ # The ElasticSearch search template to use.
9558
+ # Corresponds to the JSON property `searchTemplate`
9559
+ # @return [String]
9560
+ attr_accessor :search_template
9561
+
9562
+ def initialize(**args)
9563
+ update!(**args)
9564
+ end
9565
+
9566
+ # Update properties of this object
9567
+ def update!(**args)
9568
+ @index = args[:index] if args.key?(:index)
9569
+ @num_hits = args[:num_hits] if args.key?(:num_hits)
9570
+ @search_template = args[:search_template] if args.key?(:search_template)
9571
+ end
9572
+ end
9573
+
9574
+ # The search parameters to use for SIMPLE_SEARCH spec.
9575
+ class GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
9576
+ include Google::Apis::Core::Hashable
9577
+
9578
+ def initialize(**args)
9579
+ update!(**args)
9580
+ end
9581
+
9582
+ # Update properties of this object
9583
+ def update!(**args)
9584
+ end
9585
+ end
9586
+
9248
9587
  # The fact used in grounding.
9249
9588
  class GoogleCloudAiplatformV1Fact
9250
9589
  include Google::Apis::Core::Hashable
@@ -12171,6 +12510,13 @@ module Google
12171
12510
  # @return [Fixnum]
12172
12511
  attr_accessor :candidate_count
12173
12512
 
12513
+ # Optional. If enabled, the model will detect emotions and adapt its responses
12514
+ # accordingly.
12515
+ # Corresponds to the JSON property `enableAffectiveDialog`
12516
+ # @return [Boolean]
12517
+ attr_accessor :enable_affective_dialog
12518
+ alias_method :enable_affective_dialog?, :enable_affective_dialog
12519
+
12174
12520
  # Optional. Frequency penalties.
12175
12521
  # Corresponds to the JSON property `frequencyPenalty`
12176
12522
  # @return [Float]
@@ -12271,6 +12617,7 @@ module Google
12271
12617
  def update!(**args)
12272
12618
  @audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
12273
12619
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
12620
+ @enable_affective_dialog = args[:enable_affective_dialog] if args.key?(:enable_affective_dialog)
12274
12621
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
12275
12622
  @logprobs = args[:logprobs] if args.key?(:logprobs)
12276
12623
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
@@ -13335,6 +13682,16 @@ module Google
13335
13682
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig]
13336
13683
  attr_accessor :rag_file_transformation_config
13337
13684
 
13685
+ # Rebuilds the ANN index to optimize for recall on the imported data. Only
13686
+ # applicable for RagCorpora running on RagManagedDb with `retrieval_strategy`
13687
+ # set to `ANN`. The rebuild will be performed using the existing ANN config set
13688
+ # on the RagCorpus. To change the ANN config, please use the UpdateRagCorpus API.
13689
+ # Default is false, i.e., index is not rebuilt.
13690
+ # Corresponds to the JSON property `rebuildAnnIndex`
13691
+ # @return [Boolean]
13692
+ attr_accessor :rebuild_ann_index
13693
+ alias_method :rebuild_ann_index?, :rebuild_ann_index
13694
+
13338
13695
  # The SharePointSources to pass to ImportRagFiles.
13339
13696
  # Corresponds to the JSON property `sharePointSources`
13340
13697
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources]
@@ -13361,6 +13718,7 @@ module Google
13361
13718
  @partial_failure_gcs_sink = args[:partial_failure_gcs_sink] if args.key?(:partial_failure_gcs_sink)
13362
13719
  @rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
13363
13720
  @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
13721
+ @rebuild_ann_index = args[:rebuild_ann_index] if args.key?(:rebuild_ann_index)
13364
13722
  @share_point_sources = args[:share_point_sources] if args.key?(:share_point_sources)
13365
13723
  @slack_source = args[:slack_source] if args.key?(:slack_source)
13366
13724
  end
@@ -20174,6 +20532,11 @@ module Google
20174
20532
  class GoogleCloudAiplatformV1NotebookSoftwareConfig
20175
20533
  include Google::Apis::Core::Hashable
20176
20534
 
20535
+ # Colab image of the runtime.
20536
+ # Corresponds to the JSON property `colabImage`
20537
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ColabImage]
20538
+ attr_accessor :colab_image
20539
+
20177
20540
  # Optional. Environment variables to be passed to the container. Maximum limit
20178
20541
  # is 100.
20179
20542
  # Corresponds to the JSON property `env`
@@ -20191,6 +20554,7 @@ module Google
20191
20554
 
20192
20555
  # Update properties of this object
20193
20556
  def update!(**args)
20557
+ @colab_image = args[:colab_image] if args.key?(:colab_image)
20194
20558
  @env = args[:env] if args.key?(:env)
20195
20559
  @post_startup_script_config = args[:post_startup_script_config] if args.key?(:post_startup_script_config)
20196
20560
  end
@@ -20220,6 +20584,18 @@ module Google
20220
20584
  class GoogleCloudAiplatformV1PscAutomationConfig
20221
20585
  include Google::Apis::Core::Hashable
20222
20586
 
20587
+ # Output only. Forwarding rule created by the PSC service automation. Note for
20588
+ # Vector search, use IndexPrivateEndpoint instead.
20589
+ # Corresponds to the JSON property `forwardingRule`
20590
+ # @return [String]
20591
+ attr_accessor :forwarding_rule
20592
+
20593
+ # Output only. IP address rule created by the PSC service automation. Note for
20594
+ # Vector search, use IndexPrivateEndpoint instead.
20595
+ # Corresponds to the JSON property `ipAddress`
20596
+ # @return [String]
20597
+ attr_accessor :ip_address
20598
+
20223
20599
  # Required. The full name of the Google Compute Engine [network](https://cloud.
20224
20600
  # google.com/compute/docs/networks-and-firewalls#networks). [Format](https://
20225
20601
  # cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/`
@@ -20240,6 +20616,8 @@ module Google
20240
20616
 
20241
20617
  # Update properties of this object
20242
20618
  def update!(**args)
20619
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
20620
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
20243
20621
  @network = args[:network] if args.key?(:network)
20244
20622
  @project_id = args[:project_id] if args.key?(:project_id)
20245
20623
  end
@@ -20632,15 +21010,17 @@ module Google
20632
21010
  class GoogleCloudAiplatformV1Part
20633
21011
  include Google::Apis::Core::Hashable
20634
21012
 
20635
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
20636
- # the [ExecutableCode].
21013
+ # Result of executing the [ExecutableCode]. Only generated when using the [
21014
+ # CodeExecution] tool, and always follows a `part` containing the [
21015
+ # ExecutableCode].
20637
21016
  # Corresponds to the JSON property `codeExecutionResult`
20638
21017
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CodeExecutionResult]
20639
21018
  attr_accessor :code_execution_result
20640
21019
 
20641
21020
  # Code generated by the model that is meant to be executed, and the result
20642
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
20643
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
21021
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
21022
+ # the code will be automatically executed, and a corresponding [
21023
+ # CodeExecutionResult] will also be generated.
20644
21024
  # Corresponds to the JSON property `executableCode`
20645
21025
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecutableCode]
20646
21026
  attr_accessor :executable_code
@@ -20675,6 +21055,12 @@ module Google
20675
21055
  # @return [String]
20676
21056
  attr_accessor :text
20677
21057
 
21058
+ # Output only. Indicates if the part is thought from the model.
21059
+ # Corresponds to the JSON property `thought`
21060
+ # @return [Boolean]
21061
+ attr_accessor :thought
21062
+ alias_method :thought?, :thought
21063
+
20678
21064
  # Metadata describes the input video content.
20679
21065
  # Corresponds to the JSON property `videoMetadata`
20680
21066
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata]
@@ -20693,6 +21079,7 @@ module Google
20693
21079
  @function_response = args[:function_response] if args.key?(:function_response)
20694
21080
  @inline_data = args[:inline_data] if args.key?(:inline_data)
20695
21081
  @text = args[:text] if args.key?(:text)
21082
+ @thought = args[:thought] if args.key?(:thought)
20696
21083
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
20697
21084
  end
20698
21085
  end
@@ -23953,7 +24340,7 @@ module Google
23953
24340
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser]
23954
24341
  attr_accessor :layout_parser
23955
24342
 
23956
- # Specifies the advanced parsing for RagFiles.
24343
+ # Specifies the LLM parsing for RagFiles.
23957
24344
  # Corresponds to the JSON property `llmParser`
23958
24345
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLlmParser]
23959
24346
  attr_accessor :llm_parser
@@ -24002,7 +24389,7 @@ module Google
24002
24389
  end
24003
24390
  end
24004
24391
 
24005
- # Specifies the advanced parsing for RagFiles.
24392
+ # Specifies the LLM parsing for RagFiles.
24006
24393
  class GoogleCloudAiplatformV1RagFileParsingConfigLlmParser
24007
24394
  include Google::Apis::Core::Hashable
24008
24395
 
@@ -24278,6 +24665,67 @@ module Google
24278
24665
  class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb
24279
24666
  include Google::Apis::Core::Hashable
24280
24667
 
24668
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
24669
+ # data and facilitate faster searches. As a tradeoff, it requires longer
24670
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
24671
+ # and UpdateRagCorpus API.
24672
+ # Corresponds to the JSON property `ann`
24673
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn]
24674
+ attr_accessor :ann
24675
+
24676
+ # Config for KNN search.
24677
+ # Corresponds to the JSON property `knn`
24678
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn]
24679
+ attr_accessor :knn
24680
+
24681
+ def initialize(**args)
24682
+ update!(**args)
24683
+ end
24684
+
24685
+ # Update properties of this object
24686
+ def update!(**args)
24687
+ @ann = args[:ann] if args.key?(:ann)
24688
+ @knn = args[:knn] if args.key?(:knn)
24689
+ end
24690
+ end
24691
+
24692
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
24693
+ # data and facilitate faster searches. As a tradeoff, it requires longer
24694
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
24695
+ # and UpdateRagCorpus API.
24696
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn
24697
+ include Google::Apis::Core::Hashable
24698
+
24699
+ # Number of leaf nodes in the tree-based structure. Each leaf node contains
24700
+ # groups of closely related vectors along with their corresponding centroid.
24701
+ # Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default
24702
+ # value is 500.
24703
+ # Corresponds to the JSON property `leafCount`
24704
+ # @return [Fixnum]
24705
+ attr_accessor :leaf_count
24706
+
24707
+ # The depth of the tree-based structure. Only depth values of 2 and 3 are
24708
+ # supported. Recommended value is 2 if you have if you have O(10K) files in the
24709
+ # RagCorpus and set this to 3 if more than that. Default value is 2.
24710
+ # Corresponds to the JSON property `treeDepth`
24711
+ # @return [Fixnum]
24712
+ attr_accessor :tree_depth
24713
+
24714
+ def initialize(**args)
24715
+ update!(**args)
24716
+ end
24717
+
24718
+ # Update properties of this object
24719
+ def update!(**args)
24720
+ @leaf_count = args[:leaf_count] if args.key?(:leaf_count)
24721
+ @tree_depth = args[:tree_depth] if args.key?(:tree_depth)
24722
+ end
24723
+ end
24724
+
24725
+ # Config for KNN search.
24726
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn
24727
+ include Google::Apis::Core::Hashable
24728
+
24281
24729
  def initialize(**args)
24282
24730
  update!(**args)
24283
24731
  end
@@ -25345,6 +25793,12 @@ module Google
25345
25793
  attr_accessor :disable_attribution
25346
25794
  alias_method :disable_attribution?, :disable_attribution
25347
25795
 
25796
+ # Retrieve from data source powered by external API for grounding. The external
25797
+ # API is not owned by Google, but need to follow the pre-defined API spec.
25798
+ # Corresponds to the JSON property `externalApi`
25799
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi]
25800
+ attr_accessor :external_api
25801
+
25348
25802
  # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
25349
25803
  # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
25350
25804
  # builder
@@ -25364,6 +25818,7 @@ module Google
25364
25818
  # Update properties of this object
25365
25819
  def update!(**args)
25366
25820
  @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
25821
+ @external_api = args[:external_api] if args.key?(:external_api)
25367
25822
  @vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
25368
25823
  @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
25369
25824
  end
@@ -35750,14 +36205,16 @@ module Google
35750
36205
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedHyperParameters]
35751
36206
  attr_accessor :hyper_parameters
35752
36207
 
35753
- # Required. Cloud Storage path to file containing training dataset for tuning.
35754
- # The dataset must be formatted as a JSONL file.
36208
+ # Required. Training dataset used for tuning. The dataset can be specified as
36209
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
36210
+ # Vertex Multimodal Dataset.
35755
36211
  # Corresponds to the JSON property `trainingDatasetUri`
35756
36212
  # @return [String]
35757
36213
  attr_accessor :training_dataset_uri
35758
36214
 
35759
- # Optional. Cloud Storage path to file containing validation dataset for tuning.
35760
- # The dataset must be formatted as a JSONL file.
36215
+ # Optional. Validation dataset used for tuning. The dataset can be specified as
36216
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
36217
+ # Vertex Multimodal Dataset.
35761
36218
  # Corresponds to the JSON property `validationDatasetUri`
35762
36219
  # @return [String]
35763
36220
  attr_accessor :validation_dataset_uri
@@ -39105,6 +39562,13 @@ module Google
39105
39562
  class GoogleCloudAiplatformV1VertexAiSearch
39106
39563
  include Google::Apis::Core::Hashable
39107
39564
 
39565
+ # Specifications that define the specific DataStores to be searched, along with
39566
+ # configurations for those data stores. This is only considered for Engines with
39567
+ # multiple data stores. It should only be set if engine is used.
39568
+ # Corresponds to the JSON property `dataStoreSpecs`
39569
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec>]
39570
+ attr_accessor :data_store_specs
39571
+
39108
39572
  # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `
39109
39573
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
39110
39574
  # dataStore``
@@ -39136,6 +39600,7 @@ module Google
39136
39600
 
39137
39601
  # Update properties of this object
39138
39602
  def update!(**args)
39603
+ @data_store_specs = args[:data_store_specs] if args.key?(:data_store_specs)
39139
39604
  @datastore = args[:datastore] if args.key?(:datastore)
39140
39605
  @engine = args[:engine] if args.key?(:engine)
39141
39606
  @filter = args[:filter] if args.key?(:filter)
@@ -39143,6 +39608,37 @@ module Google
39143
39608
  end
39144
39609
  end
39145
39610
 
39611
+ # Define data stores within engine to filter on in a search call and
39612
+ # configurations for those data stores. For more information, see https://cloud.
39613
+ # google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.
39614
+ # discoveryengine.v1#datastorespec
39615
+ class GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec
39616
+ include Google::Apis::Core::Hashable
39617
+
39618
+ # Full resource name of DataStore, such as Format: `projects/`project`/locations/
39619
+ # `location`/collections/`collection`/dataStores/`dataStore``
39620
+ # Corresponds to the JSON property `dataStore`
39621
+ # @return [String]
39622
+ attr_accessor :data_store
39623
+
39624
+ # Optional. Filter specification to filter documents in the data store specified
39625
+ # by data_store field. For more information on filtering, see [Filtering](https:/
39626
+ # /cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
39627
+ # Corresponds to the JSON property `filter`
39628
+ # @return [String]
39629
+ attr_accessor :filter
39630
+
39631
+ def initialize(**args)
39632
+ update!(**args)
39633
+ end
39634
+
39635
+ # Update properties of this object
39636
+ def update!(**args)
39637
+ @data_store = args[:data_store] if args.key?(:data_store)
39638
+ @filter = args[:filter] if args.key?(:filter)
39639
+ end
39640
+ end
39641
+
39146
39642
  # Config for the Vertex AI Search.
39147
39643
  class GoogleCloudAiplatformV1VertexAiSearchConfig
39148
39644
  include Google::Apis::Core::Hashable