google-apis-aiplatform_v1beta1 0.41.0 → 0.42.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 +4 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +1551 -2
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +808 -3
- data/lib/google/apis/aiplatform_v1beta1/service.rb +942 -12
- metadata +3 -3
@@ -590,6 +590,27 @@ module Google
|
|
590
590
|
end
|
591
591
|
end
|
592
592
|
|
593
|
+
# Request message for ModelGardenService.AcceptPublisherModelEula.
|
594
|
+
class GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest
|
595
|
+
include Google::Apis::Core::Hashable
|
596
|
+
|
597
|
+
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
598
|
+
# publisher`/models/`publisher_model``, or `publishers/hf-`hugging-face-author`/
|
599
|
+
# models/`hugging-face-model-name``
|
600
|
+
# Corresponds to the JSON property `publisherModel`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :publisher_model
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@publisher_model = args[:publisher_model] if args.key?(:publisher_model)
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
593
614
|
# Parameters that configure the active learning pipeline. Active learning will
|
594
615
|
# label the data incrementally by several iterations. For every iteration, it
|
595
616
|
# will select a batch of data based on the sampling strategy.
|
@@ -923,6 +944,19 @@ module Google
|
|
923
944
|
end
|
924
945
|
end
|
925
946
|
|
947
|
+
# Response message for SessionService.AppendEvent.
|
948
|
+
class GoogleCloudAiplatformV1beta1AppendEventResponse
|
949
|
+
include Google::Apis::Core::Hashable
|
950
|
+
|
951
|
+
def initialize(**args)
|
952
|
+
update!(**args)
|
953
|
+
end
|
954
|
+
|
955
|
+
# Update properties of this object
|
956
|
+
def update!(**args)
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
926
960
|
# Instance of a general artifact.
|
927
961
|
class GoogleCloudAiplatformV1beta1Artifact
|
928
962
|
include Google::Apis::Core::Hashable
|
@@ -1078,6 +1112,13 @@ module Google
|
|
1078
1112
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiTemplateConfig]
|
1079
1113
|
attr_accessor :gemini_template_config
|
1080
1114
|
|
1115
|
+
# Optional. The column name in the underlying table that contains already fully
|
1116
|
+
# assembled requests. If this field is set, the original request will be copied
|
1117
|
+
# to the output table.
|
1118
|
+
# Corresponds to the JSON property `requestColumnName`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :request_column_name
|
1121
|
+
|
1081
1122
|
def initialize(**args)
|
1082
1123
|
update!(**args)
|
1083
1124
|
end
|
@@ -1085,6 +1126,7 @@ module Google
|
|
1085
1126
|
# Update properties of this object
|
1086
1127
|
def update!(**args)
|
1087
1128
|
@gemini_template_config = args[:gemini_template_config] if args.key?(:gemini_template_config)
|
1129
|
+
@request_column_name = args[:request_column_name] if args.key?(:request_column_name)
|
1088
1130
|
end
|
1089
1131
|
end
|
1090
1132
|
|
@@ -1093,11 +1135,27 @@ module Google
|
|
1093
1135
|
class GoogleCloudAiplatformV1beta1AssessDataRequest
|
1094
1136
|
include Google::Apis::Core::Hashable
|
1095
1137
|
|
1138
|
+
# Configuration for the batch prediction resource usage assessment.
|
1139
|
+
# Corresponds to the JSON property `batchPredictionResourceUsageAssessmentConfig`
|
1140
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequestBatchPredictionResourceUsageAssessmentConfig]
|
1141
|
+
attr_accessor :batch_prediction_resource_usage_assessment_config
|
1142
|
+
|
1143
|
+
# Configuration for the batch prediction validation assessment.
|
1144
|
+
# Corresponds to the JSON property `batchPredictionValidationAssessmentConfig`
|
1145
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequestBatchPredictionValidationAssessmentConfig]
|
1146
|
+
attr_accessor :batch_prediction_validation_assessment_config
|
1147
|
+
|
1096
1148
|
# Template configuration to create Gemini examples from a multimodal dataset.
|
1097
1149
|
# Corresponds to the JSON property `geminiTemplateConfig`
|
1098
1150
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiTemplateConfig]
|
1099
1151
|
attr_accessor :gemini_template_config
|
1100
1152
|
|
1153
|
+
# Optional. The column name in the underlying table that contains already fully
|
1154
|
+
# assembled requests.
|
1155
|
+
# Corresponds to the JSON property `requestColumnName`
|
1156
|
+
# @return [String]
|
1157
|
+
attr_accessor :request_column_name
|
1158
|
+
|
1101
1159
|
# Configuration for the tuning resource usage assessment.
|
1102
1160
|
# Corresponds to the JSON property `tuningResourceUsageAssessmentConfig`
|
1103
1161
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequestTuningResourceUsageAssessmentConfig]
|
@@ -1114,12 +1172,53 @@ module Google
|
|
1114
1172
|
|
1115
1173
|
# Update properties of this object
|
1116
1174
|
def update!(**args)
|
1175
|
+
@batch_prediction_resource_usage_assessment_config = args[:batch_prediction_resource_usage_assessment_config] if args.key?(:batch_prediction_resource_usage_assessment_config)
|
1176
|
+
@batch_prediction_validation_assessment_config = args[:batch_prediction_validation_assessment_config] if args.key?(:batch_prediction_validation_assessment_config)
|
1117
1177
|
@gemini_template_config = args[:gemini_template_config] if args.key?(:gemini_template_config)
|
1178
|
+
@request_column_name = args[:request_column_name] if args.key?(:request_column_name)
|
1118
1179
|
@tuning_resource_usage_assessment_config = args[:tuning_resource_usage_assessment_config] if args.key?(:tuning_resource_usage_assessment_config)
|
1119
1180
|
@tuning_validation_assessment_config = args[:tuning_validation_assessment_config] if args.key?(:tuning_validation_assessment_config)
|
1120
1181
|
end
|
1121
1182
|
end
|
1122
1183
|
|
1184
|
+
# Configuration for the batch prediction resource usage assessment.
|
1185
|
+
class GoogleCloudAiplatformV1beta1AssessDataRequestBatchPredictionResourceUsageAssessmentConfig
|
1186
|
+
include Google::Apis::Core::Hashable
|
1187
|
+
|
1188
|
+
# Required. The name of the model used for batch prediction.
|
1189
|
+
# Corresponds to the JSON property `modelName`
|
1190
|
+
# @return [String]
|
1191
|
+
attr_accessor :model_name
|
1192
|
+
|
1193
|
+
def initialize(**args)
|
1194
|
+
update!(**args)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Update properties of this object
|
1198
|
+
def update!(**args)
|
1199
|
+
@model_name = args[:model_name] if args.key?(:model_name)
|
1200
|
+
end
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
# Configuration for the batch prediction validation assessment.
|
1204
|
+
class GoogleCloudAiplatformV1beta1AssessDataRequestBatchPredictionValidationAssessmentConfig
|
1205
|
+
include Google::Apis::Core::Hashable
|
1206
|
+
|
1207
|
+
# Required. The name of the model used for batch prediction.
|
1208
|
+
# Corresponds to the JSON property `modelName`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :model_name
|
1211
|
+
|
1212
|
+
def initialize(**args)
|
1213
|
+
update!(**args)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
# Update properties of this object
|
1217
|
+
def update!(**args)
|
1218
|
+
@model_name = args[:model_name] if args.key?(:model_name)
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1123
1222
|
# Configuration for the tuning resource usage assessment.
|
1124
1223
|
class GoogleCloudAiplatformV1beta1AssessDataRequestTuningResourceUsageAssessmentConfig
|
1125
1224
|
include Google::Apis::Core::Hashable
|
@@ -3349,6 +3448,27 @@ module Google
|
|
3349
3448
|
end
|
3350
3449
|
end
|
3351
3450
|
|
3451
|
+
# Request message for ModelGardenService.CheckPublisherModelEula.
|
3452
|
+
class GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest
|
3453
|
+
include Google::Apis::Core::Hashable
|
3454
|
+
|
3455
|
+
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
3456
|
+
# publisher`/models/`publisher_model``, or `publishers/hf-`hugging-face-author`/
|
3457
|
+
# models/`hugging-face-model-name``
|
3458
|
+
# Corresponds to the JSON property `publisherModel`
|
3459
|
+
# @return [String]
|
3460
|
+
attr_accessor :publisher_model
|
3461
|
+
|
3462
|
+
def initialize(**args)
|
3463
|
+
update!(**args)
|
3464
|
+
end
|
3465
|
+
|
3466
|
+
# Update properties of this object
|
3467
|
+
def update!(**args)
|
3468
|
+
@publisher_model = args[:publisher_model] if args.key?(:publisher_model)
|
3469
|
+
end
|
3470
|
+
end
|
3471
|
+
|
3352
3472
|
# This message will be placed in the metadata field of a google.longrunning.
|
3353
3473
|
# Operation associated with a CheckTrialEarlyStoppingState request.
|
3354
3474
|
class GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata
|
@@ -4004,6 +4124,94 @@ module Google
|
|
4004
4124
|
end
|
4005
4125
|
end
|
4006
4126
|
|
4127
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
4128
|
+
class GoogleCloudAiplatformV1beta1ContentMap
|
4129
|
+
include Google::Apis::Core::Hashable
|
4130
|
+
|
4131
|
+
# Optional. Map of placeholder to contents.
|
4132
|
+
# Corresponds to the JSON property `values`
|
4133
|
+
# @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentMapContents>]
|
4134
|
+
attr_accessor :values
|
4135
|
+
|
4136
|
+
def initialize(**args)
|
4137
|
+
update!(**args)
|
4138
|
+
end
|
4139
|
+
|
4140
|
+
# Update properties of this object
|
4141
|
+
def update!(**args)
|
4142
|
+
@values = args[:values] if args.key?(:values)
|
4143
|
+
end
|
4144
|
+
end
|
4145
|
+
|
4146
|
+
# Repeated Content type.
|
4147
|
+
class GoogleCloudAiplatformV1beta1ContentMapContents
|
4148
|
+
include Google::Apis::Core::Hashable
|
4149
|
+
|
4150
|
+
# Optional. Repeated contents.
|
4151
|
+
# Corresponds to the JSON property `contents`
|
4152
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
4153
|
+
attr_accessor :contents
|
4154
|
+
|
4155
|
+
def initialize(**args)
|
4156
|
+
update!(**args)
|
4157
|
+
end
|
4158
|
+
|
4159
|
+
# Update properties of this object
|
4160
|
+
def update!(**args)
|
4161
|
+
@contents = args[:contents] if args.key?(:contents)
|
4162
|
+
end
|
4163
|
+
end
|
4164
|
+
|
4165
|
+
# A single example of a conversation with the model.
|
4166
|
+
class GoogleCloudAiplatformV1beta1ContentsExample
|
4167
|
+
include Google::Apis::Core::Hashable
|
4168
|
+
|
4169
|
+
# Required. The content of the conversation with the model that resulted in the
|
4170
|
+
# expected output.
|
4171
|
+
# Corresponds to the JSON property `contents`
|
4172
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
4173
|
+
attr_accessor :contents
|
4174
|
+
|
4175
|
+
# Required. The expected output for the given `contents`. To represent multi-
|
4176
|
+
# step reasoning, this is a repeated field that contains the iterative steps of
|
4177
|
+
# the expected output.
|
4178
|
+
# Corresponds to the JSON property `expectedContents`
|
4179
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentsExampleExpectedContent>]
|
4180
|
+
attr_accessor :expected_contents
|
4181
|
+
|
4182
|
+
def initialize(**args)
|
4183
|
+
update!(**args)
|
4184
|
+
end
|
4185
|
+
|
4186
|
+
# Update properties of this object
|
4187
|
+
def update!(**args)
|
4188
|
+
@contents = args[:contents] if args.key?(:contents)
|
4189
|
+
@expected_contents = args[:expected_contents] if args.key?(:expected_contents)
|
4190
|
+
end
|
4191
|
+
end
|
4192
|
+
|
4193
|
+
# A single step of the expected output.
|
4194
|
+
class GoogleCloudAiplatformV1beta1ContentsExampleExpectedContent
|
4195
|
+
include Google::Apis::Core::Hashable
|
4196
|
+
|
4197
|
+
# The base structured datatype containing multi-part content of a message. A `
|
4198
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
4199
|
+
# a `parts` field containing multi-part data that contains the content of the
|
4200
|
+
# message turn.
|
4201
|
+
# Corresponds to the JSON property `content`
|
4202
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
4203
|
+
attr_accessor :content
|
4204
|
+
|
4205
|
+
def initialize(**args)
|
4206
|
+
update!(**args)
|
4207
|
+
end
|
4208
|
+
|
4209
|
+
# Update properties of this object
|
4210
|
+
def update!(**args)
|
4211
|
+
@content = args[:content] if args.key?(:content)
|
4212
|
+
end
|
4213
|
+
end
|
4214
|
+
|
4007
4215
|
# Instance of a general context.
|
4008
4216
|
class GoogleCloudAiplatformV1beta1Context
|
4009
4217
|
include Google::Apis::Core::Hashable
|
@@ -5366,6 +5574,45 @@ module Google
|
|
5366
5574
|
end
|
5367
5575
|
end
|
5368
5576
|
|
5577
|
+
# Spec for custom output.
|
5578
|
+
class GoogleCloudAiplatformV1beta1CustomOutput
|
5579
|
+
include Google::Apis::Core::Hashable
|
5580
|
+
|
5581
|
+
# Raw output.
|
5582
|
+
# Corresponds to the JSON property `rawOutputs`
|
5583
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawOutput]
|
5584
|
+
attr_accessor :raw_outputs
|
5585
|
+
|
5586
|
+
def initialize(**args)
|
5587
|
+
update!(**args)
|
5588
|
+
end
|
5589
|
+
|
5590
|
+
# Update properties of this object
|
5591
|
+
def update!(**args)
|
5592
|
+
@raw_outputs = args[:raw_outputs] if args.key?(:raw_outputs)
|
5593
|
+
end
|
5594
|
+
end
|
5595
|
+
|
5596
|
+
# Spec for custom output format configuration.
|
5597
|
+
class GoogleCloudAiplatformV1beta1CustomOutputFormatConfig
|
5598
|
+
include Google::Apis::Core::Hashable
|
5599
|
+
|
5600
|
+
# Optional. Whether to return raw output.
|
5601
|
+
# Corresponds to the JSON property `returnRawOutput`
|
5602
|
+
# @return [Boolean]
|
5603
|
+
attr_accessor :return_raw_output
|
5604
|
+
alias_method :return_raw_output?, :return_raw_output
|
5605
|
+
|
5606
|
+
def initialize(**args)
|
5607
|
+
update!(**args)
|
5608
|
+
end
|
5609
|
+
|
5610
|
+
# Update properties of this object
|
5611
|
+
def update!(**args)
|
5612
|
+
@return_raw_output = args[:return_raw_output] if args.key?(:return_raw_output)
|
5613
|
+
end
|
5614
|
+
end
|
5615
|
+
|
5369
5616
|
# A piece of data in a Dataset. Could be an image, a video, a document or plain
|
5370
5617
|
# text.
|
5371
5618
|
class GoogleCloudAiplatformV1beta1DataItem
|
@@ -7557,8 +7804,10 @@ module Google
|
|
7557
7804
|
attr_accessor :create_time
|
7558
7805
|
|
7559
7806
|
# Output only. DNS of the dedicated endpoint. Will only be populated if
|
7560
|
-
# dedicated_endpoint_enabled is true.
|
7561
|
-
#
|
7807
|
+
# dedicated_endpoint_enabled is true. Depending on the features enabled, uid
|
7808
|
+
# might be a random number or a string. For example, if fast_tryout is enabled,
|
7809
|
+
# uid will be fasttryout. Format: `https://`endpoint_id`.`region`-`uid`.
|
7810
|
+
# prediction.vertexai.goog`.
|
7562
7811
|
# Corresponds to the JSON property `dedicatedEndpointDns`
|
7563
7812
|
# @return [String]
|
7564
7813
|
attr_accessor :dedicated_endpoint_dns
|
@@ -8077,6 +8326,11 @@ module Google
|
|
8077
8326
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInput]
|
8078
8327
|
attr_accessor :rouge_input
|
8079
8328
|
|
8329
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
8330
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingInput`
|
8331
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInput]
|
8332
|
+
attr_accessor :rubric_based_instruction_following_input
|
8333
|
+
|
8080
8334
|
# Input for safety metric.
|
8081
8335
|
# Corresponds to the JSON property `safetyInput`
|
8082
8336
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyInput]
|
@@ -8171,6 +8425,7 @@ module Google
|
|
8171
8425
|
@question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
|
8172
8426
|
@question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
|
8173
8427
|
@rouge_input = args[:rouge_input] if args.key?(:rouge_input)
|
8428
|
+
@rubric_based_instruction_following_input = args[:rubric_based_instruction_following_input] if args.key?(:rubric_based_instruction_following_input)
|
8174
8429
|
@safety_input = args[:safety_input] if args.key?(:safety_input)
|
8175
8430
|
@summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
|
8176
8431
|
@summarization_quality_input = args[:summarization_quality_input] if args.key?(:summarization_quality_input)
|
@@ -8279,6 +8534,11 @@ module Google
|
|
8279
8534
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeResults]
|
8280
8535
|
attr_accessor :rouge_results
|
8281
8536
|
|
8537
|
+
# Result for RubricBasedInstructionFollowing metric.
|
8538
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingResult`
|
8539
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingResult]
|
8540
|
+
attr_accessor :rubric_based_instruction_following_result
|
8541
|
+
|
8282
8542
|
# Spec for safety result.
|
8283
8543
|
# Corresponds to the JSON property `safetyResult`
|
8284
8544
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyResult]
|
@@ -8372,6 +8632,7 @@ module Google
|
|
8372
8632
|
@question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
|
8373
8633
|
@question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
|
8374
8634
|
@rouge_results = args[:rouge_results] if args.key?(:rouge_results)
|
8635
|
+
@rubric_based_instruction_following_result = args[:rubric_based_instruction_following_result] if args.key?(:rubric_based_instruction_following_result)
|
8375
8636
|
@safety_result = args[:safety_result] if args.key?(:safety_result)
|
8376
8637
|
@summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
|
8377
8638
|
@summarization_quality_result = args[:summarization_quality_result] if args.key?(:summarization_quality_result)
|
@@ -8568,6 +8829,123 @@ module Google
|
|
8568
8829
|
end
|
8569
8830
|
end
|
8570
8831
|
|
8832
|
+
# Actions are parts of events that are executed by the agent.
|
8833
|
+
class GoogleCloudAiplatformV1beta1EventActions
|
8834
|
+
include Google::Apis::Core::Hashable
|
8835
|
+
|
8836
|
+
# Optional. Indicates that the event is updating an artifact. key is the
|
8837
|
+
# filename, value is the version.
|
8838
|
+
# Corresponds to the JSON property `artifactDelta`
|
8839
|
+
# @return [Hash<String,Fixnum>]
|
8840
|
+
attr_accessor :artifact_delta
|
8841
|
+
|
8842
|
+
# Optional. The agent is escalating to a higher level agent.
|
8843
|
+
# Corresponds to the JSON property `escalate`
|
8844
|
+
# @return [Boolean]
|
8845
|
+
attr_accessor :escalate
|
8846
|
+
alias_method :escalate?, :escalate
|
8847
|
+
|
8848
|
+
# Optional. Will only be set by a tool response indicating tool request euc.
|
8849
|
+
# Struct key is the function call id since one function call response (from
|
8850
|
+
# model) could correspond to multiple function calls. Struct value is the
|
8851
|
+
# required auth config, which can be another struct.
|
8852
|
+
# Corresponds to the JSON property `requestedAuthConfigs`
|
8853
|
+
# @return [Hash<String,Object>]
|
8854
|
+
attr_accessor :requested_auth_configs
|
8855
|
+
|
8856
|
+
# Optional. If true, it won't call model to summarize function response. Only
|
8857
|
+
# used for function_response event.
|
8858
|
+
# Corresponds to the JSON property `skipSummarization`
|
8859
|
+
# @return [Boolean]
|
8860
|
+
attr_accessor :skip_summarization
|
8861
|
+
alias_method :skip_summarization?, :skip_summarization
|
8862
|
+
|
8863
|
+
# Optional. Indicates that the event is updating the state with the given delta.
|
8864
|
+
# Corresponds to the JSON property `stateDelta`
|
8865
|
+
# @return [Hash<String,Object>]
|
8866
|
+
attr_accessor :state_delta
|
8867
|
+
|
8868
|
+
# Optional. If set, the event transfers to the specified agent.
|
8869
|
+
# Corresponds to the JSON property `transferToAgent`
|
8870
|
+
# @return [Boolean]
|
8871
|
+
attr_accessor :transfer_to_agent
|
8872
|
+
alias_method :transfer_to_agent?, :transfer_to_agent
|
8873
|
+
|
8874
|
+
def initialize(**args)
|
8875
|
+
update!(**args)
|
8876
|
+
end
|
8877
|
+
|
8878
|
+
# Update properties of this object
|
8879
|
+
def update!(**args)
|
8880
|
+
@artifact_delta = args[:artifact_delta] if args.key?(:artifact_delta)
|
8881
|
+
@escalate = args[:escalate] if args.key?(:escalate)
|
8882
|
+
@requested_auth_configs = args[:requested_auth_configs] if args.key?(:requested_auth_configs)
|
8883
|
+
@skip_summarization = args[:skip_summarization] if args.key?(:skip_summarization)
|
8884
|
+
@state_delta = args[:state_delta] if args.key?(:state_delta)
|
8885
|
+
@transfer_to_agent = args[:transfer_to_agent] if args.key?(:transfer_to_agent)
|
8886
|
+
end
|
8887
|
+
end
|
8888
|
+
|
8889
|
+
# Metadata relating to a LLM response event.
|
8890
|
+
class GoogleCloudAiplatformV1beta1EventMetadata
|
8891
|
+
include Google::Apis::Core::Hashable
|
8892
|
+
|
8893
|
+
# Optional. The branch of the event. The format is like agent_1.agent_2.agent_3,
|
8894
|
+
# where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3.
|
8895
|
+
# Branch is used when multiple child agents shouldn't see their siblings'
|
8896
|
+
# conversation history.
|
8897
|
+
# Corresponds to the JSON property `branch`
|
8898
|
+
# @return [String]
|
8899
|
+
attr_accessor :branch
|
8900
|
+
|
8901
|
+
# Metadata returned to client when grounding is enabled.
|
8902
|
+
# Corresponds to the JSON property `groundingMetadata`
|
8903
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingMetadata]
|
8904
|
+
attr_accessor :grounding_metadata
|
8905
|
+
|
8906
|
+
# Optional. Flag indicating that LLM was interrupted when generating the content.
|
8907
|
+
# Usually it's due to user interruption during a bidi streaming.
|
8908
|
+
# Corresponds to the JSON property `interrupted`
|
8909
|
+
# @return [Boolean]
|
8910
|
+
attr_accessor :interrupted
|
8911
|
+
alias_method :interrupted?, :interrupted
|
8912
|
+
|
8913
|
+
# Optional. Set of ids of the long running function calls. Agent client will
|
8914
|
+
# know from this field about which function call is long running. Only valid for
|
8915
|
+
# function call event.
|
8916
|
+
# Corresponds to the JSON property `longRunningToolIds`
|
8917
|
+
# @return [Array<String>]
|
8918
|
+
attr_accessor :long_running_tool_ids
|
8919
|
+
|
8920
|
+
# Optional. Indicates whether the text content is part of a unfinished text
|
8921
|
+
# stream. Only used for streaming mode and when the content is plain text.
|
8922
|
+
# Corresponds to the JSON property `partial`
|
8923
|
+
# @return [Boolean]
|
8924
|
+
attr_accessor :partial
|
8925
|
+
alias_method :partial?, :partial
|
8926
|
+
|
8927
|
+
# Optional. Indicates whether the response from the model is complete. Only used
|
8928
|
+
# for streaming mode.
|
8929
|
+
# Corresponds to the JSON property `turnComplete`
|
8930
|
+
# @return [Boolean]
|
8931
|
+
attr_accessor :turn_complete
|
8932
|
+
alias_method :turn_complete?, :turn_complete
|
8933
|
+
|
8934
|
+
def initialize(**args)
|
8935
|
+
update!(**args)
|
8936
|
+
end
|
8937
|
+
|
8938
|
+
# Update properties of this object
|
8939
|
+
def update!(**args)
|
8940
|
+
@branch = args[:branch] if args.key?(:branch)
|
8941
|
+
@grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
|
8942
|
+
@interrupted = args[:interrupted] if args.key?(:interrupted)
|
8943
|
+
@long_running_tool_ids = args[:long_running_tool_ids] if args.key?(:long_running_tool_ids)
|
8944
|
+
@partial = args[:partial] if args.key?(:partial)
|
8945
|
+
@turn_complete = args[:turn_complete] if args.key?(:turn_complete)
|
8946
|
+
end
|
8947
|
+
end
|
8948
|
+
|
8571
8949
|
# Input for exact match metric.
|
8572
8950
|
class GoogleCloudAiplatformV1beta1ExactMatchInput
|
8573
8951
|
include Google::Apis::Core::Hashable
|
@@ -8671,6 +9049,116 @@ module Google
|
|
8671
9049
|
end
|
8672
9050
|
end
|
8673
9051
|
|
9052
|
+
# A single example to upload or read from the Example Store.
|
9053
|
+
class GoogleCloudAiplatformV1beta1Example
|
9054
|
+
include Google::Apis::Core::Hashable
|
9055
|
+
|
9056
|
+
# Output only. Timestamp when this Example was created.
|
9057
|
+
# Corresponds to the JSON property `createTime`
|
9058
|
+
# @return [String]
|
9059
|
+
attr_accessor :create_time
|
9060
|
+
|
9061
|
+
# Optional. The display name for Example.
|
9062
|
+
# Corresponds to the JSON property `displayName`
|
9063
|
+
# @return [String]
|
9064
|
+
attr_accessor :display_name
|
9065
|
+
|
9066
|
+
# Optional. Immutable. Unique identifier of an example. If not specified when
|
9067
|
+
# upserting new examples, the example_id will be generated.
|
9068
|
+
# Corresponds to the JSON property `exampleId`
|
9069
|
+
# @return [String]
|
9070
|
+
attr_accessor :example_id
|
9071
|
+
|
9072
|
+
# A ContentsExample to be used with GenerateContent alongside information
|
9073
|
+
# required for storage and retrieval with Example Store.
|
9074
|
+
# Corresponds to the JSON property `storedContentsExample`
|
9075
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExample]
|
9076
|
+
attr_accessor :stored_contents_example
|
9077
|
+
|
9078
|
+
def initialize(**args)
|
9079
|
+
update!(**args)
|
9080
|
+
end
|
9081
|
+
|
9082
|
+
# Update properties of this object
|
9083
|
+
def update!(**args)
|
9084
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9085
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
9086
|
+
@example_id = args[:example_id] if args.key?(:example_id)
|
9087
|
+
@stored_contents_example = args[:stored_contents_example] if args.key?(:stored_contents_example)
|
9088
|
+
end
|
9089
|
+
end
|
9090
|
+
|
9091
|
+
# Represents an executable service to manage and retrieve examples.
|
9092
|
+
class GoogleCloudAiplatformV1beta1ExampleStore
|
9093
|
+
include Google::Apis::Core::Hashable
|
9094
|
+
|
9095
|
+
# Output only. Timestamp when this ExampleStore was created.
|
9096
|
+
# Corresponds to the JSON property `createTime`
|
9097
|
+
# @return [String]
|
9098
|
+
attr_accessor :create_time
|
9099
|
+
|
9100
|
+
# Optional. Description of the ExampleStore.
|
9101
|
+
# Corresponds to the JSON property `description`
|
9102
|
+
# @return [String]
|
9103
|
+
attr_accessor :description
|
9104
|
+
|
9105
|
+
# Required. Display name of the ExampleStore.
|
9106
|
+
# Corresponds to the JSON property `displayName`
|
9107
|
+
# @return [String]
|
9108
|
+
attr_accessor :display_name
|
9109
|
+
|
9110
|
+
# Configuration for the Example Store.
|
9111
|
+
# Corresponds to the JSON property `exampleStoreConfig`
|
9112
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStoreConfig]
|
9113
|
+
attr_accessor :example_store_config
|
9114
|
+
|
9115
|
+
# Identifier. The resource name of the ExampleStore. This is a unique identifier.
|
9116
|
+
# Format: projects/`project`/locations/`location`/exampleStores/`example_store`
|
9117
|
+
# Corresponds to the JSON property `name`
|
9118
|
+
# @return [String]
|
9119
|
+
attr_accessor :name
|
9120
|
+
|
9121
|
+
# Output only. Timestamp when this ExampleStore was most recently updated.
|
9122
|
+
# Corresponds to the JSON property `updateTime`
|
9123
|
+
# @return [String]
|
9124
|
+
attr_accessor :update_time
|
9125
|
+
|
9126
|
+
def initialize(**args)
|
9127
|
+
update!(**args)
|
9128
|
+
end
|
9129
|
+
|
9130
|
+
# Update properties of this object
|
9131
|
+
def update!(**args)
|
9132
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9133
|
+
@description = args[:description] if args.key?(:description)
|
9134
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
9135
|
+
@example_store_config = args[:example_store_config] if args.key?(:example_store_config)
|
9136
|
+
@name = args[:name] if args.key?(:name)
|
9137
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
9138
|
+
end
|
9139
|
+
end
|
9140
|
+
|
9141
|
+
# Configuration for the Example Store.
|
9142
|
+
class GoogleCloudAiplatformV1beta1ExampleStoreConfig
|
9143
|
+
include Google::Apis::Core::Hashable
|
9144
|
+
|
9145
|
+
# Required. The embedding model to be used for vector embedding. Immutable.
|
9146
|
+
# Supported models: * "textembedding-gecko@003" * "text-embedding-004" * "text-
|
9147
|
+
# embedding-005" * "text-multilingual-embedding-002"
|
9148
|
+
# Corresponds to the JSON property `vertexEmbeddingModel`
|
9149
|
+
# @return [String]
|
9150
|
+
attr_accessor :vertex_embedding_model
|
9151
|
+
|
9152
|
+
def initialize(**args)
|
9153
|
+
update!(**args)
|
9154
|
+
end
|
9155
|
+
|
9156
|
+
# Update properties of this object
|
9157
|
+
def update!(**args)
|
9158
|
+
@vertex_embedding_model = args[:vertex_embedding_model] if args.key?(:vertex_embedding_model)
|
9159
|
+
end
|
9160
|
+
end
|
9161
|
+
|
8674
9162
|
# Example-based explainability that returns the nearest neighbors from the
|
8675
9163
|
# provided dataset.
|
8676
9164
|
class GoogleCloudAiplatformV1beta1Examples
|
@@ -8718,6 +9206,32 @@ module Google
|
|
8718
9206
|
end
|
8719
9207
|
end
|
8720
9208
|
|
9209
|
+
# Filters for examples' array metadata fields. An array field is example
|
9210
|
+
# metadata where multiple values are attributed to a single example.
|
9211
|
+
class GoogleCloudAiplatformV1beta1ExamplesArrayFilter
|
9212
|
+
include Google::Apis::Core::Hashable
|
9213
|
+
|
9214
|
+
# Required. The operator logic to use for filtering.
|
9215
|
+
# Corresponds to the JSON property `arrayOperator`
|
9216
|
+
# @return [String]
|
9217
|
+
attr_accessor :array_operator
|
9218
|
+
|
9219
|
+
# Required. The values by which to filter examples.
|
9220
|
+
# Corresponds to the JSON property `values`
|
9221
|
+
# @return [Array<String>]
|
9222
|
+
attr_accessor :values
|
9223
|
+
|
9224
|
+
def initialize(**args)
|
9225
|
+
update!(**args)
|
9226
|
+
end
|
9227
|
+
|
9228
|
+
# Update properties of this object
|
9229
|
+
def update!(**args)
|
9230
|
+
@array_operator = args[:array_operator] if args.key?(:array_operator)
|
9231
|
+
@values = args[:values] if args.key?(:values)
|
9232
|
+
end
|
9233
|
+
end
|
9234
|
+
|
8721
9235
|
# The Cloud Storage input instances.
|
8722
9236
|
class GoogleCloudAiplatformV1beta1ExamplesExampleGcsSource
|
8723
9237
|
include Google::Apis::Core::Hashable
|
@@ -10060,6 +10574,25 @@ module Google
|
|
10060
10574
|
end
|
10061
10575
|
end
|
10062
10576
|
|
10577
|
+
# Request message for ModelGardenService.ExportPublisherModel.
|
10578
|
+
class GoogleCloudAiplatformV1beta1ExportPublisherModelRequest
|
10579
|
+
include Google::Apis::Core::Hashable
|
10580
|
+
|
10581
|
+
# The Google Cloud Storage location where the output is to be written to.
|
10582
|
+
# Corresponds to the JSON property `destination`
|
10583
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsDestination]
|
10584
|
+
attr_accessor :destination
|
10585
|
+
|
10586
|
+
def initialize(**args)
|
10587
|
+
update!(**args)
|
10588
|
+
end
|
10589
|
+
|
10590
|
+
# Update properties of this object
|
10591
|
+
def update!(**args)
|
10592
|
+
@destination = args[:destination] if args.key?(:destination)
|
10593
|
+
end
|
10594
|
+
end
|
10595
|
+
|
10063
10596
|
# Response message for ModelGardenService.ExportPublisherModel.
|
10064
10597
|
class GoogleCloudAiplatformV1beta1ExportPublisherModelResponse
|
10065
10598
|
include Google::Apis::Core::Hashable
|
@@ -11811,6 +12344,159 @@ module Google
|
|
11811
12344
|
end
|
11812
12345
|
end
|
11813
12346
|
|
12347
|
+
# Request message for FeatureOnlineStoreService.FeatureViewDirectWrite.
|
12348
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest
|
12349
|
+
include Google::Apis::Core::Hashable
|
12350
|
+
|
12351
|
+
# Required. The data keys and associated feature values.
|
12352
|
+
# Corresponds to the JSON property `dataKeyAndFeatureValues`
|
12353
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValues>]
|
12354
|
+
attr_accessor :data_key_and_feature_values
|
12355
|
+
|
12356
|
+
def initialize(**args)
|
12357
|
+
update!(**args)
|
12358
|
+
end
|
12359
|
+
|
12360
|
+
# Update properties of this object
|
12361
|
+
def update!(**args)
|
12362
|
+
@data_key_and_feature_values = args[:data_key_and_feature_values] if args.key?(:data_key_and_feature_values)
|
12363
|
+
end
|
12364
|
+
end
|
12365
|
+
|
12366
|
+
# A data key and associated feature values to write to the feature view.
|
12367
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValues
|
12368
|
+
include Google::Apis::Core::Hashable
|
12369
|
+
|
12370
|
+
# Lookup key for a feature view.
|
12371
|
+
# Corresponds to the JSON property `dataKey`
|
12372
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDataKey]
|
12373
|
+
attr_accessor :data_key
|
12374
|
+
|
12375
|
+
# List of features to write.
|
12376
|
+
# Corresponds to the JSON property `features`
|
12377
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature>]
|
12378
|
+
attr_accessor :features
|
12379
|
+
|
12380
|
+
def initialize(**args)
|
12381
|
+
update!(**args)
|
12382
|
+
end
|
12383
|
+
|
12384
|
+
# Update properties of this object
|
12385
|
+
def update!(**args)
|
12386
|
+
@data_key = args[:data_key] if args.key?(:data_key)
|
12387
|
+
@features = args[:features] if args.key?(:features)
|
12388
|
+
end
|
12389
|
+
end
|
12390
|
+
|
12391
|
+
# Feature name & value pair.
|
12392
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature
|
12393
|
+
include Google::Apis::Core::Hashable
|
12394
|
+
|
12395
|
+
# Feature short name.
|
12396
|
+
# Corresponds to the JSON property `name`
|
12397
|
+
# @return [String]
|
12398
|
+
attr_accessor :name
|
12399
|
+
|
12400
|
+
# Feature value and timestamp.
|
12401
|
+
# Corresponds to the JSON property `valueAndTimestamp`
|
12402
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeatureFeatureValueAndTimestamp]
|
12403
|
+
attr_accessor :value_and_timestamp
|
12404
|
+
|
12405
|
+
def initialize(**args)
|
12406
|
+
update!(**args)
|
12407
|
+
end
|
12408
|
+
|
12409
|
+
# Update properties of this object
|
12410
|
+
def update!(**args)
|
12411
|
+
@name = args[:name] if args.key?(:name)
|
12412
|
+
@value_and_timestamp = args[:value_and_timestamp] if args.key?(:value_and_timestamp)
|
12413
|
+
end
|
12414
|
+
end
|
12415
|
+
|
12416
|
+
# Feature value and timestamp.
|
12417
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeatureFeatureValueAndTimestamp
|
12418
|
+
include Google::Apis::Core::Hashable
|
12419
|
+
|
12420
|
+
# The feature timestamp to store with this value. If not set, then the Feature
|
12421
|
+
# Store server will generate a timestamp when it receives the write request.
|
12422
|
+
# Corresponds to the JSON property `timestamp`
|
12423
|
+
# @return [String]
|
12424
|
+
attr_accessor :timestamp
|
12425
|
+
|
12426
|
+
# Value for a feature.
|
12427
|
+
# Corresponds to the JSON property `value`
|
12428
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureValue]
|
12429
|
+
attr_accessor :value
|
12430
|
+
|
12431
|
+
def initialize(**args)
|
12432
|
+
update!(**args)
|
12433
|
+
end
|
12434
|
+
|
12435
|
+
# Update properties of this object
|
12436
|
+
def update!(**args)
|
12437
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
12438
|
+
@value = args[:value] if args.key?(:value)
|
12439
|
+
end
|
12440
|
+
end
|
12441
|
+
|
12442
|
+
# Response message for FeatureOnlineStoreService.FeatureViewDirectWrite.
|
12443
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse
|
12444
|
+
include Google::Apis::Core::Hashable
|
12445
|
+
|
12446
|
+
# The `Status` type defines a logical error model that is suitable for different
|
12447
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
12448
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
12449
|
+
# data: error code, error message, and error details. You can find out more
|
12450
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
12451
|
+
# //cloud.google.com/apis/design/errors).
|
12452
|
+
# Corresponds to the JSON property `status`
|
12453
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
12454
|
+
attr_accessor :status
|
12455
|
+
|
12456
|
+
# Details about write for each key. If status is not OK, WriteResponse.data_key
|
12457
|
+
# will have the key with error, but WriteResponse.online_store_write_time will
|
12458
|
+
# not be present.
|
12459
|
+
# Corresponds to the JSON property `writeResponses`
|
12460
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponseWriteResponse>]
|
12461
|
+
attr_accessor :write_responses
|
12462
|
+
|
12463
|
+
def initialize(**args)
|
12464
|
+
update!(**args)
|
12465
|
+
end
|
12466
|
+
|
12467
|
+
# Update properties of this object
|
12468
|
+
def update!(**args)
|
12469
|
+
@status = args[:status] if args.key?(:status)
|
12470
|
+
@write_responses = args[:write_responses] if args.key?(:write_responses)
|
12471
|
+
end
|
12472
|
+
end
|
12473
|
+
|
12474
|
+
# Details about the write for each key.
|
12475
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponseWriteResponse
|
12476
|
+
include Google::Apis::Core::Hashable
|
12477
|
+
|
12478
|
+
# Lookup key for a feature view.
|
12479
|
+
# Corresponds to the JSON property `dataKey`
|
12480
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDataKey]
|
12481
|
+
attr_accessor :data_key
|
12482
|
+
|
12483
|
+
# When the feature values were written to the online store. If
|
12484
|
+
# FeatureViewDirectWriteResponse.status is not OK, this field is not populated.
|
12485
|
+
# Corresponds to the JSON property `onlineStoreWriteTime`
|
12486
|
+
# @return [String]
|
12487
|
+
attr_accessor :online_store_write_time
|
12488
|
+
|
12489
|
+
def initialize(**args)
|
12490
|
+
update!(**args)
|
12491
|
+
end
|
12492
|
+
|
12493
|
+
# Update properties of this object
|
12494
|
+
def update!(**args)
|
12495
|
+
@data_key = args[:data_key] if args.key?(:data_key)
|
12496
|
+
@online_store_write_time = args[:online_store_write_time] if args.key?(:online_store_write_time)
|
12497
|
+
end
|
12498
|
+
end
|
12499
|
+
|
11814
12500
|
# A Feature Registry source for features that need to be synced to Online Store.
|
11815
12501
|
class GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource
|
11816
12502
|
include Google::Apis::Core::Hashable
|
@@ -12556,6 +13242,74 @@ module Google
|
|
12556
13242
|
end
|
12557
13243
|
end
|
12558
13244
|
|
13245
|
+
# Request message for ExampleStoreService.FetchExamples.
|
13246
|
+
class GoogleCloudAiplatformV1beta1FetchExamplesRequest
|
13247
|
+
include Google::Apis::Core::Hashable
|
13248
|
+
|
13249
|
+
# Optional. Example IDs to fetch. If both metadata filters and Example IDs are
|
13250
|
+
# specified, then both ID and metadata filtering will be applied.
|
13251
|
+
# Corresponds to the JSON property `exampleIds`
|
13252
|
+
# @return [Array<String>]
|
13253
|
+
attr_accessor :example_ids
|
13254
|
+
|
13255
|
+
# Optional. The maximum number of examples to return. The service may return
|
13256
|
+
# fewer than this value. If unspecified, at most 100 examples will be returned.
|
13257
|
+
# Corresponds to the JSON property `pageSize`
|
13258
|
+
# @return [Fixnum]
|
13259
|
+
attr_accessor :page_size
|
13260
|
+
|
13261
|
+
# Optional. The next_page_token value returned from a previous list
|
13262
|
+
# ExampleStoreService.FetchExamplesResponse call.
|
13263
|
+
# Corresponds to the JSON property `pageToken`
|
13264
|
+
# @return [String]
|
13265
|
+
attr_accessor :page_token
|
13266
|
+
|
13267
|
+
# The metadata filters that will be used to remove or fetch
|
13268
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
13269
|
+
# field will be applied.
|
13270
|
+
# Corresponds to the JSON property `storedContentsExampleFilter`
|
13271
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleFilter]
|
13272
|
+
attr_accessor :stored_contents_example_filter
|
13273
|
+
|
13274
|
+
def initialize(**args)
|
13275
|
+
update!(**args)
|
13276
|
+
end
|
13277
|
+
|
13278
|
+
# Update properties of this object
|
13279
|
+
def update!(**args)
|
13280
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
13281
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
13282
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
13283
|
+
@stored_contents_example_filter = args[:stored_contents_example_filter] if args.key?(:stored_contents_example_filter)
|
13284
|
+
end
|
13285
|
+
end
|
13286
|
+
|
13287
|
+
# Response message for ExampleStoreService.FetchExamples.
|
13288
|
+
class GoogleCloudAiplatformV1beta1FetchExamplesResponse
|
13289
|
+
include Google::Apis::Core::Hashable
|
13290
|
+
|
13291
|
+
# The examples in the Example Store that satisfy the metadata filters.
|
13292
|
+
# Corresponds to the JSON property `examples`
|
13293
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example>]
|
13294
|
+
attr_accessor :examples
|
13295
|
+
|
13296
|
+
# A token, which can be sent as ListExamplesRequest.page_token to retrieve the
|
13297
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
13298
|
+
# Corresponds to the JSON property `nextPageToken`
|
13299
|
+
# @return [String]
|
13300
|
+
attr_accessor :next_page_token
|
13301
|
+
|
13302
|
+
def initialize(**args)
|
13303
|
+
update!(**args)
|
13304
|
+
end
|
13305
|
+
|
13306
|
+
# Update properties of this object
|
13307
|
+
def update!(**args)
|
13308
|
+
@examples = args[:examples] if args.key?(:examples)
|
13309
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
13310
|
+
end
|
13311
|
+
end
|
13312
|
+
|
12559
13313
|
# Request message for FeatureOnlineStoreService.FetchFeatureValues. All the
|
12560
13314
|
# features under the requested feature view will be returned.
|
12561
13315
|
class GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest
|
@@ -13849,6 +14603,12 @@ module Google
|
|
13849
14603
|
# @return [Fixnum]
|
13850
14604
|
attr_accessor :total_token_count
|
13851
14605
|
|
14606
|
+
# Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
|
14607
|
+
# or Provisioned Throughput quota.
|
14608
|
+
# Corresponds to the JSON property `trafficType`
|
14609
|
+
# @return [String]
|
14610
|
+
attr_accessor :traffic_type
|
14611
|
+
|
13852
14612
|
def initialize(**args)
|
13853
14613
|
update!(**args)
|
13854
14614
|
end
|
@@ -13865,6 +14625,7 @@ module Google
|
|
13865
14625
|
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
|
13866
14626
|
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
|
13867
14627
|
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
14628
|
+
@traffic_type = args[:traffic_type] if args.key?(:traffic_type)
|
13868
14629
|
end
|
13869
14630
|
end
|
13870
14631
|
|
@@ -15050,6 +15811,15 @@ module Google
|
|
15050
15811
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
|
15051
15812
|
attr_accessor :gcs_source
|
15052
15813
|
|
15814
|
+
# Optional. The max number of queries per minute that the indexing pipeline job
|
15815
|
+
# is allowed to make to the embedding model specified in the project. Please
|
15816
|
+
# follow the quota usage guideline of the embedding model you use to set the
|
15817
|
+
# value properly.If this value is not specified, max_embedding_requests_per_min
|
15818
|
+
# will be used by indexing pipeline job as the global limit.
|
15819
|
+
# Corresponds to the JSON property `globalMaxEmbeddingRequestsPerMin`
|
15820
|
+
# @return [Fixnum]
|
15821
|
+
attr_accessor :global_max_embedding_requests_per_min
|
15822
|
+
|
15053
15823
|
# The Google Drive location for the input content.
|
15054
15824
|
# Corresponds to the JSON property `googleDriveSource`
|
15055
15825
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
|
@@ -15121,6 +15891,7 @@ module Google
|
|
15121
15891
|
# Update properties of this object
|
15122
15892
|
def update!(**args)
|
15123
15893
|
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
15894
|
+
@global_max_embedding_requests_per_min = args[:global_max_embedding_requests_per_min] if args.key?(:global_max_embedding_requests_per_min)
|
15124
15895
|
@google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
|
15125
15896
|
@import_result_bigquery_sink = args[:import_result_bigquery_sink] if args.key?(:import_result_bigquery_sink)
|
15126
15897
|
@import_result_gcs_sink = args[:import_result_gcs_sink] if args.key?(:import_result_gcs_sink)
|
@@ -16345,6 +17116,58 @@ module Google
|
|
16345
17116
|
end
|
16346
17117
|
end
|
16347
17118
|
|
17119
|
+
# Response message for SessionService.ListEvents.
|
17120
|
+
class GoogleCloudAiplatformV1beta1ListEventsResponse
|
17121
|
+
include Google::Apis::Core::Hashable
|
17122
|
+
|
17123
|
+
# A token, which can be sent as ListEventsRequest.page_token to retrieve the
|
17124
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
17125
|
+
# Corresponds to the JSON property `nextPageToken`
|
17126
|
+
# @return [String]
|
17127
|
+
attr_accessor :next_page_token
|
17128
|
+
|
17129
|
+
# A list of events matching the request.
|
17130
|
+
# Corresponds to the JSON property `sessionEvents`
|
17131
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent>]
|
17132
|
+
attr_accessor :session_events
|
17133
|
+
|
17134
|
+
def initialize(**args)
|
17135
|
+
update!(**args)
|
17136
|
+
end
|
17137
|
+
|
17138
|
+
# Update properties of this object
|
17139
|
+
def update!(**args)
|
17140
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
17141
|
+
@session_events = args[:session_events] if args.key?(:session_events)
|
17142
|
+
end
|
17143
|
+
end
|
17144
|
+
|
17145
|
+
# Response message for ExampleStoreService.ListExampleStores.
|
17146
|
+
class GoogleCloudAiplatformV1beta1ListExampleStoresResponse
|
17147
|
+
include Google::Apis::Core::Hashable
|
17148
|
+
|
17149
|
+
# List of ExampleStore in the requested page.
|
17150
|
+
# Corresponds to the JSON property `exampleStores`
|
17151
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore>]
|
17152
|
+
attr_accessor :example_stores
|
17153
|
+
|
17154
|
+
# A token to retrieve the next page of results. Pass to ListExampleStoresRequest.
|
17155
|
+
# page_token to obtain that page.
|
17156
|
+
# Corresponds to the JSON property `nextPageToken`
|
17157
|
+
# @return [String]
|
17158
|
+
attr_accessor :next_page_token
|
17159
|
+
|
17160
|
+
def initialize(**args)
|
17161
|
+
update!(**args)
|
17162
|
+
end
|
17163
|
+
|
17164
|
+
# Update properties of this object
|
17165
|
+
def update!(**args)
|
17166
|
+
@example_stores = args[:example_stores] if args.key?(:example_stores)
|
17167
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
17168
|
+
end
|
17169
|
+
end
|
17170
|
+
|
16348
17171
|
# Response message for MetadataService.ListExecutions.
|
16349
17172
|
class GoogleCloudAiplatformV1beta1ListExecutionsResponse
|
16350
17173
|
include Google::Apis::Core::Hashable
|
@@ -17322,6 +18145,32 @@ module Google
|
|
17322
18145
|
end
|
17323
18146
|
end
|
17324
18147
|
|
18148
|
+
# Response message for SessionService.ListSessions.
|
18149
|
+
class GoogleCloudAiplatformV1beta1ListSessionsResponse
|
18150
|
+
include Google::Apis::Core::Hashable
|
18151
|
+
|
18152
|
+
# A token, which can be sent as ListSessionsRequest.page_token to retrieve the
|
18153
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
18154
|
+
# Corresponds to the JSON property `nextPageToken`
|
18155
|
+
# @return [String]
|
18156
|
+
attr_accessor :next_page_token
|
18157
|
+
|
18158
|
+
# A list of sessions matching the request.
|
18159
|
+
# Corresponds to the JSON property `sessions`
|
18160
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session>]
|
18161
|
+
attr_accessor :sessions
|
18162
|
+
|
18163
|
+
def initialize(**args)
|
18164
|
+
update!(**args)
|
18165
|
+
end
|
18166
|
+
|
18167
|
+
# Update properties of this object
|
18168
|
+
def update!(**args)
|
18169
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
18170
|
+
@sessions = args[:sessions] if args.key?(:sessions)
|
18171
|
+
end
|
18172
|
+
end
|
18173
|
+
|
17325
18174
|
# Response message for SpecialistPoolService.ListSpecialistPools.
|
17326
18175
|
class GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse
|
17327
18176
|
include Google::Apis::Core::Hashable
|
@@ -23366,6 +24215,11 @@ module Google
|
|
23366
24215
|
class GoogleCloudAiplatformV1beta1PairwiseMetricInstance
|
23367
24216
|
include Google::Apis::Core::Hashable
|
23368
24217
|
|
24218
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
24219
|
+
# Corresponds to the JSON property `contentMapInstance`
|
24220
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentMap]
|
24221
|
+
attr_accessor :content_map_instance
|
24222
|
+
|
23369
24223
|
# Instance specified as a json string. String key-value pairs are expected in
|
23370
24224
|
# the json_instance to render PairwiseMetricSpec.instance_prompt_template.
|
23371
24225
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -23378,6 +24232,7 @@ module Google
|
|
23378
24232
|
|
23379
24233
|
# Update properties of this object
|
23380
24234
|
def update!(**args)
|
24235
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
23381
24236
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
23382
24237
|
end
|
23383
24238
|
end
|
@@ -23386,6 +24241,11 @@ module Google
|
|
23386
24241
|
class GoogleCloudAiplatformV1beta1PairwiseMetricResult
|
23387
24242
|
include Google::Apis::Core::Hashable
|
23388
24243
|
|
24244
|
+
# Spec for custom output.
|
24245
|
+
# Corresponds to the JSON property `customOutput`
|
24246
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutput]
|
24247
|
+
attr_accessor :custom_output
|
24248
|
+
|
23389
24249
|
# Output only. Explanation for pairwise metric score.
|
23390
24250
|
# Corresponds to the JSON property `explanation`
|
23391
24251
|
# @return [String]
|
@@ -23402,6 +24262,7 @@ module Google
|
|
23402
24262
|
|
23403
24263
|
# Update properties of this object
|
23404
24264
|
def update!(**args)
|
24265
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
23405
24266
|
@explanation = args[:explanation] if args.key?(:explanation)
|
23406
24267
|
@pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
|
23407
24268
|
end
|
@@ -23421,6 +24282,11 @@ module Google
|
|
23421
24282
|
# @return [String]
|
23422
24283
|
attr_accessor :candidate_response_field_name
|
23423
24284
|
|
24285
|
+
# Spec for custom output format configuration.
|
24286
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
24287
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig]
|
24288
|
+
attr_accessor :custom_output_format_config
|
24289
|
+
|
23424
24290
|
# Required. Metric prompt template for pairwise metric.
|
23425
24291
|
# Corresponds to the JSON property `metricPromptTemplate`
|
23426
24292
|
# @return [String]
|
@@ -23439,6 +24305,7 @@ module Google
|
|
23439
24305
|
def update!(**args)
|
23440
24306
|
@baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
|
23441
24307
|
@candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
|
24308
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
23442
24309
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
23443
24310
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
23444
24311
|
end
|
@@ -24788,6 +25655,11 @@ module Google
|
|
24788
25655
|
class GoogleCloudAiplatformV1beta1PointwiseMetricInstance
|
24789
25656
|
include Google::Apis::Core::Hashable
|
24790
25657
|
|
25658
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
25659
|
+
# Corresponds to the JSON property `contentMapInstance`
|
25660
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentMap]
|
25661
|
+
attr_accessor :content_map_instance
|
25662
|
+
|
24791
25663
|
# Instance specified as a json string. String key-value pairs are expected in
|
24792
25664
|
# the json_instance to render PointwiseMetricSpec.instance_prompt_template.
|
24793
25665
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -24800,6 +25672,7 @@ module Google
|
|
24800
25672
|
|
24801
25673
|
# Update properties of this object
|
24802
25674
|
def update!(**args)
|
25675
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
24803
25676
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
24804
25677
|
end
|
24805
25678
|
end
|
@@ -24808,6 +25681,11 @@ module Google
|
|
24808
25681
|
class GoogleCloudAiplatformV1beta1PointwiseMetricResult
|
24809
25682
|
include Google::Apis::Core::Hashable
|
24810
25683
|
|
25684
|
+
# Spec for custom output.
|
25685
|
+
# Corresponds to the JSON property `customOutput`
|
25686
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutput]
|
25687
|
+
attr_accessor :custom_output
|
25688
|
+
|
24811
25689
|
# Output only. Explanation for pointwise metric score.
|
24812
25690
|
# Corresponds to the JSON property `explanation`
|
24813
25691
|
# @return [String]
|
@@ -24824,6 +25702,7 @@ module Google
|
|
24824
25702
|
|
24825
25703
|
# Update properties of this object
|
24826
25704
|
def update!(**args)
|
25705
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
24827
25706
|
@explanation = args[:explanation] if args.key?(:explanation)
|
24828
25707
|
@score = args[:score] if args.key?(:score)
|
24829
25708
|
end
|
@@ -24833,6 +25712,11 @@ module Google
|
|
24833
25712
|
class GoogleCloudAiplatformV1beta1PointwiseMetricSpec
|
24834
25713
|
include Google::Apis::Core::Hashable
|
24835
25714
|
|
25715
|
+
# Spec for custom output format configuration.
|
25716
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
25717
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig]
|
25718
|
+
attr_accessor :custom_output_format_config
|
25719
|
+
|
24836
25720
|
# Required. Metric prompt template for pointwise metric.
|
24837
25721
|
# Corresponds to the JSON property `metricPromptTemplate`
|
24838
25722
|
# @return [String]
|
@@ -24849,6 +25733,7 @@ module Google
|
|
24849
25733
|
|
24850
25734
|
# Update properties of this object
|
24851
25735
|
def update!(**args)
|
25736
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
24852
25737
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
24853
25738
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
24854
25739
|
end
|
@@ -26055,6 +26940,38 @@ module Google
|
|
26055
26940
|
end
|
26056
26941
|
end
|
26057
26942
|
|
26943
|
+
# Response message for ModelGardenService.UpdatePublisherModelEula.
|
26944
|
+
class GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance
|
26945
|
+
include Google::Apis::Core::Hashable
|
26946
|
+
|
26947
|
+
# The project number requesting access for named model.
|
26948
|
+
# Corresponds to the JSON property `projectNumber`
|
26949
|
+
# @return [Fixnum]
|
26950
|
+
attr_accessor :project_number
|
26951
|
+
|
26952
|
+
# The publisher model resource name.
|
26953
|
+
# Corresponds to the JSON property `publisherModel`
|
26954
|
+
# @return [String]
|
26955
|
+
attr_accessor :publisher_model
|
26956
|
+
|
26957
|
+
# The EULA content acceptance status.
|
26958
|
+
# Corresponds to the JSON property `publisherModelEulaAcked`
|
26959
|
+
# @return [Boolean]
|
26960
|
+
attr_accessor :publisher_model_eula_acked
|
26961
|
+
alias_method :publisher_model_eula_acked?, :publisher_model_eula_acked
|
26962
|
+
|
26963
|
+
def initialize(**args)
|
26964
|
+
update!(**args)
|
26965
|
+
end
|
26966
|
+
|
26967
|
+
# Update properties of this object
|
26968
|
+
def update!(**args)
|
26969
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
26970
|
+
@publisher_model = args[:publisher_model] if args.key?(:publisher_model)
|
26971
|
+
@publisher_model_eula_acked = args[:publisher_model_eula_acked] if args.key?(:publisher_model_eula_acked)
|
26972
|
+
end
|
26973
|
+
end
|
26974
|
+
|
26058
26975
|
# The information about the parent of a model.
|
26059
26976
|
class GoogleCloudAiplatformV1beta1PublisherModelParent
|
26060
26977
|
include Google::Apis::Core::Hashable
|
@@ -27528,6 +28445,15 @@ module Google
|
|
27528
28445
|
class GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser
|
27529
28446
|
include Google::Apis::Core::Hashable
|
27530
28447
|
|
28448
|
+
# The maximum number of requests the job is allowed to make to the Document AI
|
28449
|
+
# processor per minute in this project. Consult https://cloud.google.com/
|
28450
|
+
# document-ai/quotas and the Quota page for your project to set an appropriate
|
28451
|
+
# value here. If this value is not specified, max_parsing_requests_per_min will
|
28452
|
+
# be used by indexing pipeline as the global limit.
|
28453
|
+
# Corresponds to the JSON property `globalMaxParsingRequestsPerMin`
|
28454
|
+
# @return [Fixnum]
|
28455
|
+
attr_accessor :global_max_parsing_requests_per_min
|
28456
|
+
|
27531
28457
|
# The maximum number of requests the job is allowed to make to the Document AI
|
27532
28458
|
# processor per minute. Consult https://cloud.google.com/document-ai/quotas and
|
27533
28459
|
# the Quota page for your project to set an appropriate value here. If
|
@@ -27552,6 +28478,7 @@ module Google
|
|
27552
28478
|
|
27553
28479
|
# Update properties of this object
|
27554
28480
|
def update!(**args)
|
28481
|
+
@global_max_parsing_requests_per_min = args[:global_max_parsing_requests_per_min] if args.key?(:global_max_parsing_requests_per_min)
|
27555
28482
|
@max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
|
27556
28483
|
@processor_name = args[:processor_name] if args.key?(:processor_name)
|
27557
28484
|
end
|
@@ -27566,6 +28493,15 @@ module Google
|
|
27566
28493
|
# @return [String]
|
27567
28494
|
attr_accessor :custom_parsing_prompt
|
27568
28495
|
|
28496
|
+
# The maximum number of requests the job is allowed to make to the LLM model per
|
28497
|
+
# minute in this project. Consult https://cloud.google.com/vertex-ai/generative-
|
28498
|
+
# ai/docs/quotas and your document size to set an appropriate value here. If
|
28499
|
+
# this value is not specified, max_parsing_requests_per_min will be used by
|
28500
|
+
# indexing pipeline job as the global limit.
|
28501
|
+
# Corresponds to the JSON property `globalMaxParsingRequestsPerMin`
|
28502
|
+
# @return [Fixnum]
|
28503
|
+
attr_accessor :global_max_parsing_requests_per_min
|
28504
|
+
|
27569
28505
|
# The maximum number of requests the job is allowed to make to the LLM model per
|
27570
28506
|
# minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
|
27571
28507
|
# and your document size to set an appropriate value here. If unspecified, a
|
@@ -27587,6 +28523,7 @@ module Google
|
|
27587
28523
|
# Update properties of this object
|
27588
28524
|
def update!(**args)
|
27589
28525
|
@custom_parsing_prompt = args[:custom_parsing_prompt] if args.key?(:custom_parsing_prompt)
|
28526
|
+
@global_max_parsing_requests_per_min = args[:global_max_parsing_requests_per_min] if args.key?(:global_max_parsing_requests_per_min)
|
27590
28527
|
@max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
|
27591
28528
|
@model_name = args[:model_name] if args.key?(:model_name)
|
27592
28529
|
end
|
@@ -27990,6 +28927,25 @@ module Google
|
|
27990
28927
|
end
|
27991
28928
|
end
|
27992
28929
|
|
28930
|
+
# Raw output.
|
28931
|
+
class GoogleCloudAiplatformV1beta1RawOutput
|
28932
|
+
include Google::Apis::Core::Hashable
|
28933
|
+
|
28934
|
+
# Output only. Raw output string.
|
28935
|
+
# Corresponds to the JSON property `rawOutput`
|
28936
|
+
# @return [Array<String>]
|
28937
|
+
attr_accessor :raw_output
|
28938
|
+
|
28939
|
+
def initialize(**args)
|
28940
|
+
update!(**args)
|
28941
|
+
end
|
28942
|
+
|
28943
|
+
# Update properties of this object
|
28944
|
+
def update!(**args)
|
28945
|
+
@raw_output = args[:raw_output] if args.key?(:raw_output)
|
28946
|
+
end
|
28947
|
+
end
|
28948
|
+
|
27993
28949
|
# Request message for PredictionService.RawPredict.
|
27994
28950
|
class GoogleCloudAiplatformV1beta1RawPredictRequest
|
27995
28951
|
include Google::Apis::Core::Hashable
|
@@ -28749,6 +29705,54 @@ module Google
|
|
28749
29705
|
end
|
28750
29706
|
end
|
28751
29707
|
|
29708
|
+
# Request message for ExampleStoreService.RemoveExamples.
|
29709
|
+
class GoogleCloudAiplatformV1beta1RemoveExamplesRequest
|
29710
|
+
include Google::Apis::Core::Hashable
|
29711
|
+
|
29712
|
+
# Optional. Example IDs to remove. If both metadata filters and Example IDs are
|
29713
|
+
# specified, the metadata filters will be applied to the specified examples in
|
29714
|
+
# order to identify which should be removed.
|
29715
|
+
# Corresponds to the JSON property `exampleIds`
|
29716
|
+
# @return [Array<String>]
|
29717
|
+
attr_accessor :example_ids
|
29718
|
+
|
29719
|
+
# The metadata filters that will be used to remove or fetch
|
29720
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
29721
|
+
# field will be applied.
|
29722
|
+
# Corresponds to the JSON property `storedContentsExampleFilter`
|
29723
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleFilter]
|
29724
|
+
attr_accessor :stored_contents_example_filter
|
29725
|
+
|
29726
|
+
def initialize(**args)
|
29727
|
+
update!(**args)
|
29728
|
+
end
|
29729
|
+
|
29730
|
+
# Update properties of this object
|
29731
|
+
def update!(**args)
|
29732
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
29733
|
+
@stored_contents_example_filter = args[:stored_contents_example_filter] if args.key?(:stored_contents_example_filter)
|
29734
|
+
end
|
29735
|
+
end
|
29736
|
+
|
29737
|
+
# Response message for ExampleStoreService.RemoveExamples.
|
29738
|
+
class GoogleCloudAiplatformV1beta1RemoveExamplesResponse
|
29739
|
+
include Google::Apis::Core::Hashable
|
29740
|
+
|
29741
|
+
# The IDs for the removed examples.
|
29742
|
+
# Corresponds to the JSON property `exampleIds`
|
29743
|
+
# @return [Array<String>]
|
29744
|
+
attr_accessor :example_ids
|
29745
|
+
|
29746
|
+
def initialize(**args)
|
29747
|
+
update!(**args)
|
29748
|
+
end
|
29749
|
+
|
29750
|
+
# Update properties of this object
|
29751
|
+
def update!(**args)
|
29752
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
29753
|
+
end
|
29754
|
+
end
|
29755
|
+
|
28752
29756
|
# Request message for NotebookInternalService.ReportExecutionEvent.
|
28753
29757
|
class GoogleCloudAiplatformV1beta1ReportExecutionEventRequest
|
28754
29758
|
include Google::Apis::Core::Hashable
|
@@ -29484,6 +30488,121 @@ module Google
|
|
29484
30488
|
end
|
29485
30489
|
end
|
29486
30490
|
|
30491
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
30492
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInput
|
30493
|
+
include Google::Apis::Core::Hashable
|
30494
|
+
|
30495
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
30496
|
+
# to one row in an evaluation dataset.
|
30497
|
+
# Corresponds to the JSON property `instance`
|
30498
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance]
|
30499
|
+
attr_accessor :instance
|
30500
|
+
|
30501
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
30502
|
+
# corresponding to rubrics along with overall score.
|
30503
|
+
# Corresponds to the JSON property `metricSpec`
|
30504
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingSpec]
|
30505
|
+
attr_accessor :metric_spec
|
30506
|
+
|
30507
|
+
def initialize(**args)
|
30508
|
+
update!(**args)
|
30509
|
+
end
|
30510
|
+
|
30511
|
+
# Update properties of this object
|
30512
|
+
def update!(**args)
|
30513
|
+
@instance = args[:instance] if args.key?(:instance)
|
30514
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
30515
|
+
end
|
30516
|
+
end
|
30517
|
+
|
30518
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
30519
|
+
# to one row in an evaluation dataset.
|
30520
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance
|
30521
|
+
include Google::Apis::Core::Hashable
|
30522
|
+
|
30523
|
+
# Required. Instance specified as a json string. String key-value pairs are
|
30524
|
+
# expected in the json_instance to render RubricBasedInstructionFollowing prompt
|
30525
|
+
# templates.
|
30526
|
+
# Corresponds to the JSON property `jsonInstance`
|
30527
|
+
# @return [String]
|
30528
|
+
attr_accessor :json_instance
|
30529
|
+
|
30530
|
+
def initialize(**args)
|
30531
|
+
update!(**args)
|
30532
|
+
end
|
30533
|
+
|
30534
|
+
# Update properties of this object
|
30535
|
+
def update!(**args)
|
30536
|
+
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
30537
|
+
end
|
30538
|
+
end
|
30539
|
+
|
30540
|
+
# Result for RubricBasedInstructionFollowing metric.
|
30541
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingResult
|
30542
|
+
include Google::Apis::Core::Hashable
|
30543
|
+
|
30544
|
+
# Output only. List of per rubric critique results.
|
30545
|
+
# Corresponds to the JSON property `rubricCritiqueResults`
|
30546
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricCritiqueResult>]
|
30547
|
+
attr_accessor :rubric_critique_results
|
30548
|
+
|
30549
|
+
# Output only. Overall score for the instruction following.
|
30550
|
+
# Corresponds to the JSON property `score`
|
30551
|
+
# @return [Float]
|
30552
|
+
attr_accessor :score
|
30553
|
+
|
30554
|
+
def initialize(**args)
|
30555
|
+
update!(**args)
|
30556
|
+
end
|
30557
|
+
|
30558
|
+
# Update properties of this object
|
30559
|
+
def update!(**args)
|
30560
|
+
@rubric_critique_results = args[:rubric_critique_results] if args.key?(:rubric_critique_results)
|
30561
|
+
@score = args[:score] if args.key?(:score)
|
30562
|
+
end
|
30563
|
+
end
|
30564
|
+
|
30565
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
30566
|
+
# corresponding to rubrics along with overall score.
|
30567
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingSpec
|
30568
|
+
include Google::Apis::Core::Hashable
|
30569
|
+
|
30570
|
+
def initialize(**args)
|
30571
|
+
update!(**args)
|
30572
|
+
end
|
30573
|
+
|
30574
|
+
# Update properties of this object
|
30575
|
+
def update!(**args)
|
30576
|
+
end
|
30577
|
+
end
|
30578
|
+
|
30579
|
+
# Rubric critique result.
|
30580
|
+
class GoogleCloudAiplatformV1beta1RubricCritiqueResult
|
30581
|
+
include Google::Apis::Core::Hashable
|
30582
|
+
|
30583
|
+
# Output only. Rubric to be evaluated.
|
30584
|
+
# Corresponds to the JSON property `rubric`
|
30585
|
+
# @return [String]
|
30586
|
+
attr_accessor :rubric
|
30587
|
+
|
30588
|
+
# Output only. Verdict for the rubric - true if the rubric is met, false
|
30589
|
+
# otherwise.
|
30590
|
+
# Corresponds to the JSON property `verdict`
|
30591
|
+
# @return [Boolean]
|
30592
|
+
attr_accessor :verdict
|
30593
|
+
alias_method :verdict?, :verdict
|
30594
|
+
|
30595
|
+
def initialize(**args)
|
30596
|
+
update!(**args)
|
30597
|
+
end
|
30598
|
+
|
30599
|
+
# Update properties of this object
|
30600
|
+
def update!(**args)
|
30601
|
+
@rubric = args[:rubric] if args.key?(:rubric)
|
30602
|
+
@verdict = args[:verdict] if args.key?(:verdict)
|
30603
|
+
end
|
30604
|
+
end
|
30605
|
+
|
29487
30606
|
# The definition of a runtime artifact.
|
29488
30607
|
class GoogleCloudAiplatformV1beta1RuntimeArtifact
|
29489
30608
|
include Google::Apis::Core::Hashable
|
@@ -37108,6 +38227,76 @@ module Google
|
|
37108
38227
|
end
|
37109
38228
|
end
|
37110
38229
|
|
38230
|
+
# Request message for ExampleStoreService.SearchExamples.
|
38231
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesRequest
|
38232
|
+
include Google::Apis::Core::Hashable
|
38233
|
+
|
38234
|
+
# The metadata filters that will be used to search StoredContentsExamples. If a
|
38235
|
+
# field is unspecified, then no filtering for that field will be applied
|
38236
|
+
# Corresponds to the JSON property `storedContentsExampleParameters`
|
38237
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleParameters]
|
38238
|
+
attr_accessor :stored_contents_example_parameters
|
38239
|
+
|
38240
|
+
# Optional. The number of similar examples to return.
|
38241
|
+
# Corresponds to the JSON property `topK`
|
38242
|
+
# @return [Fixnum]
|
38243
|
+
attr_accessor :top_k
|
38244
|
+
|
38245
|
+
def initialize(**args)
|
38246
|
+
update!(**args)
|
38247
|
+
end
|
38248
|
+
|
38249
|
+
# Update properties of this object
|
38250
|
+
def update!(**args)
|
38251
|
+
@stored_contents_example_parameters = args[:stored_contents_example_parameters] if args.key?(:stored_contents_example_parameters)
|
38252
|
+
@top_k = args[:top_k] if args.key?(:top_k)
|
38253
|
+
end
|
38254
|
+
end
|
38255
|
+
|
38256
|
+
# Response message for ExampleStoreService.SearchExamples.
|
38257
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesResponse
|
38258
|
+
include Google::Apis::Core::Hashable
|
38259
|
+
|
38260
|
+
# The results of searching for similar examples.
|
38261
|
+
# Corresponds to the JSON property `results`
|
38262
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample>]
|
38263
|
+
attr_accessor :results
|
38264
|
+
|
38265
|
+
def initialize(**args)
|
38266
|
+
update!(**args)
|
38267
|
+
end
|
38268
|
+
|
38269
|
+
# Update properties of this object
|
38270
|
+
def update!(**args)
|
38271
|
+
@results = args[:results] if args.key?(:results)
|
38272
|
+
end
|
38273
|
+
end
|
38274
|
+
|
38275
|
+
# The result of the similar example.
|
38276
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample
|
38277
|
+
include Google::Apis::Core::Hashable
|
38278
|
+
|
38279
|
+
# A single example to upload or read from the Example Store.
|
38280
|
+
# Corresponds to the JSON property `example`
|
38281
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example]
|
38282
|
+
attr_accessor :example
|
38283
|
+
|
38284
|
+
# The similarity score of this example.
|
38285
|
+
# Corresponds to the JSON property `similarityScore`
|
38286
|
+
# @return [Float]
|
38287
|
+
attr_accessor :similarity_score
|
38288
|
+
|
38289
|
+
def initialize(**args)
|
38290
|
+
update!(**args)
|
38291
|
+
end
|
38292
|
+
|
38293
|
+
# Update properties of this object
|
38294
|
+
def update!(**args)
|
38295
|
+
@example = args[:example] if args.key?(:example)
|
38296
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
38297
|
+
end
|
38298
|
+
end
|
38299
|
+
|
37111
38300
|
# Response message for FeaturestoreService.SearchFeatures.
|
37112
38301
|
class GoogleCloudAiplatformV1beta1SearchFeaturesResponse
|
37113
38302
|
include Google::Apis::Core::Hashable
|
@@ -37714,6 +38903,130 @@ module Google
|
|
37714
38903
|
end
|
37715
38904
|
end
|
37716
38905
|
|
38906
|
+
# A session contains a set of actions between users and Vertex agents.
|
38907
|
+
class GoogleCloudAiplatformV1beta1Session
|
38908
|
+
include Google::Apis::Core::Hashable
|
38909
|
+
|
38910
|
+
# Output only. Timestamp when the session was created.
|
38911
|
+
# Corresponds to the JSON property `createTime`
|
38912
|
+
# @return [String]
|
38913
|
+
attr_accessor :create_time
|
38914
|
+
|
38915
|
+
# Optional. The display name of the session.
|
38916
|
+
# Corresponds to the JSON property `displayName`
|
38917
|
+
# @return [String]
|
38918
|
+
attr_accessor :display_name
|
38919
|
+
|
38920
|
+
# Required. Identifier. The resource name of the session. Format: 'projects/`
|
38921
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
38922
|
+
# session`'.
|
38923
|
+
# Corresponds to the JSON property `name`
|
38924
|
+
# @return [String]
|
38925
|
+
attr_accessor :name
|
38926
|
+
|
38927
|
+
# Optional. Session specific memory which stores key conversation points.
|
38928
|
+
# Corresponds to the JSON property `sessionState`
|
38929
|
+
# @return [Hash<String,Object>]
|
38930
|
+
attr_accessor :session_state
|
38931
|
+
|
38932
|
+
# Output only. Timestamp when the session was updated.
|
38933
|
+
# Corresponds to the JSON property `updateTime`
|
38934
|
+
# @return [String]
|
38935
|
+
attr_accessor :update_time
|
38936
|
+
|
38937
|
+
# Required. Immutable. String id provided by the user
|
38938
|
+
# Corresponds to the JSON property `userId`
|
38939
|
+
# @return [String]
|
38940
|
+
attr_accessor :user_id
|
38941
|
+
|
38942
|
+
def initialize(**args)
|
38943
|
+
update!(**args)
|
38944
|
+
end
|
38945
|
+
|
38946
|
+
# Update properties of this object
|
38947
|
+
def update!(**args)
|
38948
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
38949
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
38950
|
+
@name = args[:name] if args.key?(:name)
|
38951
|
+
@session_state = args[:session_state] if args.key?(:session_state)
|
38952
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
38953
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
38954
|
+
end
|
38955
|
+
end
|
38956
|
+
|
38957
|
+
# An event represents a message from either the user or agent.
|
38958
|
+
class GoogleCloudAiplatformV1beta1SessionEvent
|
38959
|
+
include Google::Apis::Core::Hashable
|
38960
|
+
|
38961
|
+
# Actions are parts of events that are executed by the agent.
|
38962
|
+
# Corresponds to the JSON property `actions`
|
38963
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EventActions]
|
38964
|
+
attr_accessor :actions
|
38965
|
+
|
38966
|
+
# Required. The name of the agent that sent the event, or user.
|
38967
|
+
# Corresponds to the JSON property `author`
|
38968
|
+
# @return [String]
|
38969
|
+
attr_accessor :author
|
38970
|
+
|
38971
|
+
# The base structured datatype containing multi-part content of a message. A `
|
38972
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
38973
|
+
# a `parts` field containing multi-part data that contains the content of the
|
38974
|
+
# message turn.
|
38975
|
+
# Corresponds to the JSON property `content`
|
38976
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
38977
|
+
attr_accessor :content
|
38978
|
+
|
38979
|
+
# Optional. Error code if the response is an error. Code varies by model.
|
38980
|
+
# Corresponds to the JSON property `errorCode`
|
38981
|
+
# @return [String]
|
38982
|
+
attr_accessor :error_code
|
38983
|
+
|
38984
|
+
# Optional. Error message if the response is an error.
|
38985
|
+
# Corresponds to the JSON property `errorMessage`
|
38986
|
+
# @return [String]
|
38987
|
+
attr_accessor :error_message
|
38988
|
+
|
38989
|
+
# Metadata relating to a LLM response event.
|
38990
|
+
# Corresponds to the JSON property `eventMetadata`
|
38991
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EventMetadata]
|
38992
|
+
attr_accessor :event_metadata
|
38993
|
+
|
38994
|
+
# Required. The invocation id of the event, multiple events can have the same
|
38995
|
+
# invocation id.
|
38996
|
+
# Corresponds to the JSON property `invocationId`
|
38997
|
+
# @return [String]
|
38998
|
+
attr_accessor :invocation_id
|
38999
|
+
|
39000
|
+
# Required. Identifier. The resource name of the event. Format:`projects/`
|
39001
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
39002
|
+
# session`/events/`event``.
|
39003
|
+
# Corresponds to the JSON property `name`
|
39004
|
+
# @return [String]
|
39005
|
+
attr_accessor :name
|
39006
|
+
|
39007
|
+
# Required. Timestamp when the event was created on client side.
|
39008
|
+
# Corresponds to the JSON property `timestamp`
|
39009
|
+
# @return [String]
|
39010
|
+
attr_accessor :timestamp
|
39011
|
+
|
39012
|
+
def initialize(**args)
|
39013
|
+
update!(**args)
|
39014
|
+
end
|
39015
|
+
|
39016
|
+
# Update properties of this object
|
39017
|
+
def update!(**args)
|
39018
|
+
@actions = args[:actions] if args.key?(:actions)
|
39019
|
+
@author = args[:author] if args.key?(:author)
|
39020
|
+
@content = args[:content] if args.key?(:content)
|
39021
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
39022
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
39023
|
+
@event_metadata = args[:event_metadata] if args.key?(:event_metadata)
|
39024
|
+
@invocation_id = args[:invocation_id] if args.key?(:invocation_id)
|
39025
|
+
@name = args[:name] if args.key?(:name)
|
39026
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
39027
|
+
end
|
39028
|
+
end
|
39029
|
+
|
37717
39030
|
# The SharePointSources to pass to ImportRagFiles.
|
37718
39031
|
class GoogleCloudAiplatformV1beta1SharePointSources
|
37719
39032
|
include Google::Apis::Core::Hashable
|
@@ -38166,6 +39479,163 @@ module Google
|
|
38166
39479
|
end
|
38167
39480
|
end
|
38168
39481
|
|
39482
|
+
# A ContentsExample to be used with GenerateContent alongside information
|
39483
|
+
# required for storage and retrieval with Example Store.
|
39484
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExample
|
39485
|
+
include Google::Apis::Core::Hashable
|
39486
|
+
|
39487
|
+
# A single example of a conversation with the model.
|
39488
|
+
# Corresponds to the JSON property `contentsExample`
|
39489
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentsExample]
|
39490
|
+
attr_accessor :contents_example
|
39491
|
+
|
39492
|
+
# Optional. (Optional) the search key used for retrieval. If not provided at
|
39493
|
+
# upload-time, the search key will be generated from `contents_example.contents`
|
39494
|
+
# using the method provided by `search_key_generation_method`. The generated
|
39495
|
+
# search key will be included in retrieved examples.
|
39496
|
+
# Corresponds to the JSON property `searchKey`
|
39497
|
+
# @return [String]
|
39498
|
+
attr_accessor :search_key
|
39499
|
+
|
39500
|
+
# Options for generating the search key from the conversation history.
|
39501
|
+
# Corresponds to the JSON property `searchKeyGenerationMethod`
|
39502
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod]
|
39503
|
+
attr_accessor :search_key_generation_method
|
39504
|
+
|
39505
|
+
def initialize(**args)
|
39506
|
+
update!(**args)
|
39507
|
+
end
|
39508
|
+
|
39509
|
+
# Update properties of this object
|
39510
|
+
def update!(**args)
|
39511
|
+
@contents_example = args[:contents_example] if args.key?(:contents_example)
|
39512
|
+
@search_key = args[:search_key] if args.key?(:search_key)
|
39513
|
+
@search_key_generation_method = args[:search_key_generation_method] if args.key?(:search_key_generation_method)
|
39514
|
+
end
|
39515
|
+
end
|
39516
|
+
|
39517
|
+
# The metadata filters that will be used to remove or fetch
|
39518
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
39519
|
+
# field will be applied.
|
39520
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleFilter
|
39521
|
+
include Google::Apis::Core::Hashable
|
39522
|
+
|
39523
|
+
# Filters for examples' array metadata fields. An array field is example
|
39524
|
+
# metadata where multiple values are attributed to a single example.
|
39525
|
+
# Corresponds to the JSON property `functionNames`
|
39526
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesArrayFilter]
|
39527
|
+
attr_accessor :function_names
|
39528
|
+
|
39529
|
+
# Optional. The search keys for filtering. Only examples with one of the
|
39530
|
+
# specified search keys (StoredContentsExample.search_key) are eligible to be
|
39531
|
+
# returned.
|
39532
|
+
# Corresponds to the JSON property `searchKeys`
|
39533
|
+
# @return [Array<String>]
|
39534
|
+
attr_accessor :search_keys
|
39535
|
+
|
39536
|
+
def initialize(**args)
|
39537
|
+
update!(**args)
|
39538
|
+
end
|
39539
|
+
|
39540
|
+
# Update properties of this object
|
39541
|
+
def update!(**args)
|
39542
|
+
@function_names = args[:function_names] if args.key?(:function_names)
|
39543
|
+
@search_keys = args[:search_keys] if args.key?(:search_keys)
|
39544
|
+
end
|
39545
|
+
end
|
39546
|
+
|
39547
|
+
# The metadata filters that will be used to search StoredContentsExamples. If a
|
39548
|
+
# field is unspecified, then no filtering for that field will be applied
|
39549
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleParameters
|
39550
|
+
include Google::Apis::Core::Hashable
|
39551
|
+
|
39552
|
+
# The chat history to use to generate the search key for retrieval.
|
39553
|
+
# Corresponds to the JSON property `contentSearchKey`
|
39554
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleParametersContentSearchKey]
|
39555
|
+
attr_accessor :content_search_key
|
39556
|
+
|
39557
|
+
# Filters for examples' array metadata fields. An array field is example
|
39558
|
+
# metadata where multiple values are attributed to a single example.
|
39559
|
+
# Corresponds to the JSON property `functionNames`
|
39560
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesArrayFilter]
|
39561
|
+
attr_accessor :function_names
|
39562
|
+
|
39563
|
+
# The exact search key to use for retrieval.
|
39564
|
+
# Corresponds to the JSON property `searchKey`
|
39565
|
+
# @return [String]
|
39566
|
+
attr_accessor :search_key
|
39567
|
+
|
39568
|
+
def initialize(**args)
|
39569
|
+
update!(**args)
|
39570
|
+
end
|
39571
|
+
|
39572
|
+
# Update properties of this object
|
39573
|
+
def update!(**args)
|
39574
|
+
@content_search_key = args[:content_search_key] if args.key?(:content_search_key)
|
39575
|
+
@function_names = args[:function_names] if args.key?(:function_names)
|
39576
|
+
@search_key = args[:search_key] if args.key?(:search_key)
|
39577
|
+
end
|
39578
|
+
end
|
39579
|
+
|
39580
|
+
# The chat history to use to generate the search key for retrieval.
|
39581
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleParametersContentSearchKey
|
39582
|
+
include Google::Apis::Core::Hashable
|
39583
|
+
|
39584
|
+
# Required. The conversation for generating a search key.
|
39585
|
+
# Corresponds to the JSON property `contents`
|
39586
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
39587
|
+
attr_accessor :contents
|
39588
|
+
|
39589
|
+
# Options for generating the search key from the conversation history.
|
39590
|
+
# Corresponds to the JSON property `searchKeyGenerationMethod`
|
39591
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod]
|
39592
|
+
attr_accessor :search_key_generation_method
|
39593
|
+
|
39594
|
+
def initialize(**args)
|
39595
|
+
update!(**args)
|
39596
|
+
end
|
39597
|
+
|
39598
|
+
# Update properties of this object
|
39599
|
+
def update!(**args)
|
39600
|
+
@contents = args[:contents] if args.key?(:contents)
|
39601
|
+
@search_key_generation_method = args[:search_key_generation_method] if args.key?(:search_key_generation_method)
|
39602
|
+
end
|
39603
|
+
end
|
39604
|
+
|
39605
|
+
# Options for generating the search key from the conversation history.
|
39606
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod
|
39607
|
+
include Google::Apis::Core::Hashable
|
39608
|
+
|
39609
|
+
# Configuration for using only the last entry of the conversation history as the
|
39610
|
+
# search key.
|
39611
|
+
# Corresponds to the JSON property `lastEntry`
|
39612
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethodLastEntry]
|
39613
|
+
attr_accessor :last_entry
|
39614
|
+
|
39615
|
+
def initialize(**args)
|
39616
|
+
update!(**args)
|
39617
|
+
end
|
39618
|
+
|
39619
|
+
# Update properties of this object
|
39620
|
+
def update!(**args)
|
39621
|
+
@last_entry = args[:last_entry] if args.key?(:last_entry)
|
39622
|
+
end
|
39623
|
+
end
|
39624
|
+
|
39625
|
+
# Configuration for using only the last entry of the conversation history as the
|
39626
|
+
# search key.
|
39627
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethodLastEntry
|
39628
|
+
include Google::Apis::Core::Hashable
|
39629
|
+
|
39630
|
+
def initialize(**args)
|
39631
|
+
update!(**args)
|
39632
|
+
end
|
39633
|
+
|
39634
|
+
# Update properties of this object
|
39635
|
+
def update!(**args)
|
39636
|
+
end
|
39637
|
+
end
|
39638
|
+
|
38169
39639
|
# Assigns input data to the training, validation, and test sets so that the
|
38170
39640
|
# distribution of values found in the categorical column (as specified by the `
|
38171
39641
|
# key` field) is mirrored within each split. The fraction values determine the
|
@@ -43383,6 +44853,85 @@ module Google
|
|
43383
44853
|
end
|
43384
44854
|
end
|
43385
44855
|
|
44856
|
+
# Request message for ExampleStoreService.UpsertExamples.
|
44857
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesRequest
|
44858
|
+
include Google::Apis::Core::Hashable
|
44859
|
+
|
44860
|
+
# Required. A list of examples to be created/updated.
|
44861
|
+
# Corresponds to the JSON property `examples`
|
44862
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example>]
|
44863
|
+
attr_accessor :examples
|
44864
|
+
|
44865
|
+
# Optional. A flag indicating whether an example can be overwritten if it
|
44866
|
+
# already exists. If False (default) and the example already exists, the example
|
44867
|
+
# will not be updated. This does not affect behavior if the example does not
|
44868
|
+
# exist already.
|
44869
|
+
# Corresponds to the JSON property `overwrite`
|
44870
|
+
# @return [Boolean]
|
44871
|
+
attr_accessor :overwrite
|
44872
|
+
alias_method :overwrite?, :overwrite
|
44873
|
+
|
44874
|
+
def initialize(**args)
|
44875
|
+
update!(**args)
|
44876
|
+
end
|
44877
|
+
|
44878
|
+
# Update properties of this object
|
44879
|
+
def update!(**args)
|
44880
|
+
@examples = args[:examples] if args.key?(:examples)
|
44881
|
+
@overwrite = args[:overwrite] if args.key?(:overwrite)
|
44882
|
+
end
|
44883
|
+
end
|
44884
|
+
|
44885
|
+
# Response message for ExampleStoreService.UpsertExamples.
|
44886
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesResponse
|
44887
|
+
include Google::Apis::Core::Hashable
|
44888
|
+
|
44889
|
+
# A list of results for creating/updating. It's either a successfully created/
|
44890
|
+
# updated example or a status with an error message.
|
44891
|
+
# Corresponds to the JSON property `results`
|
44892
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponseUpsertResult>]
|
44893
|
+
attr_accessor :results
|
44894
|
+
|
44895
|
+
def initialize(**args)
|
44896
|
+
update!(**args)
|
44897
|
+
end
|
44898
|
+
|
44899
|
+
# Update properties of this object
|
44900
|
+
def update!(**args)
|
44901
|
+
@results = args[:results] if args.key?(:results)
|
44902
|
+
end
|
44903
|
+
end
|
44904
|
+
|
44905
|
+
# The result for creating/updating a single example.
|
44906
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesResponseUpsertResult
|
44907
|
+
include Google::Apis::Core::Hashable
|
44908
|
+
|
44909
|
+
# A single example to upload or read from the Example Store.
|
44910
|
+
# Corresponds to the JSON property `example`
|
44911
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example]
|
44912
|
+
attr_accessor :example
|
44913
|
+
|
44914
|
+
# The `Status` type defines a logical error model that is suitable for different
|
44915
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
44916
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
44917
|
+
# data: error code, error message, and error details. You can find out more
|
44918
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
44919
|
+
# //cloud.google.com/apis/design/errors).
|
44920
|
+
# Corresponds to the JSON property `status`
|
44921
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
44922
|
+
attr_accessor :status
|
44923
|
+
|
44924
|
+
def initialize(**args)
|
44925
|
+
update!(**args)
|
44926
|
+
end
|
44927
|
+
|
44928
|
+
# Update properties of this object
|
44929
|
+
def update!(**args)
|
44930
|
+
@example = args[:example] if args.key?(:example)
|
44931
|
+
@status = args[:status] if args.key?(:status)
|
44932
|
+
end
|
44933
|
+
end
|
44934
|
+
|
43386
44935
|
# References an API call. It contains more information about long running
|
43387
44936
|
# operation and Jobs that are triggered by the API call.
|
43388
44937
|
class GoogleCloudAiplatformV1beta1UserActionReference
|