google-apis-aiplatform_v1 0.13.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/aiplatform_v1/classes.rb +447 -70
- data/lib/google/apis/aiplatform_v1/gem_version.rb +3 -3
- data/lib/google/apis/aiplatform_v1/representations.rb +201 -30
- data/lib/google/apis/aiplatform_v1/service.rb +2 -6
- metadata +7 -7
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores]
|
136
136
|
attr_accessor :image_rai_scores
|
137
137
|
|
138
|
-
# RAI info for image
|
138
|
+
# RAI info for image.
|
139
139
|
# Corresponds to the JSON property `raiInfo`
|
140
140
|
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo]
|
141
141
|
attr_accessor :rai_info
|
@@ -145,6 +145,11 @@ module Google
|
|
145
145
|
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse]
|
146
146
|
attr_accessor :semantic_filter_response
|
147
147
|
|
148
|
+
# Text/Expanded text input for imagen.
|
149
|
+
# Corresponds to the JSON property `text`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :text
|
152
|
+
|
148
153
|
# Path to another storage (typically Google Cloud Storage).
|
149
154
|
# Corresponds to the JSON property `uri`
|
150
155
|
# @return [String]
|
@@ -161,6 +166,7 @@ module Google
|
|
161
166
|
@image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
|
162
167
|
@rai_info = args[:rai_info] if args.key?(:rai_info)
|
163
168
|
@semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
|
169
|
+
@text = args[:text] if args.key?(:text)
|
164
170
|
@uri = args[:uri] if args.key?(:uri)
|
165
171
|
end
|
166
172
|
end
|
@@ -1060,11 +1066,31 @@ module Google
|
|
1060
1066
|
# @return [String]
|
1061
1067
|
attr_accessor :category
|
1062
1068
|
|
1069
|
+
# The influential terms that could potentially block the response.
|
1070
|
+
# Corresponds to the JSON property `influentialTerms`
|
1071
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm>]
|
1072
|
+
attr_accessor :influential_terms
|
1073
|
+
|
1063
1074
|
# Harm probability levels in the content.
|
1064
1075
|
# Corresponds to the JSON property `probability`
|
1065
1076
|
# @return [String]
|
1066
1077
|
attr_accessor :probability
|
1067
1078
|
|
1079
|
+
# Harm probability score.
|
1080
|
+
# Corresponds to the JSON property `probabilityScore`
|
1081
|
+
# @return [Float]
|
1082
|
+
attr_accessor :probability_score
|
1083
|
+
|
1084
|
+
# Harm severity levels in the content.
|
1085
|
+
# Corresponds to the JSON property `severity`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :severity
|
1088
|
+
|
1089
|
+
# Harm severity score.
|
1090
|
+
# Corresponds to the JSON property `severityScore`
|
1091
|
+
# @return [Float]
|
1092
|
+
attr_accessor :severity_score
|
1093
|
+
|
1068
1094
|
def initialize(**args)
|
1069
1095
|
update!(**args)
|
1070
1096
|
end
|
@@ -1073,7 +1099,48 @@ module Google
|
|
1073
1099
|
def update!(**args)
|
1074
1100
|
@blocked = args[:blocked] if args.key?(:blocked)
|
1075
1101
|
@category = args[:category] if args.key?(:category)
|
1102
|
+
@influential_terms = args[:influential_terms] if args.key?(:influential_terms)
|
1076
1103
|
@probability = args[:probability] if args.key?(:probability)
|
1104
|
+
@probability_score = args[:probability_score] if args.key?(:probability_score)
|
1105
|
+
@severity = args[:severity] if args.key?(:severity)
|
1106
|
+
@severity_score = args[:severity_score] if args.key?(:severity_score)
|
1107
|
+
end
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# The influential term that could potentially block the response.
|
1111
|
+
class CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
|
1112
|
+
include Google::Apis::Core::Hashable
|
1113
|
+
|
1114
|
+
# The beginning offset of the influential term.
|
1115
|
+
# Corresponds to the JSON property `beginOffset`
|
1116
|
+
# @return [Fixnum]
|
1117
|
+
attr_accessor :begin_offset
|
1118
|
+
|
1119
|
+
# The confidence score of the influential term.
|
1120
|
+
# Corresponds to the JSON property `confidence`
|
1121
|
+
# @return [Float]
|
1122
|
+
attr_accessor :confidence
|
1123
|
+
|
1124
|
+
# The source of the influential term, prompt or response.
|
1125
|
+
# Corresponds to the JSON property `source`
|
1126
|
+
# @return [String]
|
1127
|
+
attr_accessor :source
|
1128
|
+
|
1129
|
+
# The influential term.
|
1130
|
+
# Corresponds to the JSON property `term`
|
1131
|
+
# @return [String]
|
1132
|
+
attr_accessor :term
|
1133
|
+
|
1134
|
+
def initialize(**args)
|
1135
|
+
update!(**args)
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
# Update properties of this object
|
1139
|
+
def update!(**args)
|
1140
|
+
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
1141
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1142
|
+
@source = args[:source] if args.key?(:source)
|
1143
|
+
@term = args[:term] if args.key?(:term)
|
1077
1144
|
end
|
1078
1145
|
end
|
1079
1146
|
|
@@ -2946,6 +3013,11 @@ module Google
|
|
2946
3013
|
# @return [String]
|
2947
3014
|
attr_accessor :finish_reason
|
2948
3015
|
|
3016
|
+
# Metadata returned to client when grounding is enabled.
|
3017
|
+
# Corresponds to the JSON property `groundingMetadata`
|
3018
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadata]
|
3019
|
+
attr_accessor :grounding_metadata
|
3020
|
+
|
2949
3021
|
# Output only. Index of the candidate.
|
2950
3022
|
# Corresponds to the JSON property `index`
|
2951
3023
|
# @return [Fixnum]
|
@@ -2967,6 +3039,7 @@ module Google
|
|
2967
3039
|
@content = args[:content] if args.key?(:content)
|
2968
3040
|
@finish_message = args[:finish_message] if args.key?(:finish_message)
|
2969
3041
|
@finish_reason = args[:finish_reason] if args.key?(:finish_reason)
|
3042
|
+
@grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
|
2970
3043
|
@index = args[:index] if args.key?(:index)
|
2971
3044
|
@safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
|
2972
3045
|
end
|
@@ -3930,13 +4003,6 @@ module Google
|
|
3930
4003
|
# @return [String]
|
3931
4004
|
attr_accessor :pipeline_job_id
|
3932
4005
|
|
3933
|
-
# Optional. Whether to do component level validations before job creation.
|
3934
|
-
# Currently we only support Google First Party Component/Pipelines.
|
3935
|
-
# Corresponds to the JSON property `preflightValidations`
|
3936
|
-
# @return [Boolean]
|
3937
|
-
attr_accessor :preflight_validations
|
3938
|
-
alias_method :preflight_validations?, :preflight_validations
|
3939
|
-
|
3940
4006
|
def initialize(**args)
|
3941
4007
|
update!(**args)
|
3942
4008
|
end
|
@@ -3946,7 +4012,6 @@ module Google
|
|
3946
4012
|
@parent = args[:parent] if args.key?(:parent)
|
3947
4013
|
@pipeline_job = args[:pipeline_job] if args.key?(:pipeline_job)
|
3948
4014
|
@pipeline_job_id = args[:pipeline_job_id] if args.key?(:pipeline_job_id)
|
3949
|
-
@preflight_validations = args[:preflight_validations] if args.key?(:preflight_validations)
|
3950
4015
|
end
|
3951
4016
|
end
|
3952
4017
|
|
@@ -4734,12 +4799,23 @@ module Google
|
|
4734
4799
|
# @return [String]
|
4735
4800
|
attr_accessor :create_time
|
4736
4801
|
|
4802
|
+
# The user-defined name of the DatasetVersion. The name can be up to 128
|
4803
|
+
# characters long and can consist of any UTF-8 characters.
|
4804
|
+
# Corresponds to the JSON property `displayName`
|
4805
|
+
# @return [String]
|
4806
|
+
attr_accessor :display_name
|
4807
|
+
|
4737
4808
|
# Used to perform consistent read-modify-write updates. If not set, a blind "
|
4738
4809
|
# overwrite" update happens.
|
4739
4810
|
# Corresponds to the JSON property `etag`
|
4740
4811
|
# @return [String]
|
4741
4812
|
attr_accessor :etag
|
4742
4813
|
|
4814
|
+
# Required. Additional information about the DatasetVersion.
|
4815
|
+
# Corresponds to the JSON property `metadata`
|
4816
|
+
# @return [Object]
|
4817
|
+
attr_accessor :metadata
|
4818
|
+
|
4743
4819
|
# Output only. The resource name of the DatasetVersion.
|
4744
4820
|
# Corresponds to the JSON property `name`
|
4745
4821
|
# @return [String]
|
@@ -4758,7 +4834,9 @@ module Google
|
|
4758
4834
|
def update!(**args)
|
4759
4835
|
@big_query_dataset_name = args[:big_query_dataset_name] if args.key?(:big_query_dataset_name)
|
4760
4836
|
@create_time = args[:create_time] if args.key?(:create_time)
|
4837
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4761
4838
|
@etag = args[:etag] if args.key?(:etag)
|
4839
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
4762
4840
|
@name = args[:name] if args.key?(:name)
|
4763
4841
|
@update_time = args[:update_time] if args.key?(:update_time)
|
4764
4842
|
end
|
@@ -5865,6 +5943,11 @@ module Google
|
|
5865
5943
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig]
|
5866
5944
|
attr_accessor :predict_request_response_logging_config
|
5867
5945
|
|
5946
|
+
# Represents configuration for private service connect.
|
5947
|
+
# Corresponds to the JSON property `privateServiceConnectConfig`
|
5948
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig]
|
5949
|
+
attr_accessor :private_service_connect_config
|
5950
|
+
|
5868
5951
|
# A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
|
5869
5952
|
# that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
|
5870
5953
|
# listed in this map, then it receives no traffic. The traffic percentage values
|
@@ -5897,6 +5980,7 @@ module Google
|
|
5897
5980
|
@name = args[:name] if args.key?(:name)
|
5898
5981
|
@network = args[:network] if args.key?(:network)
|
5899
5982
|
@predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
|
5983
|
+
@private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
|
5900
5984
|
@traffic_split = args[:traffic_split] if args.key?(:traffic_split)
|
5901
5985
|
@update_time = args[:update_time] if args.key?(:update_time)
|
5902
5986
|
end
|
@@ -7730,6 +7814,12 @@ module Google
|
|
7730
7814
|
# @return [String]
|
7731
7815
|
attr_accessor :name
|
7732
7816
|
|
7817
|
+
# Entity responsible for maintaining this feature. Can be comma separated list
|
7818
|
+
# of email addresses or URIs.
|
7819
|
+
# Corresponds to the JSON property `pointOfContact`
|
7820
|
+
# @return [String]
|
7821
|
+
attr_accessor :point_of_contact
|
7822
|
+
|
7733
7823
|
# Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp
|
7734
7824
|
# when this EntityType was most recently updated.
|
7735
7825
|
# Corresponds to the JSON property `updateTime`
|
@@ -7762,6 +7852,7 @@ module Google
|
|
7762
7852
|
@labels = args[:labels] if args.key?(:labels)
|
7763
7853
|
@monitoring_stats_anomalies = args[:monitoring_stats_anomalies] if args.key?(:monitoring_stats_anomalies)
|
7764
7854
|
@name = args[:name] if args.key?(:name)
|
7855
|
+
@point_of_contact = args[:point_of_contact] if args.key?(:point_of_contact)
|
7765
7856
|
@update_time = args[:update_time] if args.key?(:update_time)
|
7766
7857
|
@value_type = args[:value_type] if args.key?(:value_type)
|
7767
7858
|
@version_column_name = args[:version_column_name] if args.key?(:version_column_name)
|
@@ -7840,8 +7931,8 @@ module Google
|
|
7840
7931
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BigQuerySource]
|
7841
7932
|
attr_accessor :big_query_source
|
7842
7933
|
|
7843
|
-
# Optional. Columns to construct entity_id / row keys.
|
7844
|
-
#
|
7934
|
+
# Optional. Columns to construct entity_id / row keys. If not provided defaults
|
7935
|
+
# to `entity_id`.
|
7845
7936
|
# Corresponds to the JSON property `entityIdColumns`
|
7846
7937
|
# @return [Array<String>]
|
7847
7938
|
attr_accessor :entity_id_columns
|
@@ -8391,8 +8482,7 @@ module Google
|
|
8391
8482
|
class GoogleCloudAiplatformV1FeatureViewBigQuerySource
|
8392
8483
|
include Google::Apis::Core::Hashable
|
8393
8484
|
|
8394
|
-
# Required. Columns to construct entity_id / row keys.
|
8395
|
-
# only.
|
8485
|
+
# Required. Columns to construct entity_id / row keys.
|
8396
8486
|
# Corresponds to the JSON property `entityIdColumns`
|
8397
8487
|
# @return [Array<String>]
|
8398
8488
|
attr_accessor :entity_id_columns
|
@@ -8418,6 +8508,11 @@ module Google
|
|
8418
8508
|
class GoogleCloudAiplatformV1FeatureViewDataKey
|
8419
8509
|
include Google::Apis::Core::Hashable
|
8420
8510
|
|
8511
|
+
# ID that is comprised from several parts (columns).
|
8512
|
+
# Corresponds to the JSON property `compositeKey`
|
8513
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey]
|
8514
|
+
attr_accessor :composite_key
|
8515
|
+
|
8421
8516
|
# String key to use for lookup.
|
8422
8517
|
# Corresponds to the JSON property `key`
|
8423
8518
|
# @return [String]
|
@@ -8429,10 +8524,31 @@ module Google
|
|
8429
8524
|
|
8430
8525
|
# Update properties of this object
|
8431
8526
|
def update!(**args)
|
8527
|
+
@composite_key = args[:composite_key] if args.key?(:composite_key)
|
8432
8528
|
@key = args[:key] if args.key?(:key)
|
8433
8529
|
end
|
8434
8530
|
end
|
8435
8531
|
|
8532
|
+
# ID that is comprised from several parts (columns).
|
8533
|
+
class GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey
|
8534
|
+
include Google::Apis::Core::Hashable
|
8535
|
+
|
8536
|
+
# Parts to construct Entity ID. Should match with the same ID columns as defined
|
8537
|
+
# in FeatureView in the same order.
|
8538
|
+
# Corresponds to the JSON property `parts`
|
8539
|
+
# @return [Array<String>]
|
8540
|
+
attr_accessor :parts
|
8541
|
+
|
8542
|
+
def initialize(**args)
|
8543
|
+
update!(**args)
|
8544
|
+
end
|
8545
|
+
|
8546
|
+
# Update properties of this object
|
8547
|
+
def update!(**args)
|
8548
|
+
@parts = args[:parts] if args.key?(:parts)
|
8549
|
+
end
|
8550
|
+
end
|
8551
|
+
|
8436
8552
|
# A Feature Registry source for features that need to be synced to Online Store.
|
8437
8553
|
class GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource
|
8438
8554
|
include Google::Apis::Core::Hashable
|
@@ -8442,6 +8558,11 @@ module Google
|
|
8442
8558
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup>]
|
8443
8559
|
attr_accessor :feature_groups
|
8444
8560
|
|
8561
|
+
# Optional. The project number of the parent project of the Feature Groups.
|
8562
|
+
# Corresponds to the JSON property `projectNumber`
|
8563
|
+
# @return [Fixnum]
|
8564
|
+
attr_accessor :project_number
|
8565
|
+
|
8445
8566
|
def initialize(**args)
|
8446
8567
|
update!(**args)
|
8447
8568
|
end
|
@@ -8449,6 +8570,7 @@ module Google
|
|
8449
8570
|
# Update properties of this object
|
8450
8571
|
def update!(**args)
|
8451
8572
|
@feature_groups = args[:feature_groups] if args.key?(:feature_groups)
|
8573
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
8452
8574
|
end
|
8453
8575
|
end
|
8454
8576
|
|
@@ -8515,6 +8637,12 @@ module Google
|
|
8515
8637
|
# @return [Google::Apis::AiplatformV1::GoogleTypeInterval]
|
8516
8638
|
attr_accessor :run_time
|
8517
8639
|
|
8640
|
+
# Summary from the Sync job. For continuous syncs, the summary is updated
|
8641
|
+
# periodically. For batch syncs, it gets updated on completion of the sync.
|
8642
|
+
# Corresponds to the JSON property `syncSummary`
|
8643
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncSyncSummary]
|
8644
|
+
attr_accessor :sync_summary
|
8645
|
+
|
8518
8646
|
def initialize(**args)
|
8519
8647
|
update!(**args)
|
8520
8648
|
end
|
@@ -8525,6 +8653,7 @@ module Google
|
|
8525
8653
|
@final_status = args[:final_status] if args.key?(:final_status)
|
8526
8654
|
@name = args[:name] if args.key?(:name)
|
8527
8655
|
@run_time = args[:run_time] if args.key?(:run_time)
|
8656
|
+
@sync_summary = args[:sync_summary] if args.key?(:sync_summary)
|
8528
8657
|
end
|
8529
8658
|
end
|
8530
8659
|
|
@@ -8551,6 +8680,32 @@ module Google
|
|
8551
8680
|
end
|
8552
8681
|
end
|
8553
8682
|
|
8683
|
+
# Summary from the Sync job. For continuous syncs, the summary is updated
|
8684
|
+
# periodically. For batch syncs, it gets updated on completion of the sync.
|
8685
|
+
class GoogleCloudAiplatformV1FeatureViewSyncSyncSummary
|
8686
|
+
include Google::Apis::Core::Hashable
|
8687
|
+
|
8688
|
+
# Output only. Total number of rows synced.
|
8689
|
+
# Corresponds to the JSON property `rowSynced`
|
8690
|
+
# @return [Fixnum]
|
8691
|
+
attr_accessor :row_synced
|
8692
|
+
|
8693
|
+
# Output only. BigQuery slot milliseconds consumed for the sync job.
|
8694
|
+
# Corresponds to the JSON property `totalSlot`
|
8695
|
+
# @return [Fixnum]
|
8696
|
+
attr_accessor :total_slot
|
8697
|
+
|
8698
|
+
def initialize(**args)
|
8699
|
+
update!(**args)
|
8700
|
+
end
|
8701
|
+
|
8702
|
+
# Update properties of this object
|
8703
|
+
def update!(**args)
|
8704
|
+
@row_synced = args[:row_synced] if args.key?(:row_synced)
|
8705
|
+
@total_slot = args[:total_slot] if args.key?(:total_slot)
|
8706
|
+
end
|
8707
|
+
end
|
8708
|
+
|
8554
8709
|
# Vertex AI Feature Store provides a centralized repository for organizing,
|
8555
8710
|
# storing, and serving ML features. The Featurestore is a top-level container
|
8556
8711
|
# for your features and their values.
|
@@ -9378,7 +9533,7 @@ module Google
|
|
9378
9533
|
# Optional. A list of `Tools` the model may use to generate the next response. A
|
9379
9534
|
# `Tool` is a piece of code that enables the system to interact with external
|
9380
9535
|
# systems to perform an action, or set of actions, outside of knowledge and
|
9381
|
-
# scope of the model.
|
9536
|
+
# scope of the model.
|
9382
9537
|
# Corresponds to the JSON property `tools`
|
9383
9538
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
|
9384
9539
|
attr_accessor :tools
|
@@ -9572,6 +9727,88 @@ module Google
|
|
9572
9727
|
end
|
9573
9728
|
end
|
9574
9729
|
|
9730
|
+
# Grounding attribution.
|
9731
|
+
class GoogleCloudAiplatformV1GroundingAttribution
|
9732
|
+
include Google::Apis::Core::Hashable
|
9733
|
+
|
9734
|
+
# Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
|
9735
|
+
# 1 is the most confident.
|
9736
|
+
# Corresponds to the JSON property `confidenceScore`
|
9737
|
+
# @return [Float]
|
9738
|
+
attr_accessor :confidence_score
|
9739
|
+
|
9740
|
+
# Segment of the content.
|
9741
|
+
# Corresponds to the JSON property `segment`
|
9742
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment]
|
9743
|
+
attr_accessor :segment
|
9744
|
+
|
9745
|
+
# Attribution from the web.
|
9746
|
+
# Corresponds to the JSON property `web`
|
9747
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttributionWeb]
|
9748
|
+
attr_accessor :web
|
9749
|
+
|
9750
|
+
def initialize(**args)
|
9751
|
+
update!(**args)
|
9752
|
+
end
|
9753
|
+
|
9754
|
+
# Update properties of this object
|
9755
|
+
def update!(**args)
|
9756
|
+
@confidence_score = args[:confidence_score] if args.key?(:confidence_score)
|
9757
|
+
@segment = args[:segment] if args.key?(:segment)
|
9758
|
+
@web = args[:web] if args.key?(:web)
|
9759
|
+
end
|
9760
|
+
end
|
9761
|
+
|
9762
|
+
# Attribution from the web.
|
9763
|
+
class GoogleCloudAiplatformV1GroundingAttributionWeb
|
9764
|
+
include Google::Apis::Core::Hashable
|
9765
|
+
|
9766
|
+
# Output only. Title of the attribution.
|
9767
|
+
# Corresponds to the JSON property `title`
|
9768
|
+
# @return [String]
|
9769
|
+
attr_accessor :title
|
9770
|
+
|
9771
|
+
# Output only. URI reference of the attribution.
|
9772
|
+
# Corresponds to the JSON property `uri`
|
9773
|
+
# @return [String]
|
9774
|
+
attr_accessor :uri
|
9775
|
+
|
9776
|
+
def initialize(**args)
|
9777
|
+
update!(**args)
|
9778
|
+
end
|
9779
|
+
|
9780
|
+
# Update properties of this object
|
9781
|
+
def update!(**args)
|
9782
|
+
@title = args[:title] if args.key?(:title)
|
9783
|
+
@uri = args[:uri] if args.key?(:uri)
|
9784
|
+
end
|
9785
|
+
end
|
9786
|
+
|
9787
|
+
# Metadata returned to client when grounding is enabled.
|
9788
|
+
class GoogleCloudAiplatformV1GroundingMetadata
|
9789
|
+
include Google::Apis::Core::Hashable
|
9790
|
+
|
9791
|
+
# Optional. List of grounding attributions.
|
9792
|
+
# Corresponds to the JSON property `groundingAttributions`
|
9793
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution>]
|
9794
|
+
attr_accessor :grounding_attributions
|
9795
|
+
|
9796
|
+
# Optional. Web search queries for the following-up web search.
|
9797
|
+
# Corresponds to the JSON property `webSearchQueries`
|
9798
|
+
# @return [Array<String>]
|
9799
|
+
attr_accessor :web_search_queries
|
9800
|
+
|
9801
|
+
def initialize(**args)
|
9802
|
+
update!(**args)
|
9803
|
+
end
|
9804
|
+
|
9805
|
+
# Update properties of this object
|
9806
|
+
def update!(**args)
|
9807
|
+
@grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
|
9808
|
+
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
9809
|
+
end
|
9810
|
+
end
|
9811
|
+
|
9575
9812
|
# Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study
|
9576
9813
|
# specification and multiple CustomJobs with identical CustomJob specification.
|
9577
9814
|
class GoogleCloudAiplatformV1HyperparameterTuningJob
|
@@ -15926,11 +16163,6 @@ module Google
|
|
15926
16163
|
class GoogleCloudAiplatformV1PipelineJobRuntimeConfig
|
15927
16164
|
include Google::Apis::Core::Hashable
|
15928
16165
|
|
15929
|
-
# The default runtime for the PipelineJob.
|
15930
|
-
# Corresponds to the JSON property `defaultRuntime`
|
15931
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime]
|
15932
|
-
attr_accessor :default_runtime
|
15933
|
-
|
15934
16166
|
# Represents the failure policy of a pipeline. Currently, the default of a
|
15935
16167
|
# pipeline is that the pipeline will continue to run until no more tasks can be
|
15936
16168
|
# executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
|
@@ -15981,7 +16213,6 @@ module Google
|
|
15981
16213
|
|
15982
16214
|
# Update properties of this object
|
15983
16215
|
def update!(**args)
|
15984
|
-
@default_runtime = args[:default_runtime] if args.key?(:default_runtime)
|
15985
16216
|
@failure_policy = args[:failure_policy] if args.key?(:failure_policy)
|
15986
16217
|
@gcs_output_directory = args[:gcs_output_directory] if args.key?(:gcs_output_directory)
|
15987
16218
|
@input_artifacts = args[:input_artifacts] if args.key?(:input_artifacts)
|
@@ -15990,26 +16221,6 @@ module Google
|
|
15990
16221
|
end
|
15991
16222
|
end
|
15992
16223
|
|
15993
|
-
# The default runtime for the PipelineJob.
|
15994
|
-
class GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime
|
15995
|
-
include Google::Apis::Core::Hashable
|
15996
|
-
|
15997
|
-
# Persistent resource based runtime detail. For more information, refer to https:
|
15998
|
-
# //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
|
15999
|
-
# Corresponds to the JSON property `persistentResourceRuntimeDetail`
|
16000
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail]
|
16001
|
-
attr_accessor :persistent_resource_runtime_detail
|
16002
|
-
|
16003
|
-
def initialize(**args)
|
16004
|
-
update!(**args)
|
16005
|
-
end
|
16006
|
-
|
16007
|
-
# Update properties of this object
|
16008
|
-
def update!(**args)
|
16009
|
-
@persistent_resource_runtime_detail = args[:persistent_resource_runtime_detail] if args.key?(:persistent_resource_runtime_detail)
|
16010
|
-
end
|
16011
|
-
end
|
16012
|
-
|
16013
16224
|
# The type of an input artifact.
|
16014
16225
|
class GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact
|
16015
16226
|
include Google::Apis::Core::Hashable
|
@@ -16032,27 +16243,6 @@ module Google
|
|
16032
16243
|
end
|
16033
16244
|
end
|
16034
16245
|
|
16035
|
-
# Persistent resource based runtime detail. For more information, refer to https:
|
16036
|
-
# //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
|
16037
|
-
class GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail
|
16038
|
-
include Google::Apis::Core::Hashable
|
16039
|
-
|
16040
|
-
# Persistent resource name. Format: `projects/`project`/locations/`location`/
|
16041
|
-
# persistentResources/`persistent_resource``
|
16042
|
-
# Corresponds to the JSON property `persistentResourceName`
|
16043
|
-
# @return [String]
|
16044
|
-
attr_accessor :persistent_resource_name
|
16045
|
-
|
16046
|
-
def initialize(**args)
|
16047
|
-
update!(**args)
|
16048
|
-
end
|
16049
|
-
|
16050
|
-
# Update properties of this object
|
16051
|
-
def update!(**args)
|
16052
|
-
@persistent_resource_name = args[:persistent_resource_name] if args.key?(:persistent_resource_name)
|
16053
|
-
end
|
16054
|
-
end
|
16055
|
-
|
16056
16246
|
# The runtime detail of a task execution.
|
16057
16247
|
class GoogleCloudAiplatformV1PipelineTaskDetail
|
16058
16248
|
include Google::Apis::Core::Hashable
|
@@ -18005,6 +18195,21 @@ module Google
|
|
18005
18195
|
# @return [String]
|
18006
18196
|
attr_accessor :probability
|
18007
18197
|
|
18198
|
+
# Output only. Harm probability score.
|
18199
|
+
# Corresponds to the JSON property `probabilityScore`
|
18200
|
+
# @return [Float]
|
18201
|
+
attr_accessor :probability_score
|
18202
|
+
|
18203
|
+
# Output only. Harm severity levels in the content.
|
18204
|
+
# Corresponds to the JSON property `severity`
|
18205
|
+
# @return [String]
|
18206
|
+
attr_accessor :severity
|
18207
|
+
|
18208
|
+
# Output only. Harm severity score.
|
18209
|
+
# Corresponds to the JSON property `severityScore`
|
18210
|
+
# @return [Float]
|
18211
|
+
attr_accessor :severity_score
|
18212
|
+
|
18008
18213
|
def initialize(**args)
|
18009
18214
|
update!(**args)
|
18010
18215
|
end
|
@@ -18014,6 +18219,9 @@ module Google
|
|
18014
18219
|
@blocked = args[:blocked] if args.key?(:blocked)
|
18015
18220
|
@category = args[:category] if args.key?(:category)
|
18016
18221
|
@probability = args[:probability] if args.key?(:probability)
|
18222
|
+
@probability_score = args[:probability_score] if args.key?(:probability_score)
|
18223
|
+
@severity = args[:severity] if args.key?(:severity)
|
18224
|
+
@severity_score = args[:severity_score] if args.key?(:severity_score)
|
18017
18225
|
end
|
18018
18226
|
end
|
18019
18227
|
|
@@ -24829,6 +25037,39 @@ module Google
|
|
24829
25037
|
end
|
24830
25038
|
end
|
24831
25039
|
|
25040
|
+
# Segment of the content.
|
25041
|
+
class GoogleCloudAiplatformV1Segment
|
25042
|
+
include Google::Apis::Core::Hashable
|
25043
|
+
|
25044
|
+
# Output only. End index in the given Part, measured in bytes. Offset from the
|
25045
|
+
# start of the Part, exclusive, starting at zero.
|
25046
|
+
# Corresponds to the JSON property `endIndex`
|
25047
|
+
# @return [Fixnum]
|
25048
|
+
attr_accessor :end_index
|
25049
|
+
|
25050
|
+
# Output only. The index of a Part object within its parent Content object.
|
25051
|
+
# Corresponds to the JSON property `partIndex`
|
25052
|
+
# @return [Fixnum]
|
25053
|
+
attr_accessor :part_index
|
25054
|
+
|
25055
|
+
# Output only. Start index in the given Part, measured in bytes. Offset from the
|
25056
|
+
# start of the Part, inclusive, starting at zero.
|
25057
|
+
# Corresponds to the JSON property `startIndex`
|
25058
|
+
# @return [Fixnum]
|
25059
|
+
attr_accessor :start_index
|
25060
|
+
|
25061
|
+
def initialize(**args)
|
25062
|
+
update!(**args)
|
25063
|
+
end
|
25064
|
+
|
25065
|
+
# Update properties of this object
|
25066
|
+
def update!(**args)
|
25067
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
25068
|
+
@part_index = args[:part_index] if args.key?(:part_index)
|
25069
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
25070
|
+
end
|
25071
|
+
end
|
25072
|
+
|
24832
25073
|
# A set of Shielded Instance options. See [Images using supported Shielded VM
|
24833
25074
|
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
|
24834
25075
|
# vm).
|
@@ -26771,16 +27012,18 @@ module Google
|
|
26771
27012
|
|
26772
27013
|
# Tool details that the model may use to generate response. A `Tool` is a piece
|
26773
27014
|
# of code that enables the system to interact with external systems to perform
|
26774
|
-
# an action, or set of actions, outside of knowledge and scope of the model.
|
27015
|
+
# an action, or set of actions, outside of knowledge and scope of the model. A
|
27016
|
+
# Tool object should contain exactly one type of Tool (e.g FunctionDeclaration,
|
27017
|
+
# Retrieval or GoogleSearchRetrieval).
|
26775
27018
|
class GoogleCloudAiplatformV1Tool
|
26776
27019
|
include Google::Apis::Core::Hashable
|
26777
27020
|
|
26778
|
-
# Optional. One or more function declarations to be passed
|
26779
|
-
# with the current user query. Model may decide to call a
|
26780
|
-
# functions by populating FunctionCall in the response. User
|
26781
|
-
# FunctionResponse for each function call in the next turn.
|
26782
|
-
# function responses, Model will generate the final response back
|
26783
|
-
# Maximum 64 function declarations can be provided.
|
27021
|
+
# Optional. Function tool type. One or more function declarations to be passed
|
27022
|
+
# to the model along with the current user query. Model may decide to call a
|
27023
|
+
# subset of these functions by populating FunctionCall in the response. User
|
27024
|
+
# should provide a FunctionResponse for each function call in the next turn.
|
27025
|
+
# Based on the function responses, Model will generate the final response back
|
27026
|
+
# to the user. Maximum 64 function declarations can be provided.
|
26784
27027
|
# Corresponds to the JSON property `functionDeclarations`
|
26785
27028
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionDeclaration>]
|
26786
27029
|
attr_accessor :function_declarations
|
@@ -29072,7 +29315,8 @@ module Google
|
|
29072
29315
|
|
29073
29316
|
# The recitation action for one given input. When its segments contain different
|
29074
29317
|
# actions, the overall action will be returned in the precedence of BLOCK > CITE
|
29075
|
-
# > NO_ACTION.
|
29318
|
+
# > NO_ACTION. When the given input is not found in any source, the recitation
|
29319
|
+
# action will not be specified.
|
29076
29320
|
# Corresponds to the JSON property `recitationAction`
|
29077
29321
|
# @return [String]
|
29078
29322
|
attr_accessor :recitation_action
|
@@ -29426,7 +29670,8 @@ module Google
|
|
29426
29670
|
|
29427
29671
|
# The recitation action for one given input. When its segments contain different
|
29428
29672
|
# actions, the overall action will be returned in the precedence of BLOCK > CITE
|
29429
|
-
# > NO_ACTION.
|
29673
|
+
# > NO_ACTION. When the given input is not found in any source, the recitation
|
29674
|
+
# action will be NO_ACTION.
|
29430
29675
|
# Corresponds to the JSON property `recitationAction`
|
29431
29676
|
# @return [String]
|
29432
29677
|
attr_accessor :recitation_action
|
@@ -29638,6 +29883,125 @@ module Google
|
|
29638
29883
|
end
|
29639
29884
|
end
|
29640
29885
|
|
29886
|
+
# Stores all metadata relating to AIDA DoConversation.
|
29887
|
+
class LearningGenaiRootCodeyChatMetadata
|
29888
|
+
include Google::Apis::Core::Hashable
|
29889
|
+
|
29890
|
+
# Indicates the programming language of the code if the message is a code chunk.
|
29891
|
+
# Corresponds to the JSON property `codeLanguage`
|
29892
|
+
# @return [String]
|
29893
|
+
attr_accessor :code_language
|
29894
|
+
|
29895
|
+
def initialize(**args)
|
29896
|
+
update!(**args)
|
29897
|
+
end
|
29898
|
+
|
29899
|
+
# Update properties of this object
|
29900
|
+
def update!(**args)
|
29901
|
+
@code_language = args[:code_language] if args.key?(:code_language)
|
29902
|
+
end
|
29903
|
+
end
|
29904
|
+
|
29905
|
+
# Describes a sample at a checkpoint for post-processing.
|
29906
|
+
class LearningGenaiRootCodeyCheckpoint
|
29907
|
+
include Google::Apis::Core::Hashable
|
29908
|
+
|
29909
|
+
# Metadata describing what was truncated at each checkpoint.
|
29910
|
+
# Corresponds to the JSON property `codeyTruncatorMetadata`
|
29911
|
+
# @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyTruncatorMetadata]
|
29912
|
+
attr_accessor :codey_truncator_metadata
|
29913
|
+
|
29914
|
+
# Current state of the sample after truncator.
|
29915
|
+
# Corresponds to the JSON property `currentSample`
|
29916
|
+
# @return [String]
|
29917
|
+
attr_accessor :current_sample
|
29918
|
+
|
29919
|
+
# Postprocessor run that yielded this checkpoint.
|
29920
|
+
# Corresponds to the JSON property `postInferenceStep`
|
29921
|
+
# @return [String]
|
29922
|
+
attr_accessor :post_inference_step
|
29923
|
+
|
29924
|
+
def initialize(**args)
|
29925
|
+
update!(**args)
|
29926
|
+
end
|
29927
|
+
|
29928
|
+
# Update properties of this object
|
29929
|
+
def update!(**args)
|
29930
|
+
@codey_truncator_metadata = args[:codey_truncator_metadata] if args.key?(:codey_truncator_metadata)
|
29931
|
+
@current_sample = args[:current_sample] if args.key?(:current_sample)
|
29932
|
+
@post_inference_step = args[:post_inference_step] if args.key?(:post_inference_step)
|
29933
|
+
end
|
29934
|
+
end
|
29935
|
+
|
29936
|
+
# Stores all metadata relating to Completion.
|
29937
|
+
class LearningGenaiRootCodeyCompletionMetadata
|
29938
|
+
include Google::Apis::Core::Hashable
|
29939
|
+
|
29940
|
+
#
|
29941
|
+
# Corresponds to the JSON property `checkpoints`
|
29942
|
+
# @return [Array<Google::Apis::AiplatformV1::LearningGenaiRootCodeyCheckpoint>]
|
29943
|
+
attr_accessor :checkpoints
|
29944
|
+
|
29945
|
+
def initialize(**args)
|
29946
|
+
update!(**args)
|
29947
|
+
end
|
29948
|
+
|
29949
|
+
# Update properties of this object
|
29950
|
+
def update!(**args)
|
29951
|
+
@checkpoints = args[:checkpoints] if args.key?(:checkpoints)
|
29952
|
+
end
|
29953
|
+
end
|
29954
|
+
|
29955
|
+
# Top-level wrapper used to store all things codey-related.
|
29956
|
+
class LearningGenaiRootCodeyOutput
|
29957
|
+
include Google::Apis::Core::Hashable
|
29958
|
+
|
29959
|
+
# Stores all metadata relating to AIDA DoConversation.
|
29960
|
+
# Corresponds to the JSON property `codeyChatMetadata`
|
29961
|
+
# @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyChatMetadata]
|
29962
|
+
attr_accessor :codey_chat_metadata
|
29963
|
+
|
29964
|
+
# Stores all metadata relating to Completion.
|
29965
|
+
# Corresponds to the JSON property `codeyCompletionMetadata`
|
29966
|
+
# @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyCompletionMetadata]
|
29967
|
+
attr_accessor :codey_completion_metadata
|
29968
|
+
|
29969
|
+
def initialize(**args)
|
29970
|
+
update!(**args)
|
29971
|
+
end
|
29972
|
+
|
29973
|
+
# Update properties of this object
|
29974
|
+
def update!(**args)
|
29975
|
+
@codey_chat_metadata = args[:codey_chat_metadata] if args.key?(:codey_chat_metadata)
|
29976
|
+
@codey_completion_metadata = args[:codey_completion_metadata] if args.key?(:codey_completion_metadata)
|
29977
|
+
end
|
29978
|
+
end
|
29979
|
+
|
29980
|
+
# Metadata describing what was truncated at each checkpoint.
|
29981
|
+
class LearningGenaiRootCodeyTruncatorMetadata
|
29982
|
+
include Google::Apis::Core::Hashable
|
29983
|
+
|
29984
|
+
# Index of the current sample that trims off truncated text.
|
29985
|
+
# Corresponds to the JSON property `cutoffIndex`
|
29986
|
+
# @return [Fixnum]
|
29987
|
+
attr_accessor :cutoff_index
|
29988
|
+
|
29989
|
+
# Text that was truncated at a specific checkpoint.
|
29990
|
+
# Corresponds to the JSON property `truncatedText`
|
29991
|
+
# @return [String]
|
29992
|
+
attr_accessor :truncated_text
|
29993
|
+
|
29994
|
+
def initialize(**args)
|
29995
|
+
update!(**args)
|
29996
|
+
end
|
29997
|
+
|
29998
|
+
# Update properties of this object
|
29999
|
+
def update!(**args)
|
30000
|
+
@cutoff_index = args[:cutoff_index] if args.key?(:cutoff_index)
|
30001
|
+
@truncated_text = args[:truncated_text] if args.key?(:truncated_text)
|
30002
|
+
end
|
30003
|
+
end
|
30004
|
+
|
29641
30005
|
#
|
29642
30006
|
class LearningGenaiRootDataProviderOutput
|
29643
30007
|
include Google::Apis::Core::Hashable
|
@@ -30856,6 +31220,11 @@ module Google
|
|
30856
31220
|
# @return [Google::Apis::AiplatformV1::LearningGenaiRootClassifierOutputSummary]
|
30857
31221
|
attr_accessor :classifier_summary
|
30858
31222
|
|
31223
|
+
# Top-level wrapper used to store all things codey-related.
|
31224
|
+
# Corresponds to the JSON property `codeyOutput`
|
31225
|
+
# @return [Google::Apis::AiplatformV1::LearningGenaiRootCodeyOutput]
|
31226
|
+
attr_accessor :codey_output
|
31227
|
+
|
30859
31228
|
#
|
30860
31229
|
# Corresponds to the JSON property `currentStreamTextLength`
|
30861
31230
|
# @return [Fixnum]
|
@@ -30888,6 +31257,12 @@ module Google
|
|
30888
31257
|
# @return [Google::Apis::AiplatformV1::LearningGenaiRootGroundingMetadata]
|
30889
31258
|
attr_accessor :grounding_metadata
|
30890
31259
|
|
31260
|
+
# Applies to streaming response message only. Whether the message is a code.
|
31261
|
+
# Corresponds to the JSON property `isCode`
|
31262
|
+
# @return [Boolean]
|
31263
|
+
attr_accessor :is_code
|
31264
|
+
alias_method :is_code?, :is_code
|
31265
|
+
|
30891
31266
|
# Applies to Response message only. Indicates whether the message is a fallback
|
30892
31267
|
# and the response would have otherwise been empty.
|
30893
31268
|
# Corresponds to the JSON property `isFallback`
|
@@ -30980,12 +31355,14 @@ module Google
|
|
30980
31355
|
# Update properties of this object
|
30981
31356
|
def update!(**args)
|
30982
31357
|
@classifier_summary = args[:classifier_summary] if args.key?(:classifier_summary)
|
31358
|
+
@codey_output = args[:codey_output] if args.key?(:codey_output)
|
30983
31359
|
@current_stream_text_length = args[:current_stream_text_length] if args.key?(:current_stream_text_length)
|
30984
31360
|
@deleted = args[:deleted] if args.key?(:deleted)
|
30985
31361
|
@filter_meta = args[:filter_meta] if args.key?(:filter_meta)
|
30986
31362
|
@final_message_score = args[:final_message_score] if args.key?(:final_message_score)
|
30987
31363
|
@finish_reason = args[:finish_reason] if args.key?(:finish_reason)
|
30988
31364
|
@grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
|
31365
|
+
@is_code = args[:is_code] if args.key?(:is_code)
|
30989
31366
|
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
30990
31367
|
@langid_result = args[:langid_result] if args.key?(:langid_result)
|
30991
31368
|
@language = args[:language] if args.key?(:language)
|