google-apis-aiplatform_v1beta1 0.60.0 → 0.62.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.
@@ -1830,6 +1830,11 @@ module Google
1830
1830
  attr_accessor :flip_enabled
1831
1831
  alias_method :flip_enabled?, :flip_enabled
1832
1832
 
1833
+ # Generation config.
1834
+ # Corresponds to the JSON property `generationConfig`
1835
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig]
1836
+ attr_accessor :generation_config
1837
+
1833
1838
  # Optional. Number of samples for each instance in the dataset. If not specified,
1834
1839
  # the default is 4. Minimum value is 1, maximum value is 32.
1835
1840
  # Corresponds to the JSON property `samplingCount`
@@ -1844,6 +1849,7 @@ module Google
1844
1849
  def update!(**args)
1845
1850
  @autorater_model = args[:autorater_model] if args.key?(:autorater_model)
1846
1851
  @flip_enabled = args[:flip_enabled] if args.key?(:flip_enabled)
1852
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
1847
1853
  @sampling_count = args[:sampling_count] if args.key?(:sampling_count)
1848
1854
  end
1849
1855
  end
@@ -3004,8 +3010,8 @@ module Google
3004
3010
  # @return [String]
3005
3011
  attr_accessor :prompt_column
3006
3012
 
3007
- # Optional. The name of the column that contains the rubrics. This will be in
3008
- # evaluation_rubric.RubricGroup format (cl/762595858).
3013
+ # Optional. The name of the column that contains the rubrics. This is in
3014
+ # evaluation_rubric.RubricGroup format.
3009
3015
  # Corresponds to the JSON property `rubricsColumn`
3010
3016
  # @return [String]
3011
3017
  attr_accessor :rubrics_column
@@ -7285,8 +7291,10 @@ module Google
7285
7291
  class GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig
7286
7292
  include Google::Apis::Core::Hashable
7287
7293
 
7288
- # Optional. By default, if dedicated endpoint is enabled, the endpoint will be
7289
- # exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your
7294
+ # Optional. By default, if dedicated endpoint is enabled and private service
7295
+ # connect config is not set, the endpoint will be exposed through a dedicated
7296
+ # DNS [Endpoint.dedicated_endpoint_dns]. If private service connect config is
7297
+ # set, the endpoint will be exposed through private service connect. Your
7290
7298
  # request to the dedicated DNS will be isolated from other users' traffic and
7291
7299
  # will have better performance and reliability. Note: Once you enabled dedicated
7292
7300
  # endpoint, you won't be able to send request to the shared DNS `region`-
@@ -7329,6 +7337,11 @@ module Google
7329
7337
  # @return [String]
7330
7338
  attr_accessor :endpoint_user_id
7331
7339
 
7340
+ # Represents configuration for private service connect.
7341
+ # Corresponds to the JSON property `privateServiceConnectConfig`
7342
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig]
7343
+ attr_accessor :private_service_connect_config
7344
+
7332
7345
  def initialize(**args)
7333
7346
  update!(**args)
7334
7347
  end
@@ -7339,6 +7352,7 @@ module Google
7339
7352
  @dedicated_endpoint_enabled = args[:dedicated_endpoint_enabled] if args.key?(:dedicated_endpoint_enabled)
7340
7353
  @endpoint_display_name = args[:endpoint_display_name] if args.key?(:endpoint_display_name)
7341
7354
  @endpoint_user_id = args[:endpoint_user_id] if args.key?(:endpoint_user_id)
7355
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
7342
7356
  end
7343
7357
  end
7344
7358
 
@@ -8340,6 +8354,53 @@ module Google
8340
8354
  end
8341
8355
  end
8342
8356
 
8357
+ # Request message for ModelGardenService.EnableModel.
8358
+ class GoogleCloudAiplatformV1beta1EnableModelRequest
8359
+ include Google::Apis::Core::Hashable
8360
+
8361
+ # Optional. The ID links the Marketplace listing to the underlying Vertex AI
8362
+ # model endpoint. Format: `services/`service_id`` Format: `services/`service_id``
8363
+ # Corresponds to the JSON property `service`
8364
+ # @return [String]
8365
+ attr_accessor :service
8366
+
8367
+ def initialize(**args)
8368
+ update!(**args)
8369
+ end
8370
+
8371
+ # Update properties of this object
8372
+ def update!(**args)
8373
+ @service = args[:service] if args.key?(:service)
8374
+ end
8375
+ end
8376
+
8377
+ # Response message for ModelGardenService.EnableModel.
8378
+ class GoogleCloudAiplatformV1beta1EnableModelResponse
8379
+ include Google::Apis::Core::Hashable
8380
+
8381
+ # Output only. The result of the model enablement.
8382
+ # Corresponds to the JSON property `enablementState`
8383
+ # @return [String]
8384
+ attr_accessor :enablement_state
8385
+
8386
+ # Output only. The publisher endpoint that the project is enabled for. Format: `
8387
+ # projects/`project`/locations/`location`/publishers/`publisher`/models/`
8388
+ # publisher_model``
8389
+ # Corresponds to the JSON property `publisherEndpoint`
8390
+ # @return [String]
8391
+ attr_accessor :publisher_endpoint
8392
+
8393
+ def initialize(**args)
8394
+ update!(**args)
8395
+ end
8396
+
8397
+ # Update properties of this object
8398
+ def update!(**args)
8399
+ @enablement_state = args[:enablement_state] if args.key?(:enablement_state)
8400
+ @publisher_endpoint = args[:publisher_endpoint] if args.key?(:publisher_endpoint)
8401
+ end
8402
+ end
8403
+
8343
8404
  # Represents a customer-managed encryption key spec that can be applied to a top-
8344
8405
  # level resource.
8345
8406
  class GoogleCloudAiplatformV1beta1EncryptionSpec
@@ -9642,7 +9703,7 @@ module Google
9642
9703
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationResult]
9643
9704
  attr_accessor :evaluation_response
9644
9705
 
9645
- # The GCS object where the request or response is stored.
9706
+ # The Cloud Storage object where the request or response is stored.
9646
9707
  # Corresponds to the JSON property `gcsUri`
9647
9708
  # @return [String]
9648
9709
  attr_accessor :gcs_uri
@@ -10183,11 +10244,6 @@ module Google
10183
10244
  class GoogleCloudAiplatformV1beta1EvaluationRunMetric
10184
10245
  include Google::Apis::Core::Hashable
10185
10246
 
10186
- # Specification for a computation based metric.
10187
- # Corresponds to the JSON property `computationBasedMetricSpec`
10188
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec]
10189
- attr_accessor :computation_based_metric_spec
10190
-
10191
10247
  # Specification for an LLM based metric.
10192
10248
  # Corresponds to the JSON property `llmBasedMetricSpec`
10193
10249
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec]
@@ -10214,7 +10270,6 @@ module Google
10214
10270
 
10215
10271
  # Update properties of this object
10216
10272
  def update!(**args)
10217
- @computation_based_metric_spec = args[:computation_based_metric_spec] if args.key?(:computation_based_metric_spec)
10218
10273
  @llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
10219
10274
  @metric = args[:metric] if args.key?(:metric)
10220
10275
  @predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
@@ -10222,31 +10277,6 @@ module Google
10222
10277
  end
10223
10278
  end
10224
10279
 
10225
- # Specification for a computation based metric.
10226
- class GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec
10227
- include Google::Apis::Core::Hashable
10228
-
10229
- # Optional. A map of parameters for the metric, e.g. `"rouge_type": "rougeL"`.
10230
- # Corresponds to the JSON property `parameters`
10231
- # @return [Hash<String,Object>]
10232
- attr_accessor :parameters
10233
-
10234
- # Required. The type of the computation based metric.
10235
- # Corresponds to the JSON property `type`
10236
- # @return [String]
10237
- attr_accessor :type
10238
-
10239
- def initialize(**args)
10240
- update!(**args)
10241
- end
10242
-
10243
- # Update properties of this object
10244
- def update!(**args)
10245
- @parameters = args[:parameters] if args.key?(:parameters)
10246
- @type = args[:type] if args.key?(:type)
10247
- end
10248
- end
10249
-
10250
10280
  # Specification for an LLM based metric.
10251
10281
  class GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec
10252
10282
  include Google::Apis::Core::Hashable
@@ -15888,7 +15918,7 @@ module Google
15888
15918
  # @return [String]
15889
15919
  attr_accessor :id
15890
15920
 
15891
- # Required. The name of the function to call. Matches [FunctionDeclaration.name].
15921
+ # Optional. The name of the function to call. Matches [FunctionDeclaration.name].
15892
15922
  # Corresponds to the JSON property `name`
15893
15923
  # @return [String]
15894
15924
  attr_accessor :name
@@ -16494,7 +16524,9 @@ module Google
16494
16524
  # @return [String]
16495
16525
  attr_accessor :model_version
16496
16526
 
16497
- # Content filter results for a prompt sent in the request.
16527
+ # Content filter results for a prompt sent in the request. Note: This is sent
16528
+ # only in the first stream chunk and only if no candidates were generated due to
16529
+ # content violations.
16498
16530
  # Corresponds to the JSON property `promptFeedback`
16499
16531
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
16500
16532
  attr_accessor :prompt_feedback
@@ -16505,7 +16537,8 @@ module Google
16505
16537
  # @return [String]
16506
16538
  attr_accessor :response_id
16507
16539
 
16508
- # Usage metadata about response(s).
16540
+ # Usage metadata about the content generation request and response. This message
16541
+ # provides a detailed breakdown of token usage and other relevant metrics.
16509
16542
  # Corresponds to the JSON property `usageMetadata`
16510
16543
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
16511
16544
  attr_accessor :usage_metadata
@@ -16525,21 +16558,25 @@ module Google
16525
16558
  end
16526
16559
  end
16527
16560
 
16528
- # Content filter results for a prompt sent in the request.
16561
+ # Content filter results for a prompt sent in the request. Note: This is sent
16562
+ # only in the first stream chunk and only if no candidates were generated due to
16563
+ # content violations.
16529
16564
  class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
16530
16565
  include Google::Apis::Core::Hashable
16531
16566
 
16532
- # Output only. Blocked reason.
16567
+ # Output only. The reason why the prompt was blocked.
16533
16568
  # Corresponds to the JSON property `blockReason`
16534
16569
  # @return [String]
16535
16570
  attr_accessor :block_reason
16536
16571
 
16537
- # Output only. A readable block reason message.
16572
+ # Output only. A readable message that explains the reason why the prompt was
16573
+ # blocked.
16538
16574
  # Corresponds to the JSON property `blockReasonMessage`
16539
16575
  # @return [String]
16540
16576
  attr_accessor :block_reason_message
16541
16577
 
16542
- # Output only. Safety ratings.
16578
+ # Output only. A list of safety ratings for the prompt. There is one rating per
16579
+ # category.
16543
16580
  # Corresponds to the JSON property `safetyRatings`
16544
16581
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
16545
16582
  attr_accessor :safety_ratings
@@ -16556,67 +16593,73 @@ module Google
16556
16593
  end
16557
16594
  end
16558
16595
 
16559
- # Usage metadata about response(s).
16596
+ # Usage metadata about the content generation request and response. This message
16597
+ # provides a detailed breakdown of token usage and other relevant metrics.
16560
16598
  class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
16561
16599
  include Google::Apis::Core::Hashable
16562
16600
 
16563
- # Output only. List of modalities of the cached content in the request input.
16601
+ # Output only. A detailed breakdown of the token count for each modality in the
16602
+ # cached content.
16564
16603
  # Corresponds to the JSON property `cacheTokensDetails`
16565
16604
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
16566
16605
  attr_accessor :cache_tokens_details
16567
16606
 
16568
- # Output only. Number of tokens in the cached part in the input (the cached
16569
- # content).
16607
+ # Output only. The number of tokens in the cached content that was used for this
16608
+ # request.
16570
16609
  # Corresponds to the JSON property `cachedContentTokenCount`
16571
16610
  # @return [Fixnum]
16572
16611
  attr_accessor :cached_content_token_count
16573
16612
 
16574
- # Number of tokens in the response(s).
16613
+ # The total number of tokens in the generated candidates.
16575
16614
  # Corresponds to the JSON property `candidatesTokenCount`
16576
16615
  # @return [Fixnum]
16577
16616
  attr_accessor :candidates_token_count
16578
16617
 
16579
- # Output only. List of modalities that were returned in the response.
16618
+ # Output only. A detailed breakdown of the token count for each modality in the
16619
+ # generated candidates.
16580
16620
  # Corresponds to the JSON property `candidatesTokensDetails`
16581
16621
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
16582
16622
  attr_accessor :candidates_tokens_details
16583
16623
 
16584
- # Number of tokens in the request. When `cached_content` is set, this is still
16585
- # the total effective prompt size meaning this includes the number of tokens in
16586
- # the cached content.
16624
+ # The total number of tokens in the prompt. This includes any text, images, or
16625
+ # other media provided in the request. When `cached_content` is set, this also
16626
+ # includes the number of tokens in the cached content.
16587
16627
  # Corresponds to the JSON property `promptTokenCount`
16588
16628
  # @return [Fixnum]
16589
16629
  attr_accessor :prompt_token_count
16590
16630
 
16591
- # Output only. List of modalities that were processed in the request input.
16631
+ # Output only. A detailed breakdown of the token count for each modality in the
16632
+ # prompt.
16592
16633
  # Corresponds to the JSON property `promptTokensDetails`
16593
16634
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
16594
16635
  attr_accessor :prompt_tokens_details
16595
16636
 
16596
- # Output only. Number of tokens present in thoughts output.
16637
+ # Output only. The number of tokens that were part of the model's generated "
16638
+ # thoughts" output, if applicable.
16597
16639
  # Corresponds to the JSON property `thoughtsTokenCount`
16598
16640
  # @return [Fixnum]
16599
16641
  attr_accessor :thoughts_token_count
16600
16642
 
16601
- # Output only. Number of tokens present in tool-use prompt(s).
16643
+ # Output only. The number of tokens in the results from tool executions, which
16644
+ # are provided back to the model as input, if applicable.
16602
16645
  # Corresponds to the JSON property `toolUsePromptTokenCount`
16603
16646
  # @return [Fixnum]
16604
16647
  attr_accessor :tool_use_prompt_token_count
16605
16648
 
16606
- # Output only. List of modalities that were processed for tool-use request
16607
- # inputs.
16649
+ # Output only. A detailed breakdown by modality of the token counts from the
16650
+ # results of tool executions, which are provided back to the model as input.
16608
16651
  # Corresponds to the JSON property `toolUsePromptTokensDetails`
16609
16652
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
16610
16653
  attr_accessor :tool_use_prompt_tokens_details
16611
16654
 
16612
- # Total token count for prompt, response candidates, and tool-use prompts (if
16613
- # present).
16655
+ # The total number of tokens for the entire request. This is the sum of `
16656
+ # prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
16657
+ # and `thoughts_token_count`.
16614
16658
  # Corresponds to the JSON property `totalTokenCount`
16615
16659
  # @return [Fixnum]
16616
16660
  attr_accessor :total_token_count
16617
16661
 
16618
- # Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
16619
- # or Provisioned Throughput quota.
16662
+ # Output only. The traffic type for this request.
16620
16663
  # Corresponds to the JSON property `trafficType`
16621
16664
  # @return [String]
16622
16665
  attr_accessor :traffic_type
@@ -17375,12 +17418,19 @@ module Google
17375
17418
  class GoogleCloudAiplatformV1beta1GoogleMaps
17376
17419
  include Google::Apis::Core::Hashable
17377
17420
 
17421
+ # Optional. If true, include the widget context token in the response.
17422
+ # Corresponds to the JSON property `enableWidget`
17423
+ # @return [Boolean]
17424
+ attr_accessor :enable_widget
17425
+ alias_method :enable_widget?, :enable_widget
17426
+
17378
17427
  def initialize(**args)
17379
17428
  update!(**args)
17380
17429
  end
17381
17430
 
17382
17431
  # Update properties of this object
17383
17432
  def update!(**args)
17433
+ @enable_widget = args[:enable_widget] if args.key?(:enable_widget)
17384
17434
  end
17385
17435
  end
17386
17436
 
@@ -17550,17 +17600,17 @@ module Google
17550
17600
  # @return [String]
17551
17601
  attr_accessor :place_id
17552
17602
 
17553
- # Text of the chunk.
17603
+ # Text of the place answer.
17554
17604
  # Corresponds to the JSON property `text`
17555
17605
  # @return [String]
17556
17606
  attr_accessor :text
17557
17607
 
17558
- # Title of the chunk.
17608
+ # Title of the place.
17559
17609
  # Corresponds to the JSON property `title`
17560
17610
  # @return [String]
17561
17611
  attr_accessor :title
17562
17612
 
17563
- # URI reference of the chunk.
17613
+ # URI reference of the place.
17564
17614
  # Corresponds to the JSON property `uri`
17565
17615
  # @return [String]
17566
17616
  attr_accessor :uri
@@ -17583,11 +17633,6 @@ module Google
17583
17633
  class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources
17584
17634
  include Google::Apis::Core::Hashable
17585
17635
 
17586
- # A link where users can flag a problem with the generated answer.
17587
- # Corresponds to the JSON property `flagContentUri`
17588
- # @return [String]
17589
- attr_accessor :flag_content_uri
17590
-
17591
17636
  # Snippets of reviews that are used to generate the answer.
17592
17637
  # Corresponds to the JSON property `reviewSnippets`
17593
17638
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>]
@@ -17599,72 +17644,28 @@ module Google
17599
17644
 
17600
17645
  # Update properties of this object
17601
17646
  def update!(**args)
17602
- @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
17603
17647
  @review_snippets = args[:review_snippets] if args.key?(:review_snippets)
17604
17648
  end
17605
17649
  end
17606
17650
 
17607
- # Author attribution for a photo or review.
17608
- class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
17609
- include Google::Apis::Core::Hashable
17610
-
17611
- # Name of the author of the Photo or Review.
17612
- # Corresponds to the JSON property `displayName`
17613
- # @return [String]
17614
- attr_accessor :display_name
17615
-
17616
- # Profile photo URI of the author of the Photo or Review.
17617
- # Corresponds to the JSON property `photoUri`
17618
- # @return [String]
17619
- attr_accessor :photo_uri
17620
-
17621
- # URI of the author of the Photo or Review.
17622
- # Corresponds to the JSON property `uri`
17623
- # @return [String]
17624
- attr_accessor :uri
17625
-
17626
- def initialize(**args)
17627
- update!(**args)
17628
- end
17629
-
17630
- # Update properties of this object
17631
- def update!(**args)
17632
- @display_name = args[:display_name] if args.key?(:display_name)
17633
- @photo_uri = args[:photo_uri] if args.key?(:photo_uri)
17634
- @uri = args[:uri] if args.key?(:uri)
17635
- end
17636
- end
17637
-
17638
17651
  # Encapsulates a review snippet.
17639
17652
  class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
17640
17653
  include Google::Apis::Core::Hashable
17641
17654
 
17642
- # Author attribution for a photo or review.
17643
- # Corresponds to the JSON property `authorAttribution`
17644
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution]
17645
- attr_accessor :author_attribution
17646
-
17647
- # A link where users can flag a problem with the review.
17648
- # Corresponds to the JSON property `flagContentUri`
17649
- # @return [String]
17650
- attr_accessor :flag_content_uri
17651
-
17652
17655
  # A link to show the review on Google Maps.
17653
17656
  # Corresponds to the JSON property `googleMapsUri`
17654
17657
  # @return [String]
17655
17658
  attr_accessor :google_maps_uri
17656
17659
 
17657
- # A string of formatted recent time, expressing the review time relative to the
17658
- # current time in a form appropriate for the language and country.
17659
- # Corresponds to the JSON property `relativePublishTimeDescription`
17660
+ # Id of the review referencing the place.
17661
+ # Corresponds to the JSON property `reviewId`
17660
17662
  # @return [String]
17661
- attr_accessor :relative_publish_time_description
17663
+ attr_accessor :review_id
17662
17664
 
17663
- # A reference representing this place review which may be used to look up this
17664
- # place review again.
17665
- # Corresponds to the JSON property `review`
17665
+ # Title of the review.
17666
+ # Corresponds to the JSON property `title`
17666
17667
  # @return [String]
17667
- attr_accessor :review
17668
+ attr_accessor :title
17668
17669
 
17669
17670
  def initialize(**args)
17670
17671
  update!(**args)
@@ -17672,11 +17673,9 @@ module Google
17672
17673
 
17673
17674
  # Update properties of this object
17674
17675
  def update!(**args)
17675
- @author_attribution = args[:author_attribution] if args.key?(:author_attribution)
17676
- @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
17677
17676
  @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
17678
- @relative_publish_time_description = args[:relative_publish_time_description] if args.key?(:relative_publish_time_description)
17679
- @review = args[:review] if args.key?(:review)
17677
+ @review_id = args[:review_id] if args.key?(:review_id)
17678
+ @title = args[:title] if args.key?(:title)
17680
17679
  end
17681
17680
  end
17682
17681
 
@@ -17792,6 +17791,12 @@ module Google
17792
17791
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchEntryPoint]
17793
17792
  attr_accessor :search_entry_point
17794
17793
 
17794
+ # Optional. Output only. List of source flagging uris. This is currently
17795
+ # populated only for Google Maps grounding.
17796
+ # Corresponds to the JSON property `sourceFlaggingUris`
17797
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri>]
17798
+ attr_accessor :source_flagging_uris
17799
+
17795
17800
  # Optional. Web search queries for the following-up web search.
17796
17801
  # Corresponds to the JSON property `webSearchQueries`
17797
17802
  # @return [Array<String>]
@@ -17809,10 +17814,37 @@ module Google
17809
17814
  @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
17810
17815
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
17811
17816
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
17817
+ @source_flagging_uris = args[:source_flagging_uris] if args.key?(:source_flagging_uris)
17812
17818
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
17813
17819
  end
17814
17820
  end
17815
17821
 
17822
+ # Source content flagging uri for a place or review. This is currently populated
17823
+ # only for Google Maps grounding.
17824
+ class GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri
17825
+ include Google::Apis::Core::Hashable
17826
+
17827
+ # A link where users can flag a problem with the source (place or review).
17828
+ # Corresponds to the JSON property `flagContentUri`
17829
+ # @return [String]
17830
+ attr_accessor :flag_content_uri
17831
+
17832
+ # Id of the place or review.
17833
+ # Corresponds to the JSON property `sourceId`
17834
+ # @return [String]
17835
+ attr_accessor :source_id
17836
+
17837
+ def initialize(**args)
17838
+ update!(**args)
17839
+ end
17840
+
17841
+ # Update properties of this object
17842
+ def update!(**args)
17843
+ @flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
17844
+ @source_id = args[:source_id] if args.key?(:source_id)
17845
+ end
17846
+ end
17847
+
17816
17848
  # Grounding support.
17817
17849
  class GoogleCloudAiplatformV1beta1GroundingSupport
17818
17850
  include Google::Apis::Core::Hashable
@@ -19435,6 +19467,46 @@ module Google
19435
19467
  end
19436
19468
  end
19437
19469
 
19470
+ # Request message for PredictionService.Invoke.
19471
+ class GoogleCloudAiplatformV1beta1InvokeRequest
19472
+ include Google::Apis::Core::Hashable
19473
+
19474
+ # ID of the DeployedModel that serves the invoke request.
19475
+ # Corresponds to the JSON property `deployedModelId`
19476
+ # @return [String]
19477
+ attr_accessor :deployed_model_id
19478
+
19479
+ # Message that represents an arbitrary HTTP body. It should only be used for
19480
+ # payload formats that can't be represented as JSON, such as raw binary or an
19481
+ # HTML page. This message can be used both in streaming and non-streaming API
19482
+ # methods in the request as well as the response. It can be used as a top-level
19483
+ # request field, which is convenient if one wants to extract parameters from
19484
+ # either the URL or HTTP template into the request fields and also want access
19485
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
19486
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
19487
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
19488
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
19489
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
19490
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
19491
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
19492
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
19493
+ # only changes how the request and response bodies are handled, all other
19494
+ # features will continue to work unchanged.
19495
+ # Corresponds to the JSON property `httpBody`
19496
+ # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
19497
+ attr_accessor :http_body
19498
+
19499
+ def initialize(**args)
19500
+ update!(**args)
19501
+ end
19502
+
19503
+ # Update properties of this object
19504
+ def update!(**args)
19505
+ @deployed_model_id = args[:deployed_model_id] if args.key?(:deployed_model_id)
19506
+ @http_body = args[:http_body] if args.key?(:http_body)
19507
+ end
19508
+ end
19509
+
19438
19510
  # The Jira source for the ImportRagFilesRequest.
19439
19511
  class GoogleCloudAiplatformV1beta1JiraSource
19440
19512
  include Google::Apis::Core::Hashable
@@ -19499,6 +19571,63 @@ module Google
19499
19571
  end
19500
19572
  end
19501
19573
 
19574
+ # Specification for an LLM based metric.
19575
+ class GoogleCloudAiplatformV1beta1LlmBasedMetricSpec
19576
+ include Google::Apis::Core::Hashable
19577
+
19578
+ # Optional. Optional additional configuration for the metric.
19579
+ # Corresponds to the JSON property `additionalConfig`
19580
+ # @return [Hash<String,Object>]
19581
+ attr_accessor :additional_config
19582
+
19583
+ # The configs for autorater. This is applicable to both EvaluateInstances and
19584
+ # EvaluateDataset.
19585
+ # Corresponds to the JSON property `judgeAutoraterConfig`
19586
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AutoraterConfig]
19587
+ attr_accessor :judge_autorater_config
19588
+
19589
+ # Required. Template for the prompt sent to the judge model.
19590
+ # Corresponds to the JSON property `metricPromptTemplate`
19591
+ # @return [String]
19592
+ attr_accessor :metric_prompt_template
19593
+
19594
+ # The spec for a pre-defined metric.
19595
+ # Corresponds to the JSON property `predefinedRubricGenerationSpec`
19596
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredefinedMetricSpec]
19597
+ attr_accessor :predefined_rubric_generation_spec
19598
+
19599
+ # Specification for how rubrics should be generated.
19600
+ # Corresponds to the JSON property `rubricGenerationSpec`
19601
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricGenerationSpec]
19602
+ attr_accessor :rubric_generation_spec
19603
+
19604
+ # Use a pre-defined group of rubrics associated with the input. Refers to a key
19605
+ # in the rubric_groups map of EvaluationInstance.
19606
+ # Corresponds to the JSON property `rubricGroupKey`
19607
+ # @return [String]
19608
+ attr_accessor :rubric_group_key
19609
+
19610
+ # Optional. System instructions for the judge model.
19611
+ # Corresponds to the JSON property `systemInstruction`
19612
+ # @return [String]
19613
+ attr_accessor :system_instruction
19614
+
19615
+ def initialize(**args)
19616
+ update!(**args)
19617
+ end
19618
+
19619
+ # Update properties of this object
19620
+ def update!(**args)
19621
+ @additional_config = args[:additional_config] if args.key?(:additional_config)
19622
+ @judge_autorater_config = args[:judge_autorater_config] if args.key?(:judge_autorater_config)
19623
+ @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
19624
+ @predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
19625
+ @rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
19626
+ @rubric_group_key = args[:rubric_group_key] if args.key?(:rubric_group_key)
19627
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
19628
+ end
19629
+ end
19630
+
19502
19631
  # Contains information about the Large Model.
19503
19632
  class GoogleCloudAiplatformV1beta1LargeModelReference
19504
19633
  include Google::Apis::Core::Hashable
@@ -21399,6 +21528,44 @@ module Google
21399
21528
  end
21400
21529
  end
21401
21530
 
21531
+ # Represents a mount configuration for Lustre file system.
21532
+ class GoogleCloudAiplatformV1beta1LustreMount
21533
+ include Google::Apis::Core::Hashable
21534
+
21535
+ # Required. The name of the Lustre filesystem.
21536
+ # Corresponds to the JSON property `filesystem`
21537
+ # @return [String]
21538
+ attr_accessor :filesystem
21539
+
21540
+ # Required. IP address of the Lustre instance.
21541
+ # Corresponds to the JSON property `instanceIp`
21542
+ # @return [String]
21543
+ attr_accessor :instance_ip
21544
+
21545
+ # Required. Destination mount path. The Lustre file system will be mounted for
21546
+ # the user under /mnt/lustre/
21547
+ # Corresponds to the JSON property `mountPoint`
21548
+ # @return [String]
21549
+ attr_accessor :mount_point
21550
+
21551
+ # Required. The unique identifier of the Lustre volume.
21552
+ # Corresponds to the JSON property `volumeHandle`
21553
+ # @return [String]
21554
+ attr_accessor :volume_handle
21555
+
21556
+ def initialize(**args)
21557
+ update!(**args)
21558
+ end
21559
+
21560
+ # Update properties of this object
21561
+ def update!(**args)
21562
+ @filesystem = args[:filesystem] if args.key?(:filesystem)
21563
+ @instance_ip = args[:instance_ip] if args.key?(:instance_ip)
21564
+ @mount_point = args[:mount_point] if args.key?(:mount_point)
21565
+ @volume_handle = args[:volume_handle] if args.key?(:volume_handle)
21566
+ end
21567
+ end
21568
+
21402
21569
  # Specification of a single machine.
21403
21570
  class GoogleCloudAiplatformV1beta1MachineSpec
21404
21571
  include Google::Apis::Core::Hashable
@@ -21747,6 +21914,13 @@ module Google
21747
21914
  # @return [String]
21748
21915
  attr_accessor :fact
21749
21916
 
21917
+ # Optional. The list of topics that the memory should be associated with. For
21918
+ # example, use `custom_memory_topic_label = "jargon"` if the extracted memory is
21919
+ # an example of memory extraction for the custom topic `jargon`.
21920
+ # Corresponds to the JSON property `topics`
21921
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId>]
21922
+ attr_accessor :topics
21923
+
21750
21924
  def initialize(**args)
21751
21925
  update!(**args)
21752
21926
  end
@@ -21754,6 +21928,7 @@ module Google
21754
21928
  # Update properties of this object
21755
21929
  def update!(**args)
21756
21930
  @fact = args[:fact] if args.key?(:fact)
21931
+ @topics = args[:topics] if args.key?(:topics)
21757
21932
  end
21758
21933
  end
21759
21934
 
@@ -21828,6 +22003,32 @@ module Google
21828
22003
  end
21829
22004
  end
21830
22005
 
22006
+ # A memory topic identifier. This will be used to label a Memory and to restrict
22007
+ # which topics are eligible for generation or retrieval.
22008
+ class GoogleCloudAiplatformV1beta1MemoryTopicId
22009
+ include Google::Apis::Core::Hashable
22010
+
22011
+ # Optional. The custom memory topic label.
22012
+ # Corresponds to the JSON property `customMemoryTopicLabel`
22013
+ # @return [String]
22014
+ attr_accessor :custom_memory_topic_label
22015
+
22016
+ # Optional. The managed memory topic.
22017
+ # Corresponds to the JSON property `managedMemoryTopic`
22018
+ # @return [String]
22019
+ attr_accessor :managed_memory_topic
22020
+
22021
+ def initialize(**args)
22022
+ update!(**args)
22023
+ end
22024
+
22025
+ # Update properties of this object
22026
+ def update!(**args)
22027
+ @custom_memory_topic_label = args[:custom_memory_topic_label] if args.key?(:custom_memory_topic_label)
22028
+ @managed_memory_topic = args[:managed_memory_topic] if args.key?(:managed_memory_topic)
22029
+ end
22030
+ end
22031
+
21831
22032
  # Request message for ModelService.MergeVersionAliases.
21832
22033
  class GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest
21833
22034
  include Google::Apis::Core::Hashable
@@ -22048,6 +22249,11 @@ module Google
22048
22249
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchSpec]
22049
22250
  attr_accessor :exact_match_spec
22050
22251
 
22252
+ # Specification for an LLM based metric.
22253
+ # Corresponds to the JSON property `llmBasedMetricSpec`
22254
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LlmBasedMetricSpec]
22255
+ attr_accessor :llm_based_metric_spec
22256
+
22051
22257
  # Spec for pairwise metric.
22052
22258
  # Corresponds to the JSON property `pairwiseMetricSpec`
22053
22259
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseMetricSpec]
@@ -22078,6 +22284,7 @@ module Google
22078
22284
  @aggregation_metrics = args[:aggregation_metrics] if args.key?(:aggregation_metrics)
22079
22285
  @bleu_spec = args[:bleu_spec] if args.key?(:bleu_spec)
22080
22286
  @exact_match_spec = args[:exact_match_spec] if args.key?(:exact_match_spec)
22287
+ @llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
22081
22288
  @pairwise_metric_spec = args[:pairwise_metric_spec] if args.key?(:pairwise_metric_spec)
22082
22289
  @pointwise_metric_spec = args[:pointwise_metric_spec] if args.key?(:pointwise_metric_spec)
22083
22290
  @predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
@@ -33829,7 +34036,8 @@ module Google
33829
34036
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec]
33830
34037
  attr_accessor :deployment_spec
33831
34038
 
33832
- # User provided package spec like pickled object and package requirements.
34039
+ # User-provided package specification, containing pickled object and package
34040
+ # requirements.
33833
34041
  # Corresponds to the JSON property `packageSpec`
33834
34042
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec]
33835
34043
  attr_accessor :package_spec
@@ -33932,7 +34140,8 @@ module Google
33932
34140
  end
33933
34141
  end
33934
34142
 
33935
- # User provided package spec like pickled object and package requirements.
34143
+ # User-provided package specification, containing pickled object and package
34144
+ # requirements.
33936
34145
  class GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec
33937
34146
  include Google::Apis::Core::Hashable
33938
34147
 
@@ -35925,6 +36134,13 @@ module Google
35925
36134
  # @return [String]
35926
36135
  attr_accessor :display_name
35927
36136
 
36137
+ # Optional. Timestamp in UTC of when this SandboxEnvironment is considered
36138
+ # expired. This is *always* provided on output, regardless of what `expiration`
36139
+ # was sent on input.
36140
+ # Corresponds to the JSON property `expireTime`
36141
+ # @return [String]
36142
+ attr_accessor :expire_time
36143
+
35928
36144
  # Identifier. The name of the SandboxEnvironment.
35929
36145
  # Corresponds to the JSON property `name`
35930
36146
  # @return [String]
@@ -35940,6 +36156,12 @@ module Google
35940
36156
  # @return [String]
35941
36157
  attr_accessor :state
35942
36158
 
36159
+ # Optional. Input only. The TTL for the sandbox environment. The expiration time
36160
+ # is computed: now + TTL.
36161
+ # Corresponds to the JSON property `ttl`
36162
+ # @return [String]
36163
+ attr_accessor :ttl
36164
+
35943
36165
  # Output only. The timestamp when this SandboxEnvironment was most recently
35944
36166
  # updated.
35945
36167
  # Corresponds to the JSON property `updateTime`
@@ -35954,9 +36176,11 @@ module Google
35954
36176
  def update!(**args)
35955
36177
  @create_time = args[:create_time] if args.key?(:create_time)
35956
36178
  @display_name = args[:display_name] if args.key?(:display_name)
36179
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
35957
36180
  @name = args[:name] if args.key?(:name)
35958
36181
  @spec = args[:spec] if args.key?(:spec)
35959
36182
  @state = args[:state] if args.key?(:state)
36183
+ @ttl = args[:ttl] if args.key?(:ttl)
35960
36184
  @update_time = args[:update_time] if args.key?(:update_time)
35961
36185
  end
35962
36186
  end
@@ -50711,6 +50935,11 @@ module Google
50711
50935
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DiskSpec]
50712
50936
  attr_accessor :disk_spec
50713
50937
 
50938
+ # Optional. List of Lustre mounts.
50939
+ # Corresponds to the JSON property `lustreMounts`
50940
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LustreMount>]
50941
+ attr_accessor :lustre_mounts
50942
+
50714
50943
  # Specification of a single machine.
50715
50944
  # Corresponds to the JSON property `machineSpec`
50716
50945
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec]
@@ -50739,6 +50968,7 @@ module Google
50739
50968
  def update!(**args)
50740
50969
  @container_spec = args[:container_spec] if args.key?(:container_spec)
50741
50970
  @disk_spec = args[:disk_spec] if args.key?(:disk_spec)
50971
+ @lustre_mounts = args[:lustre_mounts] if args.key?(:lustre_mounts)
50742
50972
  @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
50743
50973
  @nfs_mounts = args[:nfs_mounts] if args.key?(:nfs_mounts)
50744
50974
  @python_package_spec = args[:python_package_spec] if args.key?(:python_package_spec)