google-apis-aiplatform_v1beta1 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +2419 -1141
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +1120 -625
- data/lib/google/apis/aiplatform_v1beta1/service.rb +745 -511
- metadata +3 -3
@@ -87,6 +87,11 @@ module Google
|
|
87
87
|
# @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionMedia>]
|
88
88
|
attr_accessor :generated_samples
|
89
89
|
|
90
|
+
# Returns rai error message for filtered videos.
|
91
|
+
# Corresponds to the JSON property `raiErrorMessage`
|
92
|
+
# @return [String]
|
93
|
+
attr_accessor :rai_error_message
|
94
|
+
|
90
95
|
# Returns if any videos were filtered due to RAI policies.
|
91
96
|
# Corresponds to the JSON property `raiMediaFilteredCount`
|
92
97
|
# @return [Fixnum]
|
@@ -109,6 +114,7 @@ module Google
|
|
109
114
|
# Update properties of this object
|
110
115
|
def update!(**args)
|
111
116
|
@generated_samples = args[:generated_samples] if args.key?(:generated_samples)
|
117
|
+
@rai_error_message = args[:rai_error_message] if args.key?(:rai_error_message)
|
112
118
|
@rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
|
113
119
|
@rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
|
114
120
|
@rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
|
@@ -744,6 +750,11 @@ module Google
|
|
744
750
|
class CloudAiNlLlmProtoServiceMessageMetadata
|
745
751
|
include Google::Apis::Core::Hashable
|
746
752
|
|
753
|
+
# Factuality-related debug metadata.
|
754
|
+
# Corresponds to the JSON property `factualityDebugMetadata`
|
755
|
+
# @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata]
|
756
|
+
attr_accessor :factuality_debug_metadata
|
757
|
+
|
747
758
|
# LINT.IfChange This metadata contains additional information required for
|
748
759
|
# debugging.
|
749
760
|
# Corresponds to the JSON property `inputFilterInfo`
|
@@ -767,6 +778,7 @@ module Google
|
|
767
778
|
|
768
779
|
# Update properties of this object
|
769
780
|
def update!(**args)
|
781
|
+
@factuality_debug_metadata = args[:factuality_debug_metadata] if args.key?(:factuality_debug_metadata)
|
770
782
|
@input_filter_info = args[:input_filter_info] if args.key?(:input_filter_info)
|
771
783
|
@model_routing_decision = args[:model_routing_decision] if args.key?(:model_routing_decision)
|
772
784
|
@output_filter_info = args[:output_filter_info] if args.key?(:output_filter_info)
|
@@ -1030,6 +1042,12 @@ module Google
|
|
1030
1042
|
# @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceRaiSignal>]
|
1031
1043
|
attr_accessor :rai_signals
|
1032
1044
|
|
1045
|
+
# Translation request info during RAI for debugging purpose. Each
|
1046
|
+
# TranslationRequestInfo corresponds to a request sent to the translation server.
|
1047
|
+
# Corresponds to the JSON property `translationRequestInfos`
|
1048
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootTranslationRequestInfo>]
|
1049
|
+
attr_accessor :translation_request_infos
|
1050
|
+
|
1033
1051
|
# Whether the text triggered the blocklist.
|
1034
1052
|
# Corresponds to the JSON property `triggeredBlocklist`
|
1035
1053
|
# @return [Boolean]
|
@@ -1063,6 +1081,7 @@ module Google
|
|
1063
1081
|
@filtered = args[:filtered] if args.key?(:filtered)
|
1064
1082
|
@language_filter_result = args[:language_filter_result] if args.key?(:language_filter_result)
|
1065
1083
|
@rai_signals = args[:rai_signals] if args.key?(:rai_signals)
|
1084
|
+
@translation_request_infos = args[:translation_request_infos] if args.key?(:translation_request_infos)
|
1066
1085
|
@triggered_blocklist = args[:triggered_blocklist] if args.key?(:triggered_blocklist)
|
1067
1086
|
@triggered_recitation = args[:triggered_recitation] if args.key?(:triggered_recitation)
|
1068
1087
|
@triggered_safety_filter = args[:triggered_safety_filter] if args.key?(:triggered_safety_filter)
|
@@ -1893,11 +1912,6 @@ module Google
|
|
1893
1912
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig]
|
1894
1913
|
attr_accessor :http_basic_auth_config
|
1895
1914
|
|
1896
|
-
# Empty message, used to indicate no authentication for an endpoint.
|
1897
|
-
# Corresponds to the JSON property `noAuth`
|
1898
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigNoAuth]
|
1899
|
-
attr_accessor :no_auth
|
1900
|
-
|
1901
1915
|
# Config for user oauth.
|
1902
1916
|
# Corresponds to the JSON property `oauthConfig`
|
1903
1917
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig]
|
@@ -1918,7 +1932,6 @@ module Google
|
|
1918
1932
|
@auth_type = args[:auth_type] if args.key?(:auth_type)
|
1919
1933
|
@google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
|
1920
1934
|
@http_basic_auth_config = args[:http_basic_auth_config] if args.key?(:http_basic_auth_config)
|
1921
|
-
@no_auth = args[:no_auth] if args.key?(:no_auth)
|
1922
1935
|
@oauth_config = args[:oauth_config] if args.key?(:oauth_config)
|
1923
1936
|
@oidc_config = args[:oidc_config] if args.key?(:oidc_config)
|
1924
1937
|
end
|
@@ -2008,19 +2021,6 @@ module Google
|
|
2008
2021
|
end
|
2009
2022
|
end
|
2010
2023
|
|
2011
|
-
# Empty message, used to indicate no authentication for an endpoint.
|
2012
|
-
class GoogleCloudAiplatformV1beta1AuthConfigNoAuth
|
2013
|
-
include Google::Apis::Core::Hashable
|
2014
|
-
|
2015
|
-
def initialize(**args)
|
2016
|
-
update!(**args)
|
2017
|
-
end
|
2018
|
-
|
2019
|
-
# Update properties of this object
|
2020
|
-
def update!(**args)
|
2021
|
-
end
|
2022
|
-
end
|
2023
|
-
|
2024
2024
|
# Config for user oauth.
|
2025
2025
|
class GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
|
2026
2026
|
include Google::Apis::Core::Hashable
|
@@ -3415,6 +3415,33 @@ module Google
|
|
3415
3415
|
end
|
3416
3416
|
end
|
3417
3417
|
|
3418
|
+
# Config of GenAI caching features. This is a singleton resource.
|
3419
|
+
class GoogleCloudAiplatformV1beta1CacheConfig
|
3420
|
+
include Google::Apis::Core::Hashable
|
3421
|
+
|
3422
|
+
# If set to true, disables GenAI caching. Otherwise caching is enabled.
|
3423
|
+
# Corresponds to the JSON property `disableCache`
|
3424
|
+
# @return [Boolean]
|
3425
|
+
attr_accessor :disable_cache
|
3426
|
+
alias_method :disable_cache?, :disable_cache
|
3427
|
+
|
3428
|
+
# Identifier. Name of the cache config. Format: - `projects/`project`/
|
3429
|
+
# cacheConfig`.
|
3430
|
+
# Corresponds to the JSON property `name`
|
3431
|
+
# @return [String]
|
3432
|
+
attr_accessor :name
|
3433
|
+
|
3434
|
+
def initialize(**args)
|
3435
|
+
update!(**args)
|
3436
|
+
end
|
3437
|
+
|
3438
|
+
# Update properties of this object
|
3439
|
+
def update!(**args)
|
3440
|
+
@disable_cache = args[:disable_cache] if args.key?(:disable_cache)
|
3441
|
+
@name = args[:name] if args.key?(:name)
|
3442
|
+
end
|
3443
|
+
end
|
3444
|
+
|
3418
3445
|
# Request message for JobService.CancelBatchPredictionJob.
|
3419
3446
|
class GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest
|
3420
3447
|
include Google::Apis::Core::Hashable
|
@@ -4596,6 +4623,61 @@ module Google
|
|
4596
4623
|
end
|
4597
4624
|
end
|
4598
4625
|
|
4626
|
+
# Runtime operation information for ModelMonitoringService.CreateModelMonitor.
|
4627
|
+
class GoogleCloudAiplatformV1beta1CreateModelMonitorOperationMetadata
|
4628
|
+
include Google::Apis::Core::Hashable
|
4629
|
+
|
4630
|
+
# Generic Metadata shared by all operations.
|
4631
|
+
# Corresponds to the JSON property `genericMetadata`
|
4632
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
|
4633
|
+
attr_accessor :generic_metadata
|
4634
|
+
|
4635
|
+
def initialize(**args)
|
4636
|
+
update!(**args)
|
4637
|
+
end
|
4638
|
+
|
4639
|
+
# Update properties of this object
|
4640
|
+
def update!(**args)
|
4641
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
4642
|
+
end
|
4643
|
+
end
|
4644
|
+
|
4645
|
+
# Request message for ModelMonitoringService.CreateModelMonitoringJob.
|
4646
|
+
class GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest
|
4647
|
+
include Google::Apis::Core::Hashable
|
4648
|
+
|
4649
|
+
# Represents a model monitoring job that analyze dataset using different
|
4650
|
+
# monitoring algorithm.
|
4651
|
+
# Corresponds to the JSON property `modelMonitoringJob`
|
4652
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
|
4653
|
+
attr_accessor :model_monitoring_job
|
4654
|
+
|
4655
|
+
# Optional. The ID to use for the Model Monitoring Job, which will become the
|
4656
|
+
# final component of the model monitoring job resource name. The maximum length
|
4657
|
+
# is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/
|
4658
|
+
# `.
|
4659
|
+
# Corresponds to the JSON property `modelMonitoringJobId`
|
4660
|
+
# @return [String]
|
4661
|
+
attr_accessor :model_monitoring_job_id
|
4662
|
+
|
4663
|
+
# Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/
|
4664
|
+
# locations/`location`/modelMoniitors/`model_monitor``
|
4665
|
+
# Corresponds to the JSON property `parent`
|
4666
|
+
# @return [String]
|
4667
|
+
attr_accessor :parent
|
4668
|
+
|
4669
|
+
def initialize(**args)
|
4670
|
+
update!(**args)
|
4671
|
+
end
|
4672
|
+
|
4673
|
+
# Update properties of this object
|
4674
|
+
def update!(**args)
|
4675
|
+
@model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
|
4676
|
+
@model_monitoring_job_id = args[:model_monitoring_job_id] if args.key?(:model_monitoring_job_id)
|
4677
|
+
@parent = args[:parent] if args.key?(:parent)
|
4678
|
+
end
|
4679
|
+
end
|
4680
|
+
|
4599
4681
|
# Metadata information for NotebookService.CreateNotebookRuntimeTemplate.
|
4600
4682
|
class GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata
|
4601
4683
|
include Google::Apis::Core::Hashable
|
@@ -6502,19 +6584,6 @@ module Google
|
|
6502
6584
|
end
|
6503
6585
|
end
|
6504
6586
|
|
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
6587
|
# Represents the spec of disk options.
|
6519
6588
|
class GoogleCloudAiplatformV1beta1DiskSpec
|
6520
6589
|
include Google::Apis::Core::Hashable
|
@@ -6670,6 +6739,11 @@ module Google
|
|
6670
6739
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig]
|
6671
6740
|
attr_accessor :predict_request_response_logging_config
|
6672
6741
|
|
6742
|
+
# Represents configuration for private service connect.
|
6743
|
+
# Corresponds to the JSON property `privateServiceConnectConfig`
|
6744
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig]
|
6745
|
+
attr_accessor :private_service_connect_config
|
6746
|
+
|
6673
6747
|
# A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
|
6674
6748
|
# that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
|
6675
6749
|
# listed in this map, then it receives no traffic. The traffic percentage values
|
@@ -6702,6 +6776,7 @@ module Google
|
|
6702
6776
|
@name = args[:name] if args.key?(:name)
|
6703
6777
|
@network = args[:network] if args.key?(:network)
|
6704
6778
|
@predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
|
6779
|
+
@private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
|
6705
6780
|
@traffic_split = args[:traffic_split] if args.key?(:traffic_split)
|
6706
6781
|
@update_time = args[:update_time] if args.key?(:update_time)
|
6707
6782
|
end
|
@@ -6971,16 +7046,6 @@ module Google
|
|
6971
7046
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput]
|
6972
7047
|
attr_accessor :question_answering_relevance_input
|
6973
7048
|
|
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
7049
|
# Input for rouge metric.
|
6985
7050
|
# Corresponds to the JSON property `rougeInput`
|
6986
7051
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInput]
|
@@ -7044,8 +7109,6 @@ module Google
|
|
7044
7109
|
@question_answering_helpfulness_input = args[:question_answering_helpfulness_input] if args.key?(:question_answering_helpfulness_input)
|
7045
7110
|
@question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
|
7046
7111
|
@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
7112
|
@rouge_input = args[:rouge_input] if args.key?(:rouge_input)
|
7050
7113
|
@safety_input = args[:safety_input] if args.key?(:safety_input)
|
7051
7114
|
@summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
|
@@ -7122,16 +7185,6 @@ module Google
|
|
7122
7185
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult]
|
7123
7186
|
attr_accessor :question_answering_relevance_result
|
7124
7187
|
|
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
7188
|
# Results for rouge metric.
|
7136
7189
|
# Corresponds to the JSON property `rougeResults`
|
7137
7190
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeResults]
|
@@ -7195,8 +7248,6 @@ module Google
|
|
7195
7248
|
@question_answering_helpfulness_result = args[:question_answering_helpfulness_result] if args.key?(:question_answering_helpfulness_result)
|
7196
7249
|
@question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
|
7197
7250
|
@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
7251
|
@rouge_results = args[:rouge_results] if args.key?(:rouge_results)
|
7201
7252
|
@safety_result = args[:safety_result] if args.key?(:safety_result)
|
7202
7253
|
@summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
|
@@ -8920,6 +8971,16 @@ module Google
|
|
8920
8971
|
# @return [String]
|
8921
8972
|
attr_accessor :name
|
8922
8973
|
|
8974
|
+
# PrivateExtensionConfig configuration for the extension.
|
8975
|
+
# Corresponds to the JSON property `privateServiceConnectConfig`
|
8976
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig]
|
8977
|
+
attr_accessor :private_service_connect_config
|
8978
|
+
|
8979
|
+
# Runtime configuration to run the extension.
|
8980
|
+
# Corresponds to the JSON property `runtimeConfig`
|
8981
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfig]
|
8982
|
+
attr_accessor :runtime_config
|
8983
|
+
|
8923
8984
|
# Optional. Examples to illustrate the usage of the extension as a tool.
|
8924
8985
|
# Corresponds to the JSON property `toolUseExamples`
|
8925
8986
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolUseExample>]
|
@@ -8943,6 +9004,8 @@ module Google
|
|
8943
9004
|
@extension_operations = args[:extension_operations] if args.key?(:extension_operations)
|
8944
9005
|
@manifest = args[:manifest] if args.key?(:manifest)
|
8945
9006
|
@name = args[:name] if args.key?(:name)
|
9007
|
+
@private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
|
9008
|
+
@runtime_config = args[:runtime_config] if args.key?(:runtime_config)
|
8946
9009
|
@tool_use_examples = args[:tool_use_examples] if args.key?(:tool_use_examples)
|
8947
9010
|
@update_time = args[:update_time] if args.key?(:update_time)
|
8948
9011
|
end
|
@@ -9045,6 +9108,30 @@ module Google
|
|
9045
9108
|
end
|
9046
9109
|
end
|
9047
9110
|
|
9111
|
+
# PrivateExtensionConfig configuration for the extension.
|
9112
|
+
class GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig
|
9113
|
+
include Google::Apis::Core::Hashable
|
9114
|
+
|
9115
|
+
# Required. The Service Directory resource name in which the service endpoints
|
9116
|
+
# associated to the extension are registered. Format: `projects/`project_id`/
|
9117
|
+
# locations/`location_id`/namespaces/`namespace_id`/services/`service_id`` - The
|
9118
|
+
# Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/
|
9119
|
+
# general/access-control#service-agents) should be granted `servicedirectory.
|
9120
|
+
# viewer` and `servicedirectory.pscAuthorizedService` roles on the resource.
|
9121
|
+
# Corresponds to the JSON property `serviceDirectory`
|
9122
|
+
# @return [String]
|
9123
|
+
attr_accessor :service_directory
|
9124
|
+
|
9125
|
+
def initialize(**args)
|
9126
|
+
update!(**args)
|
9127
|
+
end
|
9128
|
+
|
9129
|
+
# Update properties of this object
|
9130
|
+
def update!(**args)
|
9131
|
+
@service_directory = args[:service_directory] if args.key?(:service_directory)
|
9132
|
+
end
|
9133
|
+
end
|
9134
|
+
|
9048
9135
|
# Feature Metadata information. For example, color is a feature that describes
|
9049
9136
|
# an apple.
|
9050
9137
|
class GoogleCloudAiplatformV1beta1Feature
|
@@ -10819,7 +10906,7 @@ module Google
|
|
10819
10906
|
end
|
10820
10907
|
end
|
10821
10908
|
|
10822
|
-
#
|
10909
|
+
# The request message for MatchService.FindNeighbors.
|
10823
10910
|
class GoogleCloudAiplatformV1beta1FindNeighborsRequest
|
10824
10911
|
include Google::Apis::Core::Hashable
|
10825
10912
|
|
@@ -11623,6 +11710,15 @@ module Google
|
|
11623
11710
|
# @return [Float]
|
11624
11711
|
attr_accessor :presence_penalty
|
11625
11712
|
|
11713
|
+
# Optional. Output response mimetype of the generated candidate text. Supported
|
11714
|
+
# mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON
|
11715
|
+
# response in the candidates. The model needs to be prompted to output the
|
11716
|
+
# appropriate response type, otherwise the behavior is undefined. This is a
|
11717
|
+
# preview feature.
|
11718
|
+
# Corresponds to the JSON property `responseMimeType`
|
11719
|
+
# @return [String]
|
11720
|
+
attr_accessor :response_mime_type
|
11721
|
+
|
11626
11722
|
# Optional. Stop sequences.
|
11627
11723
|
# Corresponds to the JSON property `stopSequences`
|
11628
11724
|
# @return [Array<String>]
|
@@ -11653,6 +11749,7 @@ module Google
|
|
11653
11749
|
@frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
|
11654
11750
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
11655
11751
|
@presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
|
11752
|
+
@response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
|
11656
11753
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
11657
11754
|
@temperature = args[:temperature] if args.key?(:temperature)
|
11658
11755
|
@top_k = args[:top_k] if args.key?(:top_k)
|
@@ -11714,72 +11811,6 @@ module Google
|
|
11714
11811
|
end
|
11715
11812
|
end
|
11716
11813
|
|
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
|
-
# Tool to retrieve public web data for grounding, powered by Google.
|
11762
|
-
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
|
11763
|
-
include Google::Apis::Core::Hashable
|
11764
|
-
|
11765
|
-
# Optional. Disable using the result from this tool in detecting grounding
|
11766
|
-
# attribution. This does not affect how the result is given to the model for
|
11767
|
-
# generation.
|
11768
|
-
# Corresponds to the JSON property `disableAttribution`
|
11769
|
-
# @return [Boolean]
|
11770
|
-
attr_accessor :disable_attribution
|
11771
|
-
alias_method :disable_attribution?, :disable_attribution
|
11772
|
-
|
11773
|
-
def initialize(**args)
|
11774
|
-
update!(**args)
|
11775
|
-
end
|
11776
|
-
|
11777
|
-
# Update properties of this object
|
11778
|
-
def update!(**args)
|
11779
|
-
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
11780
|
-
end
|
11781
|
-
end
|
11782
|
-
|
11783
11814
|
# Input for groundedness metric.
|
11784
11815
|
class GoogleCloudAiplatformV1beta1GroundednessInput
|
11785
11816
|
include Google::Apis::Core::Hashable
|
@@ -11881,103 +11912,10 @@ module Google
|
|
11881
11912
|
end
|
11882
11913
|
end
|
11883
11914
|
|
11884
|
-
# Grounding attribution.
|
11885
|
-
class GoogleCloudAiplatformV1beta1GroundingAttribution
|
11886
|
-
include Google::Apis::Core::Hashable
|
11887
|
-
|
11888
|
-
# Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
|
11889
|
-
# 1 is the most confident.
|
11890
|
-
# Corresponds to the JSON property `confidenceScore`
|
11891
|
-
# @return [Float]
|
11892
|
-
attr_accessor :confidence_score
|
11893
|
-
|
11894
|
-
# Attribution from context retrieved by the retrieval tools.
|
11895
|
-
# Corresponds to the JSON property `retrievedContext`
|
11896
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext]
|
11897
|
-
attr_accessor :retrieved_context
|
11898
|
-
|
11899
|
-
# Segment of the content.
|
11900
|
-
# Corresponds to the JSON property `segment`
|
11901
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment]
|
11902
|
-
attr_accessor :segment
|
11903
|
-
|
11904
|
-
# Attribution from the web.
|
11905
|
-
# Corresponds to the JSON property `web`
|
11906
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionWeb]
|
11907
|
-
attr_accessor :web
|
11908
|
-
|
11909
|
-
def initialize(**args)
|
11910
|
-
update!(**args)
|
11911
|
-
end
|
11912
|
-
|
11913
|
-
# Update properties of this object
|
11914
|
-
def update!(**args)
|
11915
|
-
@confidence_score = args[:confidence_score] if args.key?(:confidence_score)
|
11916
|
-
@retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
|
11917
|
-
@segment = args[:segment] if args.key?(:segment)
|
11918
|
-
@web = args[:web] if args.key?(:web)
|
11919
|
-
end
|
11920
|
-
end
|
11921
|
-
|
11922
|
-
# Attribution from context retrieved by the retrieval tools.
|
11923
|
-
class GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
|
11924
|
-
include Google::Apis::Core::Hashable
|
11925
|
-
|
11926
|
-
# Output only. Title of the attribution.
|
11927
|
-
# Corresponds to the JSON property `title`
|
11928
|
-
# @return [String]
|
11929
|
-
attr_accessor :title
|
11930
|
-
|
11931
|
-
# Output only. URI reference of the attribution.
|
11932
|
-
# Corresponds to the JSON property `uri`
|
11933
|
-
# @return [String]
|
11934
|
-
attr_accessor :uri
|
11935
|
-
|
11936
|
-
def initialize(**args)
|
11937
|
-
update!(**args)
|
11938
|
-
end
|
11939
|
-
|
11940
|
-
# Update properties of this object
|
11941
|
-
def update!(**args)
|
11942
|
-
@title = args[:title] if args.key?(:title)
|
11943
|
-
@uri = args[:uri] if args.key?(:uri)
|
11944
|
-
end
|
11945
|
-
end
|
11946
|
-
|
11947
|
-
# Attribution from the web.
|
11948
|
-
class GoogleCloudAiplatformV1beta1GroundingAttributionWeb
|
11949
|
-
include Google::Apis::Core::Hashable
|
11950
|
-
|
11951
|
-
# Output only. Title of the attribution.
|
11952
|
-
# Corresponds to the JSON property `title`
|
11953
|
-
# @return [String]
|
11954
|
-
attr_accessor :title
|
11955
|
-
|
11956
|
-
# Output only. URI reference of the attribution.
|
11957
|
-
# Corresponds to the JSON property `uri`
|
11958
|
-
# @return [String]
|
11959
|
-
attr_accessor :uri
|
11960
|
-
|
11961
|
-
def initialize(**args)
|
11962
|
-
update!(**args)
|
11963
|
-
end
|
11964
|
-
|
11965
|
-
# Update properties of this object
|
11966
|
-
def update!(**args)
|
11967
|
-
@title = args[:title] if args.key?(:title)
|
11968
|
-
@uri = args[:uri] if args.key?(:uri)
|
11969
|
-
end
|
11970
|
-
end
|
11971
|
-
|
11972
11915
|
# Metadata returned to client when grounding is enabled.
|
11973
11916
|
class GoogleCloudAiplatformV1beta1GroundingMetadata
|
11974
11917
|
include Google::Apis::Core::Hashable
|
11975
11918
|
|
11976
|
-
# Optional. List of grounding attributions.
|
11977
|
-
# Corresponds to the JSON property `groundingAttributions`
|
11978
|
-
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution>]
|
11979
|
-
attr_accessor :grounding_attributions
|
11980
|
-
|
11981
11919
|
# Optional. Queries executed by the retrieval tools.
|
11982
11920
|
# Corresponds to the JSON property `retrievalQueries`
|
11983
11921
|
# @return [Array<String>]
|
@@ -11994,7 +11932,6 @@ module Google
|
|
11994
11932
|
|
11995
11933
|
# Update properties of this object
|
11996
11934
|
def update!(**args)
|
11997
|
-
@grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
|
11998
11935
|
@retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
|
11999
11936
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
12000
11937
|
end
|
@@ -12506,56 +12443,6 @@ module Google
|
|
12506
12443
|
end
|
12507
12444
|
end
|
12508
12445
|
|
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
12446
|
# A representation of a collection of database items organized in a way that
|
12560
12447
|
# allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
|
12561
12448
|
class GoogleCloudAiplatformV1beta1Index
|
@@ -14010,6 +13897,57 @@ module Google
|
|
14010
13897
|
end
|
14011
13898
|
end
|
14012
13899
|
|
13900
|
+
# Response message for ModelMonitoringService.ListModelMonitoringJobs.
|
13901
|
+
class GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse
|
13902
|
+
include Google::Apis::Core::Hashable
|
13903
|
+
|
13904
|
+
# A list of ModelMonitoringJobs that matches the specified filter in the request.
|
13905
|
+
# Corresponds to the JSON property `modelMonitoringJobs`
|
13906
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob>]
|
13907
|
+
attr_accessor :model_monitoring_jobs
|
13908
|
+
|
13909
|
+
# The standard List next-page token.
|
13910
|
+
# Corresponds to the JSON property `nextPageToken`
|
13911
|
+
# @return [String]
|
13912
|
+
attr_accessor :next_page_token
|
13913
|
+
|
13914
|
+
def initialize(**args)
|
13915
|
+
update!(**args)
|
13916
|
+
end
|
13917
|
+
|
13918
|
+
# Update properties of this object
|
13919
|
+
def update!(**args)
|
13920
|
+
@model_monitoring_jobs = args[:model_monitoring_jobs] if args.key?(:model_monitoring_jobs)
|
13921
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
13922
|
+
end
|
13923
|
+
end
|
13924
|
+
|
13925
|
+
# Response message for ModelMonitoringService.ListModelMonitors
|
13926
|
+
class GoogleCloudAiplatformV1beta1ListModelMonitorsResponse
|
13927
|
+
include Google::Apis::Core::Hashable
|
13928
|
+
|
13929
|
+
# List of ModelMonitor in the requested page.
|
13930
|
+
# Corresponds to the JSON property `modelMonitors`
|
13931
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor>]
|
13932
|
+
attr_accessor :model_monitors
|
13933
|
+
|
13934
|
+
# A token to retrieve the next page of results. Pass to ListModelMonitorsRequest.
|
13935
|
+
# page_token to obtain that page.
|
13936
|
+
# Corresponds to the JSON property `nextPageToken`
|
13937
|
+
# @return [String]
|
13938
|
+
attr_accessor :next_page_token
|
13939
|
+
|
13940
|
+
def initialize(**args)
|
13941
|
+
update!(**args)
|
13942
|
+
end
|
13943
|
+
|
13944
|
+
# Update properties of this object
|
13945
|
+
def update!(**args)
|
13946
|
+
@model_monitors = args[:model_monitors] if args.key?(:model_monitors)
|
13947
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
13948
|
+
end
|
13949
|
+
end
|
13950
|
+
|
14013
13951
|
# Response message for ModelService.ListModelVersions
|
14014
13952
|
class GoogleCloudAiplatformV1beta1ListModelVersionsResponse
|
14015
13953
|
include Google::Apis::Core::Hashable
|
@@ -14116,6 +14054,32 @@ module Google
|
|
14116
14054
|
end
|
14117
14055
|
end
|
14118
14056
|
|
14057
|
+
# Response message for [NotebookService.CreateNotebookExecutionJob]
|
14058
|
+
class GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse
|
14059
|
+
include Google::Apis::Core::Hashable
|
14060
|
+
|
14061
|
+
# A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.
|
14062
|
+
# page_token to obtain that page.
|
14063
|
+
# Corresponds to the JSON property `nextPageToken`
|
14064
|
+
# @return [String]
|
14065
|
+
attr_accessor :next_page_token
|
14066
|
+
|
14067
|
+
# List of NotebookExecutionJobs in the requested page.
|
14068
|
+
# Corresponds to the JSON property `notebookExecutionJobs`
|
14069
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob>]
|
14070
|
+
attr_accessor :notebook_execution_jobs
|
14071
|
+
|
14072
|
+
def initialize(**args)
|
14073
|
+
update!(**args)
|
14074
|
+
end
|
14075
|
+
|
14076
|
+
# Update properties of this object
|
14077
|
+
def update!(**args)
|
14078
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14079
|
+
@notebook_execution_jobs = args[:notebook_execution_jobs] if args.key?(:notebook_execution_jobs)
|
14080
|
+
end
|
14081
|
+
end
|
14082
|
+
|
14119
14083
|
# Response message for NotebookService.ListNotebookRuntimeTemplates.
|
14120
14084
|
class GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse
|
14121
14085
|
include Google::Apis::Core::Hashable
|
@@ -14280,58 +14244,6 @@ module Google
|
|
14280
14244
|
end
|
14281
14245
|
end
|
14282
14246
|
|
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
14247
|
# Response message for ReasoningEngineService.ListReasoningEngines
|
14336
14248
|
class GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse
|
14337
14249
|
include Google::Apis::Core::Hashable
|
@@ -16579,6 +16491,199 @@ module Google
|
|
16579
16491
|
end
|
16580
16492
|
end
|
16581
16493
|
|
16494
|
+
# Vertex AI Model Monitoring Service serves as a central hub for the analysis
|
16495
|
+
# and visualization of data quality and performance related to models.
|
16496
|
+
# ModelMonitor stands as a top level resource for overseeing your model
|
16497
|
+
# monitoring tasks.
|
16498
|
+
class GoogleCloudAiplatformV1beta1ModelMonitor
|
16499
|
+
include Google::Apis::Core::Hashable
|
16500
|
+
|
16501
|
+
# Output only. Timestamp when this ModelMonitor was created.
|
16502
|
+
# Corresponds to the JSON property `createTime`
|
16503
|
+
# @return [String]
|
16504
|
+
attr_accessor :create_time
|
16505
|
+
|
16506
|
+
# The display name of the ModelMonitor. The name can be up to 128 characters
|
16507
|
+
# long and can consist of any UTF-8.
|
16508
|
+
# Corresponds to the JSON property `displayName`
|
16509
|
+
# @return [String]
|
16510
|
+
attr_accessor :display_name
|
16511
|
+
|
16512
|
+
# Specification of Model explanation.
|
16513
|
+
# Corresponds to the JSON property `explanationSpec`
|
16514
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
|
16515
|
+
attr_accessor :explanation_spec
|
16516
|
+
|
16517
|
+
# The Model Monitoring Schema definition.
|
16518
|
+
# Corresponds to the JSON property `modelMonitoringSchema`
|
16519
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchema]
|
16520
|
+
attr_accessor :model_monitoring_schema
|
16521
|
+
|
16522
|
+
# The monitoring target refers to the entity that is subject to analysis. e.g.
|
16523
|
+
# Vertex AI Model version.
|
16524
|
+
# Corresponds to the JSON property `modelMonitoringTarget`
|
16525
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget]
|
16526
|
+
attr_accessor :model_monitoring_target
|
16527
|
+
|
16528
|
+
# Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/
|
16529
|
+
# locations/`location`/modelMonitors/`model_monitor``.
|
16530
|
+
# Corresponds to the JSON property `name`
|
16531
|
+
# @return [String]
|
16532
|
+
attr_accessor :name
|
16533
|
+
|
16534
|
+
# Notification spec(email, notification channel) for model monitoring statistics/
|
16535
|
+
# alerts.
|
16536
|
+
# Corresponds to the JSON property `notificationSpec`
|
16537
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
|
16538
|
+
attr_accessor :notification_spec
|
16539
|
+
|
16540
|
+
# Specification for the export destination of monitoring results, including
|
16541
|
+
# metrics, logs, etc.
|
16542
|
+
# Corresponds to the JSON property `outputSpec`
|
16543
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
|
16544
|
+
attr_accessor :output_spec
|
16545
|
+
|
16546
|
+
# Tabular monitoring objective.
|
16547
|
+
# Corresponds to the JSON property `tabularObjective`
|
16548
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
|
16549
|
+
attr_accessor :tabular_objective
|
16550
|
+
|
16551
|
+
# Model monitoring data input spec.
|
16552
|
+
# Corresponds to the JSON property `trainingDataset`
|
16553
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
|
16554
|
+
attr_accessor :training_dataset
|
16555
|
+
|
16556
|
+
# Output only. Timestamp when this ModelMonitor was updated most recently.
|
16557
|
+
# Corresponds to the JSON property `updateTime`
|
16558
|
+
# @return [String]
|
16559
|
+
attr_accessor :update_time
|
16560
|
+
|
16561
|
+
def initialize(**args)
|
16562
|
+
update!(**args)
|
16563
|
+
end
|
16564
|
+
|
16565
|
+
# Update properties of this object
|
16566
|
+
def update!(**args)
|
16567
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
16568
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
16569
|
+
@explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
|
16570
|
+
@model_monitoring_schema = args[:model_monitoring_schema] if args.key?(:model_monitoring_schema)
|
16571
|
+
@model_monitoring_target = args[:model_monitoring_target] if args.key?(:model_monitoring_target)
|
16572
|
+
@name = args[:name] if args.key?(:name)
|
16573
|
+
@notification_spec = args[:notification_spec] if args.key?(:notification_spec)
|
16574
|
+
@output_spec = args[:output_spec] if args.key?(:output_spec)
|
16575
|
+
@tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
|
16576
|
+
@training_dataset = args[:training_dataset] if args.key?(:training_dataset)
|
16577
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
16578
|
+
end
|
16579
|
+
end
|
16580
|
+
|
16581
|
+
# The monitoring target refers to the entity that is subject to analysis. e.g.
|
16582
|
+
# Vertex AI Model version.
|
16583
|
+
class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget
|
16584
|
+
include Google::Apis::Core::Hashable
|
16585
|
+
|
16586
|
+
# Model in Vertex AI Model Registry.
|
16587
|
+
# Corresponds to the JSON property `vertexModel`
|
16588
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource]
|
16589
|
+
attr_accessor :vertex_model
|
16590
|
+
|
16591
|
+
def initialize(**args)
|
16592
|
+
update!(**args)
|
16593
|
+
end
|
16594
|
+
|
16595
|
+
# Update properties of this object
|
16596
|
+
def update!(**args)
|
16597
|
+
@vertex_model = args[:vertex_model] if args.key?(:vertex_model)
|
16598
|
+
end
|
16599
|
+
end
|
16600
|
+
|
16601
|
+
# Model in Vertex AI Model Registry.
|
16602
|
+
class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource
|
16603
|
+
include Google::Apis::Core::Hashable
|
16604
|
+
|
16605
|
+
# Model resource name. Format: projects/`project`/locations/`location`/models/`
|
16606
|
+
# model`.
|
16607
|
+
# Corresponds to the JSON property `model`
|
16608
|
+
# @return [String]
|
16609
|
+
attr_accessor :model
|
16610
|
+
|
16611
|
+
# Model version id.
|
16612
|
+
# Corresponds to the JSON property `modelVersionId`
|
16613
|
+
# @return [String]
|
16614
|
+
attr_accessor :model_version_id
|
16615
|
+
|
16616
|
+
def initialize(**args)
|
16617
|
+
update!(**args)
|
16618
|
+
end
|
16619
|
+
|
16620
|
+
# Update properties of this object
|
16621
|
+
def update!(**args)
|
16622
|
+
@model = args[:model] if args.key?(:model)
|
16623
|
+
@model_version_id = args[:model_version_id] if args.key?(:model_version_id)
|
16624
|
+
end
|
16625
|
+
end
|
16626
|
+
|
16627
|
+
# Represents a single monitoring alert. This is currently used in the
|
16628
|
+
# SearchModelMonitoringAlerts api, thus the alert wrapped in this message
|
16629
|
+
# belongs to the resource asked in the request.
|
16630
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringAlert
|
16631
|
+
include Google::Apis::Core::Hashable
|
16632
|
+
|
16633
|
+
# Alert creation time.
|
16634
|
+
# Corresponds to the JSON property `alertTime`
|
16635
|
+
# @return [String]
|
16636
|
+
attr_accessor :alert_time
|
16637
|
+
|
16638
|
+
# Represents a single model monitoring anomaly.
|
16639
|
+
# Corresponds to the JSON property `anomaly`
|
16640
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly]
|
16641
|
+
attr_accessor :anomaly
|
16642
|
+
|
16643
|
+
# One of the supported monitoring objectives: `raw-feature-drift` `prediction-
|
16644
|
+
# output-drift` `feature-attribution`
|
16645
|
+
# Corresponds to the JSON property `objectiveType`
|
16646
|
+
# @return [String]
|
16647
|
+
attr_accessor :objective_type
|
16648
|
+
|
16649
|
+
# The stats name.
|
16650
|
+
# Corresponds to the JSON property `statsName`
|
16651
|
+
# @return [String]
|
16652
|
+
attr_accessor :stats_name
|
16653
|
+
|
16654
|
+
def initialize(**args)
|
16655
|
+
update!(**args)
|
16656
|
+
end
|
16657
|
+
|
16658
|
+
# Update properties of this object
|
16659
|
+
def update!(**args)
|
16660
|
+
@alert_time = args[:alert_time] if args.key?(:alert_time)
|
16661
|
+
@anomaly = args[:anomaly] if args.key?(:anomaly)
|
16662
|
+
@objective_type = args[:objective_type] if args.key?(:objective_type)
|
16663
|
+
@stats_name = args[:stats_name] if args.key?(:stats_name)
|
16664
|
+
end
|
16665
|
+
end
|
16666
|
+
|
16667
|
+
# Monitoring alert triggered condition.
|
16668
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition
|
16669
|
+
include Google::Apis::Core::Hashable
|
16670
|
+
|
16671
|
+
# A condition that compares a stats value against a threshold. Alert will be
|
16672
|
+
# triggered if value above the threshold.
|
16673
|
+
# Corresponds to the JSON property `threshold`
|
16674
|
+
# @return [Float]
|
16675
|
+
attr_accessor :threshold
|
16676
|
+
|
16677
|
+
def initialize(**args)
|
16678
|
+
update!(**args)
|
16679
|
+
end
|
16680
|
+
|
16681
|
+
# Update properties of this object
|
16682
|
+
def update!(**args)
|
16683
|
+
@threshold = args[:threshold] if args.key?(:threshold)
|
16684
|
+
end
|
16685
|
+
end
|
16686
|
+
|
16582
16687
|
# The alert config for model monitoring.
|
16583
16688
|
class GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig
|
16584
16689
|
include Google::Apis::Core::Hashable
|
@@ -16634,6 +16739,81 @@ module Google
|
|
16634
16739
|
end
|
16635
16740
|
end
|
16636
16741
|
|
16742
|
+
# Represents a single model monitoring anomaly.
|
16743
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly
|
16744
|
+
include Google::Apis::Core::Hashable
|
16745
|
+
|
16746
|
+
# Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
|
16747
|
+
# l_infinity.
|
16748
|
+
# Corresponds to the JSON property `algorithm`
|
16749
|
+
# @return [String]
|
16750
|
+
attr_accessor :algorithm
|
16751
|
+
|
16752
|
+
# Model monitoring job resource name.
|
16753
|
+
# Corresponds to the JSON property `modelMonitoringJob`
|
16754
|
+
# @return [String]
|
16755
|
+
attr_accessor :model_monitoring_job
|
16756
|
+
|
16757
|
+
# Tabular anomaly details.
|
16758
|
+
# Corresponds to the JSON property `tabularAnomaly`
|
16759
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly]
|
16760
|
+
attr_accessor :tabular_anomaly
|
16761
|
+
|
16762
|
+
def initialize(**args)
|
16763
|
+
update!(**args)
|
16764
|
+
end
|
16765
|
+
|
16766
|
+
# Update properties of this object
|
16767
|
+
def update!(**args)
|
16768
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
16769
|
+
@model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
|
16770
|
+
@tabular_anomaly = args[:tabular_anomaly] if args.key?(:tabular_anomaly)
|
16771
|
+
end
|
16772
|
+
end
|
16773
|
+
|
16774
|
+
# Tabular anomaly details.
|
16775
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly
|
16776
|
+
include Google::Apis::Core::Hashable
|
16777
|
+
|
16778
|
+
# Anomaly body.
|
16779
|
+
# Corresponds to the JSON property `anomaly`
|
16780
|
+
# @return [Object]
|
16781
|
+
attr_accessor :anomaly
|
16782
|
+
|
16783
|
+
# Additional anomaly information. e.g. Google Cloud Storage uri.
|
16784
|
+
# Corresponds to the JSON property `anomalyUri`
|
16785
|
+
# @return [String]
|
16786
|
+
attr_accessor :anomaly_uri
|
16787
|
+
|
16788
|
+
# Monitoring alert triggered condition.
|
16789
|
+
# Corresponds to the JSON property `condition`
|
16790
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
|
16791
|
+
attr_accessor :condition
|
16792
|
+
|
16793
|
+
# Overview of this anomaly.
|
16794
|
+
# Corresponds to the JSON property `summary`
|
16795
|
+
# @return [String]
|
16796
|
+
attr_accessor :summary
|
16797
|
+
|
16798
|
+
# The time the anomaly was triggered.
|
16799
|
+
# Corresponds to the JSON property `triggerTime`
|
16800
|
+
# @return [String]
|
16801
|
+
attr_accessor :trigger_time
|
16802
|
+
|
16803
|
+
def initialize(**args)
|
16804
|
+
update!(**args)
|
16805
|
+
end
|
16806
|
+
|
16807
|
+
# Update properties of this object
|
16808
|
+
def update!(**args)
|
16809
|
+
@anomaly = args[:anomaly] if args.key?(:anomaly)
|
16810
|
+
@anomaly_uri = args[:anomaly_uri] if args.key?(:anomaly_uri)
|
16811
|
+
@condition = args[:condition] if args.key?(:condition)
|
16812
|
+
@summary = args[:summary] if args.key?(:summary)
|
16813
|
+
@trigger_time = args[:trigger_time] if args.key?(:trigger_time)
|
16814
|
+
end
|
16815
|
+
end
|
16816
|
+
|
16637
16817
|
# The model monitoring configuration used for Batch Prediction Job.
|
16638
16818
|
class GoogleCloudAiplatformV1beta1ModelMonitoringConfig
|
16639
16819
|
include Google::Apis::Core::Hashable
|
@@ -16676,6 +16856,439 @@ module Google
|
|
16676
16856
|
end
|
16677
16857
|
end
|
16678
16858
|
|
16859
|
+
# Model monitoring data input spec.
|
16860
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInput
|
16861
|
+
include Google::Apis::Core::Hashable
|
16862
|
+
|
16863
|
+
# Data from Vertex AI Batch prediction job output.
|
16864
|
+
# Corresponds to the JSON property `batchPredictionOutput`
|
16865
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput]
|
16866
|
+
attr_accessor :batch_prediction_output
|
16867
|
+
|
16868
|
+
# Input dataset spec.
|
16869
|
+
# Corresponds to the JSON property `columnizedDataset`
|
16870
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset]
|
16871
|
+
attr_accessor :columnized_dataset
|
16872
|
+
|
16873
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
16874
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
16875
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
16876
|
+
# both start and end are unspecified, the interval matches any time.
|
16877
|
+
# Corresponds to the JSON property `timeInterval`
|
16878
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
|
16879
|
+
attr_accessor :time_interval
|
16880
|
+
|
16881
|
+
# Time offset setting.
|
16882
|
+
# Corresponds to the JSON property `timeOffset`
|
16883
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset]
|
16884
|
+
attr_accessor :time_offset
|
16885
|
+
|
16886
|
+
# Data from Vertex AI Endpoint request response logging.
|
16887
|
+
# Corresponds to the JSON property `vertexEndpointLogs`
|
16888
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs]
|
16889
|
+
attr_accessor :vertex_endpoint_logs
|
16890
|
+
|
16891
|
+
def initialize(**args)
|
16892
|
+
update!(**args)
|
16893
|
+
end
|
16894
|
+
|
16895
|
+
# Update properties of this object
|
16896
|
+
def update!(**args)
|
16897
|
+
@batch_prediction_output = args[:batch_prediction_output] if args.key?(:batch_prediction_output)
|
16898
|
+
@columnized_dataset = args[:columnized_dataset] if args.key?(:columnized_dataset)
|
16899
|
+
@time_interval = args[:time_interval] if args.key?(:time_interval)
|
16900
|
+
@time_offset = args[:time_offset] if args.key?(:time_offset)
|
16901
|
+
@vertex_endpoint_logs = args[:vertex_endpoint_logs] if args.key?(:vertex_endpoint_logs)
|
16902
|
+
end
|
16903
|
+
end
|
16904
|
+
|
16905
|
+
# Data from Vertex AI Batch prediction job output.
|
16906
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput
|
16907
|
+
include Google::Apis::Core::Hashable
|
16908
|
+
|
16909
|
+
# Vertex AI Batch prediction job resource name. The job must match the model
|
16910
|
+
# version specified in [ModelMonitor].[model_monitoring_target].
|
16911
|
+
# Corresponds to the JSON property `batchPredictionJob`
|
16912
|
+
# @return [String]
|
16913
|
+
attr_accessor :batch_prediction_job
|
16914
|
+
|
16915
|
+
def initialize(**args)
|
16916
|
+
update!(**args)
|
16917
|
+
end
|
16918
|
+
|
16919
|
+
# Update properties of this object
|
16920
|
+
def update!(**args)
|
16921
|
+
@batch_prediction_job = args[:batch_prediction_job] if args.key?(:batch_prediction_job)
|
16922
|
+
end
|
16923
|
+
end
|
16924
|
+
|
16925
|
+
# Input dataset spec.
|
16926
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset
|
16927
|
+
include Google::Apis::Core::Hashable
|
16928
|
+
|
16929
|
+
# Dataset spec for data sotred in BigQuery.
|
16930
|
+
# Corresponds to the JSON property `bigquerySource`
|
16931
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource]
|
16932
|
+
attr_accessor :bigquery_source
|
16933
|
+
|
16934
|
+
# Dataset spec for data stored in Google Cloud Storage.
|
16935
|
+
# Corresponds to the JSON property `gcsSource`
|
16936
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource]
|
16937
|
+
attr_accessor :gcs_source
|
16938
|
+
|
16939
|
+
# The timestamp field. Usually for serving data.
|
16940
|
+
# Corresponds to the JSON property `timestampField`
|
16941
|
+
# @return [String]
|
16942
|
+
attr_accessor :timestamp_field
|
16943
|
+
|
16944
|
+
# Resource name of the Vertex AI managed dataset.
|
16945
|
+
# Corresponds to the JSON property `vertexDataset`
|
16946
|
+
# @return [String]
|
16947
|
+
attr_accessor :vertex_dataset
|
16948
|
+
|
16949
|
+
def initialize(**args)
|
16950
|
+
update!(**args)
|
16951
|
+
end
|
16952
|
+
|
16953
|
+
# Update properties of this object
|
16954
|
+
def update!(**args)
|
16955
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
16956
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
16957
|
+
@timestamp_field = args[:timestamp_field] if args.key?(:timestamp_field)
|
16958
|
+
@vertex_dataset = args[:vertex_dataset] if args.key?(:vertex_dataset)
|
16959
|
+
end
|
16960
|
+
end
|
16961
|
+
|
16962
|
+
# Dataset spec for data sotred in BigQuery.
|
16963
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource
|
16964
|
+
include Google::Apis::Core::Hashable
|
16965
|
+
|
16966
|
+
# Standard SQL to be used instead of the `table_uri`.
|
16967
|
+
# Corresponds to the JSON property `query`
|
16968
|
+
# @return [String]
|
16969
|
+
attr_accessor :query
|
16970
|
+
|
16971
|
+
# BigQuery URI to a table, up to 2000 characters long. All the columns in the
|
16972
|
+
# table will be selected. Accepted forms: * BigQuery path. For example: `bq://
|
16973
|
+
# projectId.bqDatasetId.bqTableId`.
|
16974
|
+
# Corresponds to the JSON property `tableUri`
|
16975
|
+
# @return [String]
|
16976
|
+
attr_accessor :table_uri
|
16977
|
+
|
16978
|
+
def initialize(**args)
|
16979
|
+
update!(**args)
|
16980
|
+
end
|
16981
|
+
|
16982
|
+
# Update properties of this object
|
16983
|
+
def update!(**args)
|
16984
|
+
@query = args[:query] if args.key?(:query)
|
16985
|
+
@table_uri = args[:table_uri] if args.key?(:table_uri)
|
16986
|
+
end
|
16987
|
+
end
|
16988
|
+
|
16989
|
+
# Dataset spec for data stored in Google Cloud Storage.
|
16990
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource
|
16991
|
+
include Google::Apis::Core::Hashable
|
16992
|
+
|
16993
|
+
# Data format of the dataset.
|
16994
|
+
# Corresponds to the JSON property `format`
|
16995
|
+
# @return [String]
|
16996
|
+
attr_accessor :format
|
16997
|
+
|
16998
|
+
# Google Cloud Storage URI to the input file(s). May contain wildcards. For more
|
16999
|
+
# information on wildcards, see https://cloud.google.com/storage/docs/gsutil/
|
17000
|
+
# addlhelp/WildcardNames.
|
17001
|
+
# Corresponds to the JSON property `gcsUri`
|
17002
|
+
# @return [String]
|
17003
|
+
attr_accessor :gcs_uri
|
17004
|
+
|
17005
|
+
def initialize(**args)
|
17006
|
+
update!(**args)
|
17007
|
+
end
|
17008
|
+
|
17009
|
+
# Update properties of this object
|
17010
|
+
def update!(**args)
|
17011
|
+
@format = args[:format] if args.key?(:format)
|
17012
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
17013
|
+
end
|
17014
|
+
end
|
17015
|
+
|
17016
|
+
# Time offset setting.
|
17017
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset
|
17018
|
+
include Google::Apis::Core::Hashable
|
17019
|
+
|
17020
|
+
# [offset] is the time difference from the cut-off time. For scheduled jobs, the
|
17021
|
+
# cut-off time is the scheduled time. For non-scheduled jobs, it's the time when
|
17022
|
+
# the job was created. Currently we support the following format: 'w|W': Week, '
|
17023
|
+
# d|D': Day, 'h|H': Hour E.g. '1h' stands for 1 hour, '2d' stands for 2 days.
|
17024
|
+
# Corresponds to the JSON property `offset`
|
17025
|
+
# @return [String]
|
17026
|
+
attr_accessor :offset
|
17027
|
+
|
17028
|
+
# [window] refers to the scope of data selected for analysis. It allows you to
|
17029
|
+
# specify the quantity of data you wish to examine. Currently we support the
|
17030
|
+
# following format: 'w|W': Week, 'd|D': Day, 'h|H': Hour E.g. '1h' stands for 1
|
17031
|
+
# hour, '2d' stands for 2 days.
|
17032
|
+
# Corresponds to the JSON property `window`
|
17033
|
+
# @return [String]
|
17034
|
+
attr_accessor :window
|
17035
|
+
|
17036
|
+
def initialize(**args)
|
17037
|
+
update!(**args)
|
17038
|
+
end
|
17039
|
+
|
17040
|
+
# Update properties of this object
|
17041
|
+
def update!(**args)
|
17042
|
+
@offset = args[:offset] if args.key?(:offset)
|
17043
|
+
@window = args[:window] if args.key?(:window)
|
17044
|
+
end
|
17045
|
+
end
|
17046
|
+
|
17047
|
+
# Data from Vertex AI Endpoint request response logging.
|
17048
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs
|
17049
|
+
include Google::Apis::Core::Hashable
|
17050
|
+
|
17051
|
+
# List of endpoint resource names. The endpoints must enable the logging with
|
17052
|
+
# the [Endpoint].[request_response_logging_config], and must contain the
|
17053
|
+
# deployed model corresponding to the model version specified in [ModelMonitor].[
|
17054
|
+
# model_monitoring_target].
|
17055
|
+
# Corresponds to the JSON property `endpoints`
|
17056
|
+
# @return [Array<String>]
|
17057
|
+
attr_accessor :endpoints
|
17058
|
+
|
17059
|
+
def initialize(**args)
|
17060
|
+
update!(**args)
|
17061
|
+
end
|
17062
|
+
|
17063
|
+
# Update properties of this object
|
17064
|
+
def update!(**args)
|
17065
|
+
@endpoints = args[:endpoints] if args.key?(:endpoints)
|
17066
|
+
end
|
17067
|
+
end
|
17068
|
+
|
17069
|
+
# Represents a model monitoring job that analyze dataset using different
|
17070
|
+
# monitoring algorithm.
|
17071
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringJob
|
17072
|
+
include Google::Apis::Core::Hashable
|
17073
|
+
|
17074
|
+
# Output only. Timestamp when this ModelMonitoringJob was created.
|
17075
|
+
# Corresponds to the JSON property `createTime`
|
17076
|
+
# @return [String]
|
17077
|
+
attr_accessor :create_time
|
17078
|
+
|
17079
|
+
# The display name of the ModelMonitoringJob. The name can be up to 128
|
17080
|
+
# characters long and can consist of any UTF-8.
|
17081
|
+
# Corresponds to the JSON property `displayName`
|
17082
|
+
# @return [String]
|
17083
|
+
attr_accessor :display_name
|
17084
|
+
|
17085
|
+
# Represent the execution details of the job.
|
17086
|
+
# Corresponds to the JSON property `jobExecutionDetail`
|
17087
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail]
|
17088
|
+
attr_accessor :job_execution_detail
|
17089
|
+
|
17090
|
+
# Monitoring monitoring job spec. It outlines the specifications for monitoring
|
17091
|
+
# objectives, notifications, and result exports.
|
17092
|
+
# Corresponds to the JSON property `modelMonitoringSpec`
|
17093
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSpec]
|
17094
|
+
attr_accessor :model_monitoring_spec
|
17095
|
+
|
17096
|
+
# Output only. Resource name of a ModelMonitoringJob. Format: `projects/`
|
17097
|
+
# project_id`/locations/`location_id`/modelMonitors/`model_monitor_id`/
|
17098
|
+
# modelMonitoringJobs/`model_monitoring_job_id``
|
17099
|
+
# Corresponds to the JSON property `name`
|
17100
|
+
# @return [String]
|
17101
|
+
attr_accessor :name
|
17102
|
+
|
17103
|
+
# Output only. Schedule resource name. It will only appear when this job is
|
17104
|
+
# triggered by a schedule.
|
17105
|
+
# Corresponds to the JSON property `schedule`
|
17106
|
+
# @return [String]
|
17107
|
+
attr_accessor :schedule
|
17108
|
+
|
17109
|
+
# Output only. Timestamp when this ModelMonitoringJob was scheduled. It will
|
17110
|
+
# only appear when this job is triggered by a schedule.
|
17111
|
+
# Corresponds to the JSON property `scheduleTime`
|
17112
|
+
# @return [String]
|
17113
|
+
attr_accessor :schedule_time
|
17114
|
+
|
17115
|
+
# Output only. The state of the monitoring job. * When the job is still creating,
|
17116
|
+
# the state will be 'JOB_STATE_PENDING'. * Once the job is successfully created,
|
17117
|
+
# the state will be 'JOB_STATE_RUNNING'. * Once the job is finished, the state
|
17118
|
+
# will be one of 'JOB_STATE_FAILED', 'JOB_STATE_SUCCEEDED', '
|
17119
|
+
# JOB_STATE_PARTIALLY_SUCCEEDED'.
|
17120
|
+
# Corresponds to the JSON property `state`
|
17121
|
+
# @return [String]
|
17122
|
+
attr_accessor :state
|
17123
|
+
|
17124
|
+
# Output only. Timestamp when this ModelMonitoringJob was updated most recently.
|
17125
|
+
# Corresponds to the JSON property `updateTime`
|
17126
|
+
# @return [String]
|
17127
|
+
attr_accessor :update_time
|
17128
|
+
|
17129
|
+
def initialize(**args)
|
17130
|
+
update!(**args)
|
17131
|
+
end
|
17132
|
+
|
17133
|
+
# Update properties of this object
|
17134
|
+
def update!(**args)
|
17135
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
17136
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
17137
|
+
@job_execution_detail = args[:job_execution_detail] if args.key?(:job_execution_detail)
|
17138
|
+
@model_monitoring_spec = args[:model_monitoring_spec] if args.key?(:model_monitoring_spec)
|
17139
|
+
@name = args[:name] if args.key?(:name)
|
17140
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
17141
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
17142
|
+
@state = args[:state] if args.key?(:state)
|
17143
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
17144
|
+
end
|
17145
|
+
end
|
17146
|
+
|
17147
|
+
# Represent the execution details of the job.
|
17148
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail
|
17149
|
+
include Google::Apis::Core::Hashable
|
17150
|
+
|
17151
|
+
# Processed baseline datasets.
|
17152
|
+
# Corresponds to the JSON property `baselineDatasets`
|
17153
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
|
17154
|
+
attr_accessor :baseline_datasets
|
17155
|
+
|
17156
|
+
# The `Status` type defines a logical error model that is suitable for different
|
17157
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
17158
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
17159
|
+
# data: error code, error message, and error details. You can find out more
|
17160
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
17161
|
+
# //cloud.google.com/apis/design/errors).
|
17162
|
+
# Corresponds to the JSON property `error`
|
17163
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
17164
|
+
attr_accessor :error
|
17165
|
+
|
17166
|
+
# Status of data processing for each monitoring objective. Key is the objective.
|
17167
|
+
# Corresponds to the JSON property `objectiveStatus`
|
17168
|
+
# @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleRpcStatus>]
|
17169
|
+
attr_accessor :objective_status
|
17170
|
+
|
17171
|
+
# Processed target datasets.
|
17172
|
+
# Corresponds to the JSON property `targetDatasets`
|
17173
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
|
17174
|
+
attr_accessor :target_datasets
|
17175
|
+
|
17176
|
+
def initialize(**args)
|
17177
|
+
update!(**args)
|
17178
|
+
end
|
17179
|
+
|
17180
|
+
# Update properties of this object
|
17181
|
+
def update!(**args)
|
17182
|
+
@baseline_datasets = args[:baseline_datasets] if args.key?(:baseline_datasets)
|
17183
|
+
@error = args[:error] if args.key?(:error)
|
17184
|
+
@objective_status = args[:objective_status] if args.key?(:objective_status)
|
17185
|
+
@target_datasets = args[:target_datasets] if args.key?(:target_datasets)
|
17186
|
+
end
|
17187
|
+
end
|
17188
|
+
|
17189
|
+
# Processed dataset information.
|
17190
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset
|
17191
|
+
include Google::Apis::Core::Hashable
|
17192
|
+
|
17193
|
+
# Actual data location of the processed dataset.
|
17194
|
+
# Corresponds to the JSON property `location`
|
17195
|
+
# @return [String]
|
17196
|
+
attr_accessor :location
|
17197
|
+
|
17198
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
17199
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
17200
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
17201
|
+
# both start and end are unspecified, the interval matches any time.
|
17202
|
+
# Corresponds to the JSON property `timeRange`
|
17203
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
|
17204
|
+
attr_accessor :time_range
|
17205
|
+
|
17206
|
+
def initialize(**args)
|
17207
|
+
update!(**args)
|
17208
|
+
end
|
17209
|
+
|
17210
|
+
# Update properties of this object
|
17211
|
+
def update!(**args)
|
17212
|
+
@location = args[:location] if args.key?(:location)
|
17213
|
+
@time_range = args[:time_range] if args.key?(:time_range)
|
17214
|
+
end
|
17215
|
+
end
|
17216
|
+
|
17217
|
+
# Notification spec(email, notification channel) for model monitoring statistics/
|
17218
|
+
# alerts.
|
17219
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec
|
17220
|
+
include Google::Apis::Core::Hashable
|
17221
|
+
|
17222
|
+
# The config for email alerts.
|
17223
|
+
# Corresponds to the JSON property `emailConfig`
|
17224
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig]
|
17225
|
+
attr_accessor :email_config
|
17226
|
+
|
17227
|
+
# Dump the anomalies to Cloud Logging. The anomalies will be put to json payload
|
17228
|
+
# encoded from proto google.cloud.aiplatform.logging.
|
17229
|
+
# ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any
|
17230
|
+
# other services supported by Cloud Logging.
|
17231
|
+
# Corresponds to the JSON property `enableCloudLogging`
|
17232
|
+
# @return [Boolean]
|
17233
|
+
attr_accessor :enable_cloud_logging
|
17234
|
+
alias_method :enable_cloud_logging?, :enable_cloud_logging
|
17235
|
+
|
17236
|
+
# Notification channel config.
|
17237
|
+
# Corresponds to the JSON property `notificationChannelConfigs`
|
17238
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig>]
|
17239
|
+
attr_accessor :notification_channel_configs
|
17240
|
+
|
17241
|
+
def initialize(**args)
|
17242
|
+
update!(**args)
|
17243
|
+
end
|
17244
|
+
|
17245
|
+
# Update properties of this object
|
17246
|
+
def update!(**args)
|
17247
|
+
@email_config = args[:email_config] if args.key?(:email_config)
|
17248
|
+
@enable_cloud_logging = args[:enable_cloud_logging] if args.key?(:enable_cloud_logging)
|
17249
|
+
@notification_channel_configs = args[:notification_channel_configs] if args.key?(:notification_channel_configs)
|
17250
|
+
end
|
17251
|
+
end
|
17252
|
+
|
17253
|
+
# The config for email alerts.
|
17254
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig
|
17255
|
+
include Google::Apis::Core::Hashable
|
17256
|
+
|
17257
|
+
# The email addresses to send the alerts.
|
17258
|
+
# Corresponds to the JSON property `userEmails`
|
17259
|
+
# @return [Array<String>]
|
17260
|
+
attr_accessor :user_emails
|
17261
|
+
|
17262
|
+
def initialize(**args)
|
17263
|
+
update!(**args)
|
17264
|
+
end
|
17265
|
+
|
17266
|
+
# Update properties of this object
|
17267
|
+
def update!(**args)
|
17268
|
+
@user_emails = args[:user_emails] if args.key?(:user_emails)
|
17269
|
+
end
|
17270
|
+
end
|
17271
|
+
|
17272
|
+
# Google Cloud Notification Channel config.
|
17273
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig
|
17274
|
+
include Google::Apis::Core::Hashable
|
17275
|
+
|
17276
|
+
# Resource names of the NotificationChannels. Must be of the format `projects//
|
17277
|
+
# notificationChannels/`
|
17278
|
+
# Corresponds to the JSON property `notificationChannel`
|
17279
|
+
# @return [String]
|
17280
|
+
attr_accessor :notification_channel
|
17281
|
+
|
17282
|
+
def initialize(**args)
|
17283
|
+
update!(**args)
|
17284
|
+
end
|
17285
|
+
|
17286
|
+
# Update properties of this object
|
17287
|
+
def update!(**args)
|
17288
|
+
@notification_channel = args[:notification_channel] if args.key?(:notification_channel)
|
17289
|
+
end
|
17290
|
+
end
|
17291
|
+
|
16679
17292
|
# The objective configuration for model monitoring, including the information
|
16680
17293
|
# needed to detect anomalies for one particular model.
|
16681
17294
|
class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveConfig
|
@@ -16902,6 +17515,344 @@ module Google
|
|
16902
17515
|
end
|
16903
17516
|
end
|
16904
17517
|
|
17518
|
+
# Monitoring objectives spec.
|
17519
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec
|
17520
|
+
include Google::Apis::Core::Hashable
|
17521
|
+
|
17522
|
+
# Model monitoring data input spec.
|
17523
|
+
# Corresponds to the JSON property `baselineDataset`
|
17524
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
|
17525
|
+
attr_accessor :baseline_dataset
|
17526
|
+
|
17527
|
+
# Specification of Model explanation.
|
17528
|
+
# Corresponds to the JSON property `explanationSpec`
|
17529
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
|
17530
|
+
attr_accessor :explanation_spec
|
17531
|
+
|
17532
|
+
# Tabular monitoring objective.
|
17533
|
+
# Corresponds to the JSON property `tabularObjective`
|
17534
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
|
17535
|
+
attr_accessor :tabular_objective
|
17536
|
+
|
17537
|
+
# Model monitoring data input spec.
|
17538
|
+
# Corresponds to the JSON property `targetDataset`
|
17539
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
|
17540
|
+
attr_accessor :target_dataset
|
17541
|
+
|
17542
|
+
def initialize(**args)
|
17543
|
+
update!(**args)
|
17544
|
+
end
|
17545
|
+
|
17546
|
+
# Update properties of this object
|
17547
|
+
def update!(**args)
|
17548
|
+
@baseline_dataset = args[:baseline_dataset] if args.key?(:baseline_dataset)
|
17549
|
+
@explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
|
17550
|
+
@tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
|
17551
|
+
@target_dataset = args[:target_dataset] if args.key?(:target_dataset)
|
17552
|
+
end
|
17553
|
+
end
|
17554
|
+
|
17555
|
+
# Data drift monitoring spec. Data drift measures the distribution distance
|
17556
|
+
# between the current dataset and a baseline dataset. A typical use case is to
|
17557
|
+
# detect data drift between the recent production serving dataset and the
|
17558
|
+
# training dataset, or to compare the recent production dataset with a dataset
|
17559
|
+
# from a previous period.
|
17560
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec
|
17561
|
+
include Google::Apis::Core::Hashable
|
17562
|
+
|
17563
|
+
# Supported metrics type: * l_infinity * jensen_shannon_divergence
|
17564
|
+
# Corresponds to the JSON property `categoricalMetricType`
|
17565
|
+
# @return [String]
|
17566
|
+
attr_accessor :categorical_metric_type
|
17567
|
+
|
17568
|
+
# Monitoring alert triggered condition.
|
17569
|
+
# Corresponds to the JSON property `defaultCategoricalAlertCondition`
|
17570
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
|
17571
|
+
attr_accessor :default_categorical_alert_condition
|
17572
|
+
|
17573
|
+
# Monitoring alert triggered condition.
|
17574
|
+
# Corresponds to the JSON property `defaultNumericAlertCondition`
|
17575
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
|
17576
|
+
attr_accessor :default_numeric_alert_condition
|
17577
|
+
|
17578
|
+
# Per feature alert condition will override default alert condition.
|
17579
|
+
# Corresponds to the JSON property `featureAlertConditions`
|
17580
|
+
# @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
|
17581
|
+
attr_accessor :feature_alert_conditions
|
17582
|
+
|
17583
|
+
# Feature names / Prediction output names interested in monitoring. These should
|
17584
|
+
# be a subset of the input feature names or prediction output names specified in
|
17585
|
+
# the monitoring schema. If the field is not specified all features / prediction
|
17586
|
+
# outputs outlied in the monitoring schema will be used.
|
17587
|
+
# Corresponds to the JSON property `features`
|
17588
|
+
# @return [Array<String>]
|
17589
|
+
attr_accessor :features
|
17590
|
+
|
17591
|
+
# Supported metrics type: * jensen_shannon_divergence
|
17592
|
+
# Corresponds to the JSON property `numericMetricType`
|
17593
|
+
# @return [String]
|
17594
|
+
attr_accessor :numeric_metric_type
|
17595
|
+
|
17596
|
+
def initialize(**args)
|
17597
|
+
update!(**args)
|
17598
|
+
end
|
17599
|
+
|
17600
|
+
# Update properties of this object
|
17601
|
+
def update!(**args)
|
17602
|
+
@categorical_metric_type = args[:categorical_metric_type] if args.key?(:categorical_metric_type)
|
17603
|
+
@default_categorical_alert_condition = args[:default_categorical_alert_condition] if args.key?(:default_categorical_alert_condition)
|
17604
|
+
@default_numeric_alert_condition = args[:default_numeric_alert_condition] if args.key?(:default_numeric_alert_condition)
|
17605
|
+
@feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
|
17606
|
+
@features = args[:features] if args.key?(:features)
|
17607
|
+
@numeric_metric_type = args[:numeric_metric_type] if args.key?(:numeric_metric_type)
|
17608
|
+
end
|
17609
|
+
end
|
17610
|
+
|
17611
|
+
# Feature attribution monitoring spec.
|
17612
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec
|
17613
|
+
include Google::Apis::Core::Hashable
|
17614
|
+
|
17615
|
+
# A description of resources that are used for performing batch operations, are
|
17616
|
+
# dedicated to a Model, and need manual configuration.
|
17617
|
+
# Corresponds to the JSON property `batchExplanationDedicatedResources`
|
17618
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDedicatedResources]
|
17619
|
+
attr_accessor :batch_explanation_dedicated_resources
|
17620
|
+
|
17621
|
+
# Monitoring alert triggered condition.
|
17622
|
+
# Corresponds to the JSON property `defaultAlertCondition`
|
17623
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
|
17624
|
+
attr_accessor :default_alert_condition
|
17625
|
+
|
17626
|
+
# Per feature alert condition will override default alert condition.
|
17627
|
+
# Corresponds to the JSON property `featureAlertConditions`
|
17628
|
+
# @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
|
17629
|
+
attr_accessor :feature_alert_conditions
|
17630
|
+
|
17631
|
+
# Feature names interested in monitoring. These should be a subset of the input
|
17632
|
+
# feature names specified in the monitoring schema. If the field is not
|
17633
|
+
# specified all features outlied in the monitoring schema will be used.
|
17634
|
+
# Corresponds to the JSON property `features`
|
17635
|
+
# @return [Array<String>]
|
17636
|
+
attr_accessor :features
|
17637
|
+
|
17638
|
+
def initialize(**args)
|
17639
|
+
update!(**args)
|
17640
|
+
end
|
17641
|
+
|
17642
|
+
# Update properties of this object
|
17643
|
+
def update!(**args)
|
17644
|
+
@batch_explanation_dedicated_resources = args[:batch_explanation_dedicated_resources] if args.key?(:batch_explanation_dedicated_resources)
|
17645
|
+
@default_alert_condition = args[:default_alert_condition] if args.key?(:default_alert_condition)
|
17646
|
+
@feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
|
17647
|
+
@features = args[:features] if args.key?(:features)
|
17648
|
+
end
|
17649
|
+
end
|
17650
|
+
|
17651
|
+
# Tabular monitoring objective.
|
17652
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective
|
17653
|
+
include Google::Apis::Core::Hashable
|
17654
|
+
|
17655
|
+
# Feature attribution monitoring spec.
|
17656
|
+
# Corresponds to the JSON property `featureAttributionSpec`
|
17657
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec]
|
17658
|
+
attr_accessor :feature_attribution_spec
|
17659
|
+
|
17660
|
+
# Data drift monitoring spec. Data drift measures the distribution distance
|
17661
|
+
# between the current dataset and a baseline dataset. A typical use case is to
|
17662
|
+
# detect data drift between the recent production serving dataset and the
|
17663
|
+
# training dataset, or to compare the recent production dataset with a dataset
|
17664
|
+
# from a previous period.
|
17665
|
+
# Corresponds to the JSON property `featureDriftSpec`
|
17666
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
|
17667
|
+
attr_accessor :feature_drift_spec
|
17668
|
+
|
17669
|
+
# Data drift monitoring spec. Data drift measures the distribution distance
|
17670
|
+
# between the current dataset and a baseline dataset. A typical use case is to
|
17671
|
+
# detect data drift between the recent production serving dataset and the
|
17672
|
+
# training dataset, or to compare the recent production dataset with a dataset
|
17673
|
+
# from a previous period.
|
17674
|
+
# Corresponds to the JSON property `predictionOutputDriftSpec`
|
17675
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
|
17676
|
+
attr_accessor :prediction_output_drift_spec
|
17677
|
+
|
17678
|
+
def initialize(**args)
|
17679
|
+
update!(**args)
|
17680
|
+
end
|
17681
|
+
|
17682
|
+
# Update properties of this object
|
17683
|
+
def update!(**args)
|
17684
|
+
@feature_attribution_spec = args[:feature_attribution_spec] if args.key?(:feature_attribution_spec)
|
17685
|
+
@feature_drift_spec = args[:feature_drift_spec] if args.key?(:feature_drift_spec)
|
17686
|
+
@prediction_output_drift_spec = args[:prediction_output_drift_spec] if args.key?(:prediction_output_drift_spec)
|
17687
|
+
end
|
17688
|
+
end
|
17689
|
+
|
17690
|
+
# Specification for the export destination of monitoring results, including
|
17691
|
+
# metrics, logs, etc.
|
17692
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec
|
17693
|
+
include Google::Apis::Core::Hashable
|
17694
|
+
|
17695
|
+
# The Google Cloud Storage location where the output is to be written to.
|
17696
|
+
# Corresponds to the JSON property `gcsBaseDirectory`
|
17697
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsDestination]
|
17698
|
+
attr_accessor :gcs_base_directory
|
17699
|
+
|
17700
|
+
def initialize(**args)
|
17701
|
+
update!(**args)
|
17702
|
+
end
|
17703
|
+
|
17704
|
+
# Update properties of this object
|
17705
|
+
def update!(**args)
|
17706
|
+
@gcs_base_directory = args[:gcs_base_directory] if args.key?(:gcs_base_directory)
|
17707
|
+
end
|
17708
|
+
end
|
17709
|
+
|
17710
|
+
# The Model Monitoring Schema definition.
|
17711
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringSchema
|
17712
|
+
include Google::Apis::Core::Hashable
|
17713
|
+
|
17714
|
+
# Feature names of the model. Vertex AI will try to match the features from your
|
17715
|
+
# dataset as follows: * For 'csv' files, the header names are required, and we
|
17716
|
+
# will extract the corresponding feature values when the header names align with
|
17717
|
+
# the feature names. * For 'jsonl' files, we will extract the corresponding
|
17718
|
+
# feature values if the key names match the feature names. Note: Nested features
|
17719
|
+
# are not supported, so please ensure your features are flattened. Ensure the
|
17720
|
+
# feature values are scalar or an array of scalars. * For 'bigquery' dataset, we
|
17721
|
+
# will extract the corresponding feature values if the column names match the
|
17722
|
+
# feature names. Note: The column type can be a scalar or an array of scalars.
|
17723
|
+
# STRUCT or JSON types are not supported. You may use SQL queries to select or
|
17724
|
+
# aggregate the relevant features from your original table. However, ensure that
|
17725
|
+
# the 'schema' of the query results meets our requirements. * For the Vertex AI
|
17726
|
+
# Endpoint Request Response Logging table or Vertex AI Batch Prediction Job
|
17727
|
+
# results. If the instance_type is an array, ensure that the sequence in
|
17728
|
+
# feature_fields matches the order of features in the prediction instance. We
|
17729
|
+
# will match the feature with the array in the order specified in [
|
17730
|
+
# feature_fields].
|
17731
|
+
# Corresponds to the JSON property `featureFields`
|
17732
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
|
17733
|
+
attr_accessor :feature_fields
|
17734
|
+
|
17735
|
+
# Target /ground truth names of the model.
|
17736
|
+
# Corresponds to the JSON property `groundTruthFields`
|
17737
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
|
17738
|
+
attr_accessor :ground_truth_fields
|
17739
|
+
|
17740
|
+
# The prediction instance type that the Model accepts when serving. Supported
|
17741
|
+
# values are: * `object`: Each input is a JSON object format. * `array`: Each
|
17742
|
+
# input is a JSON array format.
|
17743
|
+
# Corresponds to the JSON property `instanceType`
|
17744
|
+
# @return [String]
|
17745
|
+
attr_accessor :instance_type
|
17746
|
+
|
17747
|
+
# Prediction output names of the model. The requirements are the same as the
|
17748
|
+
# feature_fields. For AutoML Tables, the prediction output name presented in
|
17749
|
+
# schema will be: `predicted_`target_column``, the `target_column` is the one
|
17750
|
+
# you specified when you train the model. For Prediction output drift analysis: *
|
17751
|
+
# AutoML Classification, the distribution of the argmax label will be analyzed.
|
17752
|
+
# * AutoML Regression, the distribution of the value will be analyzed.
|
17753
|
+
# Corresponds to the JSON property `predictionFields`
|
17754
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
|
17755
|
+
attr_accessor :prediction_fields
|
17756
|
+
|
17757
|
+
def initialize(**args)
|
17758
|
+
update!(**args)
|
17759
|
+
end
|
17760
|
+
|
17761
|
+
# Update properties of this object
|
17762
|
+
def update!(**args)
|
17763
|
+
@feature_fields = args[:feature_fields] if args.key?(:feature_fields)
|
17764
|
+
@ground_truth_fields = args[:ground_truth_fields] if args.key?(:ground_truth_fields)
|
17765
|
+
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
17766
|
+
@prediction_fields = args[:prediction_fields] if args.key?(:prediction_fields)
|
17767
|
+
end
|
17768
|
+
end
|
17769
|
+
|
17770
|
+
# Schema field definition.
|
17771
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema
|
17772
|
+
include Google::Apis::Core::Hashable
|
17773
|
+
|
17774
|
+
# Supported data types are: `float` `integer` `boolean` `string` `categorical`
|
17775
|
+
# Corresponds to the JSON property `dataType`
|
17776
|
+
# @return [String]
|
17777
|
+
attr_accessor :data_type
|
17778
|
+
|
17779
|
+
# Field name.
|
17780
|
+
# Corresponds to the JSON property `name`
|
17781
|
+
# @return [String]
|
17782
|
+
attr_accessor :name
|
17783
|
+
|
17784
|
+
# Describes if the schema field is an array of given data type.
|
17785
|
+
# Corresponds to the JSON property `repeated`
|
17786
|
+
# @return [Boolean]
|
17787
|
+
attr_accessor :repeated
|
17788
|
+
alias_method :repeated?, :repeated
|
17789
|
+
|
17790
|
+
def initialize(**args)
|
17791
|
+
update!(**args)
|
17792
|
+
end
|
17793
|
+
|
17794
|
+
# Update properties of this object
|
17795
|
+
def update!(**args)
|
17796
|
+
@data_type = args[:data_type] if args.key?(:data_type)
|
17797
|
+
@name = args[:name] if args.key?(:name)
|
17798
|
+
@repeated = args[:repeated] if args.key?(:repeated)
|
17799
|
+
end
|
17800
|
+
end
|
17801
|
+
|
17802
|
+
# Monitoring monitoring job spec. It outlines the specifications for monitoring
|
17803
|
+
# objectives, notifications, and result exports.
|
17804
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringSpec
|
17805
|
+
include Google::Apis::Core::Hashable
|
17806
|
+
|
17807
|
+
# Notification spec(email, notification channel) for model monitoring statistics/
|
17808
|
+
# alerts.
|
17809
|
+
# Corresponds to the JSON property `notificationSpec`
|
17810
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
|
17811
|
+
attr_accessor :notification_spec
|
17812
|
+
|
17813
|
+
# Monitoring objectives spec.
|
17814
|
+
# Corresponds to the JSON property `objectiveSpec`
|
17815
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec]
|
17816
|
+
attr_accessor :objective_spec
|
17817
|
+
|
17818
|
+
# Specification for the export destination of monitoring results, including
|
17819
|
+
# metrics, logs, etc.
|
17820
|
+
# Corresponds to the JSON property `outputSpec`
|
17821
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
|
17822
|
+
attr_accessor :output_spec
|
17823
|
+
|
17824
|
+
def initialize(**args)
|
17825
|
+
update!(**args)
|
17826
|
+
end
|
17827
|
+
|
17828
|
+
# Update properties of this object
|
17829
|
+
def update!(**args)
|
17830
|
+
@notification_spec = args[:notification_spec] if args.key?(:notification_spec)
|
17831
|
+
@objective_spec = args[:objective_spec] if args.key?(:objective_spec)
|
17832
|
+
@output_spec = args[:output_spec] if args.key?(:output_spec)
|
17833
|
+
end
|
17834
|
+
end
|
17835
|
+
|
17836
|
+
# Represents the collection of statistics for a metric.
|
17837
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringStats
|
17838
|
+
include Google::Apis::Core::Hashable
|
17839
|
+
|
17840
|
+
# A collection of data points that describes the time-varying values of a
|
17841
|
+
# tabular metric.
|
17842
|
+
# Corresponds to the JSON property `tabularStats`
|
17843
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats]
|
17844
|
+
attr_accessor :tabular_stats
|
17845
|
+
|
17846
|
+
def initialize(**args)
|
17847
|
+
update!(**args)
|
17848
|
+
end
|
17849
|
+
|
17850
|
+
# Update properties of this object
|
17851
|
+
def update!(**args)
|
17852
|
+
@tabular_stats = args[:tabular_stats] if args.key?(:tabular_stats)
|
17853
|
+
end
|
17854
|
+
end
|
17855
|
+
|
16905
17856
|
# Statistics and anomalies generated by Model Monitoring.
|
16906
17857
|
class GoogleCloudAiplatformV1beta1ModelMonitoringStatsAnomalies
|
16907
17858
|
include Google::Apis::Core::Hashable
|
@@ -16984,6 +17935,157 @@ module Google
|
|
16984
17935
|
end
|
16985
17936
|
end
|
16986
17937
|
|
17938
|
+
# Represents a single statistics data point.
|
17939
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint
|
17940
|
+
include Google::Apis::Core::Hashable
|
17941
|
+
|
17942
|
+
# Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
|
17943
|
+
# l_infinity.
|
17944
|
+
# Corresponds to the JSON property `algorithm`
|
17945
|
+
# @return [String]
|
17946
|
+
attr_accessor :algorithm
|
17947
|
+
|
17948
|
+
# Typed value of the statistics.
|
17949
|
+
# Corresponds to the JSON property `baselineStats`
|
17950
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
|
17951
|
+
attr_accessor :baseline_stats
|
17952
|
+
|
17953
|
+
# Statistics create time.
|
17954
|
+
# Corresponds to the JSON property `createTime`
|
17955
|
+
# @return [String]
|
17956
|
+
attr_accessor :create_time
|
17957
|
+
|
17958
|
+
# Typed value of the statistics.
|
17959
|
+
# Corresponds to the JSON property `currentStats`
|
17960
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
|
17961
|
+
attr_accessor :current_stats
|
17962
|
+
|
17963
|
+
# Indicate if the statistics has anomaly.
|
17964
|
+
# Corresponds to the JSON property `hasAnomaly`
|
17965
|
+
# @return [Boolean]
|
17966
|
+
attr_accessor :has_anomaly
|
17967
|
+
alias_method :has_anomaly?, :has_anomaly
|
17968
|
+
|
17969
|
+
# Model monitoring job resource name.
|
17970
|
+
# Corresponds to the JSON property `modelMonitoringJob`
|
17971
|
+
# @return [String]
|
17972
|
+
attr_accessor :model_monitoring_job
|
17973
|
+
|
17974
|
+
# Schedule resource name.
|
17975
|
+
# Corresponds to the JSON property `schedule`
|
17976
|
+
# @return [String]
|
17977
|
+
attr_accessor :schedule
|
17978
|
+
|
17979
|
+
# Threshold value.
|
17980
|
+
# Corresponds to the JSON property `thresholdValue`
|
17981
|
+
# @return [Float]
|
17982
|
+
attr_accessor :threshold_value
|
17983
|
+
|
17984
|
+
def initialize(**args)
|
17985
|
+
update!(**args)
|
17986
|
+
end
|
17987
|
+
|
17988
|
+
# Update properties of this object
|
17989
|
+
def update!(**args)
|
17990
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
17991
|
+
@baseline_stats = args[:baseline_stats] if args.key?(:baseline_stats)
|
17992
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
17993
|
+
@current_stats = args[:current_stats] if args.key?(:current_stats)
|
17994
|
+
@has_anomaly = args[:has_anomaly] if args.key?(:has_anomaly)
|
17995
|
+
@model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
|
17996
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
17997
|
+
@threshold_value = args[:threshold_value] if args.key?(:threshold_value)
|
17998
|
+
end
|
17999
|
+
end
|
18000
|
+
|
18001
|
+
# Typed value of the statistics.
|
18002
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue
|
18003
|
+
include Google::Apis::Core::Hashable
|
18004
|
+
|
18005
|
+
# Summary statistics for a population of values.
|
18006
|
+
# Corresponds to the JSON property `distributionValue`
|
18007
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue]
|
18008
|
+
attr_accessor :distribution_value
|
18009
|
+
|
18010
|
+
# Double.
|
18011
|
+
# Corresponds to the JSON property `doubleValue`
|
18012
|
+
# @return [Float]
|
18013
|
+
attr_accessor :double_value
|
18014
|
+
|
18015
|
+
def initialize(**args)
|
18016
|
+
update!(**args)
|
18017
|
+
end
|
18018
|
+
|
18019
|
+
# Update properties of this object
|
18020
|
+
def update!(**args)
|
18021
|
+
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
|
18022
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
18023
|
+
end
|
18024
|
+
end
|
18025
|
+
|
18026
|
+
# Summary statistics for a population of values.
|
18027
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue
|
18028
|
+
include Google::Apis::Core::Hashable
|
18029
|
+
|
18030
|
+
# tensorflow.metadata.v0.DatasetFeatureStatistics format.
|
18031
|
+
# Corresponds to the JSON property `distribution`
|
18032
|
+
# @return [Object]
|
18033
|
+
attr_accessor :distribution
|
18034
|
+
|
18035
|
+
# Distribution distance deviation from the current dataset's statistics to
|
18036
|
+
# baseline dataset's statistics. * For categorical feature, the distribution
|
18037
|
+
# distance is calculated by L-inifinity norm or Jensen–Shannon divergence. * For
|
18038
|
+
# numerical feature, the distribution distance is calculated by Jensen–Shannon
|
18039
|
+
# divergence.
|
18040
|
+
# Corresponds to the JSON property `distributionDeviation`
|
18041
|
+
# @return [Float]
|
18042
|
+
attr_accessor :distribution_deviation
|
18043
|
+
|
18044
|
+
def initialize(**args)
|
18045
|
+
update!(**args)
|
18046
|
+
end
|
18047
|
+
|
18048
|
+
# Update properties of this object
|
18049
|
+
def update!(**args)
|
18050
|
+
@distribution = args[:distribution] if args.key?(:distribution)
|
18051
|
+
@distribution_deviation = args[:distribution_deviation] if args.key?(:distribution_deviation)
|
18052
|
+
end
|
18053
|
+
end
|
18054
|
+
|
18055
|
+
# A collection of data points that describes the time-varying values of a
|
18056
|
+
# tabular metric.
|
18057
|
+
class GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats
|
18058
|
+
include Google::Apis::Core::Hashable
|
18059
|
+
|
18060
|
+
# The data points of this time series. When listing time series, points are
|
18061
|
+
# returned in reverse time order.
|
18062
|
+
# Corresponds to the JSON property `dataPoints`
|
18063
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint>]
|
18064
|
+
attr_accessor :data_points
|
18065
|
+
|
18066
|
+
# One of the supported monitoring objectives: `raw-feature-drift` `prediction-
|
18067
|
+
# output-drift` `feature-attribution`
|
18068
|
+
# Corresponds to the JSON property `objectiveType`
|
18069
|
+
# @return [String]
|
18070
|
+
attr_accessor :objective_type
|
18071
|
+
|
18072
|
+
# The stats name.
|
18073
|
+
# Corresponds to the JSON property `statsName`
|
18074
|
+
# @return [String]
|
18075
|
+
attr_accessor :stats_name
|
18076
|
+
|
18077
|
+
def initialize(**args)
|
18078
|
+
update!(**args)
|
18079
|
+
end
|
18080
|
+
|
18081
|
+
# Update properties of this object
|
18082
|
+
def update!(**args)
|
18083
|
+
@data_points = args[:data_points] if args.key?(:data_points)
|
18084
|
+
@objective_type = args[:objective_type] if args.key?(:objective_type)
|
18085
|
+
@stats_name = args[:stats_name] if args.key?(:stats_name)
|
18086
|
+
end
|
18087
|
+
end
|
18088
|
+
|
16987
18089
|
# Contains information about the original Model if this Model is a copy.
|
16988
18090
|
class GoogleCloudAiplatformV1beta1ModelOriginalModelInfo
|
16989
18091
|
include Google::Apis::Core::Hashable
|
@@ -17971,6 +19073,167 @@ module Google
|
|
17971
19073
|
end
|
17972
19074
|
end
|
17973
19075
|
|
19076
|
+
# NotebookExecutionJob represents an instance of a notebook execution.
|
19077
|
+
class GoogleCloudAiplatformV1beta1NotebookExecutionJob
|
19078
|
+
include Google::Apis::Core::Hashable
|
19079
|
+
|
19080
|
+
# Output only. Timestamp when this NotebookExecutionJob was created.
|
19081
|
+
# Corresponds to the JSON property `createTime`
|
19082
|
+
# @return [String]
|
19083
|
+
attr_accessor :create_time
|
19084
|
+
|
19085
|
+
# The Dataform Repository containing the input notebook.
|
19086
|
+
# Corresponds to the JSON property `dataformRepositorySource`
|
19087
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource]
|
19088
|
+
attr_accessor :dataform_repository_source
|
19089
|
+
|
19090
|
+
# The display name of the NotebookExecutionJob. The name can be up to 128
|
19091
|
+
# characters long and can consist of any UTF-8 characters.
|
19092
|
+
# Corresponds to the JSON property `displayName`
|
19093
|
+
# @return [String]
|
19094
|
+
attr_accessor :display_name
|
19095
|
+
|
19096
|
+
# Max running time of the execution job in seconds (default 86400s / 24 hrs).
|
19097
|
+
# Corresponds to the JSON property `executionTimeout`
|
19098
|
+
# @return [String]
|
19099
|
+
attr_accessor :execution_timeout
|
19100
|
+
|
19101
|
+
# The user email to run the execution as. Only supported by Colab runtimes.
|
19102
|
+
# Corresponds to the JSON property `executionUser`
|
19103
|
+
# @return [String]
|
19104
|
+
attr_accessor :execution_user
|
19105
|
+
|
19106
|
+
# The Cloud Storage uri for the input notebook.
|
19107
|
+
# Corresponds to the JSON property `gcsNotebookSource`
|
19108
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource]
|
19109
|
+
attr_accessor :gcs_notebook_source
|
19110
|
+
|
19111
|
+
# The GCS location to upload the result to. Format: `gs://bucket-name`
|
19112
|
+
# Corresponds to the JSON property `gcsOutputUri`
|
19113
|
+
# @return [String]
|
19114
|
+
attr_accessor :gcs_output_uri
|
19115
|
+
|
19116
|
+
# Output only. The state of the NotebookExecutionJob.
|
19117
|
+
# Corresponds to the JSON property `jobState`
|
19118
|
+
# @return [String]
|
19119
|
+
attr_accessor :job_state
|
19120
|
+
|
19121
|
+
# Output only. The resource name of this NotebookExecutionJob. Format: `projects/
|
19122
|
+
# `project_id`/locations/`location`/notebookExecutionJobs/`job_id``
|
19123
|
+
# Corresponds to the JSON property `name`
|
19124
|
+
# @return [String]
|
19125
|
+
attr_accessor :name
|
19126
|
+
|
19127
|
+
# The NotebookRuntimeTemplate to source compute configuration from.
|
19128
|
+
# Corresponds to the JSON property `notebookRuntimeTemplateResourceName`
|
19129
|
+
# @return [String]
|
19130
|
+
attr_accessor :notebook_runtime_template_resource_name
|
19131
|
+
|
19132
|
+
# Output only. The Schedule resource name if this job is triggered by one.
|
19133
|
+
# Format: `projects/`project_id`/locations/`location`/schedules/`schedule_id``
|
19134
|
+
# Corresponds to the JSON property `scheduleResourceName`
|
19135
|
+
# @return [String]
|
19136
|
+
attr_accessor :schedule_resource_name
|
19137
|
+
|
19138
|
+
# The service account to run the execution as.
|
19139
|
+
# Corresponds to the JSON property `serviceAccount`
|
19140
|
+
# @return [String]
|
19141
|
+
attr_accessor :service_account
|
19142
|
+
|
19143
|
+
# The `Status` type defines a logical error model that is suitable for different
|
19144
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
19145
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
19146
|
+
# data: error code, error message, and error details. You can find out more
|
19147
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
19148
|
+
# //cloud.google.com/apis/design/errors).
|
19149
|
+
# Corresponds to the JSON property `status`
|
19150
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
19151
|
+
attr_accessor :status
|
19152
|
+
|
19153
|
+
# Output only. Timestamp when this NotebookExecutionJob was most recently
|
19154
|
+
# updated.
|
19155
|
+
# Corresponds to the JSON property `updateTime`
|
19156
|
+
# @return [String]
|
19157
|
+
attr_accessor :update_time
|
19158
|
+
|
19159
|
+
def initialize(**args)
|
19160
|
+
update!(**args)
|
19161
|
+
end
|
19162
|
+
|
19163
|
+
# Update properties of this object
|
19164
|
+
def update!(**args)
|
19165
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
19166
|
+
@dataform_repository_source = args[:dataform_repository_source] if args.key?(:dataform_repository_source)
|
19167
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
19168
|
+
@execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
|
19169
|
+
@execution_user = args[:execution_user] if args.key?(:execution_user)
|
19170
|
+
@gcs_notebook_source = args[:gcs_notebook_source] if args.key?(:gcs_notebook_source)
|
19171
|
+
@gcs_output_uri = args[:gcs_output_uri] if args.key?(:gcs_output_uri)
|
19172
|
+
@job_state = args[:job_state] if args.key?(:job_state)
|
19173
|
+
@name = args[:name] if args.key?(:name)
|
19174
|
+
@notebook_runtime_template_resource_name = args[:notebook_runtime_template_resource_name] if args.key?(:notebook_runtime_template_resource_name)
|
19175
|
+
@schedule_resource_name = args[:schedule_resource_name] if args.key?(:schedule_resource_name)
|
19176
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
19177
|
+
@status = args[:status] if args.key?(:status)
|
19178
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
19179
|
+
end
|
19180
|
+
end
|
19181
|
+
|
19182
|
+
# The Dataform Repository containing the input notebook.
|
19183
|
+
class GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource
|
19184
|
+
include Google::Apis::Core::Hashable
|
19185
|
+
|
19186
|
+
# The commit SHA to read repository with. If unset, the file will be read at
|
19187
|
+
# HEAD.
|
19188
|
+
# Corresponds to the JSON property `commitSha`
|
19189
|
+
# @return [String]
|
19190
|
+
attr_accessor :commit_sha
|
19191
|
+
|
19192
|
+
# The resource name of the Dataform Repository. Format: `projects/`project_id`/
|
19193
|
+
# locations/`location`/repositories/`repository_id``
|
19194
|
+
# Corresponds to the JSON property `dataformRepositoryResourceName`
|
19195
|
+
# @return [String]
|
19196
|
+
attr_accessor :dataform_repository_resource_name
|
19197
|
+
|
19198
|
+
def initialize(**args)
|
19199
|
+
update!(**args)
|
19200
|
+
end
|
19201
|
+
|
19202
|
+
# Update properties of this object
|
19203
|
+
def update!(**args)
|
19204
|
+
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
19205
|
+
@dataform_repository_resource_name = args[:dataform_repository_resource_name] if args.key?(:dataform_repository_resource_name)
|
19206
|
+
end
|
19207
|
+
end
|
19208
|
+
|
19209
|
+
# The Cloud Storage uri for the input notebook.
|
19210
|
+
class GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource
|
19211
|
+
include Google::Apis::Core::Hashable
|
19212
|
+
|
19213
|
+
# The version of the Cloud Storage object to read. If unset, the current version
|
19214
|
+
# of the object is read. See https://cloud.google.com/storage/docs/metadata#
|
19215
|
+
# generation-number.
|
19216
|
+
# Corresponds to the JSON property `generation`
|
19217
|
+
# @return [String]
|
19218
|
+
attr_accessor :generation
|
19219
|
+
|
19220
|
+
# The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/
|
19221
|
+
# notebook_file.ipynb`
|
19222
|
+
# Corresponds to the JSON property `uri`
|
19223
|
+
# @return [String]
|
19224
|
+
attr_accessor :uri
|
19225
|
+
|
19226
|
+
def initialize(**args)
|
19227
|
+
update!(**args)
|
19228
|
+
end
|
19229
|
+
|
19230
|
+
# Update properties of this object
|
19231
|
+
def update!(**args)
|
19232
|
+
@generation = args[:generation] if args.key?(:generation)
|
19233
|
+
@uri = args[:uri] if args.key?(:uri)
|
19234
|
+
end
|
19235
|
+
end
|
19236
|
+
|
17974
19237
|
# The idle shutdown configuration of NotebookRuntimeTemplate, which contains the
|
17975
19238
|
# idle_timeout as required field.
|
17976
19239
|
class GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig
|
@@ -18369,7 +19632,7 @@ module Google
|
|
18369
19632
|
# @return [String]
|
18370
19633
|
attr_accessor :baseline_prediction
|
18371
19634
|
|
18372
|
-
#
|
19635
|
+
# Required. Text to answer the question.
|
18373
19636
|
# Corresponds to the JSON property `context`
|
18374
19637
|
# @return [String]
|
18375
19638
|
attr_accessor :context
|
@@ -19887,11 +21150,6 @@ module Google
|
|
19887
21150
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke]
|
19888
21151
|
attr_accessor :deploy_gke
|
19889
21152
|
|
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
21153
|
# The regional resource name or the URI. Key is region, e.g., us-central1,
|
19896
21154
|
# europe-west2, global, etc..
|
19897
21155
|
# Corresponds to the JSON property `openEvaluationPipeline`
|
@@ -19958,7 +21216,6 @@ module Google
|
|
19958
21216
|
@create_application = args[:create_application] if args.key?(:create_application)
|
19959
21217
|
@deploy = args[:deploy] if args.key?(:deploy)
|
19960
21218
|
@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
21219
|
@open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
|
19963
21220
|
@open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
|
19964
21221
|
@open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
|
@@ -20068,25 +21325,6 @@ module Google
|
|
20068
21325
|
end
|
20069
21326
|
end
|
20070
21327
|
|
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
21328
|
# Open fine tuning pipelines.
|
20091
21329
|
class GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines
|
20092
21330
|
include Google::Apis::Core::Hashable
|
@@ -20931,258 +22169,18 @@ module Google
|
|
20931
22169
|
end
|
20932
22170
|
end
|
20933
22171
|
|
20934
|
-
# Input for question answering quality metric.
|
20935
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInput
|
20936
|
-
include Google::Apis::Core::Hashable
|
20937
|
-
|
20938
|
-
# Spec for question answering quality instance.
|
20939
|
-
# Corresponds to the JSON property `instance`
|
20940
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance]
|
20941
|
-
attr_accessor :instance
|
20942
|
-
|
20943
|
-
# Spec for question answering quality score metric.
|
20944
|
-
# Corresponds to the JSON property `metricSpec`
|
20945
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec]
|
20946
|
-
attr_accessor :metric_spec
|
20947
|
-
|
20948
|
-
def initialize(**args)
|
20949
|
-
update!(**args)
|
20950
|
-
end
|
20951
|
-
|
20952
|
-
# Update properties of this object
|
20953
|
-
def update!(**args)
|
20954
|
-
@instance = args[:instance] if args.key?(:instance)
|
20955
|
-
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
20956
|
-
end
|
20957
|
-
end
|
20958
|
-
|
20959
|
-
# Spec for question answering quality instance.
|
20960
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance
|
20961
|
-
include Google::Apis::Core::Hashable
|
20962
|
-
|
20963
|
-
# Optional. Text to answer the question.
|
20964
|
-
# Corresponds to the JSON property `context`
|
20965
|
-
# @return [String]
|
20966
|
-
attr_accessor :context
|
20967
|
-
|
20968
|
-
# Required. Question Answering prompt for LLM.
|
20969
|
-
# Corresponds to the JSON property `instruction`
|
20970
|
-
# @return [String]
|
20971
|
-
attr_accessor :instruction
|
20972
|
-
|
20973
|
-
# Required. Output of the evaluated model.
|
20974
|
-
# Corresponds to the JSON property `prediction`
|
20975
|
-
# @return [String]
|
20976
|
-
attr_accessor :prediction
|
20977
|
-
|
20978
|
-
# Optional. Ground truth used to compare against the prediction.
|
20979
|
-
# Corresponds to the JSON property `reference`
|
20980
|
-
# @return [String]
|
20981
|
-
attr_accessor :reference
|
20982
|
-
|
20983
|
-
def initialize(**args)
|
20984
|
-
update!(**args)
|
20985
|
-
end
|
20986
|
-
|
20987
|
-
# Update properties of this object
|
20988
|
-
def update!(**args)
|
20989
|
-
@context = args[:context] if args.key?(:context)
|
20990
|
-
@instruction = args[:instruction] if args.key?(:instruction)
|
20991
|
-
@prediction = args[:prediction] if args.key?(:prediction)
|
20992
|
-
@reference = args[:reference] if args.key?(:reference)
|
20993
|
-
end
|
20994
|
-
end
|
20995
|
-
|
20996
|
-
# Spec for question answering quality result.
|
20997
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityResult
|
20998
|
-
include Google::Apis::Core::Hashable
|
20999
|
-
|
21000
|
-
# Output only. Confidence for question answering quality score.
|
21001
|
-
# Corresponds to the JSON property `confidence`
|
21002
|
-
# @return [Float]
|
21003
|
-
attr_accessor :confidence
|
21004
|
-
|
21005
|
-
# Output only. Explanation for question answering quality score.
|
21006
|
-
# Corresponds to the JSON property `explanation`
|
21007
|
-
# @return [String]
|
21008
|
-
attr_accessor :explanation
|
21009
|
-
|
21010
|
-
# Output only. Question Answering Quality score.
|
21011
|
-
# Corresponds to the JSON property `score`
|
21012
|
-
# @return [Float]
|
21013
|
-
attr_accessor :score
|
21014
|
-
|
21015
|
-
def initialize(**args)
|
21016
|
-
update!(**args)
|
21017
|
-
end
|
21018
|
-
|
21019
|
-
# Update properties of this object
|
21020
|
-
def update!(**args)
|
21021
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
21022
|
-
@explanation = args[:explanation] if args.key?(:explanation)
|
21023
|
-
@score = args[:score] if args.key?(:score)
|
21024
|
-
end
|
21025
|
-
end
|
21026
|
-
|
21027
|
-
# Spec for question answering quality score metric.
|
21028
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec
|
21029
|
-
include Google::Apis::Core::Hashable
|
21030
|
-
|
21031
|
-
# Optional. Whether to use instance.reference to compute question answering
|
21032
|
-
# quality.
|
21033
|
-
# Corresponds to the JSON property `useReference`
|
21034
|
-
# @return [Boolean]
|
21035
|
-
attr_accessor :use_reference
|
21036
|
-
alias_method :use_reference?, :use_reference
|
21037
|
-
|
21038
|
-
# Optional. Which version to use for evaluation.
|
21039
|
-
# Corresponds to the JSON property `version`
|
21040
|
-
# @return [Fixnum]
|
21041
|
-
attr_accessor :version
|
21042
|
-
|
21043
|
-
def initialize(**args)
|
21044
|
-
update!(**args)
|
21045
|
-
end
|
21046
|
-
|
21047
|
-
# Update properties of this object
|
21048
|
-
def update!(**args)
|
21049
|
-
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
21050
|
-
@version = args[:version] if args.key?(:version)
|
21051
|
-
end
|
21052
|
-
end
|
21053
|
-
|
21054
|
-
# Input for question answering relevance metric.
|
21055
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput
|
21056
|
-
include Google::Apis::Core::Hashable
|
21057
|
-
|
21058
|
-
# Spec for question answering relevance instance.
|
21059
|
-
# Corresponds to the JSON property `instance`
|
21060
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance]
|
21061
|
-
attr_accessor :instance
|
21062
|
-
|
21063
|
-
# Spec for question answering relevance metric.
|
21064
|
-
# Corresponds to the JSON property `metricSpec`
|
21065
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec]
|
21066
|
-
attr_accessor :metric_spec
|
21067
|
-
|
21068
|
-
def initialize(**args)
|
21069
|
-
update!(**args)
|
21070
|
-
end
|
21071
|
-
|
21072
|
-
# Update properties of this object
|
21073
|
-
def update!(**args)
|
21074
|
-
@instance = args[:instance] if args.key?(:instance)
|
21075
|
-
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
21076
|
-
end
|
21077
|
-
end
|
21078
|
-
|
21079
|
-
# Spec for question answering relevance instance.
|
21080
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance
|
21081
|
-
include Google::Apis::Core::Hashable
|
21082
|
-
|
21083
|
-
# Optional. Text provided as context to answer the question.
|
21084
|
-
# Corresponds to the JSON property `context`
|
21085
|
-
# @return [String]
|
21086
|
-
attr_accessor :context
|
21087
|
-
|
21088
|
-
# Required. The question asked and other instruction in the inference prompt.
|
21089
|
-
# Corresponds to the JSON property `instruction`
|
21090
|
-
# @return [String]
|
21091
|
-
attr_accessor :instruction
|
21092
|
-
|
21093
|
-
# Required. Output of the evaluated model.
|
21094
|
-
# Corresponds to the JSON property `prediction`
|
21095
|
-
# @return [String]
|
21096
|
-
attr_accessor :prediction
|
21097
|
-
|
21098
|
-
# Optional. Ground truth used to compare against the prediction.
|
21099
|
-
# Corresponds to the JSON property `reference`
|
21100
|
-
# @return [String]
|
21101
|
-
attr_accessor :reference
|
21102
|
-
|
21103
|
-
def initialize(**args)
|
21104
|
-
update!(**args)
|
21105
|
-
end
|
21106
|
-
|
21107
|
-
# Update properties of this object
|
21108
|
-
def update!(**args)
|
21109
|
-
@context = args[:context] if args.key?(:context)
|
21110
|
-
@instruction = args[:instruction] if args.key?(:instruction)
|
21111
|
-
@prediction = args[:prediction] if args.key?(:prediction)
|
21112
|
-
@reference = args[:reference] if args.key?(:reference)
|
21113
|
-
end
|
21114
|
-
end
|
21115
|
-
|
21116
|
-
# Spec for question answering relevance result.
|
21117
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult
|
21118
|
-
include Google::Apis::Core::Hashable
|
21119
|
-
|
21120
|
-
# Output only. Confidence for question answering relevance score.
|
21121
|
-
# Corresponds to the JSON property `confidence`
|
21122
|
-
# @return [Float]
|
21123
|
-
attr_accessor :confidence
|
21124
|
-
|
21125
|
-
# Output only. Explanation for question answering relevance score.
|
21126
|
-
# Corresponds to the JSON property `explanation`
|
21127
|
-
# @return [String]
|
21128
|
-
attr_accessor :explanation
|
21129
|
-
|
21130
|
-
# Output only. Question Answering Relevance score.
|
21131
|
-
# Corresponds to the JSON property `score`
|
21132
|
-
# @return [Float]
|
21133
|
-
attr_accessor :score
|
21134
|
-
|
21135
|
-
def initialize(**args)
|
21136
|
-
update!(**args)
|
21137
|
-
end
|
21138
|
-
|
21139
|
-
# Update properties of this object
|
21140
|
-
def update!(**args)
|
21141
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
21142
|
-
@explanation = args[:explanation] if args.key?(:explanation)
|
21143
|
-
@score = args[:score] if args.key?(:score)
|
21144
|
-
end
|
21145
|
-
end
|
21146
|
-
|
21147
|
-
# Spec for question answering relevance metric.
|
21148
|
-
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec
|
21149
|
-
include Google::Apis::Core::Hashable
|
21150
|
-
|
21151
|
-
# Optional. Whether to use instance.reference to compute question answering
|
21152
|
-
# relevance.
|
21153
|
-
# Corresponds to the JSON property `useReference`
|
21154
|
-
# @return [Boolean]
|
21155
|
-
attr_accessor :use_reference
|
21156
|
-
alias_method :use_reference?, :use_reference
|
21157
|
-
|
21158
|
-
# Optional. Which version to use for evaluation.
|
21159
|
-
# Corresponds to the JSON property `version`
|
21160
|
-
# @return [Fixnum]
|
21161
|
-
attr_accessor :version
|
21162
|
-
|
21163
|
-
def initialize(**args)
|
21164
|
-
update!(**args)
|
21165
|
-
end
|
21166
|
-
|
21167
|
-
# Update properties of this object
|
21168
|
-
def update!(**args)
|
21169
|
-
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
21170
|
-
@version = args[:version] if args.key?(:version)
|
21171
|
-
end
|
21172
|
-
end
|
21173
|
-
|
21174
|
-
# Input for rag context recall metric.
|
21175
|
-
class GoogleCloudAiplatformV1beta1RagContextRecallInput
|
22172
|
+
# Input for question answering quality metric.
|
22173
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInput
|
21176
22174
|
include Google::Apis::Core::Hashable
|
21177
22175
|
|
21178
|
-
# Spec for
|
22176
|
+
# Spec for question answering quality instance.
|
21179
22177
|
# Corresponds to the JSON property `instance`
|
21180
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22178
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance]
|
21181
22179
|
attr_accessor :instance
|
21182
22180
|
|
21183
|
-
# Spec for
|
22181
|
+
# Spec for question answering quality score metric.
|
21184
22182
|
# Corresponds to the JSON property `metricSpec`
|
21185
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22183
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec]
|
21186
22184
|
attr_accessor :metric_spec
|
21187
22185
|
|
21188
22186
|
def initialize(**args)
|
@@ -21196,16 +22194,26 @@ module Google
|
|
21196
22194
|
end
|
21197
22195
|
end
|
21198
22196
|
|
21199
|
-
# Spec for
|
21200
|
-
class
|
22197
|
+
# Spec for question answering quality instance.
|
22198
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance
|
21201
22199
|
include Google::Apis::Core::Hashable
|
21202
22200
|
|
21203
|
-
# Required.
|
22201
|
+
# Required. Text to answer the question.
|
21204
22202
|
# Corresponds to the JSON property `context`
|
21205
22203
|
# @return [String]
|
21206
22204
|
attr_accessor :context
|
21207
22205
|
|
21208
|
-
# Required.
|
22206
|
+
# Required. Question Answering prompt for LLM.
|
22207
|
+
# Corresponds to the JSON property `instruction`
|
22208
|
+
# @return [String]
|
22209
|
+
attr_accessor :instruction
|
22210
|
+
|
22211
|
+
# Required. Output of the evaluated model.
|
22212
|
+
# Corresponds to the JSON property `prediction`
|
22213
|
+
# @return [String]
|
22214
|
+
attr_accessor :prediction
|
22215
|
+
|
22216
|
+
# Optional. Ground truth used to compare against the prediction.
|
21209
22217
|
# Corresponds to the JSON property `reference`
|
21210
22218
|
# @return [String]
|
21211
22219
|
attr_accessor :reference
|
@@ -21217,25 +22225,27 @@ module Google
|
|
21217
22225
|
# Update properties of this object
|
21218
22226
|
def update!(**args)
|
21219
22227
|
@context = args[:context] if args.key?(:context)
|
22228
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
22229
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
21220
22230
|
@reference = args[:reference] if args.key?(:reference)
|
21221
22231
|
end
|
21222
22232
|
end
|
21223
22233
|
|
21224
|
-
# Spec for
|
21225
|
-
class
|
22234
|
+
# Spec for question answering quality result.
|
22235
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityResult
|
21226
22236
|
include Google::Apis::Core::Hashable
|
21227
22237
|
|
21228
|
-
# Output only. Confidence for
|
22238
|
+
# Output only. Confidence for question answering quality score.
|
21229
22239
|
# Corresponds to the JSON property `confidence`
|
21230
22240
|
# @return [Float]
|
21231
22241
|
attr_accessor :confidence
|
21232
22242
|
|
21233
|
-
# Output only. Explanation for
|
22243
|
+
# Output only. Explanation for question answering quality score.
|
21234
22244
|
# Corresponds to the JSON property `explanation`
|
21235
22245
|
# @return [String]
|
21236
22246
|
attr_accessor :explanation
|
21237
22247
|
|
21238
|
-
# Output only.
|
22248
|
+
# Output only. Question Answering Quality score.
|
21239
22249
|
# Corresponds to the JSON property `score`
|
21240
22250
|
# @return [Float]
|
21241
22251
|
attr_accessor :score
|
@@ -21252,10 +22262,17 @@ module Google
|
|
21252
22262
|
end
|
21253
22263
|
end
|
21254
22264
|
|
21255
|
-
# Spec for
|
21256
|
-
class
|
22265
|
+
# Spec for question answering quality score metric.
|
22266
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec
|
21257
22267
|
include Google::Apis::Core::Hashable
|
21258
22268
|
|
22269
|
+
# Optional. Whether to use instance.reference to compute question answering
|
22270
|
+
# quality.
|
22271
|
+
# Corresponds to the JSON property `useReference`
|
22272
|
+
# @return [Boolean]
|
22273
|
+
attr_accessor :use_reference
|
22274
|
+
alias_method :use_reference?, :use_reference
|
22275
|
+
|
21259
22276
|
# Optional. Which version to use for evaluation.
|
21260
22277
|
# Corresponds to the JSON property `version`
|
21261
22278
|
# @return [Fixnum]
|
@@ -21267,49 +22284,24 @@ module Google
|
|
21267
22284
|
|
21268
22285
|
# Update properties of this object
|
21269
22286
|
def update!(**args)
|
22287
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
21270
22288
|
@version = args[:version] if args.key?(:version)
|
21271
22289
|
end
|
21272
22290
|
end
|
21273
22291
|
|
21274
|
-
#
|
21275
|
-
class
|
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
|
22292
|
+
# Input for question answering relevance metric.
|
22293
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput
|
21295
22294
|
include Google::Apis::Core::Hashable
|
21296
22295
|
|
21297
|
-
#
|
21298
|
-
# Corresponds to the JSON property `
|
21299
|
-
# @return [
|
21300
|
-
attr_accessor :
|
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
|
22296
|
+
# Spec for question answering relevance instance.
|
22297
|
+
# Corresponds to the JSON property `instance`
|
22298
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance]
|
22299
|
+
attr_accessor :instance
|
21308
22300
|
|
21309
|
-
#
|
21310
|
-
# Corresponds to the JSON property `
|
21311
|
-
# @return [
|
21312
|
-
attr_accessor :
|
22301
|
+
# Spec for question answering relevance metric.
|
22302
|
+
# Corresponds to the JSON property `metricSpec`
|
22303
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec]
|
22304
|
+
attr_accessor :metric_spec
|
21313
22305
|
|
21314
22306
|
def initialize(**args)
|
21315
22307
|
update!(**args)
|
@@ -21317,41 +22309,34 @@ module Google
|
|
21317
22309
|
|
21318
22310
|
# Update properties of this object
|
21319
22311
|
def update!(**args)
|
21320
|
-
@
|
21321
|
-
@
|
21322
|
-
@text = args[:text] if args.key?(:text)
|
22312
|
+
@instance = args[:instance] if args.key?(:instance)
|
22313
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
21323
22314
|
end
|
21324
22315
|
end
|
21325
22316
|
|
21326
|
-
#
|
21327
|
-
class
|
22317
|
+
# Spec for question answering relevance instance.
|
22318
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance
|
21328
22319
|
include Google::Apis::Core::Hashable
|
21329
22320
|
|
21330
|
-
#
|
21331
|
-
# Corresponds to the JSON property `
|
21332
|
-
# @return [String]
|
21333
|
-
attr_accessor :create_time
|
21334
|
-
|
21335
|
-
# Optional. The description of the RagCorpus.
|
21336
|
-
# Corresponds to the JSON property `description`
|
22321
|
+
# Optional. Text provided as context to answer the question.
|
22322
|
+
# Corresponds to the JSON property `context`
|
21337
22323
|
# @return [String]
|
21338
|
-
attr_accessor :
|
22324
|
+
attr_accessor :context
|
21339
22325
|
|
21340
|
-
# Required. The
|
21341
|
-
#
|
21342
|
-
# Corresponds to the JSON property `displayName`
|
22326
|
+
# Required. The question asked and other instruction in the inference prompt.
|
22327
|
+
# Corresponds to the JSON property `instruction`
|
21343
22328
|
# @return [String]
|
21344
|
-
attr_accessor :
|
22329
|
+
attr_accessor :instruction
|
21345
22330
|
|
21346
|
-
#
|
21347
|
-
# Corresponds to the JSON property `
|
22331
|
+
# Required. Output of the evaluated model.
|
22332
|
+
# Corresponds to the JSON property `prediction`
|
21348
22333
|
# @return [String]
|
21349
|
-
attr_accessor :
|
22334
|
+
attr_accessor :prediction
|
21350
22335
|
|
21351
|
-
#
|
21352
|
-
# Corresponds to the JSON property `
|
22336
|
+
# Optional. Ground truth used to compare against the prediction.
|
22337
|
+
# Corresponds to the JSON property `reference`
|
21353
22338
|
# @return [String]
|
21354
|
-
attr_accessor :
|
22339
|
+
attr_accessor :reference
|
21355
22340
|
|
21356
22341
|
def initialize(**args)
|
21357
22342
|
update!(**args)
|
@@ -21359,68 +22344,31 @@ module Google
|
|
21359
22344
|
|
21360
22345
|
# Update properties of this object
|
21361
22346
|
def update!(**args)
|
21362
|
-
@
|
21363
|
-
@
|
21364
|
-
@
|
21365
|
-
@
|
21366
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
22347
|
+
@context = args[:context] if args.key?(:context)
|
22348
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
22349
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
22350
|
+
@reference = args[:reference] if args.key?(:reference)
|
21367
22351
|
end
|
21368
22352
|
end
|
21369
22353
|
|
21370
|
-
#
|
21371
|
-
class
|
22354
|
+
# Spec for question answering relevance result.
|
22355
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult
|
21372
22356
|
include Google::Apis::Core::Hashable
|
21373
22357
|
|
21374
|
-
# Output only.
|
21375
|
-
# Corresponds to the JSON property `
|
21376
|
-
# @return [
|
21377
|
-
attr_accessor :
|
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
|
22358
|
+
# Output only. Confidence for question answering relevance score.
|
22359
|
+
# Corresponds to the JSON property `confidence`
|
22360
|
+
# @return [Float]
|
22361
|
+
attr_accessor :confidence
|
21409
22362
|
|
21410
|
-
# Output only.
|
21411
|
-
# Corresponds to the JSON property `
|
22363
|
+
# Output only. Explanation for question answering relevance score.
|
22364
|
+
# Corresponds to the JSON property `explanation`
|
21412
22365
|
# @return [String]
|
21413
|
-
attr_accessor :
|
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
|
22366
|
+
attr_accessor :explanation
|
21419
22367
|
|
21420
|
-
# Output only.
|
21421
|
-
# Corresponds to the JSON property `
|
21422
|
-
# @return [
|
21423
|
-
attr_accessor :
|
22368
|
+
# Output only. Question Answering Relevance score.
|
22369
|
+
# Corresponds to the JSON property `score`
|
22370
|
+
# @return [Float]
|
22371
|
+
attr_accessor :score
|
21424
22372
|
|
21425
22373
|
def initialize(**args)
|
21426
22374
|
update!(**args)
|
@@ -21428,57 +22376,27 @@ module Google
|
|
21428
22376
|
|
21429
22377
|
# Update properties of this object
|
21430
22378
|
def update!(**args)
|
21431
|
-
@
|
21432
|
-
@
|
21433
|
-
@
|
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)
|
22379
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
22380
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
22381
|
+
@score = args[:score] if args.key?(:score)
|
21441
22382
|
end
|
21442
22383
|
end
|
21443
22384
|
|
21444
|
-
#
|
21445
|
-
class
|
22385
|
+
# Spec for question answering relevance metric.
|
22386
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec
|
21446
22387
|
include Google::Apis::Core::Hashable
|
21447
22388
|
|
21448
|
-
#
|
21449
|
-
#
|
21450
|
-
#
|
21451
|
-
|
21452
|
-
|
21453
|
-
|
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
|
22389
|
+
# Optional. Whether to use instance.reference to compute question answering
|
22390
|
+
# relevance.
|
22391
|
+
# Corresponds to the JSON property `useReference`
|
22392
|
+
# @return [Boolean]
|
22393
|
+
attr_accessor :use_reference
|
22394
|
+
alias_method :use_reference?, :use_reference
|
21472
22395
|
|
21473
|
-
# Optional.
|
21474
|
-
# Corresponds to the JSON property `
|
22396
|
+
# Optional. Which version to use for evaluation.
|
22397
|
+
# Corresponds to the JSON property `version`
|
21475
22398
|
# @return [Fixnum]
|
21476
|
-
attr_accessor :
|
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
|
22399
|
+
attr_accessor :version
|
21482
22400
|
|
21483
22401
|
def initialize(**args)
|
21484
22402
|
update!(**args)
|
@@ -21486,8 +22404,8 @@ module Google
|
|
21486
22404
|
|
21487
22405
|
# Update properties of this object
|
21488
22406
|
def update!(**args)
|
21489
|
-
@
|
21490
|
-
@
|
22407
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
22408
|
+
@version = args[:version] if args.key?(:version)
|
21491
22409
|
end
|
21492
22410
|
end
|
21493
22411
|
|
@@ -22409,18 +23327,109 @@ module Google
|
|
22409
23327
|
end
|
22410
23328
|
end
|
22411
23329
|
|
22412
|
-
#
|
22413
|
-
class
|
23330
|
+
# Runtime operation information for DatasetService.RestoreDatasetVersion.
|
23331
|
+
class GoogleCloudAiplatformV1beta1RestoreDatasetVersionOperationMetadata
|
22414
23332
|
include Google::Apis::Core::Hashable
|
22415
23333
|
|
22416
|
-
#
|
22417
|
-
# Corresponds to the JSON property `
|
22418
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22419
|
-
attr_accessor :
|
23334
|
+
# Generic Metadata shared by all operations.
|
23335
|
+
# Corresponds to the JSON property `genericMetadata`
|
23336
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
|
23337
|
+
attr_accessor :generic_metadata
|
23338
|
+
|
23339
|
+
def initialize(**args)
|
23340
|
+
update!(**args)
|
23341
|
+
end
|
23342
|
+
|
23343
|
+
# Update properties of this object
|
23344
|
+
def update!(**args)
|
23345
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
23346
|
+
end
|
23347
|
+
end
|
23348
|
+
|
23349
|
+
# Request message for JobService.ResumeModelDeploymentMonitoringJob.
|
23350
|
+
class GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest
|
23351
|
+
include Google::Apis::Core::Hashable
|
23352
|
+
|
23353
|
+
def initialize(**args)
|
23354
|
+
update!(**args)
|
23355
|
+
end
|
23356
|
+
|
23357
|
+
# Update properties of this object
|
23358
|
+
def update!(**args)
|
23359
|
+
end
|
23360
|
+
end
|
22420
23361
|
|
22421
|
-
|
23362
|
+
# Request message for ScheduleService.ResumeSchedule.
|
23363
|
+
class GoogleCloudAiplatformV1beta1ResumeScheduleRequest
|
23364
|
+
include Google::Apis::Core::Hashable
|
23365
|
+
|
23366
|
+
# Optional. Whether to backfill missed runs when the schedule is resumed from
|
23367
|
+
# PAUSED state. If set to true, all missed runs will be scheduled. New runs will
|
23368
|
+
# be scheduled after the backfill is complete. This will also update Schedule.
|
23369
|
+
# catch_up field. Default to false.
|
23370
|
+
# Corresponds to the JSON property `catchUp`
|
23371
|
+
# @return [Boolean]
|
23372
|
+
attr_accessor :catch_up
|
23373
|
+
alias_method :catch_up?, :catch_up
|
23374
|
+
|
23375
|
+
def initialize(**args)
|
23376
|
+
update!(**args)
|
23377
|
+
end
|
23378
|
+
|
23379
|
+
# Update properties of this object
|
23380
|
+
def update!(**args)
|
23381
|
+
@catch_up = args[:catch_up] if args.key?(:catch_up)
|
23382
|
+
end
|
23383
|
+
end
|
23384
|
+
|
23385
|
+
# Defines a retrieval tool that model can call to access external knowledge.
|
23386
|
+
class GoogleCloudAiplatformV1beta1Retrieval
|
23387
|
+
include Google::Apis::Core::Hashable
|
23388
|
+
|
23389
|
+
# Optional. Disable using the result from this tool in detecting grounding
|
23390
|
+
# attribution. This does not affect how the result is given to the model for
|
23391
|
+
# generation.
|
23392
|
+
# Corresponds to the JSON property `disableAttribution`
|
23393
|
+
# @return [Boolean]
|
23394
|
+
attr_accessor :disable_attribution
|
23395
|
+
alias_method :disable_attribution?, :disable_attribution
|
23396
|
+
|
23397
|
+
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
|
23398
|
+
# google.com/vertex-ai-search-and-conversation
|
23399
|
+
# Corresponds to the JSON property `vertexAiSearch`
|
23400
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexAiSearch]
|
23401
|
+
attr_accessor :vertex_ai_search
|
23402
|
+
|
23403
|
+
# Retrieve from Vertex RAG Store for grounding.
|
23404
|
+
# Corresponds to the JSON property `vertexRagStore`
|
23405
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore]
|
23406
|
+
attr_accessor :vertex_rag_store
|
23407
|
+
|
23408
|
+
def initialize(**args)
|
23409
|
+
update!(**args)
|
23410
|
+
end
|
23411
|
+
|
23412
|
+
# Update properties of this object
|
23413
|
+
def update!(**args)
|
23414
|
+
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
23415
|
+
@vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
|
23416
|
+
@vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
|
23417
|
+
end
|
23418
|
+
end
|
23419
|
+
|
23420
|
+
# Input for rouge metric.
|
23421
|
+
class GoogleCloudAiplatformV1beta1RougeInput
|
23422
|
+
include Google::Apis::Core::Hashable
|
23423
|
+
|
23424
|
+
# Required. Repeated rouge instances.
|
23425
|
+
# Corresponds to the JSON property `instances`
|
23426
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInstance>]
|
23427
|
+
attr_accessor :instances
|
23428
|
+
|
23429
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
23430
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
22422
23431
|
# Corresponds to the JSON property `metricSpec`
|
22423
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
23432
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeSpec]
|
22424
23433
|
attr_accessor :metric_spec
|
22425
23434
|
|
22426
23435
|
def initialize(**args)
|
@@ -22429,13 +23438,13 @@ module Google
|
|
22429
23438
|
|
22430
23439
|
# Update properties of this object
|
22431
23440
|
def update!(**args)
|
22432
|
-
@
|
23441
|
+
@instances = args[:instances] if args.key?(:instances)
|
22433
23442
|
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
22434
23443
|
end
|
22435
23444
|
end
|
22436
23445
|
|
22437
|
-
# Spec for
|
22438
|
-
class
|
23446
|
+
# Spec for rouge instance.
|
23447
|
+
class GoogleCloudAiplatformV1beta1RougeInstance
|
22439
23448
|
include Google::Apis::Core::Hashable
|
22440
23449
|
|
22441
23450
|
# Required. Output of the evaluated model.
|
@@ -22459,21 +23468,11 @@ module Google
|
|
22459
23468
|
end
|
22460
23469
|
end
|
22461
23470
|
|
22462
|
-
#
|
22463
|
-
class
|
23471
|
+
# Rouge metric value for an instance.
|
23472
|
+
class GoogleCloudAiplatformV1beta1RougeMetricValue
|
22464
23473
|
include Google::Apis::Core::Hashable
|
22465
23474
|
|
22466
|
-
# Output only.
|
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.
|
23475
|
+
# Output only. Rouge score.
|
22477
23476
|
# Corresponds to the JSON property `score`
|
22478
23477
|
# @return [Float]
|
22479
23478
|
attr_accessor :score
|
@@ -22484,39 +23483,18 @@ module Google
|
|
22484
23483
|
|
22485
23484
|
# Update properties of this object
|
22486
23485
|
def update!(**args)
|
22487
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
22488
|
-
@explanation = args[:explanation] if args.key?(:explanation)
|
22489
23486
|
@score = args[:score] if args.key?(:score)
|
22490
23487
|
end
|
22491
23488
|
end
|
22492
23489
|
|
22493
|
-
#
|
22494
|
-
class
|
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
|
-
# Runtime operation information for DatasetService.RestoreDatasetVersion.
|
22513
|
-
class GoogleCloudAiplatformV1beta1RestoreDatasetVersionOperationMetadata
|
23490
|
+
# Results for rouge metric.
|
23491
|
+
class GoogleCloudAiplatformV1beta1RougeResults
|
22514
23492
|
include Google::Apis::Core::Hashable
|
22515
23493
|
|
22516
|
-
#
|
22517
|
-
# Corresponds to the JSON property `
|
22518
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22519
|
-
attr_accessor :
|
23494
|
+
# Output only. Rouge metric values.
|
23495
|
+
# Corresponds to the JSON property `rougeMetricValues`
|
23496
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeMetricValue>]
|
23497
|
+
attr_accessor :rouge_metric_values
|
22520
23498
|
|
22521
23499
|
def initialize(**args)
|
22522
23500
|
update!(**args)
|
@@ -22524,117 +23502,31 @@ module Google
|
|
22524
23502
|
|
22525
23503
|
# Update properties of this object
|
22526
23504
|
def update!(**args)
|
22527
|
-
@
|
23505
|
+
@rouge_metric_values = args[:rouge_metric_values] if args.key?(:rouge_metric_values)
|
22528
23506
|
end
|
22529
23507
|
end
|
22530
23508
|
|
22531
|
-
#
|
22532
|
-
|
23509
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
23510
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
23511
|
+
class GoogleCloudAiplatformV1beta1RougeSpec
|
22533
23512
|
include Google::Apis::Core::Hashable
|
22534
23513
|
|
22535
|
-
|
22536
|
-
|
22537
|
-
|
22538
|
-
|
22539
|
-
# Update properties of this object
|
22540
|
-
def update!(**args)
|
22541
|
-
end
|
22542
|
-
end
|
22543
|
-
|
22544
|
-
# Request message for ScheduleService.ResumeSchedule.
|
22545
|
-
class GoogleCloudAiplatformV1beta1ResumeScheduleRequest
|
22546
|
-
include Google::Apis::Core::Hashable
|
23514
|
+
# Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
|
23515
|
+
# Corresponds to the JSON property `rougeType`
|
23516
|
+
# @return [String]
|
23517
|
+
attr_accessor :rouge_type
|
22547
23518
|
|
22548
|
-
# Optional. Whether to
|
22549
|
-
#
|
22550
|
-
# be scheduled after the backfill is complete. This will also update Schedule.
|
22551
|
-
# catch_up field. Default to false.
|
22552
|
-
# Corresponds to the JSON property `catchUp`
|
23519
|
+
# Optional. Whether to split summaries while using rougeLsum.
|
23520
|
+
# Corresponds to the JSON property `splitSummaries`
|
22553
23521
|
# @return [Boolean]
|
22554
|
-
attr_accessor :
|
22555
|
-
alias_method :
|
22556
|
-
|
22557
|
-
def initialize(**args)
|
22558
|
-
update!(**args)
|
22559
|
-
end
|
22560
|
-
|
22561
|
-
# Update properties of this object
|
22562
|
-
def update!(**args)
|
22563
|
-
@catch_up = args[:catch_up] if args.key?(:catch_up)
|
22564
|
-
end
|
22565
|
-
end
|
22566
|
-
|
22567
|
-
# Defines a retrieval tool that model can call to access external knowledge.
|
22568
|
-
class GoogleCloudAiplatformV1beta1Retrieval
|
22569
|
-
include Google::Apis::Core::Hashable
|
23522
|
+
attr_accessor :split_summaries
|
23523
|
+
alias_method :split_summaries?, :split_summaries
|
22570
23524
|
|
22571
|
-
# Optional.
|
22572
|
-
#
|
22573
|
-
# generation.
|
22574
|
-
# Corresponds to the JSON property `disableAttribution`
|
23525
|
+
# Optional. Whether to use stemmer to compute rouge score.
|
23526
|
+
# Corresponds to the JSON property `useStemmer`
|
22575
23527
|
# @return [Boolean]
|
22576
|
-
attr_accessor :
|
22577
|
-
alias_method :
|
22578
|
-
|
22579
|
-
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
|
22580
|
-
# google.com/vertex-ai-search-and-conversation
|
22581
|
-
# Corresponds to the JSON property `vertexAiSearch`
|
22582
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexAiSearch]
|
22583
|
-
attr_accessor :vertex_ai_search
|
22584
|
-
|
22585
|
-
# Retrieve from Vertex RAG Store for grounding.
|
22586
|
-
# Corresponds to the JSON property `vertexRagStore`
|
22587
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore]
|
22588
|
-
attr_accessor :vertex_rag_store
|
22589
|
-
|
22590
|
-
def initialize(**args)
|
22591
|
-
update!(**args)
|
22592
|
-
end
|
22593
|
-
|
22594
|
-
# Update properties of this object
|
22595
|
-
def update!(**args)
|
22596
|
-
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
22597
|
-
@vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
|
22598
|
-
@vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
|
22599
|
-
end
|
22600
|
-
end
|
22601
|
-
|
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
|
23528
|
+
attr_accessor :use_stemmer
|
23529
|
+
alias_method :use_stemmer?, :use_stemmer
|
22638
23530
|
|
22639
23531
|
def initialize(**args)
|
22640
23532
|
update!(**args)
|
@@ -22642,43 +23534,35 @@ module Google
|
|
22642
23534
|
|
22643
23535
|
# Update properties of this object
|
22644
23536
|
def update!(**args)
|
22645
|
-
@
|
23537
|
+
@rouge_type = args[:rouge_type] if args.key?(:rouge_type)
|
23538
|
+
@split_summaries = args[:split_summaries] if args.key?(:split_summaries)
|
23539
|
+
@use_stemmer = args[:use_stemmer] if args.key?(:use_stemmer)
|
22646
23540
|
end
|
22647
23541
|
end
|
22648
23542
|
|
22649
|
-
#
|
22650
|
-
class
|
23543
|
+
# Runtime configuration to run the extension.
|
23544
|
+
class GoogleCloudAiplatformV1beta1RuntimeConfig
|
22651
23545
|
include Google::Apis::Core::Hashable
|
22652
23546
|
|
22653
|
-
#
|
22654
|
-
# Corresponds to the JSON property `
|
22655
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
22656
|
-
attr_accessor :
|
23547
|
+
# Code execution runtime configurations for code interpreter extension.
|
23548
|
+
# Corresponds to the JSON property `codeInterpreterRuntimeConfig`
|
23549
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig]
|
23550
|
+
attr_accessor :code_interpreter_runtime_config
|
22657
23551
|
|
22658
|
-
|
22659
|
-
|
22660
|
-
|
22661
|
-
|
22662
|
-
#
|
22663
|
-
|
22664
|
-
|
22665
|
-
|
22666
|
-
|
22667
|
-
|
22668
|
-
# Input for rouge metric.
|
22669
|
-
class GoogleCloudAiplatformV1beta1RougeInput
|
22670
|
-
include Google::Apis::Core::Hashable
|
23552
|
+
# Optional. Default parameters that will be set for all the execution of this
|
23553
|
+
# extension. If specified, the parameter values can be overridden by values in [[
|
23554
|
+
# ExecuteExtensionRequest.operation_params]] at request time. The struct should
|
23555
|
+
# be in a form of map with param name as the key and actual param value as the
|
23556
|
+
# value. E.g. If this operation requires a param "name" to be set to "abc". you
|
23557
|
+
# can set this to something like `"name": "abc"`.
|
23558
|
+
# Corresponds to the JSON property `defaultParams`
|
23559
|
+
# @return [Hash<String,Object>]
|
23560
|
+
attr_accessor :default_params
|
22671
23561
|
|
22672
|
-
#
|
22673
|
-
# Corresponds to the JSON property `
|
22674
|
-
# @return [
|
22675
|
-
attr_accessor :
|
22676
|
-
|
22677
|
-
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
22678
|
-
# as compared to reference - returns a score ranging between 0 and 1.
|
22679
|
-
# Corresponds to the JSON property `metricSpec`
|
22680
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeSpec]
|
22681
|
-
attr_accessor :metric_spec
|
23562
|
+
# Runtime configuration for Vertext AI Search extension.
|
23563
|
+
# Corresponds to the JSON property `vertexAiSearchRuntimeConfig`
|
23564
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RuntimeConfigVertexAiSearchRuntimeConfig]
|
23565
|
+
attr_accessor :vertex_ai_search_runtime_config
|
22682
23566
|
|
22683
23567
|
def initialize(**args)
|
22684
23568
|
update!(**args)
|
@@ -22686,44 +23570,32 @@ module Google
|
|
22686
23570
|
|
22687
23571
|
# Update properties of this object
|
22688
23572
|
def update!(**args)
|
22689
|
-
@
|
22690
|
-
@
|
23573
|
+
@code_interpreter_runtime_config = args[:code_interpreter_runtime_config] if args.key?(:code_interpreter_runtime_config)
|
23574
|
+
@default_params = args[:default_params] if args.key?(:default_params)
|
23575
|
+
@vertex_ai_search_runtime_config = args[:vertex_ai_search_runtime_config] if args.key?(:vertex_ai_search_runtime_config)
|
22691
23576
|
end
|
22692
23577
|
end
|
22693
23578
|
|
22694
|
-
#
|
22695
|
-
class
|
23579
|
+
#
|
23580
|
+
class GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig
|
22696
23581
|
include Google::Apis::Core::Hashable
|
22697
23582
|
|
22698
|
-
#
|
22699
|
-
#
|
23583
|
+
# Optional. The Cloud Storage bucket for file input of this Extension. If
|
23584
|
+
# specified, support input from the Cloud Storage bucket. Vertex Extension
|
23585
|
+
# Custom Code Service Agent should be granted file reader to this bucket. If not
|
23586
|
+
# specified, the extension will only accept file contents from request body and
|
23587
|
+
# reject Cloud Storage file inputs.
|
23588
|
+
# Corresponds to the JSON property `fileInputGcsBucket`
|
22700
23589
|
# @return [String]
|
22701
|
-
attr_accessor :
|
23590
|
+
attr_accessor :file_input_gcs_bucket
|
22702
23591
|
|
22703
|
-
#
|
22704
|
-
#
|
23592
|
+
# Optional. The Cloud Storage bucket for file output of this Extension. If
|
23593
|
+
# specified, write all output files to the Cloud Storage bucket. Vertex
|
23594
|
+
# Extension Custom Code Service Agent should be granted file writer to this
|
23595
|
+
# bucket. If not specified, the file content will be output in response body.
|
23596
|
+
# Corresponds to the JSON property `fileOutputGcsBucket`
|
22705
23597
|
# @return [String]
|
22706
|
-
attr_accessor :
|
22707
|
-
|
22708
|
-
def initialize(**args)
|
22709
|
-
update!(**args)
|
22710
|
-
end
|
22711
|
-
|
22712
|
-
# Update properties of this object
|
22713
|
-
def update!(**args)
|
22714
|
-
@prediction = args[:prediction] if args.key?(:prediction)
|
22715
|
-
@reference = args[:reference] if args.key?(:reference)
|
22716
|
-
end
|
22717
|
-
end
|
22718
|
-
|
22719
|
-
# Rouge metric value for an instance.
|
22720
|
-
class GoogleCloudAiplatformV1beta1RougeMetricValue
|
22721
|
-
include Google::Apis::Core::Hashable
|
22722
|
-
|
22723
|
-
# Output only. Rouge score.
|
22724
|
-
# Corresponds to the JSON property `score`
|
22725
|
-
# @return [Float]
|
22726
|
-
attr_accessor :score
|
23598
|
+
attr_accessor :file_output_gcs_bucket
|
22727
23599
|
|
22728
23600
|
def initialize(**args)
|
22729
23601
|
update!(**args)
|
@@ -22731,50 +23603,21 @@ module Google
|
|
22731
23603
|
|
22732
23604
|
# Update properties of this object
|
22733
23605
|
def update!(**args)
|
22734
|
-
@
|
23606
|
+
@file_input_gcs_bucket = args[:file_input_gcs_bucket] if args.key?(:file_input_gcs_bucket)
|
23607
|
+
@file_output_gcs_bucket = args[:file_output_gcs_bucket] if args.key?(:file_output_gcs_bucket)
|
22735
23608
|
end
|
22736
23609
|
end
|
22737
23610
|
|
22738
|
-
#
|
22739
|
-
class
|
22740
|
-
include Google::Apis::Core::Hashable
|
22741
|
-
|
22742
|
-
# Output only. Rouge metric values.
|
22743
|
-
# Corresponds to the JSON property `rougeMetricValues`
|
22744
|
-
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeMetricValue>]
|
22745
|
-
attr_accessor :rouge_metric_values
|
22746
|
-
|
22747
|
-
def initialize(**args)
|
22748
|
-
update!(**args)
|
22749
|
-
end
|
22750
|
-
|
22751
|
-
# Update properties of this object
|
22752
|
-
def update!(**args)
|
22753
|
-
@rouge_metric_values = args[:rouge_metric_values] if args.key?(:rouge_metric_values)
|
22754
|
-
end
|
22755
|
-
end
|
22756
|
-
|
22757
|
-
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
22758
|
-
# as compared to reference - returns a score ranging between 0 and 1.
|
22759
|
-
class GoogleCloudAiplatformV1beta1RougeSpec
|
23611
|
+
#
|
23612
|
+
class GoogleCloudAiplatformV1beta1RuntimeConfigVertexAiSearchRuntimeConfig
|
22760
23613
|
include Google::Apis::Core::Hashable
|
22761
23614
|
|
22762
|
-
#
|
22763
|
-
#
|
23615
|
+
# Required. Vertext AI Search serving config name. Format: `projects/`project`/
|
23616
|
+
# locations/`location`/collections/`collection`/engines/`engine`/servingConfigs/`
|
23617
|
+
# serving_config``
|
23618
|
+
# Corresponds to the JSON property `servingConfigName`
|
22764
23619
|
# @return [String]
|
22765
|
-
attr_accessor :
|
22766
|
-
|
22767
|
-
# Optional. Whether to split summaries while using rougeLsum.
|
22768
|
-
# Corresponds to the JSON property `splitSummaries`
|
22769
|
-
# @return [Boolean]
|
22770
|
-
attr_accessor :split_summaries
|
22771
|
-
alias_method :split_summaries?, :split_summaries
|
22772
|
-
|
22773
|
-
# Optional. Whether to use stemmer to compute rouge score.
|
22774
|
-
# Corresponds to the JSON property `useStemmer`
|
22775
|
-
# @return [Boolean]
|
22776
|
-
attr_accessor :use_stemmer
|
22777
|
-
alias_method :use_stemmer?, :use_stemmer
|
23620
|
+
attr_accessor :serving_config_name
|
22778
23621
|
|
22779
23622
|
def initialize(**args)
|
22780
23623
|
update!(**args)
|
@@ -22782,9 +23625,7 @@ module Google
|
|
22782
23625
|
|
22783
23626
|
# Update properties of this object
|
22784
23627
|
def update!(**args)
|
22785
|
-
@
|
22786
|
-
@split_summaries = args[:split_summaries] if args.key?(:split_summaries)
|
22787
|
-
@use_stemmer = args[:use_stemmer] if args.key?(:use_stemmer)
|
23628
|
+
@serving_config_name = args[:serving_config_name] if args.key?(:serving_config_name)
|
22788
23629
|
end
|
22789
23630
|
end
|
22790
23631
|
|
@@ -23181,6 +24022,11 @@ module Google
|
|
23181
24022
|
attr_accessor :catch_up
|
23182
24023
|
alias_method :catch_up?, :catch_up
|
23183
24024
|
|
24025
|
+
# Request message for ModelMonitoringService.CreateModelMonitoringJob.
|
24026
|
+
# Corresponds to the JSON property `createModelMonitoringJobRequest`
|
24027
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest]
|
24028
|
+
attr_accessor :create_model_monitoring_job_request
|
24029
|
+
|
23184
24030
|
# Request message for PipelineService.CreatePipelineJob.
|
23185
24031
|
# Corresponds to the JSON property `createPipelineJobRequest`
|
23186
24032
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreatePipelineJobRequest]
|
@@ -23288,6 +24134,7 @@ module Google
|
|
23288
24134
|
def update!(**args)
|
23289
24135
|
@allow_queueing = args[:allow_queueing] if args.key?(:allow_queueing)
|
23290
24136
|
@catch_up = args[:catch_up] if args.key?(:catch_up)
|
24137
|
+
@create_model_monitoring_job_request = args[:create_model_monitoring_job_request] if args.key?(:create_model_monitoring_job_request)
|
23291
24138
|
@create_pipeline_job_request = args[:create_pipeline_job_request] if args.key?(:create_pipeline_job_request)
|
23292
24139
|
@create_time = args[:create_time] if args.key?(:create_time)
|
23293
24140
|
@cron = args[:cron] if args.key?(:cron)
|
@@ -24383,6 +25230,107 @@ module Google
|
|
24383
25230
|
end
|
24384
25231
|
end
|
24385
25232
|
|
25233
|
+
# Metrics for general pairwise text generation evaluation results.
|
25234
|
+
class GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsPairwiseTextGenerationEvaluationMetrics
|
25235
|
+
include Google::Apis::Core::Hashable
|
25236
|
+
|
25237
|
+
# Fraction of cases where the autorater agreed with the human raters.
|
25238
|
+
# Corresponds to the JSON property `accuracy`
|
25239
|
+
# @return [Float]
|
25240
|
+
attr_accessor :accuracy
|
25241
|
+
|
25242
|
+
# Percentage of time the autorater decided the baseline model had the better
|
25243
|
+
# response.
|
25244
|
+
# Corresponds to the JSON property `baselineModelWinRate`
|
25245
|
+
# @return [Float]
|
25246
|
+
attr_accessor :baseline_model_win_rate
|
25247
|
+
|
25248
|
+
# A measurement of agreement between the autorater and human raters that takes
|
25249
|
+
# the likelihood of random agreement into account.
|
25250
|
+
# Corresponds to the JSON property `cohensKappa`
|
25251
|
+
# @return [Float]
|
25252
|
+
attr_accessor :cohens_kappa
|
25253
|
+
|
25254
|
+
# Harmonic mean of precision and recall.
|
25255
|
+
# Corresponds to the JSON property `f1Score`
|
25256
|
+
# @return [Float]
|
25257
|
+
attr_accessor :f1_score
|
25258
|
+
|
25259
|
+
# Number of examples where the autorater chose the baseline model, but humans
|
25260
|
+
# preferred the model.
|
25261
|
+
# Corresponds to the JSON property `falseNegativeCount`
|
25262
|
+
# @return [Fixnum]
|
25263
|
+
attr_accessor :false_negative_count
|
25264
|
+
|
25265
|
+
# Number of examples where the autorater chose the model, but humans preferred
|
25266
|
+
# the baseline model.
|
25267
|
+
# Corresponds to the JSON property `falsePositiveCount`
|
25268
|
+
# @return [Fixnum]
|
25269
|
+
attr_accessor :false_positive_count
|
25270
|
+
|
25271
|
+
# Percentage of time humans decided the baseline model had the better response.
|
25272
|
+
# Corresponds to the JSON property `humanPreferenceBaselineModelWinRate`
|
25273
|
+
# @return [Float]
|
25274
|
+
attr_accessor :human_preference_baseline_model_win_rate
|
25275
|
+
|
25276
|
+
# Percentage of time humans decided the model had the better response.
|
25277
|
+
# Corresponds to the JSON property `humanPreferenceModelWinRate`
|
25278
|
+
# @return [Float]
|
25279
|
+
attr_accessor :human_preference_model_win_rate
|
25280
|
+
|
25281
|
+
# Percentage of time the autorater decided the model had the better response.
|
25282
|
+
# Corresponds to the JSON property `modelWinRate`
|
25283
|
+
# @return [Float]
|
25284
|
+
attr_accessor :model_win_rate
|
25285
|
+
|
25286
|
+
# Fraction of cases where the autorater and humans thought the model had a
|
25287
|
+
# better response out of all cases where the autorater thought the model had a
|
25288
|
+
# better response. True positive divided by all positive.
|
25289
|
+
# Corresponds to the JSON property `precision`
|
25290
|
+
# @return [Float]
|
25291
|
+
attr_accessor :precision
|
25292
|
+
|
25293
|
+
# Fraction of cases where the autorater and humans thought the model had a
|
25294
|
+
# better response out of all cases where the humans thought the model had a
|
25295
|
+
# better response.
|
25296
|
+
# Corresponds to the JSON property `recall`
|
25297
|
+
# @return [Float]
|
25298
|
+
attr_accessor :recall
|
25299
|
+
|
25300
|
+
# Number of examples where both the autorater and humans decided that the model
|
25301
|
+
# had the worse response.
|
25302
|
+
# Corresponds to the JSON property `trueNegativeCount`
|
25303
|
+
# @return [Fixnum]
|
25304
|
+
attr_accessor :true_negative_count
|
25305
|
+
|
25306
|
+
# Number of examples where both the autorater and humans decided that the model
|
25307
|
+
# had the better response.
|
25308
|
+
# Corresponds to the JSON property `truePositiveCount`
|
25309
|
+
# @return [Fixnum]
|
25310
|
+
attr_accessor :true_positive_count
|
25311
|
+
|
25312
|
+
def initialize(**args)
|
25313
|
+
update!(**args)
|
25314
|
+
end
|
25315
|
+
|
25316
|
+
# Update properties of this object
|
25317
|
+
def update!(**args)
|
25318
|
+
@accuracy = args[:accuracy] if args.key?(:accuracy)
|
25319
|
+
@baseline_model_win_rate = args[:baseline_model_win_rate] if args.key?(:baseline_model_win_rate)
|
25320
|
+
@cohens_kappa = args[:cohens_kappa] if args.key?(:cohens_kappa)
|
25321
|
+
@f1_score = args[:f1_score] if args.key?(:f1_score)
|
25322
|
+
@false_negative_count = args[:false_negative_count] if args.key?(:false_negative_count)
|
25323
|
+
@false_positive_count = args[:false_positive_count] if args.key?(:false_positive_count)
|
25324
|
+
@human_preference_baseline_model_win_rate = args[:human_preference_baseline_model_win_rate] if args.key?(:human_preference_baseline_model_win_rate)
|
25325
|
+
@human_preference_model_win_rate = args[:human_preference_model_win_rate] if args.key?(:human_preference_model_win_rate)
|
25326
|
+
@model_win_rate = args[:model_win_rate] if args.key?(:model_win_rate)
|
25327
|
+
@precision = args[:precision] if args.key?(:precision)
|
25328
|
+
@recall = args[:recall] if args.key?(:recall)
|
25329
|
+
@true_negative_count = args[:true_negative_count] if args.key?(:true_negative_count)
|
25330
|
+
@true_positive_count = args[:true_positive_count] if args.key?(:true_positive_count)
|
25331
|
+
end
|
25332
|
+
end
|
25333
|
+
|
24386
25334
|
#
|
24387
25335
|
class GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsQuestionAnsweringEvaluationMetrics
|
24388
25336
|
include Google::Apis::Core::Hashable
|
@@ -29625,6 +30573,224 @@ module Google
|
|
29625
30573
|
end
|
29626
30574
|
end
|
29627
30575
|
|
30576
|
+
# Request message for ModelMonitoringService.SearchModelMonitoringAlerts.
|
30577
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest
|
30578
|
+
include Google::Apis::Core::Hashable
|
30579
|
+
|
30580
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
30581
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
30582
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
30583
|
+
# both start and end are unspecified, the interval matches any time.
|
30584
|
+
# Corresponds to the JSON property `alertTimeInterval`
|
30585
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
|
30586
|
+
attr_accessor :alert_time_interval
|
30587
|
+
|
30588
|
+
# If non-empty, returns the alerts of this model monitoring job.
|
30589
|
+
# Corresponds to the JSON property `modelMonitoringJob`
|
30590
|
+
# @return [String]
|
30591
|
+
attr_accessor :model_monitoring_job
|
30592
|
+
|
30593
|
+
# If non-empty, returns the alerts of this objective type. Supported monitoring
|
30594
|
+
# objectives: `raw-feature-drift` `prediction-output-drift` `feature-attribution`
|
30595
|
+
# Corresponds to the JSON property `objectiveType`
|
30596
|
+
# @return [String]
|
30597
|
+
attr_accessor :objective_type
|
30598
|
+
|
30599
|
+
# The standard list page size.
|
30600
|
+
# Corresponds to the JSON property `pageSize`
|
30601
|
+
# @return [Fixnum]
|
30602
|
+
attr_accessor :page_size
|
30603
|
+
|
30604
|
+
# A page token received from a previous ModelMonitoringService.
|
30605
|
+
# SearchModelMonitoringAlerts call.
|
30606
|
+
# Corresponds to the JSON property `pageToken`
|
30607
|
+
# @return [String]
|
30608
|
+
attr_accessor :page_token
|
30609
|
+
|
30610
|
+
# If non-empty, returns the alerts of this stats_name.
|
30611
|
+
# Corresponds to the JSON property `statsName`
|
30612
|
+
# @return [String]
|
30613
|
+
attr_accessor :stats_name
|
30614
|
+
|
30615
|
+
def initialize(**args)
|
30616
|
+
update!(**args)
|
30617
|
+
end
|
30618
|
+
|
30619
|
+
# Update properties of this object
|
30620
|
+
def update!(**args)
|
30621
|
+
@alert_time_interval = args[:alert_time_interval] if args.key?(:alert_time_interval)
|
30622
|
+
@model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
|
30623
|
+
@objective_type = args[:objective_type] if args.key?(:objective_type)
|
30624
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
30625
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
30626
|
+
@stats_name = args[:stats_name] if args.key?(:stats_name)
|
30627
|
+
end
|
30628
|
+
end
|
30629
|
+
|
30630
|
+
# Response message for ModelMonitoringService.SearchModelMonitoringAlerts.
|
30631
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse
|
30632
|
+
include Google::Apis::Core::Hashable
|
30633
|
+
|
30634
|
+
# Alerts retrieved for the requested objectives. Sorted by alert time
|
30635
|
+
# descendingly.
|
30636
|
+
# Corresponds to the JSON property `modelMonitoringAlerts`
|
30637
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlert>]
|
30638
|
+
attr_accessor :model_monitoring_alerts
|
30639
|
+
|
30640
|
+
# The page token that can be used by the next ModelMonitoringService.
|
30641
|
+
# SearchModelMonitoringAlerts call.
|
30642
|
+
# Corresponds to the JSON property `nextPageToken`
|
30643
|
+
# @return [String]
|
30644
|
+
attr_accessor :next_page_token
|
30645
|
+
|
30646
|
+
# The total number of alerts retrieved by the requested objectives.
|
30647
|
+
# Corresponds to the JSON property `totalNumberAlerts`
|
30648
|
+
# @return [Fixnum]
|
30649
|
+
attr_accessor :total_number_alerts
|
30650
|
+
|
30651
|
+
def initialize(**args)
|
30652
|
+
update!(**args)
|
30653
|
+
end
|
30654
|
+
|
30655
|
+
# Update properties of this object
|
30656
|
+
def update!(**args)
|
30657
|
+
@model_monitoring_alerts = args[:model_monitoring_alerts] if args.key?(:model_monitoring_alerts)
|
30658
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
30659
|
+
@total_number_alerts = args[:total_number_alerts] if args.key?(:total_number_alerts)
|
30660
|
+
end
|
30661
|
+
end
|
30662
|
+
|
30663
|
+
# Filter for searching ModelMonitoringStats.
|
30664
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter
|
30665
|
+
include Google::Apis::Core::Hashable
|
30666
|
+
|
30667
|
+
# Tabular statistics filter.
|
30668
|
+
# Corresponds to the JSON property `tabularStatsFilter`
|
30669
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter]
|
30670
|
+
attr_accessor :tabular_stats_filter
|
30671
|
+
|
30672
|
+
def initialize(**args)
|
30673
|
+
update!(**args)
|
30674
|
+
end
|
30675
|
+
|
30676
|
+
# Update properties of this object
|
30677
|
+
def update!(**args)
|
30678
|
+
@tabular_stats_filter = args[:tabular_stats_filter] if args.key?(:tabular_stats_filter)
|
30679
|
+
end
|
30680
|
+
end
|
30681
|
+
|
30682
|
+
# Tabular statistics filter.
|
30683
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter
|
30684
|
+
include Google::Apis::Core::Hashable
|
30685
|
+
|
30686
|
+
# Specify the algorithm type used for distance calculation, eg:
|
30687
|
+
# jensen_shannon_divergence, l_infinity.
|
30688
|
+
# Corresponds to the JSON property `algorithm`
|
30689
|
+
# @return [String]
|
30690
|
+
attr_accessor :algorithm
|
30691
|
+
|
30692
|
+
# From a particular monitoring job.
|
30693
|
+
# Corresponds to the JSON property `modelMonitoringJob`
|
30694
|
+
# @return [String]
|
30695
|
+
attr_accessor :model_monitoring_job
|
30696
|
+
|
30697
|
+
# From a particular monitoring schedule.
|
30698
|
+
# Corresponds to the JSON property `modelMonitoringSchedule`
|
30699
|
+
# @return [String]
|
30700
|
+
attr_accessor :model_monitoring_schedule
|
30701
|
+
|
30702
|
+
# One of the supported monitoring objectives: `raw-feature-drift` `prediction-
|
30703
|
+
# output-drift` `feature-attribution`
|
30704
|
+
# Corresponds to the JSON property `objectiveType`
|
30705
|
+
# @return [String]
|
30706
|
+
attr_accessor :objective_type
|
30707
|
+
|
30708
|
+
# If not specified, will return all the stats_names.
|
30709
|
+
# Corresponds to the JSON property `statsName`
|
30710
|
+
# @return [String]
|
30711
|
+
attr_accessor :stats_name
|
30712
|
+
|
30713
|
+
def initialize(**args)
|
30714
|
+
update!(**args)
|
30715
|
+
end
|
30716
|
+
|
30717
|
+
# Update properties of this object
|
30718
|
+
def update!(**args)
|
30719
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
30720
|
+
@model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
|
30721
|
+
@model_monitoring_schedule = args[:model_monitoring_schedule] if args.key?(:model_monitoring_schedule)
|
30722
|
+
@objective_type = args[:objective_type] if args.key?(:objective_type)
|
30723
|
+
@stats_name = args[:stats_name] if args.key?(:stats_name)
|
30724
|
+
end
|
30725
|
+
end
|
30726
|
+
|
30727
|
+
# Request message for ModelMonitoringService.SearchModelMonitoringStats.
|
30728
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest
|
30729
|
+
include Google::Apis::Core::Hashable
|
30730
|
+
|
30731
|
+
# The standard list page size.
|
30732
|
+
# Corresponds to the JSON property `pageSize`
|
30733
|
+
# @return [Fixnum]
|
30734
|
+
attr_accessor :page_size
|
30735
|
+
|
30736
|
+
# A page token received from a previous ModelMonitoringService.
|
30737
|
+
# SearchModelMonitoringStats call.
|
30738
|
+
# Corresponds to the JSON property `pageToken`
|
30739
|
+
# @return [String]
|
30740
|
+
attr_accessor :page_token
|
30741
|
+
|
30742
|
+
# Filter for searching ModelMonitoringStats.
|
30743
|
+
# Corresponds to the JSON property `statsFilter`
|
30744
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter]
|
30745
|
+
attr_accessor :stats_filter
|
30746
|
+
|
30747
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
30748
|
+
# Timestamp end (exclusive). The start must be less than or equal to the end.
|
30749
|
+
# When the start equals the end, the interval is empty (matches no time). When
|
30750
|
+
# both start and end are unspecified, the interval matches any time.
|
30751
|
+
# Corresponds to the JSON property `timeInterval`
|
30752
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
|
30753
|
+
attr_accessor :time_interval
|
30754
|
+
|
30755
|
+
def initialize(**args)
|
30756
|
+
update!(**args)
|
30757
|
+
end
|
30758
|
+
|
30759
|
+
# Update properties of this object
|
30760
|
+
def update!(**args)
|
30761
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
30762
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
30763
|
+
@stats_filter = args[:stats_filter] if args.key?(:stats_filter)
|
30764
|
+
@time_interval = args[:time_interval] if args.key?(:time_interval)
|
30765
|
+
end
|
30766
|
+
end
|
30767
|
+
|
30768
|
+
# Response message for ModelMonitoringService.SearchModelMonitoringStats.
|
30769
|
+
class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse
|
30770
|
+
include Google::Apis::Core::Hashable
|
30771
|
+
|
30772
|
+
# Stats retrieved for requested objectives.
|
30773
|
+
# Corresponds to the JSON property `monitoringStats`
|
30774
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStats>]
|
30775
|
+
attr_accessor :monitoring_stats
|
30776
|
+
|
30777
|
+
# The page token that can be used by the next ModelMonitoringService.
|
30778
|
+
# SearchModelMonitoringStats call.
|
30779
|
+
# Corresponds to the JSON property `nextPageToken`
|
30780
|
+
# @return [String]
|
30781
|
+
attr_accessor :next_page_token
|
30782
|
+
|
30783
|
+
def initialize(**args)
|
30784
|
+
update!(**args)
|
30785
|
+
end
|
30786
|
+
|
30787
|
+
# Update properties of this object
|
30788
|
+
def update!(**args)
|
30789
|
+
@monitoring_stats = args[:monitoring_stats] if args.key?(:monitoring_stats)
|
30790
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
30791
|
+
end
|
30792
|
+
end
|
30793
|
+
|
29628
30794
|
# The request message for FeatureOnlineStoreService.SearchNearestEntities.
|
29629
30795
|
class GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest
|
29630
30796
|
include Google::Apis::Core::Hashable
|
@@ -29673,39 +30839,6 @@ module Google
|
|
29673
30839
|
end
|
29674
30840
|
end
|
29675
30841
|
|
29676
|
-
# Segment of the content.
|
29677
|
-
class GoogleCloudAiplatformV1beta1Segment
|
29678
|
-
include Google::Apis::Core::Hashable
|
29679
|
-
|
29680
|
-
# Output only. End index in the given Part, measured in bytes. Offset from the
|
29681
|
-
# start of the Part, exclusive, starting at zero.
|
29682
|
-
# Corresponds to the JSON property `endIndex`
|
29683
|
-
# @return [Fixnum]
|
29684
|
-
attr_accessor :end_index
|
29685
|
-
|
29686
|
-
# Output only. The index of a Part object within its parent Content object.
|
29687
|
-
# Corresponds to the JSON property `partIndex`
|
29688
|
-
# @return [Fixnum]
|
29689
|
-
attr_accessor :part_index
|
29690
|
-
|
29691
|
-
# Output only. Start index in the given Part, measured in bytes. Offset from the
|
29692
|
-
# start of the Part, inclusive, starting at zero.
|
29693
|
-
# Corresponds to the JSON property `startIndex`
|
29694
|
-
# @return [Fixnum]
|
29695
|
-
attr_accessor :start_index
|
29696
|
-
|
29697
|
-
def initialize(**args)
|
29698
|
-
update!(**args)
|
29699
|
-
end
|
29700
|
-
|
29701
|
-
# Update properties of this object
|
29702
|
-
def update!(**args)
|
29703
|
-
@end_index = args[:end_index] if args.key?(:end_index)
|
29704
|
-
@part_index = args[:part_index] if args.key?(:part_index)
|
29705
|
-
@start_index = args[:start_index] if args.key?(:start_index)
|
29706
|
-
end
|
29707
|
-
end
|
29708
|
-
|
29709
30842
|
# Configuration for the use of custom service account to run the workloads.
|
29710
30843
|
class GoogleCloudAiplatformV1beta1ServiceAccountSpec
|
29711
30844
|
include Google::Apis::Core::Hashable
|
@@ -29719,13 +30852,13 @@ module Google
|
|
29719
30852
|
attr_accessor :enable_custom_service_account
|
29720
30853
|
alias_method :enable_custom_service_account?, :enable_custom_service_account
|
29721
30854
|
|
29722
|
-
# Optional.
|
29723
|
-
#
|
29724
|
-
# on creation time, for example, Ray
|
29725
|
-
#
|
29726
|
-
#
|
29727
|
-
#
|
29728
|
-
#
|
30855
|
+
# Optional. Required when all below conditions are met * `
|
30856
|
+
# enable_custom_service_account` is true; * any runtime is specified via `
|
30857
|
+
# ResourceRuntimeSpec` on creation time, for example, Ray The users must have `
|
30858
|
+
# iam.serviceAccounts.actAs` permission on this service account and then the
|
30859
|
+
# specified runtime containers will run as it. Do not set this field if you want
|
30860
|
+
# to submit jobs using custom service account to this PersistentResource after
|
30861
|
+
# creation, but only specify the `service_account` inside the job.
|
29729
30862
|
# Corresponds to the JSON property `serviceAccount`
|
29730
30863
|
# @return [String]
|
29731
30864
|
attr_accessor :service_account
|
@@ -32189,11 +33322,6 @@ module Google
|
|
32189
33322
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
|
32190
33323
|
attr_accessor :function_declarations
|
32191
33324
|
|
32192
|
-
# Tool to retrieve public web data for grounding, powered by Google.
|
32193
|
-
# Corresponds to the JSON property `googleSearchRetrieval`
|
32194
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
|
32195
|
-
attr_accessor :google_search_retrieval
|
32196
|
-
|
32197
33325
|
# Defines a retrieval tool that model can call to access external knowledge.
|
32198
33326
|
# Corresponds to the JSON property `retrieval`
|
32199
33327
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Retrieval]
|
@@ -32206,7 +33334,6 @@ module Google
|
|
32206
33334
|
# Update properties of this object
|
32207
33335
|
def update!(**args)
|
32208
33336
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
32209
|
-
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
|
32210
33337
|
@retrieval = args[:retrieval] if args.key?(:retrieval)
|
32211
33338
|
end
|
32212
33339
|
end
|
@@ -33437,6 +34564,25 @@ module Google
|
|
33437
34564
|
end
|
33438
34565
|
end
|
33439
34566
|
|
34567
|
+
# Runtime operation information for ModelMonitoringService.UpdateModelMonitor.
|
34568
|
+
class GoogleCloudAiplatformV1beta1UpdateModelMonitorOperationMetadata
|
34569
|
+
include Google::Apis::Core::Hashable
|
34570
|
+
|
34571
|
+
# Generic Metadata shared by all operations.
|
34572
|
+
# Corresponds to the JSON property `genericMetadata`
|
34573
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
|
34574
|
+
attr_accessor :generic_metadata
|
34575
|
+
|
34576
|
+
def initialize(**args)
|
34577
|
+
update!(**args)
|
34578
|
+
end
|
34579
|
+
|
34580
|
+
# Update properties of this object
|
34581
|
+
def update!(**args)
|
34582
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
34583
|
+
end
|
34584
|
+
end
|
34585
|
+
|
33440
34586
|
# Details of operations that perform update PersistentResource.
|
33441
34587
|
class GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata
|
33442
34588
|
include Google::Apis::Core::Hashable
|
@@ -33639,80 +34785,6 @@ module Google
|
|
33639
34785
|
end
|
33640
34786
|
end
|
33641
34787
|
|
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
34788
|
# Request message for IndexService.UpsertDatapoints
|
33717
34789
|
class GoogleCloudAiplatformV1beta1UpsertDatapointsRequest
|
33718
34790
|
include Google::Apis::Core::Hashable
|
@@ -33827,9 +34899,9 @@ module Google
|
|
33827
34899
|
class GoogleCloudAiplatformV1beta1VertexAiSearch
|
33828
34900
|
include Google::Apis::Core::Hashable
|
33829
34901
|
|
33830
|
-
# Required. Fully-qualified Vertex AI Search's datastore resource ID. Format:
|
34902
|
+
# Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
|
33831
34903
|
# projects/`project`/locations/`location`/collections/`collection`/dataStores/`
|
33832
|
-
# dataStore
|
34904
|
+
# dataStore``
|
33833
34905
|
# Corresponds to the JSON property `datastore`
|
33834
34906
|
# @return [String]
|
33835
34907
|
attr_accessor :datastore
|
@@ -33848,10 +34920,10 @@ module Google
|
|
33848
34920
|
class GoogleCloudAiplatformV1beta1VertexRagStore
|
33849
34921
|
include Google::Apis::Core::Hashable
|
33850
34922
|
|
33851
|
-
# Required. Vertex RAG Store corpus resource name: projects/`project`/locations
|
33852
|
-
# location`/ragCorpora/`ragCorpus
|
33853
|
-
# future we may open up multiple corpora support. However, they should be
|
33854
|
-
# the same project and location.
|
34923
|
+
# Required. Vertex RAG Store corpus resource name: `projects/`project`/locations/
|
34924
|
+
# `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
|
34925
|
+
# the future we may open up multiple corpora support. However, they should be
|
34926
|
+
# from the same project and location.
|
33855
34927
|
# Corresponds to the JSON property `ragCorpora`
|
33856
34928
|
# @return [Array<String>]
|
33857
34929
|
attr_accessor :rag_corpora
|
@@ -33861,6 +34933,11 @@ module Google
|
|
33861
34933
|
# @return [Fixnum]
|
33862
34934
|
attr_accessor :similarity_top_k
|
33863
34935
|
|
34936
|
+
# Optional. Only return results with vector distance smaller than the threshold.
|
34937
|
+
# Corresponds to the JSON property `vectorDistanceThreshold`
|
34938
|
+
# @return [Float]
|
34939
|
+
attr_accessor :vector_distance_threshold
|
34940
|
+
|
33864
34941
|
def initialize(**args)
|
33865
34942
|
update!(**args)
|
33866
34943
|
end
|
@@ -33869,6 +34946,7 @@ module Google
|
|
33869
34946
|
def update!(**args)
|
33870
34947
|
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
33871
34948
|
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
34949
|
+
@vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
|
33872
34950
|
end
|
33873
34951
|
end
|
33874
34952
|
|
@@ -35871,6 +36949,31 @@ module Google
|
|
35871
36949
|
end
|
35872
36950
|
end
|
35873
36951
|
|
36952
|
+
# Stores all metadata relating to GenerateCode.
|
36953
|
+
class LearningGenaiRootCodeyGenerationMetadata
|
36954
|
+
include Google::Apis::Core::Hashable
|
36955
|
+
|
36956
|
+
# Last state of the sample before getting dropped/returned.
|
36957
|
+
# Corresponds to the JSON property `output`
|
36958
|
+
# @return [String]
|
36959
|
+
attr_accessor :output
|
36960
|
+
|
36961
|
+
# Last Codey postprocessing step for this sample before getting dropped/returned.
|
36962
|
+
# Corresponds to the JSON property `postInferenceStep`
|
36963
|
+
# @return [String]
|
36964
|
+
attr_accessor :post_inference_step
|
36965
|
+
|
36966
|
+
def initialize(**args)
|
36967
|
+
update!(**args)
|
36968
|
+
end
|
36969
|
+
|
36970
|
+
# Update properties of this object
|
36971
|
+
def update!(**args)
|
36972
|
+
@output = args[:output] if args.key?(:output)
|
36973
|
+
@post_inference_step = args[:post_inference_step] if args.key?(:post_inference_step)
|
36974
|
+
end
|
36975
|
+
end
|
36976
|
+
|
35874
36977
|
# Top-level wrapper used to store all things codey-related.
|
35875
36978
|
class LearningGenaiRootCodeyOutput
|
35876
36979
|
include Google::Apis::Core::Hashable
|
@@ -35885,6 +36988,11 @@ module Google
|
|
35885
36988
|
# @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyCompletionMetadata]
|
35886
36989
|
attr_accessor :codey_completion_metadata
|
35887
36990
|
|
36991
|
+
# Stores all metadata relating to GenerateCode.
|
36992
|
+
# Corresponds to the JSON property `codeyGenerationMetadata`
|
36993
|
+
# @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyGenerationMetadata]
|
36994
|
+
attr_accessor :codey_generation_metadata
|
36995
|
+
|
35888
36996
|
def initialize(**args)
|
35889
36997
|
update!(**args)
|
35890
36998
|
end
|
@@ -35893,6 +37001,7 @@ module Google
|
|
35893
37001
|
def update!(**args)
|
35894
37002
|
@codey_chat_metadata = args[:codey_chat_metadata] if args.key?(:codey_chat_metadata)
|
35895
37003
|
@codey_completion_metadata = args[:codey_completion_metadata] if args.key?(:codey_completion_metadata)
|
37004
|
+
@codey_generation_metadata = args[:codey_generation_metadata] if args.key?(:codey_generation_metadata)
|
35896
37005
|
end
|
35897
37006
|
end
|
35898
37007
|
|
@@ -35921,6 +37030,113 @@ module Google
|
|
35921
37030
|
end
|
35922
37031
|
end
|
35923
37032
|
|
37033
|
+
# Score threshold for a category.
|
37034
|
+
class LearningGenaiRootControlDecodingConfigThreshold
|
37035
|
+
include Google::Apis::Core::Hashable
|
37036
|
+
|
37037
|
+
#
|
37038
|
+
# Corresponds to the JSON property `policy`
|
37039
|
+
# @return [String]
|
37040
|
+
attr_accessor :policy
|
37041
|
+
|
37042
|
+
#
|
37043
|
+
# Corresponds to the JSON property `scoreMax`
|
37044
|
+
# @return [Float]
|
37045
|
+
attr_accessor :score_max
|
37046
|
+
|
37047
|
+
def initialize(**args)
|
37048
|
+
update!(**args)
|
37049
|
+
end
|
37050
|
+
|
37051
|
+
# Update properties of this object
|
37052
|
+
def update!(**args)
|
37053
|
+
@policy = args[:policy] if args.key?(:policy)
|
37054
|
+
@score_max = args[:score_max] if args.key?(:score_max)
|
37055
|
+
end
|
37056
|
+
end
|
37057
|
+
|
37058
|
+
# Holds one control decoding record.
|
37059
|
+
class LearningGenaiRootControlDecodingRecord
|
37060
|
+
include Google::Apis::Core::Hashable
|
37061
|
+
|
37062
|
+
# Prefixes feeded into scorer.
|
37063
|
+
# Corresponds to the JSON property `prefixes`
|
37064
|
+
# @return [String]
|
37065
|
+
attr_accessor :prefixes
|
37066
|
+
|
37067
|
+
# Per policy scores returned from Scorer. Expect to have the same number of
|
37068
|
+
# scores as in `thresholds`.
|
37069
|
+
# Corresponds to the JSON property `scores`
|
37070
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecordPolicyScore>]
|
37071
|
+
attr_accessor :scores
|
37072
|
+
|
37073
|
+
# Suffixes feeded into scorer.
|
37074
|
+
# Corresponds to the JSON property `suffiexes`
|
37075
|
+
# @return [String]
|
37076
|
+
attr_accessor :suffiexes
|
37077
|
+
|
37078
|
+
# Per policy thresholds from user config.
|
37079
|
+
# Corresponds to the JSON property `thresholds`
|
37080
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingConfigThreshold>]
|
37081
|
+
attr_accessor :thresholds
|
37082
|
+
|
37083
|
+
def initialize(**args)
|
37084
|
+
update!(**args)
|
37085
|
+
end
|
37086
|
+
|
37087
|
+
# Update properties of this object
|
37088
|
+
def update!(**args)
|
37089
|
+
@prefixes = args[:prefixes] if args.key?(:prefixes)
|
37090
|
+
@scores = args[:scores] if args.key?(:scores)
|
37091
|
+
@suffiexes = args[:suffiexes] if args.key?(:suffiexes)
|
37092
|
+
@thresholds = args[:thresholds] if args.key?(:thresholds)
|
37093
|
+
end
|
37094
|
+
end
|
37095
|
+
|
37096
|
+
#
|
37097
|
+
class LearningGenaiRootControlDecodingRecordPolicyScore
|
37098
|
+
include Google::Apis::Core::Hashable
|
37099
|
+
|
37100
|
+
#
|
37101
|
+
# Corresponds to the JSON property `policy`
|
37102
|
+
# @return [String]
|
37103
|
+
attr_accessor :policy
|
37104
|
+
|
37105
|
+
#
|
37106
|
+
# Corresponds to the JSON property `score`
|
37107
|
+
# @return [Float]
|
37108
|
+
attr_accessor :score
|
37109
|
+
|
37110
|
+
def initialize(**args)
|
37111
|
+
update!(**args)
|
37112
|
+
end
|
37113
|
+
|
37114
|
+
# Update properties of this object
|
37115
|
+
def update!(**args)
|
37116
|
+
@policy = args[:policy] if args.key?(:policy)
|
37117
|
+
@score = args[:score] if args.key?(:score)
|
37118
|
+
end
|
37119
|
+
end
|
37120
|
+
|
37121
|
+
#
|
37122
|
+
class LearningGenaiRootControlDecodingRecords
|
37123
|
+
include Google::Apis::Core::Hashable
|
37124
|
+
|
37125
|
+
# One ControlDecodingRecord record maps to one rewind.
|
37126
|
+
# Corresponds to the JSON property `records`
|
37127
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecord>]
|
37128
|
+
attr_accessor :records
|
37129
|
+
|
37130
|
+
def initialize(**args)
|
37131
|
+
update!(**args)
|
37132
|
+
end
|
37133
|
+
|
37134
|
+
# Update properties of this object
|
37135
|
+
def update!(**args)
|
37136
|
+
@records = args[:records] if args.key?(:records)
|
37137
|
+
end
|
37138
|
+
end
|
37139
|
+
|
35924
37140
|
#
|
35925
37141
|
class LearningGenaiRootDataProviderOutput
|
35926
37142
|
include Google::Apis::Core::Hashable
|
@@ -36035,6 +37251,11 @@ module Google
|
|
36035
37251
|
# @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceRaiSignal]
|
36036
37252
|
attr_accessor :rai_signal
|
36037
37253
|
|
37254
|
+
# Number of rewinds by controlled decoding.
|
37255
|
+
# Corresponds to the JSON property `records`
|
37256
|
+
# @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecords]
|
37257
|
+
attr_accessor :records
|
37258
|
+
|
36038
37259
|
# The recitation result for one stream input
|
36039
37260
|
# Corresponds to the JSON property `streamRecitationResult`
|
36040
37261
|
# @return [Google::Apis::AiplatformV1beta1::LanguageLabsAidaTrustRecitationProtoStreamRecitationResult]
|
@@ -36063,6 +37284,7 @@ module Google
|
|
36063
37284
|
@rai_output = args[:rai_output] if args.key?(:rai_output)
|
36064
37285
|
@rai_result = args[:rai_result] if args.key?(:rai_result)
|
36065
37286
|
@rai_signal = args[:rai_signal] if args.key?(:rai_signal)
|
37287
|
+
@records = args[:records] if args.key?(:records)
|
36066
37288
|
@stream_recitation_result = args[:stream_recitation_result] if args.key?(:stream_recitation_result)
|
36067
37289
|
@takedown_result = args[:takedown_result] if args.key?(:takedown_result)
|
36068
37290
|
@toxicity_result = args[:toxicity_result] if args.key?(:toxicity_result)
|
@@ -36471,6 +37693,33 @@ module Google
|
|
36471
37693
|
end
|
36472
37694
|
end
|
36473
37695
|
|
37696
|
+
#
|
37697
|
+
class LearningGenaiRootPerRequestProcessorDebugMetadataFactualityDebugMetadata
|
37698
|
+
include Google::Apis::Core::Hashable
|
37699
|
+
|
37700
|
+
# Latency spent on fact retrievals. There might be multiple retrievals from
|
37701
|
+
# different fact providers.
|
37702
|
+
# Corresponds to the JSON property `factRetrievalMillisecondsByProvider`
|
37703
|
+
# @return [Hash<String,Fixnum>]
|
37704
|
+
attr_accessor :fact_retrieval_milliseconds_by_provider
|
37705
|
+
|
37706
|
+
# Latency spent on prompt2query. The procedure generates a search-friendly query
|
37707
|
+
# given the original prompt.
|
37708
|
+
# Corresponds to the JSON property `prompt2queryMilliseconds`
|
37709
|
+
# @return [Fixnum]
|
37710
|
+
attr_accessor :prompt2query_milliseconds
|
37711
|
+
|
37712
|
+
def initialize(**args)
|
37713
|
+
update!(**args)
|
37714
|
+
end
|
37715
|
+
|
37716
|
+
# Update properties of this object
|
37717
|
+
def update!(**args)
|
37718
|
+
@fact_retrieval_milliseconds_by_provider = args[:fact_retrieval_milliseconds_by_provider] if args.key?(:fact_retrieval_milliseconds_by_provider)
|
37719
|
+
@prompt2query_milliseconds = args[:prompt2query_milliseconds] if args.key?(:prompt2query_milliseconds)
|
37720
|
+
end
|
37721
|
+
end
|
37722
|
+
|
36474
37723
|
# This is per harm.
|
36475
37724
|
class LearningGenaiRootRaiOutput
|
36476
37725
|
include Google::Apis::Core::Hashable
|
@@ -37156,6 +38405,35 @@ module Google
|
|
37156
38405
|
end
|
37157
38406
|
end
|
37158
38407
|
|
38408
|
+
# Each TranslationRequestInfo corresponds to a request sent to the translation
|
38409
|
+
# server.
|
38410
|
+
class LearningGenaiRootTranslationRequestInfo
|
38411
|
+
include Google::Apis::Core::Hashable
|
38412
|
+
|
38413
|
+
# The ISO-639 language code of source text in the initial request, detected
|
38414
|
+
# automatically, if no source language was passed within the initial request. If
|
38415
|
+
# the source language was passed, auto-detection of the language does not occur
|
38416
|
+
# and this field is empty.
|
38417
|
+
# Corresponds to the JSON property `detectedLanguageCodes`
|
38418
|
+
# @return [Array<String>]
|
38419
|
+
attr_accessor :detected_language_codes
|
38420
|
+
|
38421
|
+
# The sum of the size of all the contents in the request.
|
38422
|
+
# Corresponds to the JSON property `totalContentSize`
|
38423
|
+
# @return [Fixnum]
|
38424
|
+
attr_accessor :total_content_size
|
38425
|
+
|
38426
|
+
def initialize(**args)
|
38427
|
+
update!(**args)
|
38428
|
+
end
|
38429
|
+
|
38430
|
+
# Update properties of this object
|
38431
|
+
def update!(**args)
|
38432
|
+
@detected_language_codes = args[:detected_language_codes] if args.key?(:detected_language_codes)
|
38433
|
+
@total_content_size = args[:total_content_size] if args.key?(:total_content_size)
|
38434
|
+
end
|
38435
|
+
end
|
38436
|
+
|
37159
38437
|
# LINT.IfChange This metadata contains additional information required for
|
37160
38438
|
# debugging.
|
37161
38439
|
class LearningServingLlmMessageMetadata
|