google-apis-aiplatform_v1 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -744,6 +744,11 @@ module Google
744
744
  class CloudAiNlLlmProtoServiceMessageMetadata
745
745
  include Google::Apis::Core::Hashable
746
746
 
747
+ # Factuality-related debug metadata.
748
+ # Corresponds to the JSON property `factualityDebugMetadata`
749
+ # @return [Google::Apis::AiplatformV1::LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata]
750
+ attr_accessor :factuality_debug_metadata
751
+
747
752
  # LINT.IfChange This metadata contains additional information required for
748
753
  # debugging.
749
754
  # Corresponds to the JSON property `inputFilterInfo`
@@ -767,6 +772,7 @@ module Google
767
772
 
768
773
  # Update properties of this object
769
774
  def update!(**args)
775
+ @factuality_debug_metadata = args[:factuality_debug_metadata] if args.key?(:factuality_debug_metadata)
770
776
  @input_filter_info = args[:input_filter_info] if args.key?(:input_filter_info)
771
777
  @model_routing_decision = args[:model_routing_decision] if args.key?(:model_routing_decision)
772
778
  @output_filter_info = args[:output_filter_info] if args.key?(:output_filter_info)
@@ -1030,6 +1036,12 @@ module Google
1030
1036
  # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal>]
1031
1037
  attr_accessor :rai_signals
1032
1038
 
1039
+ # Translation request info during RAI for debugging purpose. Each
1040
+ # TranslationRequestInfo corresponds to a request sent to the translation server.
1041
+ # Corresponds to the JSON property `translationRequestInfos`
1042
+ # @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootTranslationRequestInfo>]
1043
+ attr_accessor :translation_request_infos
1044
+
1033
1045
  # Whether the text triggered the blocklist.
1034
1046
  # Corresponds to the JSON property `triggeredBlocklist`
1035
1047
  # @return [Boolean]
@@ -1063,6 +1075,7 @@ module Google
1063
1075
  @filtered = args[:filtered] if args.key?(:filtered)
1064
1076
  @language_filter_result = args[:language_filter_result] if args.key?(:language_filter_result)
1065
1077
  @rai_signals = args[:rai_signals] if args.key?(:rai_signals)
1078
+ @translation_request_infos = args[:translation_request_infos] if args.key?(:translation_request_infos)
1066
1079
  @triggered_blocklist = args[:triggered_blocklist] if args.key?(:triggered_blocklist)
1067
1080
  @triggered_recitation = args[:triggered_recitation] if args.key?(:triggered_recitation)
1068
1081
  @triggered_safety_filter = args[:triggered_safety_filter] if args.key?(:triggered_safety_filter)
@@ -3126,6 +3139,19 @@ module Google
3126
3139
  end
3127
3140
  end
3128
3141
 
3142
+ # Request message for GenAiTuningService.CancelTuningJob.
3143
+ class GoogleCloudAiplatformV1CancelTuningJobRequest
3144
+ include Google::Apis::Core::Hashable
3145
+
3146
+ def initialize(**args)
3147
+ update!(**args)
3148
+ end
3149
+
3150
+ # Update properties of this object
3151
+ def update!(**args)
3152
+ end
3153
+ end
3154
+
3129
3155
  # A response candidate generated from the model.
3130
3156
  class GoogleCloudAiplatformV1Candidate
3131
3157
  include Google::Apis::Core::Hashable
@@ -9502,7 +9528,7 @@ module Google
9502
9528
  end
9503
9529
  end
9504
9530
 
9505
- # LINT.IfChange The request message for MatchService.FindNeighbors.
9531
+ # The request message for MatchService.FindNeighbors.
9506
9532
  class GoogleCloudAiplatformV1FindNeighborsRequest
9507
9533
  include Google::Apis::Core::Hashable
9508
9534
 
@@ -10011,6 +10037,15 @@ module Google
10011
10037
  # @return [Float]
10012
10038
  attr_accessor :presence_penalty
10013
10039
 
10040
+ # Optional. Output response mimetype of the generated candidate text. Supported
10041
+ # mimetype: `text/plain`: (default) Text output. `application/json`: JSON
10042
+ # response in the candidates. The model needs to be prompted to output the
10043
+ # appropriate response type, otherwise the behavior is undefined. This is a
10044
+ # preview feature.
10045
+ # Corresponds to the JSON property `responseMimeType`
10046
+ # @return [String]
10047
+ attr_accessor :response_mime_type
10048
+
10014
10049
  # Optional. Stop sequences.
10015
10050
  # Corresponds to the JSON property `stopSequences`
10016
10051
  # @return [Array<String>]
@@ -10041,6 +10076,7 @@ module Google
10041
10076
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
10042
10077
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
10043
10078
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
10079
+ @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
10044
10080
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
10045
10081
  @temperature = args[:temperature] if args.key?(:temperature)
10046
10082
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -10190,11 +10226,6 @@ module Google
10190
10226
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution>]
10191
10227
  attr_accessor :grounding_attributions
10192
10228
 
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
10229
  # Optional. Web search queries for the following-up web search.
10199
10230
  # Corresponds to the JSON property `webSearchQueries`
10200
10231
  # @return [Array<String>]
@@ -10207,7 +10238,6 @@ module Google
10207
10238
  # Update properties of this object
10208
10239
  def update!(**args)
10209
10240
  @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
10210
- @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
10211
10241
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
10212
10242
  end
10213
10243
  end
@@ -12607,6 +12637,32 @@ module Google
12607
12637
  end
12608
12638
  end
12609
12639
 
12640
+ # Response message for GenAiTuningService.ListTuningJobs
12641
+ class GoogleCloudAiplatformV1ListTuningJobsResponse
12642
+ include Google::Apis::Core::Hashable
12643
+
12644
+ # A token to retrieve the next page of results. Pass to ListTuningJobsRequest.
12645
+ # page_token to obtain that page.
12646
+ # Corresponds to the JSON property `nextPageToken`
12647
+ # @return [String]
12648
+ attr_accessor :next_page_token
12649
+
12650
+ # List of TuningJobs in the requested page.
12651
+ # Corresponds to the JSON property `tuningJobs`
12652
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob>]
12653
+ attr_accessor :tuning_jobs
12654
+
12655
+ def initialize(**args)
12656
+ update!(**args)
12657
+ end
12658
+
12659
+ # Update properties of this object
12660
+ def update!(**args)
12661
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
12662
+ @tuning_jobs = args[:tuning_jobs] if args.key?(:tuning_jobs)
12663
+ end
12664
+ end
12665
+
12610
12666
  # Request message for VizierService.LookupStudy.
12611
12667
  class GoogleCloudAiplatformV1LookupStudyRequest
12612
12668
  include Google::Apis::Core::Hashable
@@ -17625,11 +17681,6 @@ module Google
17625
17681
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
17626
17682
  attr_accessor :deploy_gke
17627
17683
 
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
17684
  # The regional resource name or the URI. Key is region, e.g., us-central1,
17634
17685
  # europe-west2, global, etc..
17635
17686
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -17696,7 +17747,6 @@ module Google
17696
17747
  @create_application = args[:create_application] if args.key?(:create_application)
17697
17748
  @deploy = args[:deploy] if args.key?(:deploy)
17698
17749
  @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
17750
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
17701
17751
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
17702
17752
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -17806,25 +17856,6 @@ module Google
17806
17856
  end
17807
17857
  end
17808
17858
 
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
17859
  # Open fine tuning pipelines.
17829
17860
  class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
17830
17861
  include Google::Apis::Core::Hashable
@@ -18350,73 +18381,18 @@ module Google
18350
18381
  end
18351
18382
  end
18352
18383
 
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
18384
  # Configuration information for the Ray cluster. For experimental launch, Ray
18374
18385
  # cluster creation and Persistent cluster creation are 1:1 mapping: We will
18375
18386
  # provision all the nodes within the Persistent cluster as Ray nodes.
18376
18387
  class GoogleCloudAiplatformV1RaySpec
18377
18388
  include Google::Apis::Core::Hashable
18378
18389
 
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
18390
  def initialize(**args)
18411
18391
  update!(**args)
18412
18392
  end
18413
18393
 
18414
18394
  # Update properties of this object
18415
18395
  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
18396
  end
18421
18397
  end
18422
18398
 
@@ -18924,29 +18900,12 @@ module Google
18924
18900
  class GoogleCloudAiplatformV1ResourceRuntime
18925
18901
  include Google::Apis::Core::Hashable
18926
18902
 
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
18903
  def initialize(**args)
18943
18904
  update!(**args)
18944
18905
  end
18945
18906
 
18946
18907
  # Update properties of this object
18947
18908
  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
18909
  end
18951
18910
  end
18952
18911
 
@@ -20585,6 +20544,107 @@ module Google
20585
20544
  end
20586
20545
  end
20587
20546
 
20547
+ # Metrics for general pairwise text generation evaluation results.
20548
+ class GoogleCloudAiplatformV1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics
20549
+ include Google::Apis::Core::Hashable
20550
+
20551
+ # Fraction of cases where the autorater agreed with the human raters.
20552
+ # Corresponds to the JSON property `accuracy`
20553
+ # @return [Float]
20554
+ attr_accessor :accuracy
20555
+
20556
+ # Percentage of time the autorater decided the baseline model had the better
20557
+ # response.
20558
+ # Corresponds to the JSON property `baselineModelWinRate`
20559
+ # @return [Float]
20560
+ attr_accessor :baseline_model_win_rate
20561
+
20562
+ # A measurement of agreement between the autorater and human raters that takes
20563
+ # the likelihood of random agreement into account.
20564
+ # Corresponds to the JSON property `cohensKappa`
20565
+ # @return [Float]
20566
+ attr_accessor :cohens_kappa
20567
+
20568
+ # Harmonic mean of precision and recall.
20569
+ # Corresponds to the JSON property `f1Score`
20570
+ # @return [Float]
20571
+ attr_accessor :f1_score
20572
+
20573
+ # Number of examples where the autorater chose the baseline model, but humans
20574
+ # preferred the model.
20575
+ # Corresponds to the JSON property `falseNegativeCount`
20576
+ # @return [Fixnum]
20577
+ attr_accessor :false_negative_count
20578
+
20579
+ # Number of examples where the autorater chose the model, but humans preferred
20580
+ # the baseline model.
20581
+ # Corresponds to the JSON property `falsePositiveCount`
20582
+ # @return [Fixnum]
20583
+ attr_accessor :false_positive_count
20584
+
20585
+ # Percentage of time humans decided the baseline model had the better response.
20586
+ # Corresponds to the JSON property `humanPreferenceBaselineModelWinRate`
20587
+ # @return [Float]
20588
+ attr_accessor :human_preference_baseline_model_win_rate
20589
+
20590
+ # Percentage of time humans decided the model had the better response.
20591
+ # Corresponds to the JSON property `humanPreferenceModelWinRate`
20592
+ # @return [Float]
20593
+ attr_accessor :human_preference_model_win_rate
20594
+
20595
+ # Percentage of time the autorater decided the model had the better response.
20596
+ # Corresponds to the JSON property `modelWinRate`
20597
+ # @return [Float]
20598
+ attr_accessor :model_win_rate
20599
+
20600
+ # Fraction of cases where the autorater and humans thought the model had a
20601
+ # better response out of all cases where the autorater thought the model had a
20602
+ # better response. True positive divided by all positive.
20603
+ # Corresponds to the JSON property `precision`
20604
+ # @return [Float]
20605
+ attr_accessor :precision
20606
+
20607
+ # Fraction of cases where the autorater and humans thought the model had a
20608
+ # better response out of all cases where the humans thought the model had a
20609
+ # better response.
20610
+ # Corresponds to the JSON property `recall`
20611
+ # @return [Float]
20612
+ attr_accessor :recall
20613
+
20614
+ # Number of examples where both the autorater and humans decided that the model
20615
+ # had the worse response.
20616
+ # Corresponds to the JSON property `trueNegativeCount`
20617
+ # @return [Fixnum]
20618
+ attr_accessor :true_negative_count
20619
+
20620
+ # Number of examples where both the autorater and humans decided that the model
20621
+ # had the better response.
20622
+ # Corresponds to the JSON property `truePositiveCount`
20623
+ # @return [Fixnum]
20624
+ attr_accessor :true_positive_count
20625
+
20626
+ def initialize(**args)
20627
+ update!(**args)
20628
+ end
20629
+
20630
+ # Update properties of this object
20631
+ def update!(**args)
20632
+ @accuracy = args[:accuracy] if args.key?(:accuracy)
20633
+ @baseline_model_win_rate = args[:baseline_model_win_rate] if args.key?(:baseline_model_win_rate)
20634
+ @cohens_kappa = args[:cohens_kappa] if args.key?(:cohens_kappa)
20635
+ @f1_score = args[:f1_score] if args.key?(:f1_score)
20636
+ @false_negative_count = args[:false_negative_count] if args.key?(:false_negative_count)
20637
+ @false_positive_count = args[:false_positive_count] if args.key?(:false_positive_count)
20638
+ @human_preference_baseline_model_win_rate = args[:human_preference_baseline_model_win_rate] if args.key?(:human_preference_baseline_model_win_rate)
20639
+ @human_preference_model_win_rate = args[:human_preference_model_win_rate] if args.key?(:human_preference_model_win_rate)
20640
+ @model_win_rate = args[:model_win_rate] if args.key?(:model_win_rate)
20641
+ @precision = args[:precision] if args.key?(:precision)
20642
+ @recall = args[:recall] if args.key?(:recall)
20643
+ @true_negative_count = args[:true_negative_count] if args.key?(:true_negative_count)
20644
+ @true_positive_count = args[:true_positive_count] if args.key?(:true_positive_count)
20645
+ end
20646
+ end
20647
+
20588
20648
  #
20589
20649
  class GoogleCloudAiplatformV1SchemaModelevaluationMetricsQuestionAnsweringEvaluationMetrics
20590
20650
  include Google::Apis::Core::Hashable
@@ -26069,13 +26129,13 @@ module Google
26069
26129
  attr_accessor :enable_custom_service_account
26070
26130
  alias_method :enable_custom_service_account?, :enable_custom_service_account
26071
26131
 
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`.
26132
+ # Optional. Required when all below conditions are met * `
26133
+ # enable_custom_service_account` is true; * any runtime is specified via `
26134
+ # ResourceRuntimeSpec` on creation time, for example, Ray The users must have `
26135
+ # iam.serviceAccounts.actAs` permission on this service account and then the
26136
+ # specified runtime containers will run as it. Do not set this field if you want
26137
+ # to submit jobs using custom service account to this PersistentResource after
26138
+ # creation, but only specify the `service_account` inside the job.
26079
26139
  # Corresponds to the JSON property `serviceAccount`
26080
26140
  # @return [String]
26081
26141
  attr_accessor :service_account
@@ -27282,6 +27342,222 @@ module Google
27282
27342
  end
27283
27343
  end
27284
27344
 
27345
+ # Hyperparameters for SFT.
27346
+ class GoogleCloudAiplatformV1SupervisedHyperParameters
27347
+ include Google::Apis::Core::Hashable
27348
+
27349
+ # Optional. Adapter size for tuning.
27350
+ # Corresponds to the JSON property `adapterSize`
27351
+ # @return [String]
27352
+ attr_accessor :adapter_size
27353
+
27354
+ # Optional. Number of training epoches for this tuning job.
27355
+ # Corresponds to the JSON property `epochCount`
27356
+ # @return [Fixnum]
27357
+ attr_accessor :epoch_count
27358
+
27359
+ # Optional. Learning rate multiplier for tuning.
27360
+ # Corresponds to the JSON property `learningRateMultiplier`
27361
+ # @return [Float]
27362
+ attr_accessor :learning_rate_multiplier
27363
+
27364
+ def initialize(**args)
27365
+ update!(**args)
27366
+ end
27367
+
27368
+ # Update properties of this object
27369
+ def update!(**args)
27370
+ @adapter_size = args[:adapter_size] if args.key?(:adapter_size)
27371
+ @epoch_count = args[:epoch_count] if args.key?(:epoch_count)
27372
+ @learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
27373
+ end
27374
+ end
27375
+
27376
+ # Tuning data statistics for Supervised Tuning.
27377
+ class GoogleCloudAiplatformV1SupervisedTuningDataStats
27378
+ include Google::Apis::Core::Hashable
27379
+
27380
+ # Output only. Number of billable characters in the tuning dataset.
27381
+ # Corresponds to the JSON property `totalBillableCharacterCount`
27382
+ # @return [Fixnum]
27383
+ attr_accessor :total_billable_character_count
27384
+
27385
+ # Output only. Number of tuning characters in the tuning dataset.
27386
+ # Corresponds to the JSON property `totalTuningCharacterCount`
27387
+ # @return [Fixnum]
27388
+ attr_accessor :total_tuning_character_count
27389
+
27390
+ # Output only. Number of examples in the tuning dataset.
27391
+ # Corresponds to the JSON property `tuningDatasetExampleCount`
27392
+ # @return [Fixnum]
27393
+ attr_accessor :tuning_dataset_example_count
27394
+
27395
+ # Output only. Number of tuning steps for this Tuning Job.
27396
+ # Corresponds to the JSON property `tuningStepCount`
27397
+ # @return [Fixnum]
27398
+ attr_accessor :tuning_step_count
27399
+
27400
+ # Output only. Sample user messages in the training dataset uri.
27401
+ # Corresponds to the JSON property `userDatasetExamples`
27402
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
27403
+ attr_accessor :user_dataset_examples
27404
+
27405
+ # Dataset distribution for Supervised Tuning.
27406
+ # Corresponds to the JSON property `userInputTokenDistribution`
27407
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27408
+ attr_accessor :user_input_token_distribution
27409
+
27410
+ # Dataset distribution for Supervised Tuning.
27411
+ # Corresponds to the JSON property `userMessagePerExampleDistribution`
27412
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27413
+ attr_accessor :user_message_per_example_distribution
27414
+
27415
+ # Dataset distribution for Supervised Tuning.
27416
+ # Corresponds to the JSON property `userOutputTokenDistribution`
27417
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution]
27418
+ attr_accessor :user_output_token_distribution
27419
+
27420
+ def initialize(**args)
27421
+ update!(**args)
27422
+ end
27423
+
27424
+ # Update properties of this object
27425
+ def update!(**args)
27426
+ @total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
27427
+ @total_tuning_character_count = args[:total_tuning_character_count] if args.key?(:total_tuning_character_count)
27428
+ @tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
27429
+ @tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
27430
+ @user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
27431
+ @user_input_token_distribution = args[:user_input_token_distribution] if args.key?(:user_input_token_distribution)
27432
+ @user_message_per_example_distribution = args[:user_message_per_example_distribution] if args.key?(:user_message_per_example_distribution)
27433
+ @user_output_token_distribution = args[:user_output_token_distribution] if args.key?(:user_output_token_distribution)
27434
+ end
27435
+ end
27436
+
27437
+ # Dataset distribution for Supervised Tuning.
27438
+ class GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution
27439
+ include Google::Apis::Core::Hashable
27440
+
27441
+ # Output only. Defines the histogram bucket.
27442
+ # Corresponds to the JSON property `buckets`
27443
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket>]
27444
+ attr_accessor :buckets
27445
+
27446
+ # Output only. The maximum of the population values.
27447
+ # Corresponds to the JSON property `max`
27448
+ # @return [Float]
27449
+ attr_accessor :max
27450
+
27451
+ # Output only. The arithmetic mean of the values in the population.
27452
+ # Corresponds to the JSON property `mean`
27453
+ # @return [Float]
27454
+ attr_accessor :mean
27455
+
27456
+ # Output only. The median of the values in the population.
27457
+ # Corresponds to the JSON property `median`
27458
+ # @return [Float]
27459
+ attr_accessor :median
27460
+
27461
+ # Output only. The minimum of the population values.
27462
+ # Corresponds to the JSON property `min`
27463
+ # @return [Float]
27464
+ attr_accessor :min
27465
+
27466
+ # Output only. The 5th percentile of the values in the population.
27467
+ # Corresponds to the JSON property `p5`
27468
+ # @return [Float]
27469
+ attr_accessor :p5
27470
+
27471
+ # Output only. The 95th percentile of the values in the population.
27472
+ # Corresponds to the JSON property `p95`
27473
+ # @return [Float]
27474
+ attr_accessor :p95
27475
+
27476
+ # Output only. Sum of a given population of values.
27477
+ # Corresponds to the JSON property `sum`
27478
+ # @return [Fixnum]
27479
+ attr_accessor :sum
27480
+
27481
+ def initialize(**args)
27482
+ update!(**args)
27483
+ end
27484
+
27485
+ # Update properties of this object
27486
+ def update!(**args)
27487
+ @buckets = args[:buckets] if args.key?(:buckets)
27488
+ @max = args[:max] if args.key?(:max)
27489
+ @mean = args[:mean] if args.key?(:mean)
27490
+ @median = args[:median] if args.key?(:median)
27491
+ @min = args[:min] if args.key?(:min)
27492
+ @p5 = args[:p5] if args.key?(:p5)
27493
+ @p95 = args[:p95] if args.key?(:p95)
27494
+ @sum = args[:sum] if args.key?(:sum)
27495
+ end
27496
+ end
27497
+
27498
+ # Dataset bucket used to create a histogram for the distribution given a
27499
+ # population of values.
27500
+ class GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket
27501
+ include Google::Apis::Core::Hashable
27502
+
27503
+ # Output only. Number of values in the bucket.
27504
+ # Corresponds to the JSON property `count`
27505
+ # @return [Float]
27506
+ attr_accessor :count
27507
+
27508
+ # Output only. Left bound of the bucket.
27509
+ # Corresponds to the JSON property `left`
27510
+ # @return [Float]
27511
+ attr_accessor :left
27512
+
27513
+ # Output only. Right bound of the bucket.
27514
+ # Corresponds to the JSON property `right`
27515
+ # @return [Float]
27516
+ attr_accessor :right
27517
+
27518
+ def initialize(**args)
27519
+ update!(**args)
27520
+ end
27521
+
27522
+ # Update properties of this object
27523
+ def update!(**args)
27524
+ @count = args[:count] if args.key?(:count)
27525
+ @left = args[:left] if args.key?(:left)
27526
+ @right = args[:right] if args.key?(:right)
27527
+ end
27528
+ end
27529
+
27530
+ # Tuning Spec for Supervised Tuning.
27531
+ class GoogleCloudAiplatformV1SupervisedTuningSpec
27532
+ include Google::Apis::Core::Hashable
27533
+
27534
+ # Hyperparameters for SFT.
27535
+ # Corresponds to the JSON property `hyperParameters`
27536
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedHyperParameters]
27537
+ attr_accessor :hyper_parameters
27538
+
27539
+ # Required. Cloud Storage path to file containing training dataset for tuning.
27540
+ # Corresponds to the JSON property `trainingDatasetUri`
27541
+ # @return [String]
27542
+ attr_accessor :training_dataset_uri
27543
+
27544
+ # Optional. Cloud Storage path to file containing validation dataset for tuning.
27545
+ # Corresponds to the JSON property `validationDatasetUri`
27546
+ # @return [String]
27547
+ attr_accessor :validation_dataset_uri
27548
+
27549
+ def initialize(**args)
27550
+ update!(**args)
27551
+ end
27552
+
27553
+ # Update properties of this object
27554
+ def update!(**args)
27555
+ @hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
27556
+ @training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
27557
+ @validation_dataset_uri = args[:validation_dataset_uri] if args.key?(:validation_dataset_uri)
27558
+ end
27559
+ end
27560
+
27285
27561
  # Request message for FeatureOnlineStoreAdminService.SyncFeatureView.
27286
27562
  class GoogleCloudAiplatformV1SyncFeatureViewRequest
27287
27563
  include Google::Apis::Core::Hashable
@@ -28407,6 +28683,172 @@ module Google
28407
28683
  end
28408
28684
  end
28409
28685
 
28686
+ # The Model Registry Model and Online Prediction Endpoint assiociated with this
28687
+ # TuningJob.
28688
+ class GoogleCloudAiplatformV1TunedModel
28689
+ include Google::Apis::Core::Hashable
28690
+
28691
+ # Output only. A resource name of an Endpoint. Format: `projects/`project`/
28692
+ # locations/`location`/endpoints/`endpoint``.
28693
+ # Corresponds to the JSON property `endpoint`
28694
+ # @return [String]
28695
+ attr_accessor :endpoint
28696
+
28697
+ # Output only. The resource name of the TunedModel. Format: `projects/`project`/
28698
+ # locations/`location`/models/`model``.
28699
+ # Corresponds to the JSON property `model`
28700
+ # @return [String]
28701
+ attr_accessor :model
28702
+
28703
+ def initialize(**args)
28704
+ update!(**args)
28705
+ end
28706
+
28707
+ # Update properties of this object
28708
+ def update!(**args)
28709
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
28710
+ @model = args[:model] if args.key?(:model)
28711
+ end
28712
+ end
28713
+
28714
+ # The tuning data statistic values for TuningJob.
28715
+ class GoogleCloudAiplatformV1TuningDataStats
28716
+ include Google::Apis::Core::Hashable
28717
+
28718
+ # Tuning data statistics for Supervised Tuning.
28719
+ # Corresponds to the JSON property `supervisedTuningDataStats`
28720
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningDataStats]
28721
+ attr_accessor :supervised_tuning_data_stats
28722
+
28723
+ def initialize(**args)
28724
+ update!(**args)
28725
+ end
28726
+
28727
+ # Update properties of this object
28728
+ def update!(**args)
28729
+ @supervised_tuning_data_stats = args[:supervised_tuning_data_stats] if args.key?(:supervised_tuning_data_stats)
28730
+ end
28731
+ end
28732
+
28733
+ # Represents a TuningJob that runs with Google owned models.
28734
+ class GoogleCloudAiplatformV1TuningJob
28735
+ include Google::Apis::Core::Hashable
28736
+
28737
+ # Model name for tuning, e.g., "gemini-1.0-pro-002".
28738
+ # Corresponds to the JSON property `baseModel`
28739
+ # @return [String]
28740
+ attr_accessor :base_model
28741
+
28742
+ # Output only. Time when the TuningJob was created.
28743
+ # Corresponds to the JSON property `createTime`
28744
+ # @return [String]
28745
+ attr_accessor :create_time
28746
+
28747
+ # Optional. The description of the TuningJob.
28748
+ # Corresponds to the JSON property `description`
28749
+ # @return [String]
28750
+ attr_accessor :description
28751
+
28752
+ # Output only. Time when the TuningJob entered any of the following JobStates: `
28753
+ # JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `
28754
+ # JOB_STATE_EXPIRED`.
28755
+ # Corresponds to the JSON property `endTime`
28756
+ # @return [String]
28757
+ attr_accessor :end_time
28758
+
28759
+ # The `Status` type defines a logical error model that is suitable for different
28760
+ # programming environments, including REST APIs and RPC APIs. It is used by [
28761
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
28762
+ # data: error code, error message, and error details. You can find out more
28763
+ # about this error model and how to work with it in the [API Design Guide](https:
28764
+ # //cloud.google.com/apis/design/errors).
28765
+ # Corresponds to the JSON property `error`
28766
+ # @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
28767
+ attr_accessor :error
28768
+
28769
+ # Output only. The Experiment associated with this TuningJob.
28770
+ # Corresponds to the JSON property `experiment`
28771
+ # @return [String]
28772
+ attr_accessor :experiment
28773
+
28774
+ # Optional. The labels with user-defined metadata to organize TuningJob and
28775
+ # generated resources such as Model and Endpoint. Label keys and values can be
28776
+ # no longer than 64 characters (Unicode codepoints), can only contain lowercase
28777
+ # letters, numeric characters, underscores and dashes. International characters
28778
+ # are allowed. See https://goo.gl/xmQnxf for more information and examples of
28779
+ # labels.
28780
+ # Corresponds to the JSON property `labels`
28781
+ # @return [Hash<String,String>]
28782
+ attr_accessor :labels
28783
+
28784
+ # Output only. Identifier. Resource name of a TuningJob. Format: `projects/`
28785
+ # project`/locations/`location`/tuningJobs/`tuning_job``
28786
+ # Corresponds to the JSON property `name`
28787
+ # @return [String]
28788
+ attr_accessor :name
28789
+
28790
+ # Output only. Time when the TuningJob for the first time entered the `
28791
+ # JOB_STATE_RUNNING` state.
28792
+ # Corresponds to the JSON property `startTime`
28793
+ # @return [String]
28794
+ attr_accessor :start_time
28795
+
28796
+ # Output only. The detailed state of the job.
28797
+ # Corresponds to the JSON property `state`
28798
+ # @return [String]
28799
+ attr_accessor :state
28800
+
28801
+ # Tuning Spec for Supervised Tuning.
28802
+ # Corresponds to the JSON property `supervisedTuningSpec`
28803
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SupervisedTuningSpec]
28804
+ attr_accessor :supervised_tuning_spec
28805
+
28806
+ # The Model Registry Model and Online Prediction Endpoint assiociated with this
28807
+ # TuningJob.
28808
+ # Corresponds to the JSON property `tunedModel`
28809
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TunedModel]
28810
+ attr_accessor :tuned_model
28811
+
28812
+ # Optional. The display name of the TunedModel. The name can be up to 128
28813
+ # characters long and can consist of any UTF-8 characters.
28814
+ # Corresponds to the JSON property `tunedModelDisplayName`
28815
+ # @return [String]
28816
+ attr_accessor :tuned_model_display_name
28817
+
28818
+ # The tuning data statistic values for TuningJob.
28819
+ # Corresponds to the JSON property `tuningDataStats`
28820
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningDataStats]
28821
+ attr_accessor :tuning_data_stats
28822
+
28823
+ # Output only. Time when the TuningJob was most recently updated.
28824
+ # Corresponds to the JSON property `updateTime`
28825
+ # @return [String]
28826
+ attr_accessor :update_time
28827
+
28828
+ def initialize(**args)
28829
+ update!(**args)
28830
+ end
28831
+
28832
+ # Update properties of this object
28833
+ def update!(**args)
28834
+ @base_model = args[:base_model] if args.key?(:base_model)
28835
+ @create_time = args[:create_time] if args.key?(:create_time)
28836
+ @description = args[:description] if args.key?(:description)
28837
+ @end_time = args[:end_time] if args.key?(:end_time)
28838
+ @error = args[:error] if args.key?(:error)
28839
+ @experiment = args[:experiment] if args.key?(:experiment)
28840
+ @labels = args[:labels] if args.key?(:labels)
28841
+ @name = args[:name] if args.key?(:name)
28842
+ @start_time = args[:start_time] if args.key?(:start_time)
28843
+ @state = args[:state] if args.key?(:state)
28844
+ @supervised_tuning_spec = args[:supervised_tuning_spec] if args.key?(:supervised_tuning_spec)
28845
+ @tuned_model = args[:tuned_model] if args.key?(:tuned_model)
28846
+ @tuned_model_display_name = args[:tuned_model_display_name] if args.key?(:tuned_model_display_name)
28847
+ @tuning_data_stats = args[:tuning_data_stats] if args.key?(:tuning_data_stats)
28848
+ @update_time = args[:update_time] if args.key?(:update_time)
28849
+ end
28850
+ end
28851
+
28410
28852
  # Runtime operation information for IndexEndpointService.UndeployIndex.
28411
28853
  class GoogleCloudAiplatformV1UndeployIndexOperationMetadata
28412
28854
  include Google::Apis::Core::Hashable
@@ -31632,6 +32074,33 @@ module Google
31632
32074
  end
31633
32075
  end
31634
32076
 
32077
+ #
32078
+ class LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata
32079
+ include Google::Apis::Core::Hashable
32080
+
32081
+ # Latency spent on fact retrievals. There might be multiple retrievals from
32082
+ # different fact providers.
32083
+ # Corresponds to the JSON property `factRetrievalMillisecondsByProvider`
32084
+ # @return [Hash<String,Fixnum>]
32085
+ attr_accessor :fact_retrieval_milliseconds_by_provider
32086
+
32087
+ # Latency spent on prompt2query. The procedure generates a search-friendly query
32088
+ # given the original prompt.
32089
+ # Corresponds to the JSON property `prompt2queryMilliseconds`
32090
+ # @return [Fixnum]
32091
+ attr_accessor :prompt2query_milliseconds
32092
+
32093
+ def initialize(**args)
32094
+ update!(**args)
32095
+ end
32096
+
32097
+ # Update properties of this object
32098
+ def update!(**args)
32099
+ @fact_retrieval_milliseconds_by_provider = args[:fact_retrieval_milliseconds_by_provider] if args.key?(:fact_retrieval_milliseconds_by_provider)
32100
+ @prompt2query_milliseconds = args[:prompt2query_milliseconds] if args.key?(:prompt2query_milliseconds)
32101
+ end
32102
+ end
32103
+
31635
32104
  # This is per harm.
31636
32105
  class LearningGenaiRootRaiOutput
31637
32106
  include Google::Apis::Core::Hashable
@@ -32317,6 +32786,35 @@ module Google
32317
32786
  end
32318
32787
  end
32319
32788
 
32789
+ # Each TranslationRequestInfo corresponds to a request sent to the translation
32790
+ # server.
32791
+ class LearningGenaiRootTranslationRequestInfo
32792
+ include Google::Apis::Core::Hashable
32793
+
32794
+ # The ISO-639 language code of source text in the initial request, detected
32795
+ # automatically, if no source language was passed within the initial request. If
32796
+ # the source language was passed, auto-detection of the language does not occur
32797
+ # and this field is empty.
32798
+ # Corresponds to the JSON property `detectedLanguageCodes`
32799
+ # @return [Array<String>]
32800
+ attr_accessor :detected_language_codes
32801
+
32802
+ # The sum of the size of all the contents in the request.
32803
+ # Corresponds to the JSON property `totalContentSize`
32804
+ # @return [Fixnum]
32805
+ attr_accessor :total_content_size
32806
+
32807
+ def initialize(**args)
32808
+ update!(**args)
32809
+ end
32810
+
32811
+ # Update properties of this object
32812
+ def update!(**args)
32813
+ @detected_language_codes = args[:detected_language_codes] if args.key?(:detected_language_codes)
32814
+ @total_content_size = args[:total_content_size] if args.key?(:total_content_size)
32815
+ end
32816
+ end
32817
+
32320
32818
  # LINT.IfChange This metadata contains additional information required for
32321
32819
  # debugging.
32322
32820
  class LearningServingLlmMessageMetadata