google-apis-aiplatform_v1beta1 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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)
@@ -3415,6 +3428,33 @@ module Google
3415
3428
  end
3416
3429
  end
3417
3430
 
3431
+ # Config of GenAI caching features. This is a singleton resource.
3432
+ class GoogleCloudAiplatformV1beta1CacheConfig
3433
+ include Google::Apis::Core::Hashable
3434
+
3435
+ # If set to true, disables GenAI caching. Otherwise caching is enabled.
3436
+ # Corresponds to the JSON property `disableCache`
3437
+ # @return [Boolean]
3438
+ attr_accessor :disable_cache
3439
+ alias_method :disable_cache?, :disable_cache
3440
+
3441
+ # Identifier. Name of the cache config. Format: - `projects/`project`/
3442
+ # cacheConfig`.
3443
+ # Corresponds to the JSON property `name`
3444
+ # @return [String]
3445
+ attr_accessor :name
3446
+
3447
+ def initialize(**args)
3448
+ update!(**args)
3449
+ end
3450
+
3451
+ # Update properties of this object
3452
+ def update!(**args)
3453
+ @disable_cache = args[:disable_cache] if args.key?(:disable_cache)
3454
+ @name = args[:name] if args.key?(:name)
3455
+ end
3456
+ end
3457
+
3418
3458
  # Request message for JobService.CancelBatchPredictionJob.
3419
3459
  class GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest
3420
3460
  include Google::Apis::Core::Hashable
@@ -6502,19 +6542,6 @@ module Google
6502
6542
  end
6503
6543
  end
6504
6544
 
6505
- # The input content is encapsulated and uploaded in the request.
6506
- class GoogleCloudAiplatformV1beta1DirectUploadSource
6507
- include Google::Apis::Core::Hashable
6508
-
6509
- def initialize(**args)
6510
- update!(**args)
6511
- end
6512
-
6513
- # Update properties of this object
6514
- def update!(**args)
6515
- end
6516
- end
6517
-
6518
6545
  # Represents the spec of disk options.
6519
6546
  class GoogleCloudAiplatformV1beta1DiskSpec
6520
6547
  include Google::Apis::Core::Hashable
@@ -6971,16 +6998,6 @@ module Google
6971
6998
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput]
6972
6999
  attr_accessor :question_answering_relevance_input
6973
7000
 
6974
- # Input for rag context recall metric.
6975
- # Corresponds to the JSON property `ragContextRecallInput`
6976
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInput]
6977
- attr_accessor :rag_context_recall_input
6978
-
6979
- # Input for response recall metric.
6980
- # Corresponds to the JSON property `responseRecallInput`
6981
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallInput]
6982
- attr_accessor :response_recall_input
6983
-
6984
7001
  # Input for rouge metric.
6985
7002
  # Corresponds to the JSON property `rougeInput`
6986
7003
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInput]
@@ -7044,8 +7061,6 @@ module Google
7044
7061
  @question_answering_helpfulness_input = args[:question_answering_helpfulness_input] if args.key?(:question_answering_helpfulness_input)
7045
7062
  @question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
7046
7063
  @question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
7047
- @rag_context_recall_input = args[:rag_context_recall_input] if args.key?(:rag_context_recall_input)
7048
- @response_recall_input = args[:response_recall_input] if args.key?(:response_recall_input)
7049
7064
  @rouge_input = args[:rouge_input] if args.key?(:rouge_input)
7050
7065
  @safety_input = args[:safety_input] if args.key?(:safety_input)
7051
7066
  @summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
@@ -7122,16 +7137,6 @@ module Google
7122
7137
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult]
7123
7138
  attr_accessor :question_answering_relevance_result
7124
7139
 
7125
- # Spec for rag context recall result.
7126
- # Corresponds to the JSON property `ragContextRecallResult`
7127
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallResult]
7128
- attr_accessor :rag_context_recall_result
7129
-
7130
- # Spec for response recall result.
7131
- # Corresponds to the JSON property `responseRecallResult`
7132
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallResult]
7133
- attr_accessor :response_recall_result
7134
-
7135
7140
  # Results for rouge metric.
7136
7141
  # Corresponds to the JSON property `rougeResults`
7137
7142
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeResults]
@@ -7195,8 +7200,6 @@ module Google
7195
7200
  @question_answering_helpfulness_result = args[:question_answering_helpfulness_result] if args.key?(:question_answering_helpfulness_result)
7196
7201
  @question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
7197
7202
  @question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
7198
- @rag_context_recall_result = args[:rag_context_recall_result] if args.key?(:rag_context_recall_result)
7199
- @response_recall_result = args[:response_recall_result] if args.key?(:response_recall_result)
7200
7203
  @rouge_results = args[:rouge_results] if args.key?(:rouge_results)
7201
7204
  @safety_result = args[:safety_result] if args.key?(:safety_result)
7202
7205
  @summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
@@ -8920,6 +8923,16 @@ module Google
8920
8923
  # @return [String]
8921
8924
  attr_accessor :name
8922
8925
 
8926
+ # PrivateExtensionConfig configuration for the extension.
8927
+ # Corresponds to the JSON property `privateServiceConnectConfig`
8928
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig]
8929
+ attr_accessor :private_service_connect_config
8930
+
8931
+ # Runtime configuration to run the extension.
8932
+ # Corresponds to the JSON property `runtimeConfig`
8933
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfig]
8934
+ attr_accessor :runtime_config
8935
+
8923
8936
  # Optional. Examples to illustrate the usage of the extension as a tool.
8924
8937
  # Corresponds to the JSON property `toolUseExamples`
8925
8938
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolUseExample>]
@@ -8943,6 +8956,8 @@ module Google
8943
8956
  @extension_operations = args[:extension_operations] if args.key?(:extension_operations)
8944
8957
  @manifest = args[:manifest] if args.key?(:manifest)
8945
8958
  @name = args[:name] if args.key?(:name)
8959
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
8960
+ @runtime_config = args[:runtime_config] if args.key?(:runtime_config)
8946
8961
  @tool_use_examples = args[:tool_use_examples] if args.key?(:tool_use_examples)
8947
8962
  @update_time = args[:update_time] if args.key?(:update_time)
8948
8963
  end
@@ -9045,6 +9060,30 @@ module Google
9045
9060
  end
9046
9061
  end
9047
9062
 
9063
+ # PrivateExtensionConfig configuration for the extension.
9064
+ class GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig
9065
+ include Google::Apis::Core::Hashable
9066
+
9067
+ # Required. The Service Directory resource name in which the service endpoints
9068
+ # associated to the extension are registered. Format: `projects/`project_id`/
9069
+ # locations/`location_id`/namespaces/`namespace_id`/services/`service_id`` - The
9070
+ # Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/
9071
+ # general/access-control#service-agents) should be granted `servicedirectory.
9072
+ # viewer` and `servicedirectory.pscAuthorizedService` roles on the resource.
9073
+ # Corresponds to the JSON property `serviceDirectory`
9074
+ # @return [String]
9075
+ attr_accessor :service_directory
9076
+
9077
+ def initialize(**args)
9078
+ update!(**args)
9079
+ end
9080
+
9081
+ # Update properties of this object
9082
+ def update!(**args)
9083
+ @service_directory = args[:service_directory] if args.key?(:service_directory)
9084
+ end
9085
+ end
9086
+
9048
9087
  # Feature Metadata information. For example, color is a feature that describes
9049
9088
  # an apple.
9050
9089
  class GoogleCloudAiplatformV1beta1Feature
@@ -10819,7 +10858,7 @@ module Google
10819
10858
  end
10820
10859
  end
10821
10860
 
10822
- # LINT.IfChange The request message for MatchService.FindNeighbors.
10861
+ # The request message for MatchService.FindNeighbors.
10823
10862
  class GoogleCloudAiplatformV1beta1FindNeighborsRequest
10824
10863
  include Google::Apis::Core::Hashable
10825
10864
 
@@ -11623,6 +11662,15 @@ module Google
11623
11662
  # @return [Float]
11624
11663
  attr_accessor :presence_penalty
11625
11664
 
11665
+ # Optional. Output response mimetype of the generated candidate text. Supported
11666
+ # mimetype: `text/plain`: (default) Text output. `application/json`: JSON
11667
+ # response in the candidates. The model needs to be prompted to output the
11668
+ # appropriate response type, otherwise the behavior is undefined. This is a
11669
+ # preview feature.
11670
+ # Corresponds to the JSON property `responseMimeType`
11671
+ # @return [String]
11672
+ attr_accessor :response_mime_type
11673
+
11626
11674
  # Optional. Stop sequences.
11627
11675
  # Corresponds to the JSON property `stopSequences`
11628
11676
  # @return [Array<String>]
@@ -11653,6 +11701,7 @@ module Google
11653
11701
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
11654
11702
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
11655
11703
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
11704
+ @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
11656
11705
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
11657
11706
  @temperature = args[:temperature] if args.key?(:temperature)
11658
11707
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -11714,50 +11763,6 @@ module Google
11714
11763
  end
11715
11764
  end
11716
11765
 
11717
- # The Google Drive location for the input content.
11718
- class GoogleCloudAiplatformV1beta1GoogleDriveSource
11719
- include Google::Apis::Core::Hashable
11720
-
11721
- # Required. Google Drive resource IDs.
11722
- # Corresponds to the JSON property `resourceIds`
11723
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId>]
11724
- attr_accessor :resource_ids
11725
-
11726
- def initialize(**args)
11727
- update!(**args)
11728
- end
11729
-
11730
- # Update properties of this object
11731
- def update!(**args)
11732
- @resource_ids = args[:resource_ids] if args.key?(:resource_ids)
11733
- end
11734
- end
11735
-
11736
- # The type and ID of the Google Drive resource.
11737
- class GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId
11738
- include Google::Apis::Core::Hashable
11739
-
11740
- # Required. The ID of the Google Drive resource.
11741
- # Corresponds to the JSON property `resourceId`
11742
- # @return [String]
11743
- attr_accessor :resource_id
11744
-
11745
- # Required. The type of the Google Drive resource.
11746
- # Corresponds to the JSON property `resourceType`
11747
- # @return [String]
11748
- attr_accessor :resource_type
11749
-
11750
- def initialize(**args)
11751
- update!(**args)
11752
- end
11753
-
11754
- # Update properties of this object
11755
- def update!(**args)
11756
- @resource_id = args[:resource_id] if args.key?(:resource_id)
11757
- @resource_type = args[:resource_type] if args.key?(:resource_type)
11758
- end
11759
- end
11760
-
11761
11766
  # Tool to retrieve public web data for grounding, powered by Google.
11762
11767
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
11763
11768
  include Google::Apis::Core::Hashable
@@ -12506,56 +12511,6 @@ module Google
12506
12511
  end
12507
12512
  end
12508
12513
 
12509
- # Config for importing RagFiles.
12510
- class GoogleCloudAiplatformV1beta1ImportRagFilesConfig
12511
- include Google::Apis::Core::Hashable
12512
-
12513
- # The Google Cloud Storage location for the input content.
12514
- # Corresponds to the JSON property `gcsSource`
12515
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
12516
- attr_accessor :gcs_source
12517
-
12518
- # The Google Drive location for the input content.
12519
- # Corresponds to the JSON property `googleDriveSource`
12520
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
12521
- attr_accessor :google_drive_source
12522
-
12523
- # Specifies the size and overlap of chunks for RagFiles.
12524
- # Corresponds to the JSON property `ragFileChunkingConfig`
12525
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
12526
- attr_accessor :rag_file_chunking_config
12527
-
12528
- def initialize(**args)
12529
- update!(**args)
12530
- end
12531
-
12532
- # Update properties of this object
12533
- def update!(**args)
12534
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
12535
- @google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
12536
- @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
12537
- end
12538
- end
12539
-
12540
- # Request message for VertexRagDataService.ImportRagFiles.
12541
- class GoogleCloudAiplatformV1beta1ImportRagFilesRequest
12542
- include Google::Apis::Core::Hashable
12543
-
12544
- # Config for importing RagFiles.
12545
- # Corresponds to the JSON property `importRagFilesConfig`
12546
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesConfig]
12547
- attr_accessor :import_rag_files_config
12548
-
12549
- def initialize(**args)
12550
- update!(**args)
12551
- end
12552
-
12553
- # Update properties of this object
12554
- def update!(**args)
12555
- @import_rag_files_config = args[:import_rag_files_config] if args.key?(:import_rag_files_config)
12556
- end
12557
- end
12558
-
12559
12514
  # A representation of a collection of database items organized in a way that
12560
12515
  # allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
12561
12516
  class GoogleCloudAiplatformV1beta1Index
@@ -14280,58 +14235,6 @@ module Google
14280
14235
  end
14281
14236
  end
14282
14237
 
14283
- # Response message for VertexRagDataService.ListRagCorpora.
14284
- class GoogleCloudAiplatformV1beta1ListRagCorporaResponse
14285
- include Google::Apis::Core::Hashable
14286
-
14287
- # A token to retrieve the next page of results. Pass to ListRagCorporaRequest.
14288
- # page_token to obtain that page.
14289
- # Corresponds to the JSON property `nextPageToken`
14290
- # @return [String]
14291
- attr_accessor :next_page_token
14292
-
14293
- # List of RagCorpora in the requested page.
14294
- # Corresponds to the JSON property `ragCorpora`
14295
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus>]
14296
- attr_accessor :rag_corpora
14297
-
14298
- def initialize(**args)
14299
- update!(**args)
14300
- end
14301
-
14302
- # Update properties of this object
14303
- def update!(**args)
14304
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14305
- @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
14306
- end
14307
- end
14308
-
14309
- # Response message for VertexRagDataService.ListRagFiles.
14310
- class GoogleCloudAiplatformV1beta1ListRagFilesResponse
14311
- include Google::Apis::Core::Hashable
14312
-
14313
- # A token to retrieve the next page of results. Pass to ListRagFilesRequest.
14314
- # page_token to obtain that page.
14315
- # Corresponds to the JSON property `nextPageToken`
14316
- # @return [String]
14317
- attr_accessor :next_page_token
14318
-
14319
- # List of RagFiles in the requested page.
14320
- # Corresponds to the JSON property `ragFiles`
14321
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile>]
14322
- attr_accessor :rag_files
14323
-
14324
- def initialize(**args)
14325
- update!(**args)
14326
- end
14327
-
14328
- # Update properties of this object
14329
- def update!(**args)
14330
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14331
- @rag_files = args[:rag_files] if args.key?(:rag_files)
14332
- end
14333
- end
14334
-
14335
14238
  # Response message for ReasoningEngineService.ListReasoningEngines
14336
14239
  class GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse
14337
14240
  include Google::Apis::Core::Hashable
@@ -18369,7 +18272,7 @@ module Google
18369
18272
  # @return [String]
18370
18273
  attr_accessor :baseline_prediction
18371
18274
 
18372
- # Optional. Text to answer the question.
18275
+ # Required. Text to answer the question.
18373
18276
  # Corresponds to the JSON property `context`
18374
18277
  # @return [String]
18375
18278
  attr_accessor :context
@@ -19887,11 +19790,6 @@ module Google
19887
19790
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke]
19888
19791
  attr_accessor :deploy_gke
19889
19792
 
19890
- # Multiple setups to deploy the PublisherModel.
19891
- # Corresponds to the JSON property `multiDeployVertex`
19892
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex]
19893
- attr_accessor :multi_deploy_vertex
19894
-
19895
19793
  # The regional resource name or the URI. Key is region, e.g., us-central1,
19896
19794
  # europe-west2, global, etc..
19897
19795
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -19958,7 +19856,6 @@ module Google
19958
19856
  @create_application = args[:create_application] if args.key?(:create_application)
19959
19857
  @deploy = args[:deploy] if args.key?(:deploy)
19960
19858
  @deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
19961
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
19962
19859
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
19963
19860
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
19964
19861
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -20068,25 +19965,6 @@ module Google
20068
19965
  end
20069
19966
  end
20070
19967
 
20071
- # Multiple setups to deploy the PublisherModel.
20072
- class GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex
20073
- include Google::Apis::Core::Hashable
20074
-
20075
- # Optional. One click deployment configurations.
20076
- # Corresponds to the JSON property `multiDeployVertex`
20077
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy>]
20078
- attr_accessor :multi_deploy_vertex
20079
-
20080
- def initialize(**args)
20081
- update!(**args)
20082
- end
20083
-
20084
- # Update properties of this object
20085
- def update!(**args)
20086
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
20087
- end
20088
- end
20089
-
20090
19968
  # Open fine tuning pipelines.
20091
19969
  class GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines
20092
19970
  include Google::Apis::Core::Hashable
@@ -20960,7 +20838,7 @@ module Google
20960
20838
  class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance
20961
20839
  include Google::Apis::Core::Hashable
20962
20840
 
20963
- # Optional. Text to answer the question.
20841
+ # Required. Text to answer the question.
20964
20842
  # Corresponds to the JSON property `context`
20965
20843
  # @return [String]
20966
20844
  attr_accessor :context
@@ -21171,326 +21049,6 @@ module Google
21171
21049
  end
21172
21050
  end
21173
21051
 
21174
- # Input for rag context recall metric.
21175
- class GoogleCloudAiplatformV1beta1RagContextRecallInput
21176
- include Google::Apis::Core::Hashable
21177
-
21178
- # Spec for rag context recall instance.
21179
- # Corresponds to the JSON property `instance`
21180
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInstance]
21181
- attr_accessor :instance
21182
-
21183
- # Spec for rag context recall metric.
21184
- # Corresponds to the JSON property `metricSpec`
21185
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallSpec]
21186
- attr_accessor :metric_spec
21187
-
21188
- def initialize(**args)
21189
- update!(**args)
21190
- end
21191
-
21192
- # Update properties of this object
21193
- def update!(**args)
21194
- @instance = args[:instance] if args.key?(:instance)
21195
- @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
21196
- end
21197
- end
21198
-
21199
- # Spec for rag context recall instance.
21200
- class GoogleCloudAiplatformV1beta1RagContextRecallInstance
21201
- include Google::Apis::Core::Hashable
21202
-
21203
- # Required. Retrieved facts from RAG pipeline as context to be evaluated.
21204
- # Corresponds to the JSON property `context`
21205
- # @return [String]
21206
- attr_accessor :context
21207
-
21208
- # Required. Ground truth used to compare against the context.
21209
- # Corresponds to the JSON property `reference`
21210
- # @return [String]
21211
- attr_accessor :reference
21212
-
21213
- def initialize(**args)
21214
- update!(**args)
21215
- end
21216
-
21217
- # Update properties of this object
21218
- def update!(**args)
21219
- @context = args[:context] if args.key?(:context)
21220
- @reference = args[:reference] if args.key?(:reference)
21221
- end
21222
- end
21223
-
21224
- # Spec for rag context recall result.
21225
- class GoogleCloudAiplatformV1beta1RagContextRecallResult
21226
- include Google::Apis::Core::Hashable
21227
-
21228
- # Output only. Confidence for rag context recall score.
21229
- # Corresponds to the JSON property `confidence`
21230
- # @return [Float]
21231
- attr_accessor :confidence
21232
-
21233
- # Output only. Explanation for rag context recall score.
21234
- # Corresponds to the JSON property `explanation`
21235
- # @return [String]
21236
- attr_accessor :explanation
21237
-
21238
- # Output only. RagContextRecall score.
21239
- # Corresponds to the JSON property `score`
21240
- # @return [Float]
21241
- attr_accessor :score
21242
-
21243
- def initialize(**args)
21244
- update!(**args)
21245
- end
21246
-
21247
- # Update properties of this object
21248
- def update!(**args)
21249
- @confidence = args[:confidence] if args.key?(:confidence)
21250
- @explanation = args[:explanation] if args.key?(:explanation)
21251
- @score = args[:score] if args.key?(:score)
21252
- end
21253
- end
21254
-
21255
- # Spec for rag context recall metric.
21256
- class GoogleCloudAiplatformV1beta1RagContextRecallSpec
21257
- include Google::Apis::Core::Hashable
21258
-
21259
- # Optional. Which version to use for evaluation.
21260
- # Corresponds to the JSON property `version`
21261
- # @return [Fixnum]
21262
- attr_accessor :version
21263
-
21264
- def initialize(**args)
21265
- update!(**args)
21266
- end
21267
-
21268
- # Update properties of this object
21269
- def update!(**args)
21270
- @version = args[:version] if args.key?(:version)
21271
- end
21272
- end
21273
-
21274
- # Relevant contexts for one query.
21275
- class GoogleCloudAiplatformV1beta1RagContexts
21276
- include Google::Apis::Core::Hashable
21277
-
21278
- # All its contexts.
21279
- # Corresponds to the JSON property `contexts`
21280
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextsContext>]
21281
- attr_accessor :contexts
21282
-
21283
- def initialize(**args)
21284
- update!(**args)
21285
- end
21286
-
21287
- # Update properties of this object
21288
- def update!(**args)
21289
- @contexts = args[:contexts] if args.key?(:contexts)
21290
- end
21291
- end
21292
-
21293
- # A context of the query.
21294
- class GoogleCloudAiplatformV1beta1RagContextsContext
21295
- include Google::Apis::Core::Hashable
21296
-
21297
- # The distance between the query vector and the context text vector.
21298
- # Corresponds to the JSON property `distance`
21299
- # @return [Float]
21300
- attr_accessor :distance
21301
-
21302
- # For vertex RagStore, if the file is imported from Cloud Storage or Google
21303
- # Drive, source_uri will be original file URI in Cloud Storage or Google Drive;
21304
- # if file is uploaded, source_uri will be file display name.
21305
- # Corresponds to the JSON property `sourceUri`
21306
- # @return [String]
21307
- attr_accessor :source_uri
21308
-
21309
- # The text chunk.
21310
- # Corresponds to the JSON property `text`
21311
- # @return [String]
21312
- attr_accessor :text
21313
-
21314
- def initialize(**args)
21315
- update!(**args)
21316
- end
21317
-
21318
- # Update properties of this object
21319
- def update!(**args)
21320
- @distance = args[:distance] if args.key?(:distance)
21321
- @source_uri = args[:source_uri] if args.key?(:source_uri)
21322
- @text = args[:text] if args.key?(:text)
21323
- end
21324
- end
21325
-
21326
- # A RagCorpus is a RagFile container and a project can have multiple RagCorpora.
21327
- class GoogleCloudAiplatformV1beta1RagCorpus
21328
- include Google::Apis::Core::Hashable
21329
-
21330
- # Output only. Timestamp when this RagCorpus was created.
21331
- # Corresponds to the JSON property `createTime`
21332
- # @return [String]
21333
- attr_accessor :create_time
21334
-
21335
- # Optional. The description of the RagCorpus.
21336
- # Corresponds to the JSON property `description`
21337
- # @return [String]
21338
- attr_accessor :description
21339
-
21340
- # Required. The display name of the RagCorpus. The name can be up to 128
21341
- # characters long and can consist of any UTF-8 characters.
21342
- # Corresponds to the JSON property `displayName`
21343
- # @return [String]
21344
- attr_accessor :display_name
21345
-
21346
- # Output only. The resource name of the RagCorpus.
21347
- # Corresponds to the JSON property `name`
21348
- # @return [String]
21349
- attr_accessor :name
21350
-
21351
- # Output only. Timestamp when this RagCorpus was last updated.
21352
- # Corresponds to the JSON property `updateTime`
21353
- # @return [String]
21354
- attr_accessor :update_time
21355
-
21356
- def initialize(**args)
21357
- update!(**args)
21358
- end
21359
-
21360
- # Update properties of this object
21361
- def update!(**args)
21362
- @create_time = args[:create_time] if args.key?(:create_time)
21363
- @description = args[:description] if args.key?(:description)
21364
- @display_name = args[:display_name] if args.key?(:display_name)
21365
- @name = args[:name] if args.key?(:name)
21366
- @update_time = args[:update_time] if args.key?(:update_time)
21367
- end
21368
- end
21369
-
21370
- # A RagFile contains user data for chunking, embedding and indexing.
21371
- class GoogleCloudAiplatformV1beta1RagFile
21372
- include Google::Apis::Core::Hashable
21373
-
21374
- # Output only. Timestamp when this RagFile was created.
21375
- # Corresponds to the JSON property `createTime`
21376
- # @return [String]
21377
- attr_accessor :create_time
21378
-
21379
- # Optional. The description of the RagFile.
21380
- # Corresponds to the JSON property `description`
21381
- # @return [String]
21382
- attr_accessor :description
21383
-
21384
- # The input content is encapsulated and uploaded in the request.
21385
- # Corresponds to the JSON property `directUploadSource`
21386
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectUploadSource]
21387
- attr_accessor :direct_upload_source
21388
-
21389
- # Required. The display name of the RagFile. The name can be up to 128
21390
- # characters long and can consist of any UTF-8 characters.
21391
- # Corresponds to the JSON property `displayName`
21392
- # @return [String]
21393
- attr_accessor :display_name
21394
-
21395
- # The Google Cloud Storage location for the input content.
21396
- # Corresponds to the JSON property `gcsSource`
21397
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
21398
- attr_accessor :gcs_source
21399
-
21400
- # The Google Drive location for the input content.
21401
- # Corresponds to the JSON property `googleDriveSource`
21402
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
21403
- attr_accessor :google_drive_source
21404
-
21405
- # Output only. The resource name of the RagFile.
21406
- # Corresponds to the JSON property `name`
21407
- # @return [String]
21408
- attr_accessor :name
21409
-
21410
- # Output only. The type of the RagFile.
21411
- # Corresponds to the JSON property `ragFileType`
21412
- # @return [String]
21413
- attr_accessor :rag_file_type
21414
-
21415
- # Output only. The size of the RagFile in bytes.
21416
- # Corresponds to the JSON property `sizeBytes`
21417
- # @return [Fixnum]
21418
- attr_accessor :size_bytes
21419
-
21420
- # Output only. Timestamp when this RagFile was last updated.
21421
- # Corresponds to the JSON property `updateTime`
21422
- # @return [String]
21423
- attr_accessor :update_time
21424
-
21425
- def initialize(**args)
21426
- update!(**args)
21427
- end
21428
-
21429
- # Update properties of this object
21430
- def update!(**args)
21431
- @create_time = args[:create_time] if args.key?(:create_time)
21432
- @description = args[:description] if args.key?(:description)
21433
- @direct_upload_source = args[:direct_upload_source] if args.key?(:direct_upload_source)
21434
- @display_name = args[:display_name] if args.key?(:display_name)
21435
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
21436
- @google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
21437
- @name = args[:name] if args.key?(:name)
21438
- @rag_file_type = args[:rag_file_type] if args.key?(:rag_file_type)
21439
- @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
21440
- @update_time = args[:update_time] if args.key?(:update_time)
21441
- end
21442
- end
21443
-
21444
- # Specifies the size and overlap of chunks for RagFiles.
21445
- class GoogleCloudAiplatformV1beta1RagFileChunkingConfig
21446
- include Google::Apis::Core::Hashable
21447
-
21448
- # The overlap between chunks.
21449
- # Corresponds to the JSON property `chunkOverlap`
21450
- # @return [Fixnum]
21451
- attr_accessor :chunk_overlap
21452
-
21453
- # The size of the chunks.
21454
- # Corresponds to the JSON property `chunkSize`
21455
- # @return [Fixnum]
21456
- attr_accessor :chunk_size
21457
-
21458
- def initialize(**args)
21459
- update!(**args)
21460
- end
21461
-
21462
- # Update properties of this object
21463
- def update!(**args)
21464
- @chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap)
21465
- @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
21466
- end
21467
- end
21468
-
21469
- # A query to retrieve relevant contexts.
21470
- class GoogleCloudAiplatformV1beta1RagQuery
21471
- include Google::Apis::Core::Hashable
21472
-
21473
- # Optional. The number of contexts to retrieve.
21474
- # Corresponds to the JSON property `similarityTopK`
21475
- # @return [Fixnum]
21476
- attr_accessor :similarity_top_k
21477
-
21478
- # Optional. The query in text format to get relevant contexts.
21479
- # Corresponds to the JSON property `text`
21480
- # @return [String]
21481
- attr_accessor :text
21482
-
21483
- def initialize(**args)
21484
- update!(**args)
21485
- end
21486
-
21487
- # Update properties of this object
21488
- def update!(**args)
21489
- @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
21490
- @text = args[:text] if args.key?(:text)
21491
- end
21492
- end
21493
-
21494
21052
  # Request message for PredictionService.RawPredict.
21495
21053
  class GoogleCloudAiplatformV1beta1RawPredictRequest
21496
21054
  include Google::Apis::Core::Hashable
@@ -22409,106 +21967,6 @@ module Google
22409
21967
  end
22410
21968
  end
22411
21969
 
22412
- # Input for response recall metric.
22413
- class GoogleCloudAiplatformV1beta1ResponseRecallInput
22414
- include Google::Apis::Core::Hashable
22415
-
22416
- # Spec for response recall instance.
22417
- # Corresponds to the JSON property `instance`
22418
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallInstance]
22419
- attr_accessor :instance
22420
-
22421
- # Spec for response recall metric.
22422
- # Corresponds to the JSON property `metricSpec`
22423
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallSpec]
22424
- attr_accessor :metric_spec
22425
-
22426
- def initialize(**args)
22427
- update!(**args)
22428
- end
22429
-
22430
- # Update properties of this object
22431
- def update!(**args)
22432
- @instance = args[:instance] if args.key?(:instance)
22433
- @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
22434
- end
22435
- end
22436
-
22437
- # Spec for response recall instance.
22438
- class GoogleCloudAiplatformV1beta1ResponseRecallInstance
22439
- include Google::Apis::Core::Hashable
22440
-
22441
- # Required. Output of the evaluated model.
22442
- # Corresponds to the JSON property `prediction`
22443
- # @return [String]
22444
- attr_accessor :prediction
22445
-
22446
- # Required. Ground truth used to compare against the prediction.
22447
- # Corresponds to the JSON property `reference`
22448
- # @return [String]
22449
- attr_accessor :reference
22450
-
22451
- def initialize(**args)
22452
- update!(**args)
22453
- end
22454
-
22455
- # Update properties of this object
22456
- def update!(**args)
22457
- @prediction = args[:prediction] if args.key?(:prediction)
22458
- @reference = args[:reference] if args.key?(:reference)
22459
- end
22460
- end
22461
-
22462
- # Spec for response recall result.
22463
- class GoogleCloudAiplatformV1beta1ResponseRecallResult
22464
- include Google::Apis::Core::Hashable
22465
-
22466
- # Output only. Confidence for fulfillment score.
22467
- # Corresponds to the JSON property `confidence`
22468
- # @return [Float]
22469
- attr_accessor :confidence
22470
-
22471
- # Output only. Explanation for response recall score.
22472
- # Corresponds to the JSON property `explanation`
22473
- # @return [String]
22474
- attr_accessor :explanation
22475
-
22476
- # Output only. ResponseRecall score.
22477
- # Corresponds to the JSON property `score`
22478
- # @return [Float]
22479
- attr_accessor :score
22480
-
22481
- def initialize(**args)
22482
- update!(**args)
22483
- end
22484
-
22485
- # Update properties of this object
22486
- def update!(**args)
22487
- @confidence = args[:confidence] if args.key?(:confidence)
22488
- @explanation = args[:explanation] if args.key?(:explanation)
22489
- @score = args[:score] if args.key?(:score)
22490
- end
22491
- end
22492
-
22493
- # Spec for response recall metric.
22494
- class GoogleCloudAiplatformV1beta1ResponseRecallSpec
22495
- include Google::Apis::Core::Hashable
22496
-
22497
- # Optional. Which version to use for evaluation.
22498
- # Corresponds to the JSON property `version`
22499
- # @return [Fixnum]
22500
- attr_accessor :version
22501
-
22502
- def initialize(**args)
22503
- update!(**args)
22504
- end
22505
-
22506
- # Update properties of this object
22507
- def update!(**args)
22508
- @version = args[:version] if args.key?(:version)
22509
- end
22510
- end
22511
-
22512
21970
  # Runtime operation information for DatasetService.RestoreDatasetVersion.
22513
21971
  class GoogleCloudAiplatformV1beta1RestoreDatasetVersionOperationMetadata
22514
21972
  include Google::Apis::Core::Hashable
@@ -22599,72 +22057,6 @@ module Google
22599
22057
  end
22600
22058
  end
22601
22059
 
22602
- # Request message for VertexRagService.RetrieveContexts.
22603
- class GoogleCloudAiplatformV1beta1RetrieveContextsRequest
22604
- include Google::Apis::Core::Hashable
22605
-
22606
- # A query to retrieve relevant contexts.
22607
- # Corresponds to the JSON property `query`
22608
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQuery]
22609
- attr_accessor :query
22610
-
22611
- # The data source for Vertex RagStore.
22612
- # Corresponds to the JSON property `vertexRagStore`
22613
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore]
22614
- attr_accessor :vertex_rag_store
22615
-
22616
- def initialize(**args)
22617
- update!(**args)
22618
- end
22619
-
22620
- # Update properties of this object
22621
- def update!(**args)
22622
- @query = args[:query] if args.key?(:query)
22623
- @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
22624
- end
22625
- end
22626
-
22627
- # The data source for Vertex RagStore.
22628
- class GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore
22629
- include Google::Apis::Core::Hashable
22630
-
22631
- # Required. RagCorpora resource name. Format: `projects/`project`/locations/`
22632
- # location`/ragCorpora/`rag_corpus`` Currently only one corpus is allowed. In
22633
- # the future we may open up multiple corpora support. However, they should be
22634
- # from the same project and location.
22635
- # Corresponds to the JSON property `ragCorpora`
22636
- # @return [Array<String>]
22637
- attr_accessor :rag_corpora
22638
-
22639
- def initialize(**args)
22640
- update!(**args)
22641
- end
22642
-
22643
- # Update properties of this object
22644
- def update!(**args)
22645
- @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
22646
- end
22647
- end
22648
-
22649
- # Response message for VertexRagService.RetrieveContexts.
22650
- class GoogleCloudAiplatformV1beta1RetrieveContextsResponse
22651
- include Google::Apis::Core::Hashable
22652
-
22653
- # Relevant contexts for one query.
22654
- # Corresponds to the JSON property `contexts`
22655
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContexts]
22656
- attr_accessor :contexts
22657
-
22658
- def initialize(**args)
22659
- update!(**args)
22660
- end
22661
-
22662
- # Update properties of this object
22663
- def update!(**args)
22664
- @contexts = args[:contexts] if args.key?(:contexts)
22665
- end
22666
- end
22667
-
22668
22060
  # Input for rouge metric.
22669
22061
  class GoogleCloudAiplatformV1beta1RougeInput
22670
22062
  include Google::Apis::Core::Hashable
@@ -22788,6 +22180,95 @@ module Google
22788
22180
  end
22789
22181
  end
22790
22182
 
22183
+ # Runtime configuration to run the extension.
22184
+ class GoogleCloudAiplatformV1beta1RuntimeConfig
22185
+ include Google::Apis::Core::Hashable
22186
+
22187
+ # Code execution runtime configurations for code interpreter extension.
22188
+ # Corresponds to the JSON property `codeInterpreterRuntimeConfig`
22189
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig]
22190
+ attr_accessor :code_interpreter_runtime_config
22191
+
22192
+ # Optional. Default parameters that will be set for all the execution of this
22193
+ # extension. If specified, the parameter values can be overridden by values in [[
22194
+ # ExecuteExtensionRequest.operation_params]] at request time. The struct should
22195
+ # be in a form of map with param name as the key and actual param value as the
22196
+ # value. E.g. If this operation requires a param "name" to be set to "abc". you
22197
+ # can set this to something like `"name": "abc"`.
22198
+ # Corresponds to the JSON property `defaultParams`
22199
+ # @return [Hash<String,Object>]
22200
+ attr_accessor :default_params
22201
+
22202
+ # Runtime configuration for Vertext AI Search extension.
22203
+ # Corresponds to the JSON property `vertexAiSearchRuntimeConfig`
22204
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfigVertexAiSearchRuntimeConfig]
22205
+ attr_accessor :vertex_ai_search_runtime_config
22206
+
22207
+ def initialize(**args)
22208
+ update!(**args)
22209
+ end
22210
+
22211
+ # Update properties of this object
22212
+ def update!(**args)
22213
+ @code_interpreter_runtime_config = args[:code_interpreter_runtime_config] if args.key?(:code_interpreter_runtime_config)
22214
+ @default_params = args[:default_params] if args.key?(:default_params)
22215
+ @vertex_ai_search_runtime_config = args[:vertex_ai_search_runtime_config] if args.key?(:vertex_ai_search_runtime_config)
22216
+ end
22217
+ end
22218
+
22219
+ #
22220
+ class GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig
22221
+ include Google::Apis::Core::Hashable
22222
+
22223
+ # Optional. The GCS bucket for file input of this Extension. If specified,
22224
+ # support input from the GCS bucket. Vertex Extension Custom Code Service Agent
22225
+ # should be granted file reader to this bucket. If not specified, the extension
22226
+ # will only accept file contents from request body and reject GCS file inputs.
22227
+ # Corresponds to the JSON property `fileInputGcsBucket`
22228
+ # @return [String]
22229
+ attr_accessor :file_input_gcs_bucket
22230
+
22231
+ # Optional. The GCS bucket for file output of this Extension. If specified,
22232
+ # write all output files to the GCS bucket. Vertex Extension Custom Code Service
22233
+ # Agent should be granted file writer to this bucket. If not specified, the file
22234
+ # content will be output in response body.
22235
+ # Corresponds to the JSON property `fileOutputGcsBucket`
22236
+ # @return [String]
22237
+ attr_accessor :file_output_gcs_bucket
22238
+
22239
+ def initialize(**args)
22240
+ update!(**args)
22241
+ end
22242
+
22243
+ # Update properties of this object
22244
+ def update!(**args)
22245
+ @file_input_gcs_bucket = args[:file_input_gcs_bucket] if args.key?(:file_input_gcs_bucket)
22246
+ @file_output_gcs_bucket = args[:file_output_gcs_bucket] if args.key?(:file_output_gcs_bucket)
22247
+ end
22248
+ end
22249
+
22250
+ #
22251
+ class GoogleCloudAiplatformV1beta1RuntimeConfigVertexAiSearchRuntimeConfig
22252
+ include Google::Apis::Core::Hashable
22253
+
22254
+ # Required. Vertext AI Search serving config name. Format: `projects/`project`/
22255
+ # locations/`location`/collections/`collection`/engines/`engine`/servingConfigs/`
22256
+ # serving_config`` or `projects/`project`/locations/`location`/collections/`
22257
+ # collection`/dataStores/`data_store`/servingConfigs/`serving_config``
22258
+ # Corresponds to the JSON property `servingConfigName`
22259
+ # @return [String]
22260
+ attr_accessor :serving_config_name
22261
+
22262
+ def initialize(**args)
22263
+ update!(**args)
22264
+ end
22265
+
22266
+ # Update properties of this object
22267
+ def update!(**args)
22268
+ @serving_config_name = args[:serving_config_name] if args.key?(:serving_config_name)
22269
+ end
22270
+ end
22271
+
22791
22272
  # Input for safety metric.
22792
22273
  class GoogleCloudAiplatformV1beta1SafetyInput
22793
22274
  include Google::Apis::Core::Hashable
@@ -24383,6 +23864,107 @@ module Google
24383
23864
  end
24384
23865
  end
24385
23866
 
23867
+ # Metrics for general pairwise text generation evaluation results.
23868
+ class GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics
23869
+ include Google::Apis::Core::Hashable
23870
+
23871
+ # Fraction of cases where the autorater agreed with the human raters.
23872
+ # Corresponds to the JSON property `accuracy`
23873
+ # @return [Float]
23874
+ attr_accessor :accuracy
23875
+
23876
+ # Percentage of time the autorater decided the baseline model had the better
23877
+ # response.
23878
+ # Corresponds to the JSON property `baselineModelWinRate`
23879
+ # @return [Float]
23880
+ attr_accessor :baseline_model_win_rate
23881
+
23882
+ # A measurement of agreement between the autorater and human raters that takes
23883
+ # the likelihood of random agreement into account.
23884
+ # Corresponds to the JSON property `cohensKappa`
23885
+ # @return [Float]
23886
+ attr_accessor :cohens_kappa
23887
+
23888
+ # Harmonic mean of precision and recall.
23889
+ # Corresponds to the JSON property `f1Score`
23890
+ # @return [Float]
23891
+ attr_accessor :f1_score
23892
+
23893
+ # Number of examples where the autorater chose the baseline model, but humans
23894
+ # preferred the model.
23895
+ # Corresponds to the JSON property `falseNegativeCount`
23896
+ # @return [Fixnum]
23897
+ attr_accessor :false_negative_count
23898
+
23899
+ # Number of examples where the autorater chose the model, but humans preferred
23900
+ # the baseline model.
23901
+ # Corresponds to the JSON property `falsePositiveCount`
23902
+ # @return [Fixnum]
23903
+ attr_accessor :false_positive_count
23904
+
23905
+ # Percentage of time humans decided the baseline model had the better response.
23906
+ # Corresponds to the JSON property `humanPreferenceBaselineModelWinRate`
23907
+ # @return [Float]
23908
+ attr_accessor :human_preference_baseline_model_win_rate
23909
+
23910
+ # Percentage of time humans decided the model had the better response.
23911
+ # Corresponds to the JSON property `humanPreferenceModelWinRate`
23912
+ # @return [Float]
23913
+ attr_accessor :human_preference_model_win_rate
23914
+
23915
+ # Percentage of time the autorater decided the model had the better response.
23916
+ # Corresponds to the JSON property `modelWinRate`
23917
+ # @return [Float]
23918
+ attr_accessor :model_win_rate
23919
+
23920
+ # Fraction of cases where the autorater and humans thought the model had a
23921
+ # better response out of all cases where the autorater thought the model had a
23922
+ # better response. True positive divided by all positive.
23923
+ # Corresponds to the JSON property `precision`
23924
+ # @return [Float]
23925
+ attr_accessor :precision
23926
+
23927
+ # Fraction of cases where the autorater and humans thought the model had a
23928
+ # better response out of all cases where the humans thought the model had a
23929
+ # better response.
23930
+ # Corresponds to the JSON property `recall`
23931
+ # @return [Float]
23932
+ attr_accessor :recall
23933
+
23934
+ # Number of examples where both the autorater and humans decided that the model
23935
+ # had the worse response.
23936
+ # Corresponds to the JSON property `trueNegativeCount`
23937
+ # @return [Fixnum]
23938
+ attr_accessor :true_negative_count
23939
+
23940
+ # Number of examples where both the autorater and humans decided that the model
23941
+ # had the better response.
23942
+ # Corresponds to the JSON property `truePositiveCount`
23943
+ # @return [Fixnum]
23944
+ attr_accessor :true_positive_count
23945
+
23946
+ def initialize(**args)
23947
+ update!(**args)
23948
+ end
23949
+
23950
+ # Update properties of this object
23951
+ def update!(**args)
23952
+ @accuracy = args[:accuracy] if args.key?(:accuracy)
23953
+ @baseline_model_win_rate = args[:baseline_model_win_rate] if args.key?(:baseline_model_win_rate)
23954
+ @cohens_kappa = args[:cohens_kappa] if args.key?(:cohens_kappa)
23955
+ @f1_score = args[:f1_score] if args.key?(:f1_score)
23956
+ @false_negative_count = args[:false_negative_count] if args.key?(:false_negative_count)
23957
+ @false_positive_count = args[:false_positive_count] if args.key?(:false_positive_count)
23958
+ @human_preference_baseline_model_win_rate = args[:human_preference_baseline_model_win_rate] if args.key?(:human_preference_baseline_model_win_rate)
23959
+ @human_preference_model_win_rate = args[:human_preference_model_win_rate] if args.key?(:human_preference_model_win_rate)
23960
+ @model_win_rate = args[:model_win_rate] if args.key?(:model_win_rate)
23961
+ @precision = args[:precision] if args.key?(:precision)
23962
+ @recall = args[:recall] if args.key?(:recall)
23963
+ @true_negative_count = args[:true_negative_count] if args.key?(:true_negative_count)
23964
+ @true_positive_count = args[:true_positive_count] if args.key?(:true_positive_count)
23965
+ end
23966
+ end
23967
+
24386
23968
  #
24387
23969
  class GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsQuestionAnsweringEvaluationMetrics
24388
23970
  include Google::Apis::Core::Hashable
@@ -29719,13 +29301,13 @@ module Google
29719
29301
  attr_accessor :enable_custom_service_account
29720
29302
  alias_method :enable_custom_service_account?, :enable_custom_service_account
29721
29303
 
29722
- # Optional. Default service account that this PersistentResource's workloads run
29723
- # as. The workloads include: * Any runtime specified via `ResourceRuntimeSpec`
29724
- # on creation time, for example, Ray. * Jobs submitted to PersistentResource, if
29725
- # no other service account specified in the job specs. Only works when custom
29726
- # service account is enabled and users have the `iam.serviceAccounts.actAs`
29727
- # permission on this service account. Required if any containers are specified
29728
- # in `ResourceRuntimeSpec`.
29304
+ # Optional. Required when all below conditions are met * `
29305
+ # enable_custom_service_account` is true; * any runtime is specified via `
29306
+ # ResourceRuntimeSpec` on creation time, for example, Ray The users must have `
29307
+ # iam.serviceAccounts.actAs` permission on this service account and then the
29308
+ # specified runtime containers will run as it. Do not set this field if you want
29309
+ # to submit jobs using custom service account to this PersistentResource after
29310
+ # creation, but only specify the `service_account` inside the job.
29729
29311
  # Corresponds to the JSON property `serviceAccount`
29730
29312
  # @return [String]
29731
29313
  attr_accessor :service_account
@@ -33639,80 +33221,6 @@ module Google
33639
33221
  end
33640
33222
  end
33641
33223
 
33642
- # Config for uploading RagFile.
33643
- class GoogleCloudAiplatformV1beta1UploadRagFileConfig
33644
- include Google::Apis::Core::Hashable
33645
-
33646
- # Specifies the size and overlap of chunks for RagFiles.
33647
- # Corresponds to the JSON property `ragFileChunkingConfig`
33648
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
33649
- attr_accessor :rag_file_chunking_config
33650
-
33651
- def initialize(**args)
33652
- update!(**args)
33653
- end
33654
-
33655
- # Update properties of this object
33656
- def update!(**args)
33657
- @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
33658
- end
33659
- end
33660
-
33661
- # Request message for VertexRagDataService.UploadRagFile.
33662
- class GoogleCloudAiplatformV1beta1UploadRagFileRequest
33663
- include Google::Apis::Core::Hashable
33664
-
33665
- # A RagFile contains user data for chunking, embedding and indexing.
33666
- # Corresponds to the JSON property `ragFile`
33667
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
33668
- attr_accessor :rag_file
33669
-
33670
- # Config for uploading RagFile.
33671
- # Corresponds to the JSON property `uploadRagFileConfig`
33672
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileConfig]
33673
- attr_accessor :upload_rag_file_config
33674
-
33675
- def initialize(**args)
33676
- update!(**args)
33677
- end
33678
-
33679
- # Update properties of this object
33680
- def update!(**args)
33681
- @rag_file = args[:rag_file] if args.key?(:rag_file)
33682
- @upload_rag_file_config = args[:upload_rag_file_config] if args.key?(:upload_rag_file_config)
33683
- end
33684
- end
33685
-
33686
- # Response message for VertexRagDataService.UploadRagFile.
33687
- class GoogleCloudAiplatformV1beta1UploadRagFileResponse
33688
- include Google::Apis::Core::Hashable
33689
-
33690
- # The `Status` type defines a logical error model that is suitable for different
33691
- # programming environments, including REST APIs and RPC APIs. It is used by [
33692
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
33693
- # data: error code, error message, and error details. You can find out more
33694
- # about this error model and how to work with it in the [API Design Guide](https:
33695
- # //cloud.google.com/apis/design/errors).
33696
- # Corresponds to the JSON property `error`
33697
- # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
33698
- attr_accessor :error
33699
-
33700
- # A RagFile contains user data for chunking, embedding and indexing.
33701
- # Corresponds to the JSON property `ragFile`
33702
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
33703
- attr_accessor :rag_file
33704
-
33705
- def initialize(**args)
33706
- update!(**args)
33707
- end
33708
-
33709
- # Update properties of this object
33710
- def update!(**args)
33711
- @error = args[:error] if args.key?(:error)
33712
- @rag_file = args[:rag_file] if args.key?(:rag_file)
33713
- end
33714
- end
33715
-
33716
33224
  # Request message for IndexService.UpsertDatapoints
33717
33225
  class GoogleCloudAiplatformV1beta1UpsertDatapointsRequest
33718
33226
  include Google::Apis::Core::Hashable
@@ -36471,6 +35979,33 @@ module Google
36471
35979
  end
36472
35980
  end
36473
35981
 
35982
+ #
35983
+ class LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata
35984
+ include Google::Apis::Core::Hashable
35985
+
35986
+ # Latency spent on fact retrievals. There might be multiple retrievals from
35987
+ # different fact providers.
35988
+ # Corresponds to the JSON property `factRetrievalMillisecondsByProvider`
35989
+ # @return [Hash<String,Fixnum>]
35990
+ attr_accessor :fact_retrieval_milliseconds_by_provider
35991
+
35992
+ # Latency spent on prompt2query. The procedure generates a search-friendly query
35993
+ # given the original prompt.
35994
+ # Corresponds to the JSON property `prompt2queryMilliseconds`
35995
+ # @return [Fixnum]
35996
+ attr_accessor :prompt2query_milliseconds
35997
+
35998
+ def initialize(**args)
35999
+ update!(**args)
36000
+ end
36001
+
36002
+ # Update properties of this object
36003
+ def update!(**args)
36004
+ @fact_retrieval_milliseconds_by_provider = args[:fact_retrieval_milliseconds_by_provider] if args.key?(:fact_retrieval_milliseconds_by_provider)
36005
+ @prompt2query_milliseconds = args[:prompt2query_milliseconds] if args.key?(:prompt2query_milliseconds)
36006
+ end
36007
+ end
36008
+
36474
36009
  # This is per harm.
36475
36010
  class LearningGenaiRootRaiOutput
36476
36011
  include Google::Apis::Core::Hashable
@@ -37156,6 +36691,35 @@ module Google
37156
36691
  end
37157
36692
  end
37158
36693
 
36694
+ # Each TranslationRequestInfo corresponds to a request sent to the translation
36695
+ # server.
36696
+ class LearningGenaiRootTranslationRequestInfo
36697
+ include Google::Apis::Core::Hashable
36698
+
36699
+ # The ISO-639 language code of source text in the initial request, detected
36700
+ # automatically, if no source language was passed within the initial request. If
36701
+ # the source language was passed, auto-detection of the language does not occur
36702
+ # and this field is empty.
36703
+ # Corresponds to the JSON property `detectedLanguageCodes`
36704
+ # @return [Array<String>]
36705
+ attr_accessor :detected_language_codes
36706
+
36707
+ # The sum of the size of all the contents in the request.
36708
+ # Corresponds to the JSON property `totalContentSize`
36709
+ # @return [Fixnum]
36710
+ attr_accessor :total_content_size
36711
+
36712
+ def initialize(**args)
36713
+ update!(**args)
36714
+ end
36715
+
36716
+ # Update properties of this object
36717
+ def update!(**args)
36718
+ @detected_language_codes = args[:detected_language_codes] if args.key?(:detected_language_codes)
36719
+ @total_content_size = args[:total_content_size] if args.key?(:total_content_size)
36720
+ end
36721
+ end
36722
+
37159
36723
  # LINT.IfChange This metadata contains additional information required for
37160
36724
  # debugging.
37161
36725
  class LearningServingLlmMessageMetadata