google-apis-aiplatform_v1beta1 0.60.0 → 0.61.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +282 -119
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +102 -36
- data/lib/google/apis/aiplatform_v1beta1/service.rb +735 -2
- metadata +2 -2
@@ -7285,8 +7285,10 @@ module Google
|
|
7285
7285
|
class GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig
|
7286
7286
|
include Google::Apis::Core::Hashable
|
7287
7287
|
|
7288
|
-
# Optional. By default, if dedicated endpoint is enabled
|
7289
|
-
# exposed through a dedicated
|
7288
|
+
# Optional. By default, if dedicated endpoint is enabled and private service
|
7289
|
+
# connect config is not set, the endpoint will be exposed through a dedicated
|
7290
|
+
# DNS [Endpoint.dedicated_endpoint_dns]. If private service connect config is
|
7291
|
+
# set, the endpoint will be exposed through private service connect. Your
|
7290
7292
|
# request to the dedicated DNS will be isolated from other users' traffic and
|
7291
7293
|
# will have better performance and reliability. Note: Once you enabled dedicated
|
7292
7294
|
# endpoint, you won't be able to send request to the shared DNS `region`-
|
@@ -7329,6 +7331,11 @@ module Google
|
|
7329
7331
|
# @return [String]
|
7330
7332
|
attr_accessor :endpoint_user_id
|
7331
7333
|
|
7334
|
+
# Represents configuration for private service connect.
|
7335
|
+
# Corresponds to the JSON property `privateServiceConnectConfig`
|
7336
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig]
|
7337
|
+
attr_accessor :private_service_connect_config
|
7338
|
+
|
7332
7339
|
def initialize(**args)
|
7333
7340
|
update!(**args)
|
7334
7341
|
end
|
@@ -7339,6 +7346,7 @@ module Google
|
|
7339
7346
|
@dedicated_endpoint_enabled = args[:dedicated_endpoint_enabled] if args.key?(:dedicated_endpoint_enabled)
|
7340
7347
|
@endpoint_display_name = args[:endpoint_display_name] if args.key?(:endpoint_display_name)
|
7341
7348
|
@endpoint_user_id = args[:endpoint_user_id] if args.key?(:endpoint_user_id)
|
7349
|
+
@private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
|
7342
7350
|
end
|
7343
7351
|
end
|
7344
7352
|
|
@@ -8340,6 +8348,53 @@ module Google
|
|
8340
8348
|
end
|
8341
8349
|
end
|
8342
8350
|
|
8351
|
+
# Request message for ModelGardenService.EnableModel.
|
8352
|
+
class GoogleCloudAiplatformV1beta1EnableModelRequest
|
8353
|
+
include Google::Apis::Core::Hashable
|
8354
|
+
|
8355
|
+
# Optional. The ID links the Marketplace listing to the underlying Vertex AI
|
8356
|
+
# model endpoint. Format: `services/`service_id`` Format: `services/`service_id``
|
8357
|
+
# Corresponds to the JSON property `service`
|
8358
|
+
# @return [String]
|
8359
|
+
attr_accessor :service
|
8360
|
+
|
8361
|
+
def initialize(**args)
|
8362
|
+
update!(**args)
|
8363
|
+
end
|
8364
|
+
|
8365
|
+
# Update properties of this object
|
8366
|
+
def update!(**args)
|
8367
|
+
@service = args[:service] if args.key?(:service)
|
8368
|
+
end
|
8369
|
+
end
|
8370
|
+
|
8371
|
+
# Response message for ModelGardenService.EnableModel.
|
8372
|
+
class GoogleCloudAiplatformV1beta1EnableModelResponse
|
8373
|
+
include Google::Apis::Core::Hashable
|
8374
|
+
|
8375
|
+
# Output only. The result of the model enablement.
|
8376
|
+
# Corresponds to the JSON property `enablementState`
|
8377
|
+
# @return [String]
|
8378
|
+
attr_accessor :enablement_state
|
8379
|
+
|
8380
|
+
# Output only. The publisher endpoint that the project is enabled for. Format: `
|
8381
|
+
# projects/`project`/locations/`location`/publishers/`publisher`/models/`
|
8382
|
+
# publisher_model``
|
8383
|
+
# Corresponds to the JSON property `publisherEndpoint`
|
8384
|
+
# @return [String]
|
8385
|
+
attr_accessor :publisher_endpoint
|
8386
|
+
|
8387
|
+
def initialize(**args)
|
8388
|
+
update!(**args)
|
8389
|
+
end
|
8390
|
+
|
8391
|
+
# Update properties of this object
|
8392
|
+
def update!(**args)
|
8393
|
+
@enablement_state = args[:enablement_state] if args.key?(:enablement_state)
|
8394
|
+
@publisher_endpoint = args[:publisher_endpoint] if args.key?(:publisher_endpoint)
|
8395
|
+
end
|
8396
|
+
end
|
8397
|
+
|
8343
8398
|
# Represents a customer-managed encryption key spec that can be applied to a top-
|
8344
8399
|
# level resource.
|
8345
8400
|
class GoogleCloudAiplatformV1beta1EncryptionSpec
|
@@ -10183,11 +10238,6 @@ module Google
|
|
10183
10238
|
class GoogleCloudAiplatformV1beta1EvaluationRunMetric
|
10184
10239
|
include Google::Apis::Core::Hashable
|
10185
10240
|
|
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
10241
|
# Specification for an LLM based metric.
|
10192
10242
|
# Corresponds to the JSON property `llmBasedMetricSpec`
|
10193
10243
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec]
|
@@ -10214,7 +10264,6 @@ module Google
|
|
10214
10264
|
|
10215
10265
|
# Update properties of this object
|
10216
10266
|
def update!(**args)
|
10217
|
-
@computation_based_metric_spec = args[:computation_based_metric_spec] if args.key?(:computation_based_metric_spec)
|
10218
10267
|
@llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
|
10219
10268
|
@metric = args[:metric] if args.key?(:metric)
|
10220
10269
|
@predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
|
@@ -10222,31 +10271,6 @@ module Google
|
|
10222
10271
|
end
|
10223
10272
|
end
|
10224
10273
|
|
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
10274
|
# Specification for an LLM based metric.
|
10251
10275
|
class GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec
|
10252
10276
|
include Google::Apis::Core::Hashable
|
@@ -16494,7 +16518,9 @@ module Google
|
|
16494
16518
|
# @return [String]
|
16495
16519
|
attr_accessor :model_version
|
16496
16520
|
|
16497
|
-
# Content filter results for a prompt sent in the request.
|
16521
|
+
# Content filter results for a prompt sent in the request. Note: This is sent
|
16522
|
+
# only in the first stream chunk and only if no candidates were generated due to
|
16523
|
+
# content violations.
|
16498
16524
|
# Corresponds to the JSON property `promptFeedback`
|
16499
16525
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
|
16500
16526
|
attr_accessor :prompt_feedback
|
@@ -16505,7 +16531,8 @@ module Google
|
|
16505
16531
|
# @return [String]
|
16506
16532
|
attr_accessor :response_id
|
16507
16533
|
|
16508
|
-
# Usage metadata about response
|
16534
|
+
# Usage metadata about the content generation request and response. This message
|
16535
|
+
# provides a detailed breakdown of token usage and other relevant metrics.
|
16509
16536
|
# Corresponds to the JSON property `usageMetadata`
|
16510
16537
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
|
16511
16538
|
attr_accessor :usage_metadata
|
@@ -16525,21 +16552,25 @@ module Google
|
|
16525
16552
|
end
|
16526
16553
|
end
|
16527
16554
|
|
16528
|
-
# Content filter results for a prompt sent in the request.
|
16555
|
+
# Content filter results for a prompt sent in the request. Note: This is sent
|
16556
|
+
# only in the first stream chunk and only if no candidates were generated due to
|
16557
|
+
# content violations.
|
16529
16558
|
class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
|
16530
16559
|
include Google::Apis::Core::Hashable
|
16531
16560
|
|
16532
|
-
# Output only.
|
16561
|
+
# Output only. The reason why the prompt was blocked.
|
16533
16562
|
# Corresponds to the JSON property `blockReason`
|
16534
16563
|
# @return [String]
|
16535
16564
|
attr_accessor :block_reason
|
16536
16565
|
|
16537
|
-
# Output only. A readable
|
16566
|
+
# Output only. A readable message that explains the reason why the prompt was
|
16567
|
+
# blocked.
|
16538
16568
|
# Corresponds to the JSON property `blockReasonMessage`
|
16539
16569
|
# @return [String]
|
16540
16570
|
attr_accessor :block_reason_message
|
16541
16571
|
|
16542
|
-
# Output only.
|
16572
|
+
# Output only. A list of safety ratings for the prompt. There is one rating per
|
16573
|
+
# category.
|
16543
16574
|
# Corresponds to the JSON property `safetyRatings`
|
16544
16575
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
|
16545
16576
|
attr_accessor :safety_ratings
|
@@ -16556,67 +16587,73 @@ module Google
|
|
16556
16587
|
end
|
16557
16588
|
end
|
16558
16589
|
|
16559
|
-
# Usage metadata about response
|
16590
|
+
# Usage metadata about the content generation request and response. This message
|
16591
|
+
# provides a detailed breakdown of token usage and other relevant metrics.
|
16560
16592
|
class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
|
16561
16593
|
include Google::Apis::Core::Hashable
|
16562
16594
|
|
16563
|
-
# Output only.
|
16595
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
16596
|
+
# cached content.
|
16564
16597
|
# Corresponds to the JSON property `cacheTokensDetails`
|
16565
16598
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
|
16566
16599
|
attr_accessor :cache_tokens_details
|
16567
16600
|
|
16568
|
-
# Output only.
|
16569
|
-
#
|
16601
|
+
# Output only. The number of tokens in the cached content that was used for this
|
16602
|
+
# request.
|
16570
16603
|
# Corresponds to the JSON property `cachedContentTokenCount`
|
16571
16604
|
# @return [Fixnum]
|
16572
16605
|
attr_accessor :cached_content_token_count
|
16573
16606
|
|
16574
|
-
#
|
16607
|
+
# The total number of tokens in the generated candidates.
|
16575
16608
|
# Corresponds to the JSON property `candidatesTokenCount`
|
16576
16609
|
# @return [Fixnum]
|
16577
16610
|
attr_accessor :candidates_token_count
|
16578
16611
|
|
16579
|
-
# Output only.
|
16612
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
16613
|
+
# generated candidates.
|
16580
16614
|
# Corresponds to the JSON property `candidatesTokensDetails`
|
16581
16615
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
|
16582
16616
|
attr_accessor :candidates_tokens_details
|
16583
16617
|
|
16584
|
-
#
|
16585
|
-
#
|
16586
|
-
# the cached content.
|
16618
|
+
# The total number of tokens in the prompt. This includes any text, images, or
|
16619
|
+
# other media provided in the request. When `cached_content` is set, this also
|
16620
|
+
# includes the number of tokens in the cached content.
|
16587
16621
|
# Corresponds to the JSON property `promptTokenCount`
|
16588
16622
|
# @return [Fixnum]
|
16589
16623
|
attr_accessor :prompt_token_count
|
16590
16624
|
|
16591
|
-
# Output only.
|
16625
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
16626
|
+
# prompt.
|
16592
16627
|
# Corresponds to the JSON property `promptTokensDetails`
|
16593
16628
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
|
16594
16629
|
attr_accessor :prompt_tokens_details
|
16595
16630
|
|
16596
|
-
# Output only.
|
16631
|
+
# Output only. The number of tokens that were part of the model's generated "
|
16632
|
+
# thoughts" output, if applicable.
|
16597
16633
|
# Corresponds to the JSON property `thoughtsTokenCount`
|
16598
16634
|
# @return [Fixnum]
|
16599
16635
|
attr_accessor :thoughts_token_count
|
16600
16636
|
|
16601
|
-
# Output only.
|
16637
|
+
# Output only. The number of tokens in the results from tool executions, which
|
16638
|
+
# are provided back to the model as input, if applicable.
|
16602
16639
|
# Corresponds to the JSON property `toolUsePromptTokenCount`
|
16603
16640
|
# @return [Fixnum]
|
16604
16641
|
attr_accessor :tool_use_prompt_token_count
|
16605
16642
|
|
16606
|
-
# Output only.
|
16607
|
-
#
|
16643
|
+
# Output only. A detailed breakdown by modality of the token counts from the
|
16644
|
+
# results of tool executions, which are provided back to the model as input.
|
16608
16645
|
# Corresponds to the JSON property `toolUsePromptTokensDetails`
|
16609
16646
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
|
16610
16647
|
attr_accessor :tool_use_prompt_tokens_details
|
16611
16648
|
|
16612
|
-
#
|
16613
|
-
#
|
16649
|
+
# The total number of tokens for the entire request. This is the sum of `
|
16650
|
+
# prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
|
16651
|
+
# and `thoughts_token_count`.
|
16614
16652
|
# Corresponds to the JSON property `totalTokenCount`
|
16615
16653
|
# @return [Fixnum]
|
16616
16654
|
attr_accessor :total_token_count
|
16617
16655
|
|
16618
|
-
# Output only.
|
16619
|
-
# or Provisioned Throughput quota.
|
16656
|
+
# Output only. The traffic type for this request.
|
16620
16657
|
# Corresponds to the JSON property `trafficType`
|
16621
16658
|
# @return [String]
|
16622
16659
|
attr_accessor :traffic_type
|
@@ -17375,12 +17412,19 @@ module Google
|
|
17375
17412
|
class GoogleCloudAiplatformV1beta1GoogleMaps
|
17376
17413
|
include Google::Apis::Core::Hashable
|
17377
17414
|
|
17415
|
+
# Optional. If true, include the widget context token in the response.
|
17416
|
+
# Corresponds to the JSON property `enableWidget`
|
17417
|
+
# @return [Boolean]
|
17418
|
+
attr_accessor :enable_widget
|
17419
|
+
alias_method :enable_widget?, :enable_widget
|
17420
|
+
|
17378
17421
|
def initialize(**args)
|
17379
17422
|
update!(**args)
|
17380
17423
|
end
|
17381
17424
|
|
17382
17425
|
# Update properties of this object
|
17383
17426
|
def update!(**args)
|
17427
|
+
@enable_widget = args[:enable_widget] if args.key?(:enable_widget)
|
17384
17428
|
end
|
17385
17429
|
end
|
17386
17430
|
|
@@ -17550,17 +17594,17 @@ module Google
|
|
17550
17594
|
# @return [String]
|
17551
17595
|
attr_accessor :place_id
|
17552
17596
|
|
17553
|
-
# Text of the
|
17597
|
+
# Text of the place answer.
|
17554
17598
|
# Corresponds to the JSON property `text`
|
17555
17599
|
# @return [String]
|
17556
17600
|
attr_accessor :text
|
17557
17601
|
|
17558
|
-
# Title of the
|
17602
|
+
# Title of the place.
|
17559
17603
|
# Corresponds to the JSON property `title`
|
17560
17604
|
# @return [String]
|
17561
17605
|
attr_accessor :title
|
17562
17606
|
|
17563
|
-
# URI reference of the
|
17607
|
+
# URI reference of the place.
|
17564
17608
|
# Corresponds to the JSON property `uri`
|
17565
17609
|
# @return [String]
|
17566
17610
|
attr_accessor :uri
|
@@ -17583,11 +17627,6 @@ module Google
|
|
17583
17627
|
class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSources
|
17584
17628
|
include Google::Apis::Core::Hashable
|
17585
17629
|
|
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
17630
|
# Snippets of reviews that are used to generate the answer.
|
17592
17631
|
# Corresponds to the JSON property `reviewSnippets`
|
17593
17632
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>]
|
@@ -17599,72 +17638,28 @@ module Google
|
|
17599
17638
|
|
17600
17639
|
# Update properties of this object
|
17601
17640
|
def update!(**args)
|
17602
|
-
@flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
|
17603
17641
|
@review_snippets = args[:review_snippets] if args.key?(:review_snippets)
|
17604
17642
|
end
|
17605
17643
|
end
|
17606
17644
|
|
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
17645
|
# Encapsulates a review snippet.
|
17639
17646
|
class GoogleCloudAiplatformV1beta1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
|
17640
17647
|
include Google::Apis::Core::Hashable
|
17641
17648
|
|
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
17649
|
# A link to show the review on Google Maps.
|
17653
17650
|
# Corresponds to the JSON property `googleMapsUri`
|
17654
17651
|
# @return [String]
|
17655
17652
|
attr_accessor :google_maps_uri
|
17656
17653
|
|
17657
|
-
#
|
17658
|
-
#
|
17659
|
-
# Corresponds to the JSON property `relativePublishTimeDescription`
|
17654
|
+
# Id of the review referencing the place.
|
17655
|
+
# Corresponds to the JSON property `reviewId`
|
17660
17656
|
# @return [String]
|
17661
|
-
attr_accessor :
|
17657
|
+
attr_accessor :review_id
|
17662
17658
|
|
17663
|
-
#
|
17664
|
-
#
|
17665
|
-
# Corresponds to the JSON property `review`
|
17659
|
+
# Title of the review.
|
17660
|
+
# Corresponds to the JSON property `title`
|
17666
17661
|
# @return [String]
|
17667
|
-
attr_accessor :
|
17662
|
+
attr_accessor :title
|
17668
17663
|
|
17669
17664
|
def initialize(**args)
|
17670
17665
|
update!(**args)
|
@@ -17672,11 +17667,9 @@ module Google
|
|
17672
17667
|
|
17673
17668
|
# Update properties of this object
|
17674
17669
|
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
17670
|
@google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
|
17678
|
-
@
|
17679
|
-
@
|
17671
|
+
@review_id = args[:review_id] if args.key?(:review_id)
|
17672
|
+
@title = args[:title] if args.key?(:title)
|
17680
17673
|
end
|
17681
17674
|
end
|
17682
17675
|
|
@@ -17792,6 +17785,12 @@ module Google
|
|
17792
17785
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchEntryPoint]
|
17793
17786
|
attr_accessor :search_entry_point
|
17794
17787
|
|
17788
|
+
# Optional. Output only. List of source flagging uris. This is currently
|
17789
|
+
# populated only for Google Maps grounding.
|
17790
|
+
# Corresponds to the JSON property `sourceFlaggingUris`
|
17791
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri>]
|
17792
|
+
attr_accessor :source_flagging_uris
|
17793
|
+
|
17795
17794
|
# Optional. Web search queries for the following-up web search.
|
17796
17795
|
# Corresponds to the JSON property `webSearchQueries`
|
17797
17796
|
# @return [Array<String>]
|
@@ -17809,10 +17808,37 @@ module Google
|
|
17809
17808
|
@retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
|
17810
17809
|
@retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
|
17811
17810
|
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
17811
|
+
@source_flagging_uris = args[:source_flagging_uris] if args.key?(:source_flagging_uris)
|
17812
17812
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
17813
17813
|
end
|
17814
17814
|
end
|
17815
17815
|
|
17816
|
+
# Source content flagging uri for a place or review. This is currently populated
|
17817
|
+
# only for Google Maps grounding.
|
17818
|
+
class GoogleCloudAiplatformV1beta1GroundingMetadataSourceFlaggingUri
|
17819
|
+
include Google::Apis::Core::Hashable
|
17820
|
+
|
17821
|
+
# A link where users can flag a problem with the source (place or review).
|
17822
|
+
# Corresponds to the JSON property `flagContentUri`
|
17823
|
+
# @return [String]
|
17824
|
+
attr_accessor :flag_content_uri
|
17825
|
+
|
17826
|
+
# Id of the place or review.
|
17827
|
+
# Corresponds to the JSON property `sourceId`
|
17828
|
+
# @return [String]
|
17829
|
+
attr_accessor :source_id
|
17830
|
+
|
17831
|
+
def initialize(**args)
|
17832
|
+
update!(**args)
|
17833
|
+
end
|
17834
|
+
|
17835
|
+
# Update properties of this object
|
17836
|
+
def update!(**args)
|
17837
|
+
@flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
|
17838
|
+
@source_id = args[:source_id] if args.key?(:source_id)
|
17839
|
+
end
|
17840
|
+
end
|
17841
|
+
|
17816
17842
|
# Grounding support.
|
17817
17843
|
class GoogleCloudAiplatformV1beta1GroundingSupport
|
17818
17844
|
include Google::Apis::Core::Hashable
|
@@ -19435,6 +19461,46 @@ module Google
|
|
19435
19461
|
end
|
19436
19462
|
end
|
19437
19463
|
|
19464
|
+
# Request message for PredictionService.Invoke.
|
19465
|
+
class GoogleCloudAiplatformV1beta1InvokeRequest
|
19466
|
+
include Google::Apis::Core::Hashable
|
19467
|
+
|
19468
|
+
# ID of the DeployedModel that serves the invoke request.
|
19469
|
+
# Corresponds to the JSON property `deployedModelId`
|
19470
|
+
# @return [String]
|
19471
|
+
attr_accessor :deployed_model_id
|
19472
|
+
|
19473
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
19474
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
19475
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
19476
|
+
# methods in the request as well as the response. It can be used as a top-level
|
19477
|
+
# request field, which is convenient if one wants to extract parameters from
|
19478
|
+
# either the URL or HTTP template into the request fields and also want access
|
19479
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
19480
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
19481
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
19482
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
19483
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
19484
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
19485
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
19486
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
19487
|
+
# only changes how the request and response bodies are handled, all other
|
19488
|
+
# features will continue to work unchanged.
|
19489
|
+
# Corresponds to the JSON property `httpBody`
|
19490
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
|
19491
|
+
attr_accessor :http_body
|
19492
|
+
|
19493
|
+
def initialize(**args)
|
19494
|
+
update!(**args)
|
19495
|
+
end
|
19496
|
+
|
19497
|
+
# Update properties of this object
|
19498
|
+
def update!(**args)
|
19499
|
+
@deployed_model_id = args[:deployed_model_id] if args.key?(:deployed_model_id)
|
19500
|
+
@http_body = args[:http_body] if args.key?(:http_body)
|
19501
|
+
end
|
19502
|
+
end
|
19503
|
+
|
19438
19504
|
# The Jira source for the ImportRagFilesRequest.
|
19439
19505
|
class GoogleCloudAiplatformV1beta1JiraSource
|
19440
19506
|
include Google::Apis::Core::Hashable
|
@@ -19499,6 +19565,63 @@ module Google
|
|
19499
19565
|
end
|
19500
19566
|
end
|
19501
19567
|
|
19568
|
+
# Specification for an LLM based metric.
|
19569
|
+
class GoogleCloudAiplatformV1beta1LlmBasedMetricSpec
|
19570
|
+
include Google::Apis::Core::Hashable
|
19571
|
+
|
19572
|
+
# Optional. Optional additional configuration for the metric.
|
19573
|
+
# Corresponds to the JSON property `additionalConfig`
|
19574
|
+
# @return [Hash<String,Object>]
|
19575
|
+
attr_accessor :additional_config
|
19576
|
+
|
19577
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
19578
|
+
# EvaluateDataset.
|
19579
|
+
# Corresponds to the JSON property `judgeAutoraterConfig`
|
19580
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AutoraterConfig]
|
19581
|
+
attr_accessor :judge_autorater_config
|
19582
|
+
|
19583
|
+
# Required. Template for the prompt sent to the judge model.
|
19584
|
+
# Corresponds to the JSON property `metricPromptTemplate`
|
19585
|
+
# @return [String]
|
19586
|
+
attr_accessor :metric_prompt_template
|
19587
|
+
|
19588
|
+
# The spec for a pre-defined metric.
|
19589
|
+
# Corresponds to the JSON property `predefinedRubricGenerationSpec`
|
19590
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredefinedMetricSpec]
|
19591
|
+
attr_accessor :predefined_rubric_generation_spec
|
19592
|
+
|
19593
|
+
# Specification for how rubrics should be generated.
|
19594
|
+
# Corresponds to the JSON property `rubricGenerationSpec`
|
19595
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricGenerationSpec]
|
19596
|
+
attr_accessor :rubric_generation_spec
|
19597
|
+
|
19598
|
+
# Use a pre-defined group of rubrics associated with the input. Refers to a key
|
19599
|
+
# in the rubric_groups map of EvaluationInstance.
|
19600
|
+
# Corresponds to the JSON property `rubricGroupKey`
|
19601
|
+
# @return [String]
|
19602
|
+
attr_accessor :rubric_group_key
|
19603
|
+
|
19604
|
+
# Optional. System instructions for the judge model.
|
19605
|
+
# Corresponds to the JSON property `systemInstruction`
|
19606
|
+
# @return [String]
|
19607
|
+
attr_accessor :system_instruction
|
19608
|
+
|
19609
|
+
def initialize(**args)
|
19610
|
+
update!(**args)
|
19611
|
+
end
|
19612
|
+
|
19613
|
+
# Update properties of this object
|
19614
|
+
def update!(**args)
|
19615
|
+
@additional_config = args[:additional_config] if args.key?(:additional_config)
|
19616
|
+
@judge_autorater_config = args[:judge_autorater_config] if args.key?(:judge_autorater_config)
|
19617
|
+
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
19618
|
+
@predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
|
19619
|
+
@rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
|
19620
|
+
@rubric_group_key = args[:rubric_group_key] if args.key?(:rubric_group_key)
|
19621
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
19622
|
+
end
|
19623
|
+
end
|
19624
|
+
|
19502
19625
|
# Contains information about the Large Model.
|
19503
19626
|
class GoogleCloudAiplatformV1beta1LargeModelReference
|
19504
19627
|
include Google::Apis::Core::Hashable
|
@@ -21747,6 +21870,13 @@ module Google
|
|
21747
21870
|
# @return [String]
|
21748
21871
|
attr_accessor :fact
|
21749
21872
|
|
21873
|
+
# Optional. The list of topics that the memory should be associated with. For
|
21874
|
+
# example, use `custom_memory_topic_label = "jargon"` if the extracted memory is
|
21875
|
+
# an example of memory extraction for the custom topic `jargon`.
|
21876
|
+
# Corresponds to the JSON property `topics`
|
21877
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId>]
|
21878
|
+
attr_accessor :topics
|
21879
|
+
|
21750
21880
|
def initialize(**args)
|
21751
21881
|
update!(**args)
|
21752
21882
|
end
|
@@ -21754,6 +21884,7 @@ module Google
|
|
21754
21884
|
# Update properties of this object
|
21755
21885
|
def update!(**args)
|
21756
21886
|
@fact = args[:fact] if args.key?(:fact)
|
21887
|
+
@topics = args[:topics] if args.key?(:topics)
|
21757
21888
|
end
|
21758
21889
|
end
|
21759
21890
|
|
@@ -21828,6 +21959,32 @@ module Google
|
|
21828
21959
|
end
|
21829
21960
|
end
|
21830
21961
|
|
21962
|
+
# A memory topic identifier. This will be used to label a Memory and to restrict
|
21963
|
+
# which topics are eligible for generation or retrieval.
|
21964
|
+
class GoogleCloudAiplatformV1beta1MemoryTopicId
|
21965
|
+
include Google::Apis::Core::Hashable
|
21966
|
+
|
21967
|
+
# Optional. The custom memory topic label.
|
21968
|
+
# Corresponds to the JSON property `customMemoryTopicLabel`
|
21969
|
+
# @return [String]
|
21970
|
+
attr_accessor :custom_memory_topic_label
|
21971
|
+
|
21972
|
+
# Optional. The managed memory topic.
|
21973
|
+
# Corresponds to the JSON property `managedMemoryTopic`
|
21974
|
+
# @return [String]
|
21975
|
+
attr_accessor :managed_memory_topic
|
21976
|
+
|
21977
|
+
def initialize(**args)
|
21978
|
+
update!(**args)
|
21979
|
+
end
|
21980
|
+
|
21981
|
+
# Update properties of this object
|
21982
|
+
def update!(**args)
|
21983
|
+
@custom_memory_topic_label = args[:custom_memory_topic_label] if args.key?(:custom_memory_topic_label)
|
21984
|
+
@managed_memory_topic = args[:managed_memory_topic] if args.key?(:managed_memory_topic)
|
21985
|
+
end
|
21986
|
+
end
|
21987
|
+
|
21831
21988
|
# Request message for ModelService.MergeVersionAliases.
|
21832
21989
|
class GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest
|
21833
21990
|
include Google::Apis::Core::Hashable
|
@@ -22048,6 +22205,11 @@ module Google
|
|
22048
22205
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchSpec]
|
22049
22206
|
attr_accessor :exact_match_spec
|
22050
22207
|
|
22208
|
+
# Specification for an LLM based metric.
|
22209
|
+
# Corresponds to the JSON property `llmBasedMetricSpec`
|
22210
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LlmBasedMetricSpec]
|
22211
|
+
attr_accessor :llm_based_metric_spec
|
22212
|
+
|
22051
22213
|
# Spec for pairwise metric.
|
22052
22214
|
# Corresponds to the JSON property `pairwiseMetricSpec`
|
22053
22215
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseMetricSpec]
|
@@ -22078,6 +22240,7 @@ module Google
|
|
22078
22240
|
@aggregation_metrics = args[:aggregation_metrics] if args.key?(:aggregation_metrics)
|
22079
22241
|
@bleu_spec = args[:bleu_spec] if args.key?(:bleu_spec)
|
22080
22242
|
@exact_match_spec = args[:exact_match_spec] if args.key?(:exact_match_spec)
|
22243
|
+
@llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
|
22081
22244
|
@pairwise_metric_spec = args[:pairwise_metric_spec] if args.key?(:pairwise_metric_spec)
|
22082
22245
|
@pointwise_metric_spec = args[:pointwise_metric_spec] if args.key?(:pointwise_metric_spec)
|
22083
22246
|
@predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AiplatformV1beta1
|
18
18
|
# Version of the google-apis-aiplatform_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.61.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250916"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|