google-apis-aiplatform_v1 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,6 +87,11 @@ module Google
87
87
  # @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionMedia>]
88
88
  attr_accessor :generated_samples
89
89
 
90
+ # Returns rai error message for filtered videos.
91
+ # Corresponds to the JSON property `raiErrorMessage`
92
+ # @return [String]
93
+ attr_accessor :rai_error_message
94
+
90
95
  # Returns if any videos were filtered due to RAI policies.
91
96
  # Corresponds to the JSON property `raiMediaFilteredCount`
92
97
  # @return [Fixnum]
@@ -109,6 +114,7 @@ module Google
109
114
  # Update properties of this object
110
115
  def update!(**args)
111
116
  @generated_samples = args[:generated_samples] if args.key?(:generated_samples)
117
+ @rai_error_message = args[:rai_error_message] if args.key?(:rai_error_message)
112
118
  @rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
113
119
  @rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
114
120
  @rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
@@ -744,6 +750,11 @@ module Google
744
750
  class CloudAiNlLlmProtoServiceMessageMetadata
745
751
  include Google::Apis::Core::Hashable
746
752
 
753
+ # Factuality-related debug metadata.
754
+ # Corresponds to the JSON property `factualityDebugMetadata`
755
+ # @return [Google::Apis::AiplatformV1::LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata]
756
+ attr_accessor :factuality_debug_metadata
757
+
747
758
  # LINT.IfChange This metadata contains additional information required for
748
759
  # debugging.
749
760
  # Corresponds to the JSON property `inputFilterInfo`
@@ -767,6 +778,7 @@ module Google
767
778
 
768
779
  # Update properties of this object
769
780
  def update!(**args)
781
+ @factuality_debug_metadata = args[:factuality_debug_metadata] if args.key?(:factuality_debug_metadata)
770
782
  @input_filter_info = args[:input_filter_info] if args.key?(:input_filter_info)
771
783
  @model_routing_decision = args[:model_routing_decision] if args.key?(:model_routing_decision)
772
784
  @output_filter_info = args[:output_filter_info] if args.key?(:output_filter_info)
@@ -1030,6 +1042,12 @@ module Google
1030
1042
  # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal>]
1031
1043
  attr_accessor :rai_signals
1032
1044
 
1045
+ # Translation request info during RAI for debugging purpose. Each
1046
+ # TranslationRequestInfo corresponds to a request sent to the translation server.
1047
+ # Corresponds to the JSON property `translationRequestInfos`
1048
+ # @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootTranslationRequestInfo>]
1049
+ attr_accessor :translation_request_infos
1050
+
1033
1051
  # Whether the text triggered the blocklist.
1034
1052
  # Corresponds to the JSON property `triggeredBlocklist`
1035
1053
  # @return [Boolean]
@@ -1063,6 +1081,7 @@ module Google
1063
1081
  @filtered = args[:filtered] if args.key?(:filtered)
1064
1082
  @language_filter_result = args[:language_filter_result] if args.key?(:language_filter_result)
1065
1083
  @rai_signals = args[:rai_signals] if args.key?(:rai_signals)
1084
+ @translation_request_infos = args[:translation_request_infos] if args.key?(:translation_request_infos)
1066
1085
  @triggered_blocklist = args[:triggered_blocklist] if args.key?(:triggered_blocklist)
1067
1086
  @triggered_recitation = args[:triggered_recitation] if args.key?(:triggered_recitation)
1068
1087
  @triggered_safety_filter = args[:triggered_safety_filter] if args.key?(:triggered_safety_filter)
@@ -3126,6 +3145,19 @@ module Google
3126
3145
  end
3127
3146
  end
3128
3147
 
3148
+ # Request message for GenAiTuningService.CancelTuningJob.
3149
+ class GoogleCloudAiplatformV1CancelTuningJobRequest
3150
+ include Google::Apis::Core::Hashable
3151
+
3152
+ def initialize(**args)
3153
+ update!(**args)
3154
+ end
3155
+
3156
+ # Update properties of this object
3157
+ def update!(**args)
3158
+ end
3159
+ end
3160
+
3129
3161
  # A response candidate generated from the model.
3130
3162
  class GoogleCloudAiplatformV1Candidate
3131
3163
  include Google::Apis::Core::Hashable
@@ -6128,6 +6160,11 @@ module Google
6128
6160
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig]
6129
6161
  attr_accessor :predict_request_response_logging_config
6130
6162
 
6163
+ # Represents configuration for private service connect.
6164
+ # Corresponds to the JSON property `privateServiceConnectConfig`
6165
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig]
6166
+ attr_accessor :private_service_connect_config
6167
+
6131
6168
  # A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
6132
6169
  # that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
6133
6170
  # listed in this map, then it receives no traffic. The traffic percentage values
@@ -6160,6 +6197,7 @@ module Google
6160
6197
  @name = args[:name] if args.key?(:name)
6161
6198
  @network = args[:network] if args.key?(:network)
6162
6199
  @predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
6200
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
6163
6201
  @traffic_split = args[:traffic_split] if args.key?(:traffic_split)
6164
6202
  @update_time = args[:update_time] if args.key?(:update_time)
6165
6203
  end
@@ -9502,7 +9540,7 @@ module Google
9502
9540
  end
9503
9541
  end
9504
9542
 
9505
- # LINT.IfChange The request message for MatchService.FindNeighbors.
9543
+ # The request message for MatchService.FindNeighbors.
9506
9544
  class GoogleCloudAiplatformV1FindNeighborsRequest
9507
9545
  include Google::Apis::Core::Hashable
9508
9546
 
@@ -10011,6 +10049,15 @@ module Google
10011
10049
  # @return [Float]
10012
10050
  attr_accessor :presence_penalty
10013
10051
 
10052
+ # Optional. Output response mimetype of the generated candidate text. Supported
10053
+ # mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON
10054
+ # response in the candidates. The model needs to be prompted to output the
10055
+ # appropriate response type, otherwise the behavior is undefined. This is a
10056
+ # preview feature.
10057
+ # Corresponds to the JSON property `responseMimeType`
10058
+ # @return [String]
10059
+ attr_accessor :response_mime_type
10060
+
10014
10061
  # Optional. Stop sequences.
10015
10062
  # Corresponds to the JSON property `stopSequences`
10016
10063
  # @return [Array<String>]
@@ -10041,6 +10088,7 @@ module Google
10041
10088
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
10042
10089
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
10043
10090
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
10091
+ @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
10044
10092
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
10045
10093
  @temperature = args[:temperature] if args.key?(:temperature)
10046
10094
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -10102,99 +10150,10 @@ module Google
10102
10150
  end
10103
10151
  end
10104
10152
 
10105
- # Tool to retrieve public web data for grounding, powered by Google.
10106
- class GoogleCloudAiplatformV1GoogleSearchRetrieval
10107
- include Google::Apis::Core::Hashable
10108
-
10109
- # Optional. Disable using the result from this tool in detecting grounding
10110
- # attribution. This does not affect how the result is given to the model for
10111
- # generation.
10112
- # Corresponds to the JSON property `disableAttribution`
10113
- # @return [Boolean]
10114
- attr_accessor :disable_attribution
10115
- alias_method :disable_attribution?, :disable_attribution
10116
-
10117
- def initialize(**args)
10118
- update!(**args)
10119
- end
10120
-
10121
- # Update properties of this object
10122
- def update!(**args)
10123
- @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
10124
- end
10125
- end
10126
-
10127
- # Grounding attribution.
10128
- class GoogleCloudAiplatformV1GroundingAttribution
10129
- include Google::Apis::Core::Hashable
10130
-
10131
- # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
10132
- # 1 is the most confident.
10133
- # Corresponds to the JSON property `confidenceScore`
10134
- # @return [Float]
10135
- attr_accessor :confidence_score
10136
-
10137
- # Segment of the content.
10138
- # Corresponds to the JSON property `segment`
10139
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment]
10140
- attr_accessor :segment
10141
-
10142
- # Attribution from the web.
10143
- # Corresponds to the JSON property `web`
10144
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttributionWeb]
10145
- attr_accessor :web
10146
-
10147
- def initialize(**args)
10148
- update!(**args)
10149
- end
10150
-
10151
- # Update properties of this object
10152
- def update!(**args)
10153
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
10154
- @segment = args[:segment] if args.key?(:segment)
10155
- @web = args[:web] if args.key?(:web)
10156
- end
10157
- end
10158
-
10159
- # Attribution from the web.
10160
- class GoogleCloudAiplatformV1GroundingAttributionWeb
10161
- include Google::Apis::Core::Hashable
10162
-
10163
- # Output only. Title of the attribution.
10164
- # Corresponds to the JSON property `title`
10165
- # @return [String]
10166
- attr_accessor :title
10167
-
10168
- # Output only. URI reference of the attribution.
10169
- # Corresponds to the JSON property `uri`
10170
- # @return [String]
10171
- attr_accessor :uri
10172
-
10173
- def initialize(**args)
10174
- update!(**args)
10175
- end
10176
-
10177
- # Update properties of this object
10178
- def update!(**args)
10179
- @title = args[:title] if args.key?(:title)
10180
- @uri = args[:uri] if args.key?(:uri)
10181
- end
10182
- end
10183
-
10184
10153
  # Metadata returned to client when grounding is enabled.
10185
10154
  class GoogleCloudAiplatformV1GroundingMetadata
10186
10155
  include Google::Apis::Core::Hashable
10187
10156
 
10188
- # Optional. List of grounding attributions.
10189
- # Corresponds to the JSON property `groundingAttributions`
10190
- # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution>]
10191
- attr_accessor :grounding_attributions
10192
-
10193
- # Optional. Queries executed by the retrieval tools.
10194
- # Corresponds to the JSON property `retrievalQueries`
10195
- # @return [Array<String>]
10196
- attr_accessor :retrieval_queries
10197
-
10198
10157
  # Optional. Web search queries for the following-up web search.
10199
10158
  # Corresponds to the JSON property `webSearchQueries`
10200
10159
  # @return [Array<String>]
@@ -10206,8 +10165,6 @@ module Google
10206
10165
 
10207
10166
  # Update properties of this object
10208
10167
  def update!(**args)
10209
- @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
10210
- @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
10211
10168
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
10212
10169
  end
10213
10170
  end
@@ -12607,6 +12564,32 @@ module Google
12607
12564
  end
12608
12565
  end
12609
12566
 
12567
+ # Response message for GenAiTuningService.ListTuningJobs
12568
+ class GoogleCloudAiplatformV1ListTuningJobsResponse
12569
+ include Google::Apis::Core::Hashable
12570
+
12571
+ # A token to retrieve the next page of results. Pass to ListTuningJobsRequest.
12572
+ # page_token to obtain that page.
12573
+ # Corresponds to the JSON property `nextPageToken`
12574
+ # @return [String]
12575
+ attr_accessor :next_page_token
12576
+
12577
+ # List of TuningJobs in the requested page.
12578
+ # Corresponds to the JSON property `tuningJobs`
12579
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob>]
12580
+ attr_accessor :tuning_jobs
12581
+
12582
+ def initialize(**args)
12583
+ update!(**args)
12584
+ end
12585
+
12586
+ # Update properties of this object
12587
+ def update!(**args)
12588
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
12589
+ @tuning_jobs = args[:tuning_jobs] if args.key?(:tuning_jobs)
12590
+ end
12591
+ end
12592
+
12610
12593
  # Request message for VizierService.LookupStudy.
12611
12594
  class GoogleCloudAiplatformV1LookupStudyRequest
12612
12595
  include Google::Apis::Core::Hashable
@@ -17625,11 +17608,6 @@ module Google
17625
17608
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
17626
17609
  attr_accessor :deploy_gke
17627
17610
 
17628
- # Multiple setups to deploy the PublisherModel.
17629
- # Corresponds to the JSON property `multiDeployVertex`
17630
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex]
17631
- attr_accessor :multi_deploy_vertex
17632
-
17633
17611
  # The regional resource name or the URI. Key is region, e.g., us-central1,
17634
17612
  # europe-west2, global, etc..
17635
17613
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -17696,7 +17674,6 @@ module Google
17696
17674
  @create_application = args[:create_application] if args.key?(:create_application)
17697
17675
  @deploy = args[:deploy] if args.key?(:deploy)
17698
17676
  @deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
17699
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
17700
17677
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
17701
17678
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
17702
17679
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -17806,25 +17783,6 @@ module Google
17806
17783
  end
17807
17784
  end
17808
17785
 
17809
- # Multiple setups to deploy the PublisherModel.
17810
- class GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
17811
- include Google::Apis::Core::Hashable
17812
-
17813
- # Optional. One click deployment configurations.
17814
- # Corresponds to the JSON property `multiDeployVertex`
17815
- # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy>]
17816
- attr_accessor :multi_deploy_vertex
17817
-
17818
- def initialize(**args)
17819
- update!(**args)
17820
- end
17821
-
17822
- # Update properties of this object
17823
- def update!(**args)
17824
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
17825
- end
17826
- end
17827
-
17828
17786
  # Open fine tuning pipelines.
17829
17787
  class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
17830
17788
  include Google::Apis::Core::Hashable
@@ -18350,73 +18308,18 @@ module Google
18350
18308
  end
18351
18309
  end
18352
18310
 
18353
- # Configuration for the Ray metrics.
18354
- class GoogleCloudAiplatformV1RayMetricSpec
18355
- include Google::Apis::Core::Hashable
18356
-
18357
- # Optional. Flag to disable the Ray metrics collection.
18358
- # Corresponds to the JSON property `disabled`
18359
- # @return [Boolean]
18360
- attr_accessor :disabled
18361
- alias_method :disabled?, :disabled
18362
-
18363
- def initialize(**args)
18364
- update!(**args)
18365
- end
18366
-
18367
- # Update properties of this object
18368
- def update!(**args)
18369
- @disabled = args[:disabled] if args.key?(:disabled)
18370
- end
18371
- end
18372
-
18373
18311
  # Configuration information for the Ray cluster. For experimental launch, Ray
18374
18312
  # cluster creation and Persistent cluster creation are 1:1 mapping: We will
18375
18313
  # provision all the nodes within the Persistent cluster as Ray nodes.
18376
18314
  class GoogleCloudAiplatformV1RaySpec
18377
18315
  include Google::Apis::Core::Hashable
18378
18316
 
18379
- # Optional. This will be used to indicate which resource pool will serve as the
18380
- # Ray head node(the first node within that pool). Will use the machine from the
18381
- # first workerpool as the head node by default if this field isn't set.
18382
- # Corresponds to the JSON property `headNodeResourcePoolId`
18383
- # @return [String]
18384
- attr_accessor :head_node_resource_pool_id
18385
-
18386
- # Optional. Default image for user to choose a preferred ML framework (for
18387
- # example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](
18388
- # https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either
18389
- # this or the resource_pool_images is required. Use this field if you need all
18390
- # the resource pools to have the same Ray image. Otherwise, use the `@code
18391
- # resource_pool_images` field.
18392
- # Corresponds to the JSON property `imageUri`
18393
- # @return [String]
18394
- attr_accessor :image_uri
18395
-
18396
- # Configuration for the Ray metrics.
18397
- # Corresponds to the JSON property `rayMetricSpec`
18398
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RayMetricSpec]
18399
- attr_accessor :ray_metric_spec
18400
-
18401
- # Optional. Required if image_uri isn't set. A map of resource_pool_id to
18402
- # prebuild Ray image if user need to use different images for different head/
18403
- # worker pools. This map needs to cover all the resource pool ids. Example: ` "
18404
- # ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "
18405
- # ray_worker_node_pool2": "another worker image" `
18406
- # Corresponds to the JSON property `resourcePoolImages`
18407
- # @return [Hash<String,String>]
18408
- attr_accessor :resource_pool_images
18409
-
18410
18317
  def initialize(**args)
18411
18318
  update!(**args)
18412
18319
  end
18413
18320
 
18414
18321
  # Update properties of this object
18415
18322
  def update!(**args)
18416
- @head_node_resource_pool_id = args[:head_node_resource_pool_id] if args.key?(:head_node_resource_pool_id)
18417
- @image_uri = args[:image_uri] if args.key?(:image_uri)
18418
- @ray_metric_spec = args[:ray_metric_spec] if args.key?(:ray_metric_spec)
18419
- @resource_pool_images = args[:resource_pool_images] if args.key?(:resource_pool_images)
18420
18323
  end
18421
18324
  end
18422
18325
 
@@ -18924,29 +18827,12 @@ module Google
18924
18827
  class GoogleCloudAiplatformV1ResourceRuntime
18925
18828
  include Google::Apis::Core::Hashable
18926
18829
 
18927
- # Output only. URIs for user to connect to the Cluster. Example: ` "
18928
- # RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" "RAY_DASHBOARD_URI": "ray-
18929
- # dashboard-address:8888" `
18930
- # Corresponds to the JSON property `accessUris`
18931
- # @return [Hash<String,String>]
18932
- attr_accessor :access_uris
18933
-
18934
- # Output only. The resource name of NotebookRuntimeTemplate for the RoV
18935
- # Persistent Cluster The NotebokRuntimeTemplate is created in the same VPC (if
18936
- # set), and with the same Ray and Python version as the Persistent Cluster.
18937
- # Example: "projects/1000/locations/us-central1/notebookRuntimeTemplates/abc123"
18938
- # Corresponds to the JSON property `notebookRuntimeTemplate`
18939
- # @return [String]
18940
- attr_accessor :notebook_runtime_template
18941
-
18942
18830
  def initialize(**args)
18943
18831
  update!(**args)
18944
18832
  end
18945
18833
 
18946
18834
  # Update properties of this object
18947
18835
  def update!(**args)
18948
- @access_uris = args[:access_uris] if args.key?(:access_uris)
18949
- @notebook_runtime_template = args[:notebook_runtime_template] if args.key?(:notebook_runtime_template)
18950
18836
  end
18951
18837
  end
18952
18838
 
@@ -20585,6 +20471,107 @@ module Google
20585
20471
  end
20586
20472
  end
20587
20473
 
20474
+ # Metrics for general pairwise text generation evaluation results.
20475
+ class GoogleCloudAiplatformV1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics
20476
+ include Google::Apis::Core::Hashable
20477
+
20478
+ # Fraction of cases where the autorater agreed with the human raters.
20479
+ # Corresponds to the JSON property `accuracy`
20480
+ # @return [Float]
20481
+ attr_accessor :accuracy
20482
+
20483
+ # Percentage of time the autorater decided the baseline model had the better
20484
+ # response.
20485
+ # Corresponds to the JSON property `baselineModelWinRate`
20486
+ # @return [Float]
20487
+ attr_accessor :baseline_model_win_rate
20488
+
20489
+ # A measurement of agreement between the autorater and human raters that takes
20490
+ # the likelihood of random agreement into account.
20491
+ # Corresponds to the JSON property `cohensKappa`
20492
+ # @return [Float]
20493
+ attr_accessor :cohens_kappa
20494
+
20495
+ # Harmonic mean of precision and recall.
20496
+ # Corresponds to the JSON property `f1Score`
20497
+ # @return [Float]
20498
+ attr_accessor :f1_score
20499
+
20500
+ # Number of examples where the autorater chose the baseline model, but humans
20501
+ # preferred the model.
20502
+ # Corresponds to the JSON property `falseNegativeCount`
20503
+ # @return [Fixnum]
20504
+ attr_accessor :false_negative_count
20505
+
20506
+ # Number of examples where the autorater chose the model, but humans preferred
20507
+ # the baseline model.
20508
+ # Corresponds to the JSON property `falsePositiveCount`
20509
+ # @return [Fixnum]
20510
+ attr_accessor :false_positive_count
20511
+
20512
+ # Percentage of time humans decided the baseline model had the better response.
20513
+ # Corresponds to the JSON property `humanPreferenceBaselineModelWinRate`
20514
+ # @return [Float]
20515
+ attr_accessor :human_preference_baseline_model_win_rate
20516
+
20517
+ # Percentage of time humans decided the model had the better response.
20518
+ # Corresponds to the JSON property `humanPreferenceModelWinRate`
20519
+ # @return [Float]
20520
+ attr_accessor :human_preference_model_win_rate
20521
+
20522
+ # Percentage of time the autorater decided the model had the better response.
20523
+ # Corresponds to the JSON property `modelWinRate`
20524
+ # @return [Float]
20525
+ attr_accessor :model_win_rate
20526
+
20527
+ # Fraction of cases where the autorater and humans thought the model had a
20528
+ # better response out of all cases where the autorater thought the model had a
20529
+ # better response. True positive divided by all positive.
20530
+ # Corresponds to the JSON property `precision`
20531
+ # @return [Float]
20532
+ attr_accessor :precision
20533
+
20534
+ # Fraction of cases where the autorater and humans thought the model had a
20535
+ # better response out of all cases where the humans thought the model had a
20536
+ # better response.
20537
+ # Corresponds to the JSON property `recall`
20538
+ # @return [Float]
20539
+ attr_accessor :recall
20540
+
20541
+ # Number of examples where both the autorater and humans decided that the model
20542
+ # had the worse response.
20543
+ # Corresponds to the JSON property `trueNegativeCount`
20544
+ # @return [Fixnum]
20545
+ attr_accessor :true_negative_count
20546
+
20547
+ # Number of examples where both the autorater and humans decided that the model
20548
+ # had the better response.
20549
+ # Corresponds to the JSON property `truePositiveCount`
20550
+ # @return [Fixnum]
20551
+ attr_accessor :true_positive_count
20552
+
20553
+ def initialize(**args)
20554
+ update!(**args)
20555
+ end
20556
+
20557
+ # Update properties of this object
20558
+ def update!(**args)
20559
+ @accuracy = args[:accuracy] if args.key?(:accuracy)
20560
+ @baseline_model_win_rate = args[:baseline_model_win_rate] if args.key?(:baseline_model_win_rate)
20561
+ @cohens_kappa = args[:cohens_kappa] if args.key?(:cohens_kappa)
20562
+ @f1_score = args[:f1_score] if args.key?(:f1_score)
20563
+ @false_negative_count = args[:false_negative_count] if args.key?(:false_negative_count)
20564
+ @false_positive_count = args[:false_positive_count] if args.key?(:false_positive_count)
20565
+ @human_preference_baseline_model_win_rate = args[:human_preference_baseline_model_win_rate] if args.key?(:human_preference_baseline_model_win_rate)
20566
+ @human_preference_model_win_rate = args[:human_preference_model_win_rate] if args.key?(:human_preference_model_win_rate)
20567
+ @model_win_rate = args[:model_win_rate] if args.key?(:model_win_rate)
20568
+ @precision = args[:precision] if args.key?(:precision)
20569
+ @recall = args[:recall] if args.key?(:recall)
20570
+ @true_negative_count = args[:true_negative_count] if args.key?(:true_negative_count)
20571
+ @true_positive_count = args[:true_positive_count] if args.key?(:true_positive_count)
20572
+ end
20573
+ end
20574
+
20588
20575
  #
20589
20576
  class GoogleCloudAiplatformV1SchemaModelevaluationMetricsQuestionAnsweringEvaluationMetrics
20590
20577
  include Google::Apis::Core::Hashable
@@ -26023,39 +26010,6 @@ module Google
26023
26010
  end
26024
26011
  end
26025
26012
 
26026
- # Segment of the content.
26027
- class GoogleCloudAiplatformV1Segment
26028
- include Google::Apis::Core::Hashable
26029
-
26030
- # Output only. End index in the given Part, measured in bytes. Offset from the
26031
- # start of the Part, exclusive, starting at zero.
26032
- # Corresponds to the JSON property `endIndex`
26033
- # @return [Fixnum]
26034
- attr_accessor :end_index
26035
-
26036
- # Output only. The index of a Part object within its parent Content object.
26037
- # Corresponds to the JSON property `partIndex`
26038
- # @return [Fixnum]
26039
- attr_accessor :part_index
26040
-
26041
- # Output only. Start index in the given Part, measured in bytes. Offset from the
26042
- # start of the Part, inclusive, starting at zero.
26043
- # Corresponds to the JSON property `startIndex`
26044
- # @return [Fixnum]
26045
- attr_accessor :start_index
26046
-
26047
- def initialize(**args)
26048
- update!(**args)
26049
- end
26050
-
26051
- # Update properties of this object
26052
- def update!(**args)
26053
- @end_index = args[:end_index] if args.key?(:end_index)
26054
- @part_index = args[:part_index] if args.key?(:part_index)
26055
- @start_index = args[:start_index] if args.key?(:start_index)
26056
- end
26057
- end
26058
-
26059
26013
  # Configuration for the use of custom service account to run the workloads.
26060
26014
  class GoogleCloudAiplatformV1ServiceAccountSpec
26061
26015
  include Google::Apis::Core::Hashable
@@ -26069,13 +26023,13 @@ module Google
26069
26023
  attr_accessor :enable_custom_service_account
26070
26024
  alias_method :enable_custom_service_account?, :enable_custom_service_account
26071
26025
 
26072
- # Optional. Default service account that this PersistentResource's workloads run
26073
- # as. The workloads include: * Any runtime specified via `ResourceRuntimeSpec`
26074
- # on creation time, for example, Ray. * Jobs submitted to PersistentResource, if
26075
- # no other service account specified in the job specs. Only works when custom
26076
- # service account is enabled and users have the `iam.serviceAccounts.actAs`
26077
- # permission on this service account. Required if any containers are specified
26078
- # in `ResourceRuntimeSpec`.
26026
+ # Optional. Required when all below conditions are met * `
26027
+ # enable_custom_service_account` is true; * any runtime is specified via `
26028
+ # ResourceRuntimeSpec` on creation time, for example, Ray The users must have `
26029
+ # iam.serviceAccounts.actAs` permission on this service account and then the
26030
+ # specified runtime containers will run as it. Do not set this field if you want
26031
+ # to submit jobs using custom service account to this PersistentResource after
26032
+ # creation, but only specify the `service_account` inside the job.
26079
26033
  # Corresponds to the JSON property `serviceAccount`
26080
26034
  # @return [String]
26081
26035
  attr_accessor :service_account
@@ -27282,29 +27236,245 @@ module Google
27282
27236
  end
27283
27237
  end
27284
27238
 
27285
- # Request message for FeatureOnlineStoreAdminService.SyncFeatureView.
27286
- class GoogleCloudAiplatformV1SyncFeatureViewRequest
27239
+ # Hyperparameters for SFT.
27240
+ class GoogleCloudAiplatformV1SupervisedHyperParameters
27287
27241
  include Google::Apis::Core::Hashable
27288
27242
 
27243
+ # Optional. Adapter size for tuning.
27244
+ # Corresponds to the JSON property `adapterSize`
27245
+ # @return [String]
27246
+ attr_accessor :adapter_size
27247
+
27248
+ # Optional. Number of training epoches for this tuning job.
27249
+ # Corresponds to the JSON property `epochCount`
27250
+ # @return [Fixnum]
27251
+ attr_accessor :epoch_count
27252
+
27253
+ # Optional. Learning rate multiplier for tuning.
27254
+ # Corresponds to the JSON property `learningRateMultiplier`
27255
+ # @return [Float]
27256
+ attr_accessor :learning_rate_multiplier
27257
+
27289
27258
  def initialize(**args)
27290
27259
  update!(**args)
27291
27260
  end
27292
27261
 
27293
27262
  # Update properties of this object
27294
27263
  def update!(**args)
27264
+ @adapter_size = args[:adapter_size] if args.key?(:adapter_size)
27265
+ @epoch_count = args[:epoch_count] if args.key?(:epoch_count)
27266
+ @learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
27295
27267
  end
27296
27268
  end
27297
27269
 
27298
- # Respose message for FeatureOnlineStoreAdminService.SyncFeatureView.
27299
- class GoogleCloudAiplatformV1SyncFeatureViewResponse
27270
+ # Tuning data statistics for Supervised Tuning.
27271
+ class GoogleCloudAiplatformV1SupervisedTuningDataStats
27300
27272
  include Google::Apis::Core::Hashable
27301
27273
 
27302
- # Format: `projects/`project`/locations/`location`/featureOnlineStores/`
27303
- # feature_online_store`/featureViews/`feature_view`/featureViewSyncs/`
27304
- # feature_view_sync``
27305
- # Corresponds to the JSON property `featureViewSync`
27306
- # @return [String]
27307
- attr_accessor :feature_view_sync
27274
+ # Output only. Number of billable characters in the tuning dataset.
27275
+ # Corresponds to the JSON property `totalBillableCharacterCount`
27276
+ # @return [Fixnum]
27277
+ attr_accessor :total_billable_character_count
27278
+
27279
+ # Output only. Number of tuning characters in the tuning dataset.
27280
+ # Corresponds to the JSON property `totalTuningCharacterCount`
27281
+ # @return [Fixnum]
27282
+ attr_accessor :total_tuning_character_count
27283
+
27284
+ # Output only. Number of examples in the tuning dataset.
27285
+ # Corresponds to the JSON property `tuningDatasetExampleCount`
27286
+ # @return [Fixnum]
27287
+ attr_accessor :tuning_dataset_example_count
27288
+
27289
+ # Output only. Number of tuning steps for this Tuning Job.
27290
+ # Corresponds to the JSON property `tuningStepCount`
27291
+ # @return [Fixnum]
27292
+ attr_accessor :tuning_step_count
27293
+
27294
+ # Output only. Sample user messages in the training dataset uri.
27295
+ # Corresponds to the JSON property `userDatasetExamples`
27296
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
27297
+ attr_accessor :user_dataset_examples
27298
+
27299
+ # Dataset distribution for Supervised Tuning.
27300
+ # Corresponds to the JSON property `userInputTokenDistribution`
27301
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27302
+ attr_accessor :user_input_token_distribution
27303
+
27304
+ # Dataset distribution for Supervised Tuning.
27305
+ # Corresponds to the JSON property `userMessagePerExampleDistribution`
27306
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27307
+ attr_accessor :user_message_per_example_distribution
27308
+
27309
+ # Dataset distribution for Supervised Tuning.
27310
+ # Corresponds to the JSON property `userOutputTokenDistribution`
27311
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27312
+ attr_accessor :user_output_token_distribution
27313
+
27314
+ def initialize(**args)
27315
+ update!(**args)
27316
+ end
27317
+
27318
+ # Update properties of this object
27319
+ def update!(**args)
27320
+ @total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
27321
+ @total_tuning_character_count = args[:total_tuning_character_count] if args.key?(:total_tuning_character_count)
27322
+ @tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
27323
+ @tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
27324
+ @user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
27325
+ @user_input_token_distribution = args[:user_input_token_distribution] if args.key?(:user_input_token_distribution)
27326
+ @user_message_per_example_distribution = args[:user_message_per_example_distribution] if args.key?(:user_message_per_example_distribution)
27327
+ @user_output_token_distribution = args[:user_output_token_distribution] if args.key?(:user_output_token_distribution)
27328
+ end
27329
+ end
27330
+
27331
+ # Dataset distribution for Supervised Tuning.
27332
+ class GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution
27333
+ include Google::Apis::Core::Hashable
27334
+
27335
+ # Output only. Defines the histogram bucket.
27336
+ # Corresponds to the JSON property `buckets`
27337
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket>]
27338
+ attr_accessor :buckets
27339
+
27340
+ # Output only. The maximum of the population values.
27341
+ # Corresponds to the JSON property `max`
27342
+ # @return [Float]
27343
+ attr_accessor :max
27344
+
27345
+ # Output only. The arithmetic mean of the values in the population.
27346
+ # Corresponds to the JSON property `mean`
27347
+ # @return [Float]
27348
+ attr_accessor :mean
27349
+
27350
+ # Output only. The median of the values in the population.
27351
+ # Corresponds to the JSON property `median`
27352
+ # @return [Float]
27353
+ attr_accessor :median
27354
+
27355
+ # Output only. The minimum of the population values.
27356
+ # Corresponds to the JSON property `min`
27357
+ # @return [Float]
27358
+ attr_accessor :min
27359
+
27360
+ # Output only. The 5th percentile of the values in the population.
27361
+ # Corresponds to the JSON property `p5`
27362
+ # @return [Float]
27363
+ attr_accessor :p5
27364
+
27365
+ # Output only. The 95th percentile of the values in the population.
27366
+ # Corresponds to the JSON property `p95`
27367
+ # @return [Float]
27368
+ attr_accessor :p95
27369
+
27370
+ # Output only. Sum of a given population of values.
27371
+ # Corresponds to the JSON property `sum`
27372
+ # @return [Fixnum]
27373
+ attr_accessor :sum
27374
+
27375
+ def initialize(**args)
27376
+ update!(**args)
27377
+ end
27378
+
27379
+ # Update properties of this object
27380
+ def update!(**args)
27381
+ @buckets = args[:buckets] if args.key?(:buckets)
27382
+ @max = args[:max] if args.key?(:max)
27383
+ @mean = args[:mean] if args.key?(:mean)
27384
+ @median = args[:median] if args.key?(:median)
27385
+ @min = args[:min] if args.key?(:min)
27386
+ @p5 = args[:p5] if args.key?(:p5)
27387
+ @p95 = args[:p95] if args.key?(:p95)
27388
+ @sum = args[:sum] if args.key?(:sum)
27389
+ end
27390
+ end
27391
+
27392
+ # Dataset bucket used to create a histogram for the distribution given a
27393
+ # population of values.
27394
+ class GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket
27395
+ include Google::Apis::Core::Hashable
27396
+
27397
+ # Output only. Number of values in the bucket.
27398
+ # Corresponds to the JSON property `count`
27399
+ # @return [Float]
27400
+ attr_accessor :count
27401
+
27402
+ # Output only. Left bound of the bucket.
27403
+ # Corresponds to the JSON property `left`
27404
+ # @return [Float]
27405
+ attr_accessor :left
27406
+
27407
+ # Output only. Right bound of the bucket.
27408
+ # Corresponds to the JSON property `right`
27409
+ # @return [Float]
27410
+ attr_accessor :right
27411
+
27412
+ def initialize(**args)
27413
+ update!(**args)
27414
+ end
27415
+
27416
+ # Update properties of this object
27417
+ def update!(**args)
27418
+ @count = args[:count] if args.key?(:count)
27419
+ @left = args[:left] if args.key?(:left)
27420
+ @right = args[:right] if args.key?(:right)
27421
+ end
27422
+ end
27423
+
27424
+ # Tuning Spec for Supervised Tuning.
27425
+ class GoogleCloudAiplatformV1SupervisedTuningSpec
27426
+ include Google::Apis::Core::Hashable
27427
+
27428
+ # Hyperparameters for SFT.
27429
+ # Corresponds to the JSON property `hyperParameters`
27430
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedHyperParameters]
27431
+ attr_accessor :hyper_parameters
27432
+
27433
+ # Required. Cloud Storage path to file containing training dataset for tuning.
27434
+ # Corresponds to the JSON property `trainingDatasetUri`
27435
+ # @return [String]
27436
+ attr_accessor :training_dataset_uri
27437
+
27438
+ # Optional. Cloud Storage path to file containing validation dataset for tuning.
27439
+ # Corresponds to the JSON property `validationDatasetUri`
27440
+ # @return [String]
27441
+ attr_accessor :validation_dataset_uri
27442
+
27443
+ def initialize(**args)
27444
+ update!(**args)
27445
+ end
27446
+
27447
+ # Update properties of this object
27448
+ def update!(**args)
27449
+ @hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
27450
+ @training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
27451
+ @validation_dataset_uri = args[:validation_dataset_uri] if args.key?(:validation_dataset_uri)
27452
+ end
27453
+ end
27454
+
27455
+ # Request message for FeatureOnlineStoreAdminService.SyncFeatureView.
27456
+ class GoogleCloudAiplatformV1SyncFeatureViewRequest
27457
+ include Google::Apis::Core::Hashable
27458
+
27459
+ def initialize(**args)
27460
+ update!(**args)
27461
+ end
27462
+
27463
+ # Update properties of this object
27464
+ def update!(**args)
27465
+ end
27466
+ end
27467
+
27468
+ # Respose message for FeatureOnlineStoreAdminService.SyncFeatureView.
27469
+ class GoogleCloudAiplatformV1SyncFeatureViewResponse
27470
+ include Google::Apis::Core::Hashable
27471
+
27472
+ # Format: `projects/`project`/locations/`location`/featureOnlineStores/`
27473
+ # feature_online_store`/featureViews/`feature_view`/featureViewSyncs/`
27474
+ # feature_view_sync``
27475
+ # Corresponds to the JSON property `featureViewSync`
27476
+ # @return [String]
27477
+ attr_accessor :feature_view_sync
27308
27478
 
27309
27479
  def initialize(**args)
27310
27480
  update!(**args)
@@ -28049,11 +28219,6 @@ module Google
28049
28219
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionDeclaration>]
28050
28220
  attr_accessor :function_declarations
28051
28221
 
28052
- # Tool to retrieve public web data for grounding, powered by Google.
28053
- # Corresponds to the JSON property `googleSearchRetrieval`
28054
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval]
28055
- attr_accessor :google_search_retrieval
28056
-
28057
28222
  # Defines a retrieval tool that model can call to access external knowledge.
28058
28223
  # Corresponds to the JSON property `retrieval`
28059
28224
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval]
@@ -28066,7 +28231,6 @@ module Google
28066
28231
  # Update properties of this object
28067
28232
  def update!(**args)
28068
28233
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
28069
- @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
28070
28234
  @retrieval = args[:retrieval] if args.key?(:retrieval)
28071
28235
  end
28072
28236
  end
@@ -28407,6 +28571,172 @@ module Google
28407
28571
  end
28408
28572
  end
28409
28573
 
28574
+ # The Model Registry Model and Online Prediction Endpoint assiociated with this
28575
+ # TuningJob.
28576
+ class GoogleCloudAiplatformV1TunedModel
28577
+ include Google::Apis::Core::Hashable
28578
+
28579
+ # Output only. A resource name of an Endpoint. Format: `projects/`project`/
28580
+ # locations/`location`/endpoints/`endpoint``.
28581
+ # Corresponds to the JSON property `endpoint`
28582
+ # @return [String]
28583
+ attr_accessor :endpoint
28584
+
28585
+ # Output only. The resource name of the TunedModel. Format: `projects/`project`/
28586
+ # locations/`location`/models/`model``.
28587
+ # Corresponds to the JSON property `model`
28588
+ # @return [String]
28589
+ attr_accessor :model
28590
+
28591
+ def initialize(**args)
28592
+ update!(**args)
28593
+ end
28594
+
28595
+ # Update properties of this object
28596
+ def update!(**args)
28597
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
28598
+ @model = args[:model] if args.key?(:model)
28599
+ end
28600
+ end
28601
+
28602
+ # The tuning data statistic values for TuningJob.
28603
+ class GoogleCloudAiplatformV1TuningDataStats
28604
+ include Google::Apis::Core::Hashable
28605
+
28606
+ # Tuning data statistics for Supervised Tuning.
28607
+ # Corresponds to the JSON property `supervisedTuningDataStats`
28608
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDataStats]
28609
+ attr_accessor :supervised_tuning_data_stats
28610
+
28611
+ def initialize(**args)
28612
+ update!(**args)
28613
+ end
28614
+
28615
+ # Update properties of this object
28616
+ def update!(**args)
28617
+ @supervised_tuning_data_stats = args[:supervised_tuning_data_stats] if args.key?(:supervised_tuning_data_stats)
28618
+ end
28619
+ end
28620
+
28621
+ # Represents a TuningJob that runs with Google owned models.
28622
+ class GoogleCloudAiplatformV1TuningJob
28623
+ include Google::Apis::Core::Hashable
28624
+
28625
+ # Model name for tuning, e.g., "gemini-1.0-pro-002".
28626
+ # Corresponds to the JSON property `baseModel`
28627
+ # @return [String]
28628
+ attr_accessor :base_model
28629
+
28630
+ # Output only. Time when the TuningJob was created.
28631
+ # Corresponds to the JSON property `createTime`
28632
+ # @return [String]
28633
+ attr_accessor :create_time
28634
+
28635
+ # Optional. The description of the TuningJob.
28636
+ # Corresponds to the JSON property `description`
28637
+ # @return [String]
28638
+ attr_accessor :description
28639
+
28640
+ # Output only. Time when the TuningJob entered any of the following JobStates: `
28641
+ # JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `
28642
+ # JOB_STATE_EXPIRED`.
28643
+ # Corresponds to the JSON property `endTime`
28644
+ # @return [String]
28645
+ attr_accessor :end_time
28646
+
28647
+ # The `Status` type defines a logical error model that is suitable for different
28648
+ # programming environments, including REST APIs and RPC APIs. It is used by [
28649
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
28650
+ # data: error code, error message, and error details. You can find out more
28651
+ # about this error model and how to work with it in the [API Design Guide](https:
28652
+ # //cloud.google.com/apis/design/errors).
28653
+ # Corresponds to the JSON property `error`
28654
+ # @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
28655
+ attr_accessor :error
28656
+
28657
+ # Output only. The Experiment associated with this TuningJob.
28658
+ # Corresponds to the JSON property `experiment`
28659
+ # @return [String]
28660
+ attr_accessor :experiment
28661
+
28662
+ # Optional. The labels with user-defined metadata to organize TuningJob and
28663
+ # generated resources such as Model and Endpoint. Label keys and values can be
28664
+ # no longer than 64 characters (Unicode codepoints), can only contain lowercase
28665
+ # letters, numeric characters, underscores and dashes. International characters
28666
+ # are allowed. See https://goo.gl/xmQnxf for more information and examples of
28667
+ # labels.
28668
+ # Corresponds to the JSON property `labels`
28669
+ # @return [Hash<String,String>]
28670
+ attr_accessor :labels
28671
+
28672
+ # Output only. Identifier. Resource name of a TuningJob. Format: `projects/`
28673
+ # project`/locations/`location`/tuningJobs/`tuning_job``
28674
+ # Corresponds to the JSON property `name`
28675
+ # @return [String]
28676
+ attr_accessor :name
28677
+
28678
+ # Output only. Time when the TuningJob for the first time entered the `
28679
+ # JOB_STATE_RUNNING` state.
28680
+ # Corresponds to the JSON property `startTime`
28681
+ # @return [String]
28682
+ attr_accessor :start_time
28683
+
28684
+ # Output only. The detailed state of the job.
28685
+ # Corresponds to the JSON property `state`
28686
+ # @return [String]
28687
+ attr_accessor :state
28688
+
28689
+ # Tuning Spec for Supervised Tuning.
28690
+ # Corresponds to the JSON property `supervisedTuningSpec`
28691
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningSpec]
28692
+ attr_accessor :supervised_tuning_spec
28693
+
28694
+ # The Model Registry Model and Online Prediction Endpoint assiociated with this
28695
+ # TuningJob.
28696
+ # Corresponds to the JSON property `tunedModel`
28697
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TunedModel]
28698
+ attr_accessor :tuned_model
28699
+
28700
+ # Optional. The display name of the TunedModel. The name can be up to 128
28701
+ # characters long and can consist of any UTF-8 characters.
28702
+ # Corresponds to the JSON property `tunedModelDisplayName`
28703
+ # @return [String]
28704
+ attr_accessor :tuned_model_display_name
28705
+
28706
+ # The tuning data statistic values for TuningJob.
28707
+ # Corresponds to the JSON property `tuningDataStats`
28708
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningDataStats]
28709
+ attr_accessor :tuning_data_stats
28710
+
28711
+ # Output only. Time when the TuningJob was most recently updated.
28712
+ # Corresponds to the JSON property `updateTime`
28713
+ # @return [String]
28714
+ attr_accessor :update_time
28715
+
28716
+ def initialize(**args)
28717
+ update!(**args)
28718
+ end
28719
+
28720
+ # Update properties of this object
28721
+ def update!(**args)
28722
+ @base_model = args[:base_model] if args.key?(:base_model)
28723
+ @create_time = args[:create_time] if args.key?(:create_time)
28724
+ @description = args[:description] if args.key?(:description)
28725
+ @end_time = args[:end_time] if args.key?(:end_time)
28726
+ @error = args[:error] if args.key?(:error)
28727
+ @experiment = args[:experiment] if args.key?(:experiment)
28728
+ @labels = args[:labels] if args.key?(:labels)
28729
+ @name = args[:name] if args.key?(:name)
28730
+ @start_time = args[:start_time] if args.key?(:start_time)
28731
+ @state = args[:state] if args.key?(:state)
28732
+ @supervised_tuning_spec = args[:supervised_tuning_spec] if args.key?(:supervised_tuning_spec)
28733
+ @tuned_model = args[:tuned_model] if args.key?(:tuned_model)
28734
+ @tuned_model_display_name = args[:tuned_model_display_name] if args.key?(:tuned_model_display_name)
28735
+ @tuning_data_stats = args[:tuning_data_stats] if args.key?(:tuning_data_stats)
28736
+ @update_time = args[:update_time] if args.key?(:update_time)
28737
+ end
28738
+ end
28739
+
28410
28740
  # Runtime operation information for IndexEndpointService.UndeployIndex.
28411
28741
  class GoogleCloudAiplatformV1UndeployIndexOperationMetadata
28412
28742
  include Google::Apis::Core::Hashable
@@ -29084,9 +29414,9 @@ module Google
29084
29414
  class GoogleCloudAiplatformV1VertexAiSearch
29085
29415
  include Google::Apis::Core::Hashable
29086
29416
 
29087
- # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format:
29417
+ # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
29088
29418
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
29089
- # dataStore`
29419
+ # dataStore``
29090
29420
  # Corresponds to the JSON property `datastore`
29091
29421
  # @return [String]
29092
29422
  attr_accessor :datastore
@@ -31032,6 +31362,31 @@ module Google
31032
31362
  end
31033
31363
  end
31034
31364
 
31365
+ # Stores all metadata relating to GenerateCode.
31366
+ class LearningGenaiRootCodeyGenerationMetadata
31367
+ include Google::Apis::Core::Hashable
31368
+
31369
+ # Last state of the sample before getting dropped/returned.
31370
+ # Corresponds to the JSON property `output`
31371
+ # @return [String]
31372
+ attr_accessor :output
31373
+
31374
+ # Last Codey postprocessing step for this sample before getting dropped/returned.
31375
+ # Corresponds to the JSON property `postInferenceStep`
31376
+ # @return [String]
31377
+ attr_accessor :post_inference_step
31378
+
31379
+ def initialize(**args)
31380
+ update!(**args)
31381
+ end
31382
+
31383
+ # Update properties of this object
31384
+ def update!(**args)
31385
+ @output = args[:output] if args.key?(:output)
31386
+ @post_inference_step = args[:post_inference_step] if args.key?(:post_inference_step)
31387
+ end
31388
+ end
31389
+
31035
31390
  # Top-level wrapper used to store all things codey-related.
31036
31391
  class LearningGenaiRootCodeyOutput
31037
31392
  include Google::Apis::Core::Hashable
@@ -31046,6 +31401,11 @@ module Google
31046
31401
  # @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyCompletionMetadata]
31047
31402
  attr_accessor :codey_completion_metadata
31048
31403
 
31404
+ # Stores all metadata relating to GenerateCode.
31405
+ # Corresponds to the JSON property `codeyGenerationMetadata`
31406
+ # @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyGenerationMetadata]
31407
+ attr_accessor :codey_generation_metadata
31408
+
31049
31409
  def initialize(**args)
31050
31410
  update!(**args)
31051
31411
  end
@@ -31054,6 +31414,7 @@ module Google
31054
31414
  def update!(**args)
31055
31415
  @codey_chat_metadata = args[:codey_chat_metadata] if args.key?(:codey_chat_metadata)
31056
31416
  @codey_completion_metadata = args[:codey_completion_metadata] if args.key?(:codey_completion_metadata)
31417
+ @codey_generation_metadata = args[:codey_generation_metadata] if args.key?(:codey_generation_metadata)
31057
31418
  end
31058
31419
  end
31059
31420
 
@@ -31082,6 +31443,113 @@ module Google
31082
31443
  end
31083
31444
  end
31084
31445
 
31446
+ # Score threshold for a category.
31447
+ class LearningGenaiRootControlDecodingConfigThreshold
31448
+ include Google::Apis::Core::Hashable
31449
+
31450
+ #
31451
+ # Corresponds to the JSON property `policy`
31452
+ # @return [String]
31453
+ attr_accessor :policy
31454
+
31455
+ #
31456
+ # Corresponds to the JSON property `scoreMax`
31457
+ # @return [Float]
31458
+ attr_accessor :score_max
31459
+
31460
+ def initialize(**args)
31461
+ update!(**args)
31462
+ end
31463
+
31464
+ # Update properties of this object
31465
+ def update!(**args)
31466
+ @policy = args[:policy] if args.key?(:policy)
31467
+ @score_max = args[:score_max] if args.key?(:score_max)
31468
+ end
31469
+ end
31470
+
31471
+ # Holds one control decoding record.
31472
+ class LearningGenaiRootControlDecodingRecord
31473
+ include Google::Apis::Core::Hashable
31474
+
31475
+ # Prefixes feeded into scorer.
31476
+ # Corresponds to the JSON property `prefixes`
31477
+ # @return [String]
31478
+ attr_accessor :prefixes
31479
+
31480
+ # Per policy scores returned from Scorer. Expect to have the same number of
31481
+ # scores as in `thresholds`.
31482
+ # Corresponds to the JSON property `scores`
31483
+ # @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingRecordPolicyScore>]
31484
+ attr_accessor :scores
31485
+
31486
+ # Suffixes feeded into scorer.
31487
+ # Corresponds to the JSON property `suffiexes`
31488
+ # @return [String]
31489
+ attr_accessor :suffiexes
31490
+
31491
+ # Per policy thresholds from user config.
31492
+ # Corresponds to the JSON property `thresholds`
31493
+ # @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingConfigThreshold>]
31494
+ attr_accessor :thresholds
31495
+
31496
+ def initialize(**args)
31497
+ update!(**args)
31498
+ end
31499
+
31500
+ # Update properties of this object
31501
+ def update!(**args)
31502
+ @prefixes = args[:prefixes] if args.key?(:prefixes)
31503
+ @scores = args[:scores] if args.key?(:scores)
31504
+ @suffiexes = args[:suffiexes] if args.key?(:suffiexes)
31505
+ @thresholds = args[:thresholds] if args.key?(:thresholds)
31506
+ end
31507
+ end
31508
+
31509
+ #
31510
+ class LearningGenaiRootControlDecodingRecordPolicyScore
31511
+ include Google::Apis::Core::Hashable
31512
+
31513
+ #
31514
+ # Corresponds to the JSON property `policy`
31515
+ # @return [String]
31516
+ attr_accessor :policy
31517
+
31518
+ #
31519
+ # Corresponds to the JSON property `score`
31520
+ # @return [Float]
31521
+ attr_accessor :score
31522
+
31523
+ def initialize(**args)
31524
+ update!(**args)
31525
+ end
31526
+
31527
+ # Update properties of this object
31528
+ def update!(**args)
31529
+ @policy = args[:policy] if args.key?(:policy)
31530
+ @score = args[:score] if args.key?(:score)
31531
+ end
31532
+ end
31533
+
31534
+ #
31535
+ class LearningGenaiRootControlDecodingRecords
31536
+ include Google::Apis::Core::Hashable
31537
+
31538
+ # One ControlDecodingRecord record maps to one rewind.
31539
+ # Corresponds to the JSON property `records`
31540
+ # @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingRecord>]
31541
+ attr_accessor :records
31542
+
31543
+ def initialize(**args)
31544
+ update!(**args)
31545
+ end
31546
+
31547
+ # Update properties of this object
31548
+ def update!(**args)
31549
+ @records = args[:records] if args.key?(:records)
31550
+ end
31551
+ end
31552
+
31085
31553
  #
31086
31554
  class LearningGenaiRootDataProviderOutput
31087
31555
  include Google::Apis::Core::Hashable
@@ -31196,6 +31664,11 @@ module Google
31196
31664
  # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal]
31197
31665
  attr_accessor :rai_signal
31198
31666
 
31667
+ # Number of rewinds by controlled decoding.
31668
+ # Corresponds to the JSON property `records`
31669
+ # @return [Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingRecords]
31670
+ attr_accessor :records
31671
+
31199
31672
  # The recitation result for one stream input
31200
31673
  # Corresponds to the JSON property `streamRecitationResult`
31201
31674
  # @return [Google::Apis::AiplatformV1::LanguageLabsAidaTrustRecitationProtoStreamRecitationResult]
@@ -31224,6 +31697,7 @@ module Google
31224
31697
  @rai_output = args[:rai_output] if args.key?(:rai_output)
31225
31698
  @rai_result = args[:rai_result] if args.key?(:rai_result)
31226
31699
  @rai_signal = args[:rai_signal] if args.key?(:rai_signal)
31700
+ @records = args[:records] if args.key?(:records)
31227
31701
  @stream_recitation_result = args[:stream_recitation_result] if args.key?(:stream_recitation_result)
31228
31702
  @takedown_result = args[:takedown_result] if args.key?(:takedown_result)
31229
31703
  @toxicity_result = args[:toxicity_result] if args.key?(:toxicity_result)
@@ -31632,6 +32106,33 @@ module Google
31632
32106
  end
31633
32107
  end
31634
32108
 
32109
+ #
32110
+ class LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata
32111
+ include Google::Apis::Core::Hashable
32112
+
32113
+ # Latency spent on fact retrievals. There might be multiple retrievals from
32114
+ # different fact providers.
32115
+ # Corresponds to the JSON property `factRetrievalMillisecondsByProvider`
32116
+ # @return [Hash<String,Fixnum>]
32117
+ attr_accessor :fact_retrieval_milliseconds_by_provider
32118
+
32119
+ # Latency spent on prompt2query. The procedure generates a search-friendly query
32120
+ # given the original prompt.
32121
+ # Corresponds to the JSON property `prompt2queryMilliseconds`
32122
+ # @return [Fixnum]
32123
+ attr_accessor :prompt2query_milliseconds
32124
+
32125
+ def initialize(**args)
32126
+ update!(**args)
32127
+ end
32128
+
32129
+ # Update properties of this object
32130
+ def update!(**args)
32131
+ @fact_retrieval_milliseconds_by_provider = args[:fact_retrieval_milliseconds_by_provider] if args.key?(:fact_retrieval_milliseconds_by_provider)
32132
+ @prompt2query_milliseconds = args[:prompt2query_milliseconds] if args.key?(:prompt2query_milliseconds)
32133
+ end
32134
+ end
32135
+
31635
32136
  # This is per harm.
31636
32137
  class LearningGenaiRootRaiOutput
31637
32138
  include Google::Apis::Core::Hashable
@@ -32317,6 +32818,35 @@ module Google
32317
32818
  end
32318
32819
  end
32319
32820
 
32821
+ # Each TranslationRequestInfo corresponds to a request sent to the translation
32822
+ # server.
32823
+ class LearningGenaiRootTranslationRequestInfo
32824
+ include Google::Apis::Core::Hashable
32825
+
32826
+ # The ISO-639 language code of source text in the initial request, detected
32827
+ # automatically, if no source language was passed within the initial request. If
32828
+ # the source language was passed, auto-detection of the language does not occur
32829
+ # and this field is empty.
32830
+ # Corresponds to the JSON property `detectedLanguageCodes`
32831
+ # @return [Array<String>]
32832
+ attr_accessor :detected_language_codes
32833
+
32834
+ # The sum of the size of all the contents in the request.
32835
+ # Corresponds to the JSON property `totalContentSize`
32836
+ # @return [Fixnum]
32837
+ attr_accessor :total_content_size
32838
+
32839
+ def initialize(**args)
32840
+ update!(**args)
32841
+ end
32842
+
32843
+ # Update properties of this object
32844
+ def update!(**args)
32845
+ @detected_language_codes = args[:detected_language_codes] if args.key?(:detected_language_codes)
32846
+ @total_content_size = args[:total_content_size] if args.key?(:total_content_size)
32847
+ end
32848
+ end
32849
+
32320
32850
  # LINT.IfChange This metadata contains additional information required for
32321
32851
  # debugging.
32322
32852
  class LearningServingLlmMessageMetadata