google-apis-aiplatform_v1 0.18.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)
@@ -802,6 +808,11 @@ module Google
802
808
  # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob]
803
809
  attr_accessor :inline_data
804
810
 
811
+ # Metadata provides extra info for building the LM Root request.
812
+ # Corresponds to the JSON property `lmRootMetadata`
813
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartLmRootMetadata]
814
+ attr_accessor :lm_root_metadata
815
+
805
816
  # Text input.
806
817
  # Corresponds to the JSON property `text`
807
818
  # @return [String]
@@ -823,6 +834,7 @@ module Google
823
834
  @function_call = args[:function_call] if args.key?(:function_call)
824
835
  @function_response = args[:function_response] if args.key?(:function_response)
825
836
  @inline_data = args[:inline_data] if args.key?(:inline_data)
837
+ @lm_root_metadata = args[:lm_root_metadata] if args.key?(:lm_root_metadata)
826
838
  @text = args[:text] if args.key?(:text)
827
839
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
828
840
  end
@@ -911,6 +923,25 @@ module Google
911
923
  end
912
924
  end
913
925
 
926
+ # Metadata provides extra info for building the LM Root request.
927
+ class CloudAiNlLlmProtoServicePartLmRootMetadata
928
+ include Google::Apis::Core::Hashable
929
+
930
+ # Chunk id that will be used when mapping the part to the LM Root's chunk.
931
+ # Corresponds to the JSON property `chunkId`
932
+ # @return [String]
933
+ attr_accessor :chunk_id
934
+
935
+ def initialize(**args)
936
+ update!(**args)
937
+ end
938
+
939
+ # Update properties of this object
940
+ def update!(**args)
941
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
942
+ end
943
+ end
944
+
914
945
  # Metadata describes the input video content.
915
946
  class CloudAiNlLlmProtoServicePartVideoMetadata
916
947
  include Google::Apis::Core::Hashable
@@ -1005,6 +1036,12 @@ module Google
1005
1036
  # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal>]
1006
1037
  attr_accessor :rai_signals
1007
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
+
1008
1045
  # Whether the text triggered the blocklist.
1009
1046
  # Corresponds to the JSON property `triggeredBlocklist`
1010
1047
  # @return [Boolean]
@@ -1038,6 +1075,7 @@ module Google
1038
1075
  @filtered = args[:filtered] if args.key?(:filtered)
1039
1076
  @language_filter_result = args[:language_filter_result] if args.key?(:language_filter_result)
1040
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)
1041
1079
  @triggered_blocklist = args[:triggered_blocklist] if args.key?(:triggered_blocklist)
1042
1080
  @triggered_recitation = args[:triggered_recitation] if args.key?(:triggered_recitation)
1043
1081
  @triggered_safety_filter = args[:triggered_safety_filter] if args.key?(:triggered_safety_filter)
@@ -2941,11 +2979,11 @@ module Google
2941
2979
  end
2942
2980
  end
2943
2981
 
2944
- # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
2982
+ # Content blob. It's preferred to send as text directly rather than raw bytes.
2945
2983
  class GoogleCloudAiplatformV1Blob
2946
2984
  include Google::Apis::Core::Hashable
2947
2985
 
2948
- # Required. Raw bytes for media formats.
2986
+ # Required. Raw bytes.
2949
2987
  # Corresponds to the JSON property `data`
2950
2988
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2951
2989
  # @return [String]
@@ -3101,6 +3139,19 @@ module Google
3101
3139
  end
3102
3140
  end
3103
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
+
3104
3155
  # A response candidate generated from the model.
3105
3156
  class GoogleCloudAiplatformV1Candidate
3106
3157
  include Google::Apis::Core::Hashable
@@ -5667,6 +5718,13 @@ module Google
5667
5718
  attr_accessor :disable_container_logging
5668
5719
  alias_method :disable_container_logging?, :disable_container_logging
5669
5720
 
5721
+ # If true, deploy the model without explainable feature, regardless the
5722
+ # existence of Model.explanation_spec or explanation_spec.
5723
+ # Corresponds to the JSON property `disableExplanations`
5724
+ # @return [Boolean]
5725
+ attr_accessor :disable_explanations
5726
+ alias_method :disable_explanations?, :disable_explanations
5727
+
5670
5728
  # The display name of the DeployedModel. If not provided upon creation, the
5671
5729
  # Model's display_name is used.
5672
5730
  # Corresponds to the JSON property `displayName`
@@ -5744,6 +5802,7 @@ module Google
5744
5802
  @create_time = args[:create_time] if args.key?(:create_time)
5745
5803
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
5746
5804
  @disable_container_logging = args[:disable_container_logging] if args.key?(:disable_container_logging)
5805
+ @disable_explanations = args[:disable_explanations] if args.key?(:disable_explanations)
5747
5806
  @display_name = args[:display_name] if args.key?(:display_name)
5748
5807
  @enable_access_logging = args[:enable_access_logging] if args.key?(:enable_access_logging)
5749
5808
  @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
@@ -8194,6 +8253,13 @@ module Google
8194
8253
  # @return [String]
8195
8254
  attr_accessor :create_time
8196
8255
 
8256
+ # The dedicated serving endpoint for this FeatureOnlineStore. Only need to set
8257
+ # when you choose Optimized storage type. Public endpoint is provisioned by
8258
+ # default.
8259
+ # Corresponds to the JSON property `dedicatedServingEndpoint`
8260
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint]
8261
+ attr_accessor :dedicated_serving_endpoint
8262
+
8197
8263
  # Optional. Used to perform consistent read-modify-write updates. If not set, a
8198
8264
  # blind "overwrite" update happens.
8199
8265
  # Corresponds to the JSON property `etag`
@@ -8218,6 +8284,11 @@ module Google
8218
8284
  # @return [String]
8219
8285
  attr_accessor :name
8220
8286
 
8287
+ # Optimized storage type
8288
+ # Corresponds to the JSON property `optimized`
8289
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStoreOptimized]
8290
+ attr_accessor :optimized
8291
+
8221
8292
  # Output only. State of the featureOnlineStore.
8222
8293
  # Corresponds to the JSON property `state`
8223
8294
  # @return [String]
@@ -8236,9 +8307,11 @@ module Google
8236
8307
  def update!(**args)
8237
8308
  @bigtable = args[:bigtable] if args.key?(:bigtable)
8238
8309
  @create_time = args[:create_time] if args.key?(:create_time)
8310
+ @dedicated_serving_endpoint = args[:dedicated_serving_endpoint] if args.key?(:dedicated_serving_endpoint)
8239
8311
  @etag = args[:etag] if args.key?(:etag)
8240
8312
  @labels = args[:labels] if args.key?(:labels)
8241
8313
  @name = args[:name] if args.key?(:name)
8314
+ @optimized = args[:optimized] if args.key?(:optimized)
8242
8315
  @state = args[:state] if args.key?(:state)
8243
8316
  @update_time = args[:update_time] if args.key?(:update_time)
8244
8317
  end
@@ -8301,6 +8374,41 @@ module Google
8301
8374
  end
8302
8375
  end
8303
8376
 
8377
+ # The dedicated serving endpoint for this FeatureOnlineStore. Only need to set
8378
+ # when you choose Optimized storage type. Public endpoint is provisioned by
8379
+ # default.
8380
+ class GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint
8381
+ include Google::Apis::Core::Hashable
8382
+
8383
+ # Output only. This field will be populated with the domain name to use for this
8384
+ # FeatureOnlineStore
8385
+ # Corresponds to the JSON property `publicEndpointDomainName`
8386
+ # @return [String]
8387
+ attr_accessor :public_endpoint_domain_name
8388
+
8389
+ def initialize(**args)
8390
+ update!(**args)
8391
+ end
8392
+
8393
+ # Update properties of this object
8394
+ def update!(**args)
8395
+ @public_endpoint_domain_name = args[:public_endpoint_domain_name] if args.key?(:public_endpoint_domain_name)
8396
+ end
8397
+ end
8398
+
8399
+ # Optimized storage type
8400
+ class GoogleCloudAiplatformV1FeatureOnlineStoreOptimized
8401
+ include Google::Apis::Core::Hashable
8402
+
8403
+ def initialize(**args)
8404
+ update!(**args)
8405
+ end
8406
+
8407
+ # Update properties of this object
8408
+ def update!(**args)
8409
+ end
8410
+ end
8411
+
8304
8412
  # Selector for Features of an EntityType.
8305
8413
  class GoogleCloudAiplatformV1FeatureSelector
8306
8414
  include Google::Apis::Core::Hashable
@@ -8578,6 +8686,11 @@ module Google
8578
8686
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource]
8579
8687
  attr_accessor :feature_registry_source
8580
8688
 
8689
+ # Configuration for vector indexing.
8690
+ # Corresponds to the JSON property `indexConfig`
8691
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewIndexConfig]
8692
+ attr_accessor :index_config
8693
+
8581
8694
  # Optional. The labels with user-defined metadata to organize your FeatureViews.
8582
8695
  # Label keys and values can be no longer than 64 characters (Unicode codepoints),
8583
8696
  # can only contain lowercase letters, numeric characters, underscores and
@@ -8617,6 +8730,7 @@ module Google
8617
8730
  @create_time = args[:create_time] if args.key?(:create_time)
8618
8731
  @etag = args[:etag] if args.key?(:etag)
8619
8732
  @feature_registry_source = args[:feature_registry_source] if args.key?(:feature_registry_source)
8733
+ @index_config = args[:index_config] if args.key?(:index_config)
8620
8734
  @labels = args[:labels] if args.key?(:labels)
8621
8735
  @name = args[:name] if args.key?(:name)
8622
8736
  @sync_config = args[:sync_config] if args.key?(:sync_config)
@@ -8746,6 +8860,100 @@ module Google
8746
8860
  end
8747
8861
  end
8748
8862
 
8863
+ # Configuration for vector indexing.
8864
+ class GoogleCloudAiplatformV1FeatureViewIndexConfig
8865
+ include Google::Apis::Core::Hashable
8866
+
8867
+ # Configuration options for using brute force search.
8868
+ # Corresponds to the JSON property `bruteForceConfig`
8869
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig]
8870
+ attr_accessor :brute_force_config
8871
+
8872
+ # Optional. Column of crowding. This column contains crowding attribute which is
8873
+ # a constraint on a neighbor list produced by FeatureOnlineStoreService.
8874
+ # SearchNearestEntities to diversify search results. If NearestNeighborQuery.
8875
+ # per_crowding_attribute_neighbor_count is set to K in
8876
+ # SearchNearestEntitiesRequest, it's guaranteed that no more than K entities of
8877
+ # the same crowding attribute are returned in the response.
8878
+ # Corresponds to the JSON property `crowdingColumn`
8879
+ # @return [String]
8880
+ attr_accessor :crowding_column
8881
+
8882
+ # Optional. The distance measure used in nearest neighbor search.
8883
+ # Corresponds to the JSON property `distanceMeasureType`
8884
+ # @return [String]
8885
+ attr_accessor :distance_measure_type
8886
+
8887
+ # Optional. Column of embedding. This column contains the source data to create
8888
+ # index for vector search. embedding_column must be set when using vector search.
8889
+ # Corresponds to the JSON property `embeddingColumn`
8890
+ # @return [String]
8891
+ attr_accessor :embedding_column
8892
+
8893
+ # Optional. The number of dimensions of the input embedding.
8894
+ # Corresponds to the JSON property `embeddingDimension`
8895
+ # @return [Fixnum]
8896
+ attr_accessor :embedding_dimension
8897
+
8898
+ # Optional. Columns of features that're used to filter vector search results.
8899
+ # Corresponds to the JSON property `filterColumns`
8900
+ # @return [Array<String>]
8901
+ attr_accessor :filter_columns
8902
+
8903
+ # Configuration options for the tree-AH algorithm.
8904
+ # Corresponds to the JSON property `treeAhConfig`
8905
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAhConfig]
8906
+ attr_accessor :tree_ah_config
8907
+
8908
+ def initialize(**args)
8909
+ update!(**args)
8910
+ end
8911
+
8912
+ # Update properties of this object
8913
+ def update!(**args)
8914
+ @brute_force_config = args[:brute_force_config] if args.key?(:brute_force_config)
8915
+ @crowding_column = args[:crowding_column] if args.key?(:crowding_column)
8916
+ @distance_measure_type = args[:distance_measure_type] if args.key?(:distance_measure_type)
8917
+ @embedding_column = args[:embedding_column] if args.key?(:embedding_column)
8918
+ @embedding_dimension = args[:embedding_dimension] if args.key?(:embedding_dimension)
8919
+ @filter_columns = args[:filter_columns] if args.key?(:filter_columns)
8920
+ @tree_ah_config = args[:tree_ah_config] if args.key?(:tree_ah_config)
8921
+ end
8922
+ end
8923
+
8924
+ # Configuration options for using brute force search.
8925
+ class GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig
8926
+ include Google::Apis::Core::Hashable
8927
+
8928
+ def initialize(**args)
8929
+ update!(**args)
8930
+ end
8931
+
8932
+ # Update properties of this object
8933
+ def update!(**args)
8934
+ end
8935
+ end
8936
+
8937
+ # Configuration options for the tree-AH algorithm.
8938
+ class GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAhConfig
8939
+ include Google::Apis::Core::Hashable
8940
+
8941
+ # Optional. Number of embeddings on each leaf node. The default value is 1000 if
8942
+ # not set.
8943
+ # Corresponds to the JSON property `leafNodeEmbeddingCount`
8944
+ # @return [Fixnum]
8945
+ attr_accessor :leaf_node_embedding_count
8946
+
8947
+ def initialize(**args)
8948
+ update!(**args)
8949
+ end
8950
+
8951
+ # Update properties of this object
8952
+ def update!(**args)
8953
+ @leaf_node_embedding_count = args[:leaf_node_embedding_count] if args.key?(:leaf_node_embedding_count)
8954
+ end
8955
+ end
8956
+
8749
8957
  # FeatureViewSync is a representation of sync operation which copies data from
8750
8958
  # data source to Feature View in Online Store.
8751
8959
  class GoogleCloudAiplatformV1FeatureViewSync
@@ -9320,7 +9528,7 @@ module Google
9320
9528
  end
9321
9529
  end
9322
9530
 
9323
- # LINT.IfChange The request message for MatchService.FindNeighbors.
9531
+ # The request message for MatchService.FindNeighbors.
9324
9532
  class GoogleCloudAiplatformV1FindNeighborsRequest
9325
9533
  include Google::Apis::Core::Hashable
9326
9534
 
@@ -9682,6 +9890,14 @@ module Google
9682
9890
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting>]
9683
9891
  attr_accessor :safety_settings
9684
9892
 
9893
+ # The base structured datatype containing multi-part content of a message. A `
9894
+ # Content` includes a `role` field designating the producer of the `Content` and
9895
+ # a `parts` field containing multi-part data that contains the content of the
9896
+ # message turn.
9897
+ # Corresponds to the JSON property `systemInstruction`
9898
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
9899
+ attr_accessor :system_instruction
9900
+
9685
9901
  # Optional. A list of `Tools` the model may use to generate the next response. A
9686
9902
  # `Tool` is a piece of code that enables the system to interact with external
9687
9903
  # systems to perform an action, or set of actions, outside of knowledge and
@@ -9699,6 +9915,7 @@ module Google
9699
9915
  @contents = args[:contents] if args.key?(:contents)
9700
9916
  @generation_config = args[:generation_config] if args.key?(:generation_config)
9701
9917
  @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
9918
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
9702
9919
  @tools = args[:tools] if args.key?(:tools)
9703
9920
  end
9704
9921
  end
@@ -9805,11 +10022,30 @@ module Google
9805
10022
  # @return [Fixnum]
9806
10023
  attr_accessor :candidate_count
9807
10024
 
10025
+ # Optional. Frequency penalties.
10026
+ # Corresponds to the JSON property `frequencyPenalty`
10027
+ # @return [Float]
10028
+ attr_accessor :frequency_penalty
10029
+
9808
10030
  # Optional. The maximum number of output tokens to generate per message.
9809
10031
  # Corresponds to the JSON property `maxOutputTokens`
9810
10032
  # @return [Fixnum]
9811
10033
  attr_accessor :max_output_tokens
9812
10034
 
10035
+ # Optional. Positive penalties.
10036
+ # Corresponds to the JSON property `presencePenalty`
10037
+ # @return [Float]
10038
+ attr_accessor :presence_penalty
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
+
9813
10049
  # Optional. Stop sequences.
9814
10050
  # Corresponds to the JSON property `stopSequences`
9815
10051
  # @return [Array<String>]
@@ -9837,7 +10073,10 @@ module Google
9837
10073
  # Update properties of this object
9838
10074
  def update!(**args)
9839
10075
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
10076
+ @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
9840
10077
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
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)
9841
10080
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
9842
10081
  @temperature = args[:temperature] if args.key?(:temperature)
9843
10082
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -12398,6 +12637,32 @@ module Google
12398
12637
  end
12399
12638
  end
12400
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
+
12401
12666
  # Request message for VizierService.LookupStudy.
12402
12667
  class GoogleCloudAiplatformV1LookupStudyRequest
12403
12668
  include Google::Apis::Core::Hashable
@@ -16157,7 +16422,7 @@ module Google
16157
16422
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse]
16158
16423
  attr_accessor :function_response
16159
16424
 
16160
- # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
16425
+ # Content blob. It's preferred to send as text directly rather than raw bytes.
16161
16426
  # Corresponds to the JSON property `inlineData`
16162
16427
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
16163
16428
  attr_accessor :inline_data
@@ -17416,11 +17681,6 @@ module Google
17416
17681
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
17417
17682
  attr_accessor :deploy_gke
17418
17683
 
17419
- # Multiple setups to deploy the PublisherModel.
17420
- # Corresponds to the JSON property `multiDeployVertex`
17421
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex]
17422
- attr_accessor :multi_deploy_vertex
17423
-
17424
17684
  # The regional resource name or the URI. Key is region, e.g., us-central1,
17425
17685
  # europe-west2, global, etc..
17426
17686
  # Corresponds to the JSON property `openEvaluationPipeline`
@@ -17487,7 +17747,6 @@ module Google
17487
17747
  @create_application = args[:create_application] if args.key?(:create_application)
17488
17748
  @deploy = args[:deploy] if args.key?(:deploy)
17489
17749
  @deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
17490
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
17491
17750
  @open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
17492
17751
  @open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
17493
17752
  @open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
@@ -17597,25 +17856,6 @@ module Google
17597
17856
  end
17598
17857
  end
17599
17858
 
17600
- # Multiple setups to deploy the PublisherModel.
17601
- class GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
17602
- include Google::Apis::Core::Hashable
17603
-
17604
- # Optional. One click deployment configurations.
17605
- # Corresponds to the JSON property `multiDeployVertex`
17606
- # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy>]
17607
- attr_accessor :multi_deploy_vertex
17608
-
17609
- def initialize(**args)
17610
- update!(**args)
17611
- end
17612
-
17613
- # Update properties of this object
17614
- def update!(**args)
17615
- @multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
17616
- end
17617
- end
17618
-
17619
17859
  # Open fine tuning pipelines.
17620
17860
  class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
17621
17861
  include Google::Apis::Core::Hashable
@@ -18141,73 +18381,18 @@ module Google
18141
18381
  end
18142
18382
  end
18143
18383
 
18144
- # Configuration for the Ray metrics.
18145
- class GoogleCloudAiplatformV1RayMetricSpec
18146
- include Google::Apis::Core::Hashable
18147
-
18148
- # Optional. Flag to disable the Ray metrics collection.
18149
- # Corresponds to the JSON property `disabled`
18150
- # @return [Boolean]
18151
- attr_accessor :disabled
18152
- alias_method :disabled?, :disabled
18153
-
18154
- def initialize(**args)
18155
- update!(**args)
18156
- end
18157
-
18158
- # Update properties of this object
18159
- def update!(**args)
18160
- @disabled = args[:disabled] if args.key?(:disabled)
18161
- end
18162
- end
18163
-
18164
18384
  # Configuration information for the Ray cluster. For experimental launch, Ray
18165
18385
  # cluster creation and Persistent cluster creation are 1:1 mapping: We will
18166
18386
  # provision all the nodes within the Persistent cluster as Ray nodes.
18167
18387
  class GoogleCloudAiplatformV1RaySpec
18168
18388
  include Google::Apis::Core::Hashable
18169
18389
 
18170
- # Optional. This will be used to indicate which resource pool will serve as the
18171
- # Ray head node(the first node within that pool). Will use the machine from the
18172
- # first workerpool as the head node by default if this field isn't set.
18173
- # Corresponds to the JSON property `headNodeResourcePoolId`
18174
- # @return [String]
18175
- attr_accessor :head_node_resource_pool_id
18176
-
18177
- # Optional. Default image for user to choose a preferred ML framework (for
18178
- # example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](
18179
- # https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either
18180
- # this or the resource_pool_images is required. Use this field if you need all
18181
- # the resource pools to have the same Ray image. Otherwise, use the `@code
18182
- # resource_pool_images` field.
18183
- # Corresponds to the JSON property `imageUri`
18184
- # @return [String]
18185
- attr_accessor :image_uri
18186
-
18187
- # Configuration for the Ray metrics.
18188
- # Corresponds to the JSON property `rayMetricSpec`
18189
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RayMetricSpec]
18190
- attr_accessor :ray_metric_spec
18191
-
18192
- # Optional. Required if image_uri isn't set. A map of resource_pool_id to
18193
- # prebuild Ray image if user need to use different images for different head/
18194
- # worker pools. This map needs to cover all the resource pool ids. Example: ` "
18195
- # ray_head_node_pool": "head image" "ray_worker_node_pool1": "worker image" "
18196
- # ray_worker_node_pool2": "another worker image" `
18197
- # Corresponds to the JSON property `resourcePoolImages`
18198
- # @return [Hash<String,String>]
18199
- attr_accessor :resource_pool_images
18200
-
18201
18390
  def initialize(**args)
18202
18391
  update!(**args)
18203
18392
  end
18204
18393
 
18205
18394
  # Update properties of this object
18206
18395
  def update!(**args)
18207
- @head_node_resource_pool_id = args[:head_node_resource_pool_id] if args.key?(:head_node_resource_pool_id)
18208
- @image_uri = args[:image_uri] if args.key?(:image_uri)
18209
- @ray_metric_spec = args[:ray_metric_spec] if args.key?(:ray_metric_spec)
18210
- @resource_pool_images = args[:resource_pool_images] if args.key?(:resource_pool_images)
18211
18396
  end
18212
18397
  end
18213
18398
 
@@ -18715,29 +18900,12 @@ module Google
18715
18900
  class GoogleCloudAiplatformV1ResourceRuntime
18716
18901
  include Google::Apis::Core::Hashable
18717
18902
 
18718
- # Output only. URIs for user to connect to the Cluster. Example: ` "
18719
- # RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" "RAY_DASHBOARD_URI": "ray-
18720
- # dashboard-address:8888" `
18721
- # Corresponds to the JSON property `accessUris`
18722
- # @return [Hash<String,String>]
18723
- attr_accessor :access_uris
18724
-
18725
- # Output only. The resource name of NotebookRuntimeTemplate for the RoV
18726
- # Persistent Cluster The NotebokRuntimeTemplate is created in the same VPC (if
18727
- # set), and with the same Ray and Python version as the Persistent Cluster.
18728
- # Example: "projects/1000/locations/us-central1/notebookRuntimeTemplates/abc123"
18729
- # Corresponds to the JSON property `notebookRuntimeTemplate`
18730
- # @return [String]
18731
- attr_accessor :notebook_runtime_template
18732
-
18733
18903
  def initialize(**args)
18734
18904
  update!(**args)
18735
18905
  end
18736
18906
 
18737
18907
  # Update properties of this object
18738
18908
  def update!(**args)
18739
- @access_uris = args[:access_uris] if args.key?(:access_uris)
18740
- @notebook_runtime_template = args[:notebook_runtime_template] if args.key?(:notebook_runtime_template)
18741
18909
  end
18742
18910
  end
18743
18911
 
@@ -20376,6 +20544,107 @@ module Google
20376
20544
  end
20377
20545
  end
20378
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
+
20379
20648
  #
20380
20649
  class GoogleCloudAiplatformV1SchemaModelevaluationMetricsQuestionAnsweringEvaluationMetrics
20381
20650
  include Google::Apis::Core::Hashable
@@ -25860,13 +26129,13 @@ module Google
25860
26129
  attr_accessor :enable_custom_service_account
25861
26130
  alias_method :enable_custom_service_account?, :enable_custom_service_account
25862
26131
 
25863
- # Optional. Default service account that this PersistentResource's workloads run
25864
- # as. The workloads include: * Any runtime specified via `ResourceRuntimeSpec`
25865
- # on creation time, for example, Ray. * Jobs submitted to PersistentResource, if
25866
- # no other service account specified in the job specs. Only works when custom
25867
- # service account is enabled and users have the `iam.serviceAccounts.actAs`
25868
- # permission on this service account. Required if any containers are specified
25869
- # 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.
25870
26139
  # Corresponds to the JSON property `serviceAccount`
25871
26140
  # @return [String]
25872
26141
  attr_accessor :service_account
@@ -27073,6 +27342,222 @@ module Google
27073
27342
  end
27074
27343
  end
27075
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
+
27076
27561
  # Request message for FeatureOnlineStoreAdminService.SyncFeatureView.
27077
27562
  class GoogleCloudAiplatformV1SyncFeatureViewRequest
27078
27563
  include Google::Apis::Core::Hashable
@@ -28198,6 +28683,172 @@ module Google
28198
28683
  end
28199
28684
  end
28200
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
+
28201
28852
  # Runtime operation information for IndexEndpointService.UndeployIndex.
28202
28853
  class GoogleCloudAiplatformV1UndeployIndexOperationMetadata
28203
28854
  include Google::Apis::Core::Hashable
@@ -31126,6 +31777,12 @@ module Google
31126
31777
  # @return [Google::Apis::AiplatformV1::LearningGenaiRootHarmGrailTextHarmType]
31127
31778
  attr_accessor :grail_text_harm_type
31128
31779
 
31780
+ #
31781
+ # Corresponds to the JSON property `imageChild`
31782
+ # @return [Boolean]
31783
+ attr_accessor :image_child
31784
+ alias_method :image_child?, :image_child
31785
+
31129
31786
  #
31130
31787
  # Corresponds to the JSON property `imageCsam`
31131
31788
  # @return [Boolean]
@@ -31173,6 +31830,12 @@ module Google
31173
31830
  # @return [Float]
31174
31831
  attr_accessor :threshold
31175
31832
 
31833
+ #
31834
+ # Corresponds to the JSON property `videoFrameChild`
31835
+ # @return [Boolean]
31836
+ attr_accessor :video_frame_child
31837
+ alias_method :video_frame_child?, :video_frame_child
31838
+
31176
31839
  #
31177
31840
  # Corresponds to the JSON property `videoFrameCsam`
31178
31841
  # @return [Boolean]
@@ -31208,6 +31871,7 @@ module Google
31208
31871
  @fringe = args[:fringe] if args.key?(:fringe)
31209
31872
  @grail_image_harm_type = args[:grail_image_harm_type] if args.key?(:grail_image_harm_type)
31210
31873
  @grail_text_harm_type = args[:grail_text_harm_type] if args.key?(:grail_text_harm_type)
31874
+ @image_child = args[:image_child] if args.key?(:image_child)
31211
31875
  @image_csam = args[:image_csam] if args.key?(:image_csam)
31212
31876
  @image_pedo = args[:image_pedo] if args.key?(:image_pedo)
31213
31877
  @image_porn = args[:image_porn] if args.key?(:image_porn)
@@ -31216,6 +31880,7 @@ module Google
31216
31880
  @safetycat = args[:safetycat] if args.key?(:safetycat)
31217
31881
  @spii = args[:spii] if args.key?(:spii)
31218
31882
  @threshold = args[:threshold] if args.key?(:threshold)
31883
+ @video_frame_child = args[:video_frame_child] if args.key?(:video_frame_child)
31219
31884
  @video_frame_csam = args[:video_frame_csam] if args.key?(:video_frame_csam)
31220
31885
  @video_frame_pedo = args[:video_frame_pedo] if args.key?(:video_frame_pedo)
31221
31886
  @video_frame_porn = args[:video_frame_porn] if args.key?(:video_frame_porn)
@@ -31409,6 +32074,33 @@ module Google
31409
32074
  end
31410
32075
  end
31411
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
+
31412
32104
  # This is per harm.
31413
32105
  class LearningGenaiRootRaiOutput
31414
32106
  include Google::Apis::Core::Hashable
@@ -31633,6 +32325,18 @@ module Google
31633
32325
  # @return [String]
31634
32326
  attr_accessor :model_id
31635
32327
 
32328
+ # If true, the model was selected as a fallback, since no model met requirements.
32329
+ # Corresponds to the JSON property `pickedAsFallback`
32330
+ # @return [Boolean]
32331
+ attr_accessor :picked_as_fallback
32332
+ alias_method :picked_as_fallback?, :picked_as_fallback
32333
+
32334
+ # If true, the model was selected since it met the requriements.
32335
+ # Corresponds to the JSON property `selected`
32336
+ # @return [Boolean]
32337
+ attr_accessor :selected
32338
+ alias_method :selected?, :selected
32339
+
31636
32340
  def initialize(**args)
31637
32341
  update!(**args)
31638
32342
  end
@@ -31641,6 +32345,8 @@ module Google
31641
32345
  def update!(**args)
31642
32346
  @computed_input_token_length = args[:computed_input_token_length] if args.key?(:computed_input_token_length)
31643
32347
  @model_id = args[:model_id] if args.key?(:model_id)
32348
+ @picked_as_fallback = args[:picked_as_fallback] if args.key?(:picked_as_fallback)
32349
+ @selected = args[:selected] if args.key?(:selected)
31644
32350
  end
31645
32351
  end
31646
32352
 
@@ -32080,6 +32786,35 @@ module Google
32080
32786
  end
32081
32787
  end
32082
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
+
32083
32818
  # LINT.IfChange This metadata contains additional information required for
32084
32819
  # debugging.
32085
32820
  class LearningServingLlmMessageMetadata