google-apis-aiplatform_v1beta1 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +1901 -21
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +979 -3
- data/lib/google/apis/aiplatform_v1beta1/service.rb +1489 -92
- 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
|
@@ -1653,12 +1752,12 @@ module Google
|
|
1653
1752
|
# @return [String]
|
1654
1753
|
attr_accessor :autorater_model
|
1655
1754
|
|
1656
|
-
# Optional. Whether to flip the candidate and baseline
|
1657
|
-
# applicable to the pairwise metric. If enabled, also
|
1658
|
-
# candidate_response_field_name and
|
1659
|
-
# baseline_response_field_name. When rendering
|
1660
|
-
# metric_prompt_template, the candidate and baseline fields
|
1661
|
-
# half of the samples to reduce bias.
|
1755
|
+
# Optional. Default is true. Whether to flip the candidate and baseline
|
1756
|
+
# responses. This is only applicable to the pairwise metric. If enabled, also
|
1757
|
+
# provide PairwiseMetricSpec.candidate_response_field_name and
|
1758
|
+
# PairwiseMetricSpec.baseline_response_field_name. When rendering
|
1759
|
+
# PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields
|
1760
|
+
# will be flipped for half of the samples to reduce bias.
|
1662
1761
|
# Corresponds to the JSON property `flipEnabled`
|
1663
1762
|
# @return [Boolean]
|
1664
1763
|
attr_accessor :flip_enabled
|
@@ -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
|
@@ -7416,7 +7663,9 @@ module Google
|
|
7416
7663
|
class GoogleCloudAiplatformV1beta1DistillationSpec
|
7417
7664
|
include Google::Apis::Core::Hashable
|
7418
7665
|
|
7419
|
-
# The base teacher model that is being distilled
|
7666
|
+
# The base teacher model that is being distilled. See [Supported models](https://
|
7667
|
+
# cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#
|
7668
|
+
# supported_models).
|
7420
7669
|
# Corresponds to the JSON property `baseTeacherModel`
|
7421
7670
|
# @return [String]
|
7422
7671
|
attr_accessor :base_teacher_model
|
@@ -7557,8 +7806,10 @@ module Google
|
|
7557
7806
|
attr_accessor :create_time
|
7558
7807
|
|
7559
7808
|
# Output only. DNS of the dedicated endpoint. Will only be populated if
|
7560
|
-
# dedicated_endpoint_enabled is true.
|
7561
|
-
#
|
7809
|
+
# dedicated_endpoint_enabled is true. Depending on the features enabled, uid
|
7810
|
+
# might be a random number or a string. For example, if fast_tryout is enabled,
|
7811
|
+
# uid will be fasttryout. Format: `https://`endpoint_id`.`region`-`uid`.
|
7812
|
+
# prediction.vertexai.goog`.
|
7562
7813
|
# Corresponds to the JSON property `dedicatedEndpointDns`
|
7563
7814
|
# @return [String]
|
7564
7815
|
attr_accessor :dedicated_endpoint_dns
|
@@ -8077,6 +8328,11 @@ module Google
|
|
8077
8328
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInput]
|
8078
8329
|
attr_accessor :rouge_input
|
8079
8330
|
|
8331
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
8332
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingInput`
|
8333
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInput]
|
8334
|
+
attr_accessor :rubric_based_instruction_following_input
|
8335
|
+
|
8080
8336
|
# Input for safety metric.
|
8081
8337
|
# Corresponds to the JSON property `safetyInput`
|
8082
8338
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyInput]
|
@@ -8171,6 +8427,7 @@ module Google
|
|
8171
8427
|
@question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
|
8172
8428
|
@question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
|
8173
8429
|
@rouge_input = args[:rouge_input] if args.key?(:rouge_input)
|
8430
|
+
@rubric_based_instruction_following_input = args[:rubric_based_instruction_following_input] if args.key?(:rubric_based_instruction_following_input)
|
8174
8431
|
@safety_input = args[:safety_input] if args.key?(:safety_input)
|
8175
8432
|
@summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
|
8176
8433
|
@summarization_quality_input = args[:summarization_quality_input] if args.key?(:summarization_quality_input)
|
@@ -8279,6 +8536,11 @@ module Google
|
|
8279
8536
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeResults]
|
8280
8537
|
attr_accessor :rouge_results
|
8281
8538
|
|
8539
|
+
# Result for RubricBasedInstructionFollowing metric.
|
8540
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingResult`
|
8541
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingResult]
|
8542
|
+
attr_accessor :rubric_based_instruction_following_result
|
8543
|
+
|
8282
8544
|
# Spec for safety result.
|
8283
8545
|
# Corresponds to the JSON property `safetyResult`
|
8284
8546
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyResult]
|
@@ -8372,6 +8634,7 @@ module Google
|
|
8372
8634
|
@question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
|
8373
8635
|
@question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
|
8374
8636
|
@rouge_results = args[:rouge_results] if args.key?(:rouge_results)
|
8637
|
+
@rubric_based_instruction_following_result = args[:rubric_based_instruction_following_result] if args.key?(:rubric_based_instruction_following_result)
|
8375
8638
|
@safety_result = args[:safety_result] if args.key?(:safety_result)
|
8376
8639
|
@summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
|
8377
8640
|
@summarization_quality_result = args[:summarization_quality_result] if args.key?(:summarization_quality_result)
|
@@ -8568,6 +8831,129 @@ module Google
|
|
8568
8831
|
end
|
8569
8832
|
end
|
8570
8833
|
|
8834
|
+
# Actions are parts of events that are executed by the agent.
|
8835
|
+
class GoogleCloudAiplatformV1beta1EventActions
|
8836
|
+
include Google::Apis::Core::Hashable
|
8837
|
+
|
8838
|
+
# Optional. Indicates that the event is updating an artifact. key is the
|
8839
|
+
# filename, value is the version.
|
8840
|
+
# Corresponds to the JSON property `artifactDelta`
|
8841
|
+
# @return [Hash<String,Fixnum>]
|
8842
|
+
attr_accessor :artifact_delta
|
8843
|
+
|
8844
|
+
# Optional. The agent is escalating to a higher level agent.
|
8845
|
+
# Corresponds to the JSON property `escalate`
|
8846
|
+
# @return [Boolean]
|
8847
|
+
attr_accessor :escalate
|
8848
|
+
alias_method :escalate?, :escalate
|
8849
|
+
|
8850
|
+
# Optional. Will only be set by a tool response indicating tool request euc.
|
8851
|
+
# Struct key is the function call id since one function call response (from
|
8852
|
+
# model) could correspond to multiple function calls. Struct value is the
|
8853
|
+
# required auth config, which can be another struct.
|
8854
|
+
# Corresponds to the JSON property `requestedAuthConfigs`
|
8855
|
+
# @return [Hash<String,Object>]
|
8856
|
+
attr_accessor :requested_auth_configs
|
8857
|
+
|
8858
|
+
# Optional. If true, it won't call model to summarize function response. Only
|
8859
|
+
# used for function_response event.
|
8860
|
+
# Corresponds to the JSON property `skipSummarization`
|
8861
|
+
# @return [Boolean]
|
8862
|
+
attr_accessor :skip_summarization
|
8863
|
+
alias_method :skip_summarization?, :skip_summarization
|
8864
|
+
|
8865
|
+
# Optional. Indicates that the event is updating the state with the given delta.
|
8866
|
+
# Corresponds to the JSON property `stateDelta`
|
8867
|
+
# @return [Hash<String,Object>]
|
8868
|
+
attr_accessor :state_delta
|
8869
|
+
|
8870
|
+
# Optional. If set, the event transfers to the specified agent.
|
8871
|
+
# Corresponds to the JSON property `transferAgent`
|
8872
|
+
# @return [String]
|
8873
|
+
attr_accessor :transfer_agent
|
8874
|
+
|
8875
|
+
# Deprecated. If set, the event transfers to the specified agent.
|
8876
|
+
# Corresponds to the JSON property `transferToAgent`
|
8877
|
+
# @return [Boolean]
|
8878
|
+
attr_accessor :transfer_to_agent
|
8879
|
+
alias_method :transfer_to_agent?, :transfer_to_agent
|
8880
|
+
|
8881
|
+
def initialize(**args)
|
8882
|
+
update!(**args)
|
8883
|
+
end
|
8884
|
+
|
8885
|
+
# Update properties of this object
|
8886
|
+
def update!(**args)
|
8887
|
+
@artifact_delta = args[:artifact_delta] if args.key?(:artifact_delta)
|
8888
|
+
@escalate = args[:escalate] if args.key?(:escalate)
|
8889
|
+
@requested_auth_configs = args[:requested_auth_configs] if args.key?(:requested_auth_configs)
|
8890
|
+
@skip_summarization = args[:skip_summarization] if args.key?(:skip_summarization)
|
8891
|
+
@state_delta = args[:state_delta] if args.key?(:state_delta)
|
8892
|
+
@transfer_agent = args[:transfer_agent] if args.key?(:transfer_agent)
|
8893
|
+
@transfer_to_agent = args[:transfer_to_agent] if args.key?(:transfer_to_agent)
|
8894
|
+
end
|
8895
|
+
end
|
8896
|
+
|
8897
|
+
# Metadata relating to a LLM response event.
|
8898
|
+
class GoogleCloudAiplatformV1beta1EventMetadata
|
8899
|
+
include Google::Apis::Core::Hashable
|
8900
|
+
|
8901
|
+
# Optional. The branch of the event. The format is like agent_1.agent_2.agent_3,
|
8902
|
+
# where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3.
|
8903
|
+
# Branch is used when multiple child agents shouldn't see their siblings'
|
8904
|
+
# conversation history.
|
8905
|
+
# Corresponds to the JSON property `branch`
|
8906
|
+
# @return [String]
|
8907
|
+
attr_accessor :branch
|
8908
|
+
|
8909
|
+
# Metadata returned to client when grounding is enabled.
|
8910
|
+
# Corresponds to the JSON property `groundingMetadata`
|
8911
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingMetadata]
|
8912
|
+
attr_accessor :grounding_metadata
|
8913
|
+
|
8914
|
+
# Optional. Flag indicating that LLM was interrupted when generating the content.
|
8915
|
+
# Usually it's due to user interruption during a bidi streaming.
|
8916
|
+
# Corresponds to the JSON property `interrupted`
|
8917
|
+
# @return [Boolean]
|
8918
|
+
attr_accessor :interrupted
|
8919
|
+
alias_method :interrupted?, :interrupted
|
8920
|
+
|
8921
|
+
# Optional. Set of ids of the long running function calls. Agent client will
|
8922
|
+
# know from this field about which function call is long running. Only valid for
|
8923
|
+
# function call event.
|
8924
|
+
# Corresponds to the JSON property `longRunningToolIds`
|
8925
|
+
# @return [Array<String>]
|
8926
|
+
attr_accessor :long_running_tool_ids
|
8927
|
+
|
8928
|
+
# Optional. Indicates whether the text content is part of a unfinished text
|
8929
|
+
# stream. Only used for streaming mode and when the content is plain text.
|
8930
|
+
# Corresponds to the JSON property `partial`
|
8931
|
+
# @return [Boolean]
|
8932
|
+
attr_accessor :partial
|
8933
|
+
alias_method :partial?, :partial
|
8934
|
+
|
8935
|
+
# Optional. Indicates whether the response from the model is complete. Only used
|
8936
|
+
# for streaming mode.
|
8937
|
+
# Corresponds to the JSON property `turnComplete`
|
8938
|
+
# @return [Boolean]
|
8939
|
+
attr_accessor :turn_complete
|
8940
|
+
alias_method :turn_complete?, :turn_complete
|
8941
|
+
|
8942
|
+
def initialize(**args)
|
8943
|
+
update!(**args)
|
8944
|
+
end
|
8945
|
+
|
8946
|
+
# Update properties of this object
|
8947
|
+
def update!(**args)
|
8948
|
+
@branch = args[:branch] if args.key?(:branch)
|
8949
|
+
@grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
|
8950
|
+
@interrupted = args[:interrupted] if args.key?(:interrupted)
|
8951
|
+
@long_running_tool_ids = args[:long_running_tool_ids] if args.key?(:long_running_tool_ids)
|
8952
|
+
@partial = args[:partial] if args.key?(:partial)
|
8953
|
+
@turn_complete = args[:turn_complete] if args.key?(:turn_complete)
|
8954
|
+
end
|
8955
|
+
end
|
8956
|
+
|
8571
8957
|
# Input for exact match metric.
|
8572
8958
|
class GoogleCloudAiplatformV1beta1ExactMatchInput
|
8573
8959
|
include Google::Apis::Core::Hashable
|
@@ -8671,6 +9057,115 @@ module Google
|
|
8671
9057
|
end
|
8672
9058
|
end
|
8673
9059
|
|
9060
|
+
# A single example to upload or read from the Example Store.
|
9061
|
+
class GoogleCloudAiplatformV1beta1Example
|
9062
|
+
include Google::Apis::Core::Hashable
|
9063
|
+
|
9064
|
+
# Output only. Timestamp when this Example was created.
|
9065
|
+
# Corresponds to the JSON property `createTime`
|
9066
|
+
# @return [String]
|
9067
|
+
attr_accessor :create_time
|
9068
|
+
|
9069
|
+
# Optional. The display name for Example.
|
9070
|
+
# Corresponds to the JSON property `displayName`
|
9071
|
+
# @return [String]
|
9072
|
+
attr_accessor :display_name
|
9073
|
+
|
9074
|
+
# Optional. Immutable. Unique identifier of an example. If not specified when
|
9075
|
+
# upserting new examples, the example_id will be generated.
|
9076
|
+
# Corresponds to the JSON property `exampleId`
|
9077
|
+
# @return [String]
|
9078
|
+
attr_accessor :example_id
|
9079
|
+
|
9080
|
+
# A ContentsExample to be used with GenerateContent alongside information
|
9081
|
+
# required for storage and retrieval with Example Store.
|
9082
|
+
# Corresponds to the JSON property `storedContentsExample`
|
9083
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExample]
|
9084
|
+
attr_accessor :stored_contents_example
|
9085
|
+
|
9086
|
+
def initialize(**args)
|
9087
|
+
update!(**args)
|
9088
|
+
end
|
9089
|
+
|
9090
|
+
# Update properties of this object
|
9091
|
+
def update!(**args)
|
9092
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9093
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
9094
|
+
@example_id = args[:example_id] if args.key?(:example_id)
|
9095
|
+
@stored_contents_example = args[:stored_contents_example] if args.key?(:stored_contents_example)
|
9096
|
+
end
|
9097
|
+
end
|
9098
|
+
|
9099
|
+
# Represents an executable service to manage and retrieve examples.
|
9100
|
+
class GoogleCloudAiplatformV1beta1ExampleStore
|
9101
|
+
include Google::Apis::Core::Hashable
|
9102
|
+
|
9103
|
+
# Output only. Timestamp when this ExampleStore was created.
|
9104
|
+
# Corresponds to the JSON property `createTime`
|
9105
|
+
# @return [String]
|
9106
|
+
attr_accessor :create_time
|
9107
|
+
|
9108
|
+
# Optional. Description of the ExampleStore.
|
9109
|
+
# Corresponds to the JSON property `description`
|
9110
|
+
# @return [String]
|
9111
|
+
attr_accessor :description
|
9112
|
+
|
9113
|
+
# Required. Display name of the ExampleStore.
|
9114
|
+
# Corresponds to the JSON property `displayName`
|
9115
|
+
# @return [String]
|
9116
|
+
attr_accessor :display_name
|
9117
|
+
|
9118
|
+
# Configuration for the Example Store.
|
9119
|
+
# Corresponds to the JSON property `exampleStoreConfig`
|
9120
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStoreConfig]
|
9121
|
+
attr_accessor :example_store_config
|
9122
|
+
|
9123
|
+
# Identifier. The resource name of the ExampleStore. This is a unique identifier.
|
9124
|
+
# Format: projects/`project`/locations/`location`/exampleStores/`example_store`
|
9125
|
+
# Corresponds to the JSON property `name`
|
9126
|
+
# @return [String]
|
9127
|
+
attr_accessor :name
|
9128
|
+
|
9129
|
+
# Output only. Timestamp when this ExampleStore was most recently updated.
|
9130
|
+
# Corresponds to the JSON property `updateTime`
|
9131
|
+
# @return [String]
|
9132
|
+
attr_accessor :update_time
|
9133
|
+
|
9134
|
+
def initialize(**args)
|
9135
|
+
update!(**args)
|
9136
|
+
end
|
9137
|
+
|
9138
|
+
# Update properties of this object
|
9139
|
+
def update!(**args)
|
9140
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9141
|
+
@description = args[:description] if args.key?(:description)
|
9142
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
9143
|
+
@example_store_config = args[:example_store_config] if args.key?(:example_store_config)
|
9144
|
+
@name = args[:name] if args.key?(:name)
|
9145
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
9146
|
+
end
|
9147
|
+
end
|
9148
|
+
|
9149
|
+
# Configuration for the Example Store.
|
9150
|
+
class GoogleCloudAiplatformV1beta1ExampleStoreConfig
|
9151
|
+
include Google::Apis::Core::Hashable
|
9152
|
+
|
9153
|
+
# Required. The embedding model to be used for vector embedding. Immutable.
|
9154
|
+
# Supported models: * "text-embedding-005" * "text-multilingual-embedding-002"
|
9155
|
+
# Corresponds to the JSON property `vertexEmbeddingModel`
|
9156
|
+
# @return [String]
|
9157
|
+
attr_accessor :vertex_embedding_model
|
9158
|
+
|
9159
|
+
def initialize(**args)
|
9160
|
+
update!(**args)
|
9161
|
+
end
|
9162
|
+
|
9163
|
+
# Update properties of this object
|
9164
|
+
def update!(**args)
|
9165
|
+
@vertex_embedding_model = args[:vertex_embedding_model] if args.key?(:vertex_embedding_model)
|
9166
|
+
end
|
9167
|
+
end
|
9168
|
+
|
8674
9169
|
# Example-based explainability that returns the nearest neighbors from the
|
8675
9170
|
# provided dataset.
|
8676
9171
|
class GoogleCloudAiplatformV1beta1Examples
|
@@ -8718,6 +9213,32 @@ module Google
|
|
8718
9213
|
end
|
8719
9214
|
end
|
8720
9215
|
|
9216
|
+
# Filters for examples' array metadata fields. An array field is example
|
9217
|
+
# metadata where multiple values are attributed to a single example.
|
9218
|
+
class GoogleCloudAiplatformV1beta1ExamplesArrayFilter
|
9219
|
+
include Google::Apis::Core::Hashable
|
9220
|
+
|
9221
|
+
# Required. The operator logic to use for filtering.
|
9222
|
+
# Corresponds to the JSON property `arrayOperator`
|
9223
|
+
# @return [String]
|
9224
|
+
attr_accessor :array_operator
|
9225
|
+
|
9226
|
+
# Required. The values by which to filter examples.
|
9227
|
+
# Corresponds to the JSON property `values`
|
9228
|
+
# @return [Array<String>]
|
9229
|
+
attr_accessor :values
|
9230
|
+
|
9231
|
+
def initialize(**args)
|
9232
|
+
update!(**args)
|
9233
|
+
end
|
9234
|
+
|
9235
|
+
# Update properties of this object
|
9236
|
+
def update!(**args)
|
9237
|
+
@array_operator = args[:array_operator] if args.key?(:array_operator)
|
9238
|
+
@values = args[:values] if args.key?(:values)
|
9239
|
+
end
|
9240
|
+
end
|
9241
|
+
|
8721
9242
|
# The Cloud Storage input instances.
|
8722
9243
|
class GoogleCloudAiplatformV1beta1ExamplesExampleGcsSource
|
8723
9244
|
include Google::Apis::Core::Hashable
|
@@ -10060,6 +10581,25 @@ module Google
|
|
10060
10581
|
end
|
10061
10582
|
end
|
10062
10583
|
|
10584
|
+
# Request message for ModelGardenService.ExportPublisherModel.
|
10585
|
+
class GoogleCloudAiplatformV1beta1ExportPublisherModelRequest
|
10586
|
+
include Google::Apis::Core::Hashable
|
10587
|
+
|
10588
|
+
# The Google Cloud Storage location where the output is to be written to.
|
10589
|
+
# Corresponds to the JSON property `destination`
|
10590
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsDestination]
|
10591
|
+
attr_accessor :destination
|
10592
|
+
|
10593
|
+
def initialize(**args)
|
10594
|
+
update!(**args)
|
10595
|
+
end
|
10596
|
+
|
10597
|
+
# Update properties of this object
|
10598
|
+
def update!(**args)
|
10599
|
+
@destination = args[:destination] if args.key?(:destination)
|
10600
|
+
end
|
10601
|
+
end
|
10602
|
+
|
10063
10603
|
# Response message for ModelGardenService.ExportPublisherModel.
|
10064
10604
|
class GoogleCloudAiplatformV1beta1ExportPublisherModelResponse
|
10065
10605
|
include Google::Apis::Core::Hashable
|
@@ -10377,6 +10917,12 @@ module Google
|
|
10377
10917
|
class GoogleCloudAiplatformV1beta1Fact
|
10378
10918
|
include Google::Apis::Core::Hashable
|
10379
10919
|
|
10920
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
10921
|
+
# metadata.
|
10922
|
+
# Corresponds to the JSON property `chunk`
|
10923
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagChunk]
|
10924
|
+
attr_accessor :chunk
|
10925
|
+
|
10380
10926
|
# Query that is used to retrieve this fact.
|
10381
10927
|
# Corresponds to the JSON property `query`
|
10382
10928
|
# @return [String]
|
@@ -10419,6 +10965,7 @@ module Google
|
|
10419
10965
|
|
10420
10966
|
# Update properties of this object
|
10421
10967
|
def update!(**args)
|
10968
|
+
@chunk = args[:chunk] if args.key?(:chunk)
|
10422
10969
|
@query = args[:query] if args.key?(:query)
|
10423
10970
|
@score = args[:score] if args.key?(:score)
|
10424
10971
|
@summary = args[:summary] if args.key?(:summary)
|
@@ -11811,6 +12358,159 @@ module Google
|
|
11811
12358
|
end
|
11812
12359
|
end
|
11813
12360
|
|
12361
|
+
# Request message for FeatureOnlineStoreService.FeatureViewDirectWrite.
|
12362
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest
|
12363
|
+
include Google::Apis::Core::Hashable
|
12364
|
+
|
12365
|
+
# Required. The data keys and associated feature values.
|
12366
|
+
# Corresponds to the JSON property `dataKeyAndFeatureValues`
|
12367
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValues>]
|
12368
|
+
attr_accessor :data_key_and_feature_values
|
12369
|
+
|
12370
|
+
def initialize(**args)
|
12371
|
+
update!(**args)
|
12372
|
+
end
|
12373
|
+
|
12374
|
+
# Update properties of this object
|
12375
|
+
def update!(**args)
|
12376
|
+
@data_key_and_feature_values = args[:data_key_and_feature_values] if args.key?(:data_key_and_feature_values)
|
12377
|
+
end
|
12378
|
+
end
|
12379
|
+
|
12380
|
+
# A data key and associated feature values to write to the feature view.
|
12381
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValues
|
12382
|
+
include Google::Apis::Core::Hashable
|
12383
|
+
|
12384
|
+
# Lookup key for a feature view.
|
12385
|
+
# Corresponds to the JSON property `dataKey`
|
12386
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDataKey]
|
12387
|
+
attr_accessor :data_key
|
12388
|
+
|
12389
|
+
# List of features to write.
|
12390
|
+
# Corresponds to the JSON property `features`
|
12391
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature>]
|
12392
|
+
attr_accessor :features
|
12393
|
+
|
12394
|
+
def initialize(**args)
|
12395
|
+
update!(**args)
|
12396
|
+
end
|
12397
|
+
|
12398
|
+
# Update properties of this object
|
12399
|
+
def update!(**args)
|
12400
|
+
@data_key = args[:data_key] if args.key?(:data_key)
|
12401
|
+
@features = args[:features] if args.key?(:features)
|
12402
|
+
end
|
12403
|
+
end
|
12404
|
+
|
12405
|
+
# Feature name & value pair.
|
12406
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature
|
12407
|
+
include Google::Apis::Core::Hashable
|
12408
|
+
|
12409
|
+
# Feature short name.
|
12410
|
+
# Corresponds to the JSON property `name`
|
12411
|
+
# @return [String]
|
12412
|
+
attr_accessor :name
|
12413
|
+
|
12414
|
+
# Feature value and timestamp.
|
12415
|
+
# Corresponds to the JSON property `valueAndTimestamp`
|
12416
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeatureFeatureValueAndTimestamp]
|
12417
|
+
attr_accessor :value_and_timestamp
|
12418
|
+
|
12419
|
+
def initialize(**args)
|
12420
|
+
update!(**args)
|
12421
|
+
end
|
12422
|
+
|
12423
|
+
# Update properties of this object
|
12424
|
+
def update!(**args)
|
12425
|
+
@name = args[:name] if args.key?(:name)
|
12426
|
+
@value_and_timestamp = args[:value_and_timestamp] if args.key?(:value_and_timestamp)
|
12427
|
+
end
|
12428
|
+
end
|
12429
|
+
|
12430
|
+
# Feature value and timestamp.
|
12431
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeatureFeatureValueAndTimestamp
|
12432
|
+
include Google::Apis::Core::Hashable
|
12433
|
+
|
12434
|
+
# The feature timestamp to store with this value. If not set, then the Feature
|
12435
|
+
# Store server will generate a timestamp when it receives the write request.
|
12436
|
+
# Corresponds to the JSON property `timestamp`
|
12437
|
+
# @return [String]
|
12438
|
+
attr_accessor :timestamp
|
12439
|
+
|
12440
|
+
# Value for a feature.
|
12441
|
+
# Corresponds to the JSON property `value`
|
12442
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureValue]
|
12443
|
+
attr_accessor :value
|
12444
|
+
|
12445
|
+
def initialize(**args)
|
12446
|
+
update!(**args)
|
12447
|
+
end
|
12448
|
+
|
12449
|
+
# Update properties of this object
|
12450
|
+
def update!(**args)
|
12451
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
12452
|
+
@value = args[:value] if args.key?(:value)
|
12453
|
+
end
|
12454
|
+
end
|
12455
|
+
|
12456
|
+
# Response message for FeatureOnlineStoreService.FeatureViewDirectWrite.
|
12457
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse
|
12458
|
+
include Google::Apis::Core::Hashable
|
12459
|
+
|
12460
|
+
# The `Status` type defines a logical error model that is suitable for different
|
12461
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
12462
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
12463
|
+
# data: error code, error message, and error details. You can find out more
|
12464
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
12465
|
+
# //cloud.google.com/apis/design/errors).
|
12466
|
+
# Corresponds to the JSON property `status`
|
12467
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
12468
|
+
attr_accessor :status
|
12469
|
+
|
12470
|
+
# Details about write for each key. If status is not OK, WriteResponse.data_key
|
12471
|
+
# will have the key with error, but WriteResponse.online_store_write_time will
|
12472
|
+
# not be present.
|
12473
|
+
# Corresponds to the JSON property `writeResponses`
|
12474
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponseWriteResponse>]
|
12475
|
+
attr_accessor :write_responses
|
12476
|
+
|
12477
|
+
def initialize(**args)
|
12478
|
+
update!(**args)
|
12479
|
+
end
|
12480
|
+
|
12481
|
+
# Update properties of this object
|
12482
|
+
def update!(**args)
|
12483
|
+
@status = args[:status] if args.key?(:status)
|
12484
|
+
@write_responses = args[:write_responses] if args.key?(:write_responses)
|
12485
|
+
end
|
12486
|
+
end
|
12487
|
+
|
12488
|
+
# Details about the write for each key.
|
12489
|
+
class GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponseWriteResponse
|
12490
|
+
include Google::Apis::Core::Hashable
|
12491
|
+
|
12492
|
+
# Lookup key for a feature view.
|
12493
|
+
# Corresponds to the JSON property `dataKey`
|
12494
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDataKey]
|
12495
|
+
attr_accessor :data_key
|
12496
|
+
|
12497
|
+
# When the feature values were written to the online store. If
|
12498
|
+
# FeatureViewDirectWriteResponse.status is not OK, this field is not populated.
|
12499
|
+
# Corresponds to the JSON property `onlineStoreWriteTime`
|
12500
|
+
# @return [String]
|
12501
|
+
attr_accessor :online_store_write_time
|
12502
|
+
|
12503
|
+
def initialize(**args)
|
12504
|
+
update!(**args)
|
12505
|
+
end
|
12506
|
+
|
12507
|
+
# Update properties of this object
|
12508
|
+
def update!(**args)
|
12509
|
+
@data_key = args[:data_key] if args.key?(:data_key)
|
12510
|
+
@online_store_write_time = args[:online_store_write_time] if args.key?(:online_store_write_time)
|
12511
|
+
end
|
12512
|
+
end
|
12513
|
+
|
11814
12514
|
# A Feature Registry source for features that need to be synced to Online Store.
|
11815
12515
|
class GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource
|
11816
12516
|
include Google::Apis::Core::Hashable
|
@@ -12556,6 +13256,74 @@ module Google
|
|
12556
13256
|
end
|
12557
13257
|
end
|
12558
13258
|
|
13259
|
+
# Request message for ExampleStoreService.FetchExamples.
|
13260
|
+
class GoogleCloudAiplatformV1beta1FetchExamplesRequest
|
13261
|
+
include Google::Apis::Core::Hashable
|
13262
|
+
|
13263
|
+
# Optional. Example IDs to fetch. If both metadata filters and Example IDs are
|
13264
|
+
# specified, then both ID and metadata filtering will be applied.
|
13265
|
+
# Corresponds to the JSON property `exampleIds`
|
13266
|
+
# @return [Array<String>]
|
13267
|
+
attr_accessor :example_ids
|
13268
|
+
|
13269
|
+
# Optional. The maximum number of examples to return. The service may return
|
13270
|
+
# fewer than this value. If unspecified, at most 100 examples will be returned.
|
13271
|
+
# Corresponds to the JSON property `pageSize`
|
13272
|
+
# @return [Fixnum]
|
13273
|
+
attr_accessor :page_size
|
13274
|
+
|
13275
|
+
# Optional. The next_page_token value returned from a previous list
|
13276
|
+
# ExampleStoreService.FetchExamplesResponse call.
|
13277
|
+
# Corresponds to the JSON property `pageToken`
|
13278
|
+
# @return [String]
|
13279
|
+
attr_accessor :page_token
|
13280
|
+
|
13281
|
+
# The metadata filters that will be used to remove or fetch
|
13282
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
13283
|
+
# field will be applied.
|
13284
|
+
# Corresponds to the JSON property `storedContentsExampleFilter`
|
13285
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleFilter]
|
13286
|
+
attr_accessor :stored_contents_example_filter
|
13287
|
+
|
13288
|
+
def initialize(**args)
|
13289
|
+
update!(**args)
|
13290
|
+
end
|
13291
|
+
|
13292
|
+
# Update properties of this object
|
13293
|
+
def update!(**args)
|
13294
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
13295
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
13296
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
13297
|
+
@stored_contents_example_filter = args[:stored_contents_example_filter] if args.key?(:stored_contents_example_filter)
|
13298
|
+
end
|
13299
|
+
end
|
13300
|
+
|
13301
|
+
# Response message for ExampleStoreService.FetchExamples.
|
13302
|
+
class GoogleCloudAiplatformV1beta1FetchExamplesResponse
|
13303
|
+
include Google::Apis::Core::Hashable
|
13304
|
+
|
13305
|
+
# The examples in the Example Store that satisfy the metadata filters.
|
13306
|
+
# Corresponds to the JSON property `examples`
|
13307
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example>]
|
13308
|
+
attr_accessor :examples
|
13309
|
+
|
13310
|
+
# A token, which can be sent as FetchExamplesRequest.page_token to retrieve the
|
13311
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
13312
|
+
# Corresponds to the JSON property `nextPageToken`
|
13313
|
+
# @return [String]
|
13314
|
+
attr_accessor :next_page_token
|
13315
|
+
|
13316
|
+
def initialize(**args)
|
13317
|
+
update!(**args)
|
13318
|
+
end
|
13319
|
+
|
13320
|
+
# Update properties of this object
|
13321
|
+
def update!(**args)
|
13322
|
+
@examples = args[:examples] if args.key?(:examples)
|
13323
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
13324
|
+
end
|
13325
|
+
end
|
13326
|
+
|
12559
13327
|
# Request message for FeatureOnlineStoreService.FetchFeatureValues. All the
|
12560
13328
|
# features under the requested feature view will be returned.
|
12561
13329
|
class GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest
|
@@ -13233,8 +14001,8 @@ module Google
|
|
13233
14001
|
class GoogleCloudAiplatformV1beta1FunctionCall
|
13234
14002
|
include Google::Apis::Core::Hashable
|
13235
14003
|
|
13236
|
-
# Optional.
|
13237
|
-
#
|
14004
|
+
# Optional. The function parameters and values in JSON object format. See [
|
14005
|
+
# FunctionDeclaration.parameters] for parameter details.
|
13238
14006
|
# Corresponds to the JSON property `args`
|
13239
14007
|
# @return [Hash<String,Object>]
|
13240
14008
|
attr_accessor :args
|
@@ -13403,7 +14171,7 @@ module Google
|
|
13403
14171
|
|
13404
14172
|
# Required. Google Cloud Storage URI(-s) to the input file(s). May contain
|
13405
14173
|
# wildcards. For more information on wildcards, see https://cloud.google.com/
|
13406
|
-
# storage/docs/
|
14174
|
+
# storage/docs/wildcards.
|
13407
14175
|
# Corresponds to the JSON property `uris`
|
13408
14176
|
# @return [Array<String>]
|
13409
14177
|
attr_accessor :uris
|
@@ -13849,6 +14617,12 @@ module Google
|
|
13849
14617
|
# @return [Fixnum]
|
13850
14618
|
attr_accessor :total_token_count
|
13851
14619
|
|
14620
|
+
# Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
|
14621
|
+
# or Provisioned Throughput quota.
|
14622
|
+
# Corresponds to the JSON property `trafficType`
|
14623
|
+
# @return [String]
|
14624
|
+
attr_accessor :traffic_type
|
14625
|
+
|
13852
14626
|
def initialize(**args)
|
13853
14627
|
update!(**args)
|
13854
14628
|
end
|
@@ -13865,6 +14639,7 @@ module Google
|
|
13865
14639
|
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
|
13866
14640
|
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
|
13867
14641
|
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
14642
|
+
@traffic_type = args[:traffic_type] if args.key?(:traffic_type)
|
13868
14643
|
end
|
13869
14644
|
end
|
13870
14645
|
|
@@ -13972,6 +14747,11 @@ module Google
|
|
13972
14747
|
# @return [String]
|
13973
14748
|
attr_accessor :media_resolution
|
13974
14749
|
|
14750
|
+
# Config for model selection.
|
14751
|
+
# Corresponds to the JSON property `modelConfig`
|
14752
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig]
|
14753
|
+
attr_accessor :model_config
|
14754
|
+
|
13975
14755
|
# Optional. Positive penalties.
|
13976
14756
|
# Corresponds to the JSON property `presencePenalty`
|
13977
14757
|
# @return [Float]
|
@@ -14029,6 +14809,11 @@ module Google
|
|
14029
14809
|
# @return [Float]
|
14030
14810
|
attr_accessor :temperature
|
14031
14811
|
|
14812
|
+
# Config for thinking features.
|
14813
|
+
# Corresponds to the JSON property `thinkingConfig`
|
14814
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
|
14815
|
+
attr_accessor :thinking_config
|
14816
|
+
|
14032
14817
|
# Optional. If specified, top-k sampling will be used.
|
14033
14818
|
# Corresponds to the JSON property `topK`
|
14034
14819
|
# @return [Float]
|
@@ -14051,6 +14836,7 @@ module Google
|
|
14051
14836
|
@logprobs = args[:logprobs] if args.key?(:logprobs)
|
14052
14837
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
14053
14838
|
@media_resolution = args[:media_resolution] if args.key?(:media_resolution)
|
14839
|
+
@model_config = args[:model_config] if args.key?(:model_config)
|
14054
14840
|
@presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
|
14055
14841
|
@response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
|
14056
14842
|
@response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
|
@@ -14061,11 +14847,31 @@ module Google
|
|
14061
14847
|
@speech_config = args[:speech_config] if args.key?(:speech_config)
|
14062
14848
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
14063
14849
|
@temperature = args[:temperature] if args.key?(:temperature)
|
14850
|
+
@thinking_config = args[:thinking_config] if args.key?(:thinking_config)
|
14064
14851
|
@top_k = args[:top_k] if args.key?(:top_k)
|
14065
14852
|
@top_p = args[:top_p] if args.key?(:top_p)
|
14066
14853
|
end
|
14067
14854
|
end
|
14068
14855
|
|
14856
|
+
# Config for model selection.
|
14857
|
+
class GoogleCloudAiplatformV1beta1GenerationConfigModelConfig
|
14858
|
+
include Google::Apis::Core::Hashable
|
14859
|
+
|
14860
|
+
# Required. Feature selection preference.
|
14861
|
+
# Corresponds to the JSON property `featureSelectionPreference`
|
14862
|
+
# @return [String]
|
14863
|
+
attr_accessor :feature_selection_preference
|
14864
|
+
|
14865
|
+
def initialize(**args)
|
14866
|
+
update!(**args)
|
14867
|
+
end
|
14868
|
+
|
14869
|
+
# Update properties of this object
|
14870
|
+
def update!(**args)
|
14871
|
+
@feature_selection_preference = args[:feature_selection_preference] if args.key?(:feature_selection_preference)
|
14872
|
+
end
|
14873
|
+
end
|
14874
|
+
|
14069
14875
|
# The configuration for routing the request to a specific model.
|
14070
14876
|
class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig
|
14071
14877
|
include Google::Apis::Core::Hashable
|
@@ -14116,8 +14922,9 @@ module Google
|
|
14116
14922
|
class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode
|
14117
14923
|
include Google::Apis::Core::Hashable
|
14118
14924
|
|
14119
|
-
# The model name to use. Only the public LLM models are accepted.
|
14120
|
-
#
|
14925
|
+
# The model name to use. Only the public LLM models are accepted. See [Supported
|
14926
|
+
# models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/
|
14927
|
+
# inference#supported-models).
|
14121
14928
|
# Corresponds to the JSON property `modelName`
|
14122
14929
|
# @return [String]
|
14123
14930
|
attr_accessor :model_name
|
@@ -14132,6 +14939,26 @@ module Google
|
|
14132
14939
|
end
|
14133
14940
|
end
|
14134
14941
|
|
14942
|
+
# Config for thinking features.
|
14943
|
+
class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
|
14944
|
+
include Google::Apis::Core::Hashable
|
14945
|
+
|
14946
|
+
# Optional. Indicates the thinking budget in tokens. This is only applied when
|
14947
|
+
# enable_thinking is true.
|
14948
|
+
# Corresponds to the JSON property `thinkingBudget`
|
14949
|
+
# @return [Fixnum]
|
14950
|
+
attr_accessor :thinking_budget
|
14951
|
+
|
14952
|
+
def initialize(**args)
|
14953
|
+
update!(**args)
|
14954
|
+
end
|
14955
|
+
|
14956
|
+
# Update properties of this object
|
14957
|
+
def update!(**args)
|
14958
|
+
@thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
|
14959
|
+
end
|
14960
|
+
end
|
14961
|
+
|
14135
14962
|
# Generic Metadata shared by all operations.
|
14136
14963
|
class GoogleCloudAiplatformV1beta1GenericOperationMetadata
|
14137
14964
|
include Google::Apis::Core::Hashable
|
@@ -14379,6 +15206,12 @@ module Google
|
|
14379
15206
|
class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
|
14380
15207
|
include Google::Apis::Core::Hashable
|
14381
15208
|
|
15209
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
15210
|
+
# metadata.
|
15211
|
+
# Corresponds to the JSON property `ragChunk`
|
15212
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagChunk]
|
15213
|
+
attr_accessor :rag_chunk
|
15214
|
+
|
14382
15215
|
# Text of the attribution.
|
14383
15216
|
# Corresponds to the JSON property `text`
|
14384
15217
|
# @return [String]
|
@@ -14400,6 +15233,7 @@ module Google
|
|
14400
15233
|
|
14401
15234
|
# Update properties of this object
|
14402
15235
|
def update!(**args)
|
15236
|
+
@rag_chunk = args[:rag_chunk] if args.key?(:rag_chunk)
|
14403
15237
|
@text = args[:text] if args.key?(:text)
|
14404
15238
|
@title = args[:title] if args.key?(:title)
|
14405
15239
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -15050,6 +15884,15 @@ module Google
|
|
15050
15884
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
|
15051
15885
|
attr_accessor :gcs_source
|
15052
15886
|
|
15887
|
+
# Optional. The max number of queries per minute that the indexing pipeline job
|
15888
|
+
# is allowed to make to the embedding model specified in the project. Please
|
15889
|
+
# follow the quota usage guideline of the embedding model you use to set the
|
15890
|
+
# value properly.If this value is not specified, max_embedding_requests_per_min
|
15891
|
+
# will be used by indexing pipeline job as the global limit.
|
15892
|
+
# Corresponds to the JSON property `globalMaxEmbeddingRequestsPerMin`
|
15893
|
+
# @return [Fixnum]
|
15894
|
+
attr_accessor :global_max_embedding_requests_per_min
|
15895
|
+
|
15053
15896
|
# The Google Drive location for the input content.
|
15054
15897
|
# Corresponds to the JSON property `googleDriveSource`
|
15055
15898
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
|
@@ -15121,6 +15964,7 @@ module Google
|
|
15121
15964
|
# Update properties of this object
|
15122
15965
|
def update!(**args)
|
15123
15966
|
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
15967
|
+
@global_max_embedding_requests_per_min = args[:global_max_embedding_requests_per_min] if args.key?(:global_max_embedding_requests_per_min)
|
15124
15968
|
@google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
|
15125
15969
|
@import_result_bigquery_sink = args[:import_result_bigquery_sink] if args.key?(:import_result_bigquery_sink)
|
15126
15970
|
@import_result_gcs_sink = args[:import_result_gcs_sink] if args.key?(:import_result_gcs_sink)
|
@@ -16345,6 +17189,58 @@ module Google
|
|
16345
17189
|
end
|
16346
17190
|
end
|
16347
17191
|
|
17192
|
+
# Response message for SessionService.ListEvents.
|
17193
|
+
class GoogleCloudAiplatformV1beta1ListEventsResponse
|
17194
|
+
include Google::Apis::Core::Hashable
|
17195
|
+
|
17196
|
+
# A token, which can be sent as ListEventsRequest.page_token to retrieve the
|
17197
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
17198
|
+
# Corresponds to the JSON property `nextPageToken`
|
17199
|
+
# @return [String]
|
17200
|
+
attr_accessor :next_page_token
|
17201
|
+
|
17202
|
+
# A list of events matching the request.
|
17203
|
+
# Corresponds to the JSON property `sessionEvents`
|
17204
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent>]
|
17205
|
+
attr_accessor :session_events
|
17206
|
+
|
17207
|
+
def initialize(**args)
|
17208
|
+
update!(**args)
|
17209
|
+
end
|
17210
|
+
|
17211
|
+
# Update properties of this object
|
17212
|
+
def update!(**args)
|
17213
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
17214
|
+
@session_events = args[:session_events] if args.key?(:session_events)
|
17215
|
+
end
|
17216
|
+
end
|
17217
|
+
|
17218
|
+
# Response message for ExampleStoreService.ListExampleStores.
|
17219
|
+
class GoogleCloudAiplatformV1beta1ListExampleStoresResponse
|
17220
|
+
include Google::Apis::Core::Hashable
|
17221
|
+
|
17222
|
+
# List of ExampleStore in the requested page.
|
17223
|
+
# Corresponds to the JSON property `exampleStores`
|
17224
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore>]
|
17225
|
+
attr_accessor :example_stores
|
17226
|
+
|
17227
|
+
# A token to retrieve the next page of results. Pass to ListExampleStoresRequest.
|
17228
|
+
# page_token to obtain that page.
|
17229
|
+
# Corresponds to the JSON property `nextPageToken`
|
17230
|
+
# @return [String]
|
17231
|
+
attr_accessor :next_page_token
|
17232
|
+
|
17233
|
+
def initialize(**args)
|
17234
|
+
update!(**args)
|
17235
|
+
end
|
17236
|
+
|
17237
|
+
# Update properties of this object
|
17238
|
+
def update!(**args)
|
17239
|
+
@example_stores = args[:example_stores] if args.key?(:example_stores)
|
17240
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
17241
|
+
end
|
17242
|
+
end
|
17243
|
+
|
16348
17244
|
# Response message for MetadataService.ListExecutions.
|
16349
17245
|
class GoogleCloudAiplatformV1beta1ListExecutionsResponse
|
16350
17246
|
include Google::Apis::Core::Hashable
|
@@ -17322,6 +18218,32 @@ module Google
|
|
17322
18218
|
end
|
17323
18219
|
end
|
17324
18220
|
|
18221
|
+
# Response message for SessionService.ListSessions.
|
18222
|
+
class GoogleCloudAiplatformV1beta1ListSessionsResponse
|
18223
|
+
include Google::Apis::Core::Hashable
|
18224
|
+
|
18225
|
+
# A token, which can be sent as ListSessionsRequest.page_token to retrieve the
|
18226
|
+
# next page. Absence of this field indicates there are no subsequent pages.
|
18227
|
+
# Corresponds to the JSON property `nextPageToken`
|
18228
|
+
# @return [String]
|
18229
|
+
attr_accessor :next_page_token
|
18230
|
+
|
18231
|
+
# A list of sessions matching the request.
|
18232
|
+
# Corresponds to the JSON property `sessions`
|
18233
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session>]
|
18234
|
+
attr_accessor :sessions
|
18235
|
+
|
18236
|
+
def initialize(**args)
|
18237
|
+
update!(**args)
|
18238
|
+
end
|
18239
|
+
|
18240
|
+
# Update properties of this object
|
18241
|
+
def update!(**args)
|
18242
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
18243
|
+
@sessions = args[:sessions] if args.key?(:sessions)
|
18244
|
+
end
|
18245
|
+
end
|
18246
|
+
|
17325
18247
|
# Response message for SpecialistPoolService.ListSpecialistPools.
|
17326
18248
|
class GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse
|
17327
18249
|
include Google::Apis::Core::Hashable
|
@@ -20395,8 +21317,7 @@ module Google
|
|
20395
21317
|
attr_accessor :format
|
20396
21318
|
|
20397
21319
|
# Google Cloud Storage URI to the input file(s). May contain wildcards. For more
|
20398
|
-
# information on wildcards, see https://cloud.google.com/storage/docs/
|
20399
|
-
# addlhelp/WildcardNames.
|
21320
|
+
# information on wildcards, see https://cloud.google.com/storage/docs/wildcards.
|
20400
21321
|
# Corresponds to the JSON property `gcsUri`
|
20401
21322
|
# @return [String]
|
20402
21323
|
attr_accessor :gcs_uri
|
@@ -22883,6 +23804,42 @@ module Google
|
|
22883
23804
|
end
|
22884
23805
|
end
|
22885
23806
|
|
23807
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
23808
|
+
class GoogleCloudAiplatformV1beta1NotebookReservationAffinity
|
23809
|
+
include Google::Apis::Core::Hashable
|
23810
|
+
|
23811
|
+
# Required. Specifies the type of reservation from which this instance can
|
23812
|
+
# consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
|
23813
|
+
# RESERVATION_NONE. See Consuming reserved instances for examples.
|
23814
|
+
# Corresponds to the JSON property `consumeReservationType`
|
23815
|
+
# @return [String]
|
23816
|
+
attr_accessor :consume_reservation_type
|
23817
|
+
|
23818
|
+
# Optional. Corresponds to the label key of a reservation resource. To target a
|
23819
|
+
# RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
|
23820
|
+
# the key and specify the name of your reservation as its value.
|
23821
|
+
# Corresponds to the JSON property `key`
|
23822
|
+
# @return [String]
|
23823
|
+
attr_accessor :key
|
23824
|
+
|
23825
|
+
# Optional. Corresponds to the label values of a reservation resource. This must
|
23826
|
+
# be the full path name of Reservation.
|
23827
|
+
# Corresponds to the JSON property `values`
|
23828
|
+
# @return [Array<String>]
|
23829
|
+
attr_accessor :values
|
23830
|
+
|
23831
|
+
def initialize(**args)
|
23832
|
+
update!(**args)
|
23833
|
+
end
|
23834
|
+
|
23835
|
+
# Update properties of this object
|
23836
|
+
def update!(**args)
|
23837
|
+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
23838
|
+
@key = args[:key] if args.key?(:key)
|
23839
|
+
@values = args[:values] if args.key?(:values)
|
23840
|
+
end
|
23841
|
+
end
|
23842
|
+
|
22886
23843
|
# A runtime is a virtual machine allocated to a particular user for a particular
|
22887
23844
|
# Notebook file on temporary basis with lifetime limited to 24 hours.
|
22888
23845
|
class GoogleCloudAiplatformV1beta1NotebookRuntime
|
@@ -22999,6 +23956,11 @@ module Google
|
|
22999
23956
|
# @return [String]
|
23000
23957
|
attr_accessor :proxy_uri
|
23001
23958
|
|
23959
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
23960
|
+
# Corresponds to the JSON property `reservationAffinity`
|
23961
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookReservationAffinity]
|
23962
|
+
attr_accessor :reservation_affinity
|
23963
|
+
|
23002
23964
|
# Output only. The runtime (instance) state of the NotebookRuntime.
|
23003
23965
|
# Corresponds to the JSON property `runtimeState`
|
23004
23966
|
# @return [String]
|
@@ -23077,6 +24039,7 @@ module Google
|
|
23077
24039
|
@notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
|
23078
24040
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
23079
24041
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
24042
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
23080
24043
|
@runtime_state = args[:runtime_state] if args.key?(:runtime_state)
|
23081
24044
|
@runtime_user = args[:runtime_user] if args.key?(:runtime_user)
|
23082
24045
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
@@ -23181,6 +24144,11 @@ module Google
|
|
23181
24144
|
# @return [String]
|
23182
24145
|
attr_accessor :notebook_runtime_type
|
23183
24146
|
|
24147
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
24148
|
+
# Corresponds to the JSON property `reservationAffinity`
|
24149
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookReservationAffinity]
|
24150
|
+
attr_accessor :reservation_affinity
|
24151
|
+
|
23184
24152
|
# Deprecated: This field is ignored and the "Vertex AI Notebook Service Account"
|
23185
24153
|
# (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used
|
23186
24154
|
# for the runtime workload identity. See https://cloud.google.com/iam/docs/
|
@@ -23234,6 +24202,7 @@ module Google
|
|
23234
24202
|
@network_spec = args[:network_spec] if args.key?(:network_spec)
|
23235
24203
|
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
23236
24204
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
24205
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
23237
24206
|
@service_account = args[:service_account] if args.key?(:service_account)
|
23238
24207
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
23239
24208
|
@software_config = args[:software_config] if args.key?(:software_config)
|
@@ -23366,6 +24335,11 @@ module Google
|
|
23366
24335
|
class GoogleCloudAiplatformV1beta1PairwiseMetricInstance
|
23367
24336
|
include Google::Apis::Core::Hashable
|
23368
24337
|
|
24338
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
24339
|
+
# Corresponds to the JSON property `contentMapInstance`
|
24340
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentMap]
|
24341
|
+
attr_accessor :content_map_instance
|
24342
|
+
|
23369
24343
|
# Instance specified as a json string. String key-value pairs are expected in
|
23370
24344
|
# the json_instance to render PairwiseMetricSpec.instance_prompt_template.
|
23371
24345
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -23378,6 +24352,7 @@ module Google
|
|
23378
24352
|
|
23379
24353
|
# Update properties of this object
|
23380
24354
|
def update!(**args)
|
24355
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
23381
24356
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
23382
24357
|
end
|
23383
24358
|
end
|
@@ -23386,6 +24361,11 @@ module Google
|
|
23386
24361
|
class GoogleCloudAiplatformV1beta1PairwiseMetricResult
|
23387
24362
|
include Google::Apis::Core::Hashable
|
23388
24363
|
|
24364
|
+
# Spec for custom output.
|
24365
|
+
# Corresponds to the JSON property `customOutput`
|
24366
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutput]
|
24367
|
+
attr_accessor :custom_output
|
24368
|
+
|
23389
24369
|
# Output only. Explanation for pairwise metric score.
|
23390
24370
|
# Corresponds to the JSON property `explanation`
|
23391
24371
|
# @return [String]
|
@@ -23402,6 +24382,7 @@ module Google
|
|
23402
24382
|
|
23403
24383
|
# Update properties of this object
|
23404
24384
|
def update!(**args)
|
24385
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
23405
24386
|
@explanation = args[:explanation] if args.key?(:explanation)
|
23406
24387
|
@pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
|
23407
24388
|
end
|
@@ -23421,6 +24402,11 @@ module Google
|
|
23421
24402
|
# @return [String]
|
23422
24403
|
attr_accessor :candidate_response_field_name
|
23423
24404
|
|
24405
|
+
# Spec for custom output format configuration.
|
24406
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
24407
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig]
|
24408
|
+
attr_accessor :custom_output_format_config
|
24409
|
+
|
23424
24410
|
# Required. Metric prompt template for pairwise metric.
|
23425
24411
|
# Corresponds to the JSON property `metricPromptTemplate`
|
23426
24412
|
# @return [String]
|
@@ -23439,6 +24425,7 @@ module Google
|
|
23439
24425
|
def update!(**args)
|
23440
24426
|
@baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
|
23441
24427
|
@candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
|
24428
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
23442
24429
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
23443
24430
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
23444
24431
|
end
|
@@ -24788,6 +25775,11 @@ module Google
|
|
24788
25775
|
class GoogleCloudAiplatformV1beta1PointwiseMetricInstance
|
24789
25776
|
include Google::Apis::Core::Hashable
|
24790
25777
|
|
25778
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
25779
|
+
# Corresponds to the JSON property `contentMapInstance`
|
25780
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentMap]
|
25781
|
+
attr_accessor :content_map_instance
|
25782
|
+
|
24791
25783
|
# Instance specified as a json string. String key-value pairs are expected in
|
24792
25784
|
# the json_instance to render PointwiseMetricSpec.instance_prompt_template.
|
24793
25785
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -24800,6 +25792,7 @@ module Google
|
|
24800
25792
|
|
24801
25793
|
# Update properties of this object
|
24802
25794
|
def update!(**args)
|
25795
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
24803
25796
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
24804
25797
|
end
|
24805
25798
|
end
|
@@ -24808,6 +25801,11 @@ module Google
|
|
24808
25801
|
class GoogleCloudAiplatformV1beta1PointwiseMetricResult
|
24809
25802
|
include Google::Apis::Core::Hashable
|
24810
25803
|
|
25804
|
+
# Spec for custom output.
|
25805
|
+
# Corresponds to the JSON property `customOutput`
|
25806
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutput]
|
25807
|
+
attr_accessor :custom_output
|
25808
|
+
|
24811
25809
|
# Output only. Explanation for pointwise metric score.
|
24812
25810
|
# Corresponds to the JSON property `explanation`
|
24813
25811
|
# @return [String]
|
@@ -24824,6 +25822,7 @@ module Google
|
|
24824
25822
|
|
24825
25823
|
# Update properties of this object
|
24826
25824
|
def update!(**args)
|
25825
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
24827
25826
|
@explanation = args[:explanation] if args.key?(:explanation)
|
24828
25827
|
@score = args[:score] if args.key?(:score)
|
24829
25828
|
end
|
@@ -24833,6 +25832,11 @@ module Google
|
|
24833
25832
|
class GoogleCloudAiplatformV1beta1PointwiseMetricSpec
|
24834
25833
|
include Google::Apis::Core::Hashable
|
24835
25834
|
|
25835
|
+
# Spec for custom output format configuration.
|
25836
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
25837
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig]
|
25838
|
+
attr_accessor :custom_output_format_config
|
25839
|
+
|
24836
25840
|
# Required. Metric prompt template for pointwise metric.
|
24837
25841
|
# Corresponds to the JSON property `metricPromptTemplate`
|
24838
25842
|
# @return [String]
|
@@ -24849,6 +25853,7 @@ module Google
|
|
24849
25853
|
|
24850
25854
|
# Update properties of this object
|
24851
25855
|
def update!(**args)
|
25856
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
24852
25857
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
24853
25858
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
24854
25859
|
end
|
@@ -25054,12 +26059,27 @@ module Google
|
|
25054
26059
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BigQueryDestination]
|
25055
26060
|
attr_accessor :bigquery_destination
|
25056
26061
|
|
26062
|
+
# This field is used for large models. If true, in addition to the original
|
26063
|
+
# large model logs, logs will be converted in OTel schema format, and saved in
|
26064
|
+
# otel_log column. Default value is false.
|
26065
|
+
# Corresponds to the JSON property `enableOtelLogging`
|
26066
|
+
# @return [Boolean]
|
26067
|
+
attr_accessor :enable_otel_logging
|
26068
|
+
alias_method :enable_otel_logging?, :enable_otel_logging
|
26069
|
+
|
25057
26070
|
# If logging is enabled or not.
|
25058
26071
|
# Corresponds to the JSON property `enabled`
|
25059
26072
|
# @return [Boolean]
|
25060
26073
|
attr_accessor :enabled
|
25061
26074
|
alias_method :enabled?, :enabled
|
25062
26075
|
|
26076
|
+
# Output only. The schema version used in creating the BigQuery table for the
|
26077
|
+
# request response logging. The versions are "v1" and "v2". The current default
|
26078
|
+
# version is "v1".
|
26079
|
+
# Corresponds to the JSON property `requestResponseLoggingSchemaVersion`
|
26080
|
+
# @return [String]
|
26081
|
+
attr_accessor :request_response_logging_schema_version
|
26082
|
+
|
25063
26083
|
# Percentage of requests to be logged, expressed as a fraction in range(0,1].
|
25064
26084
|
# Corresponds to the JSON property `samplingRate`
|
25065
26085
|
# @return [Float]
|
@@ -25072,7 +26092,9 @@ module Google
|
|
25072
26092
|
# Update properties of this object
|
25073
26093
|
def update!(**args)
|
25074
26094
|
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
|
26095
|
+
@enable_otel_logging = args[:enable_otel_logging] if args.key?(:enable_otel_logging)
|
25075
26096
|
@enabled = args[:enabled] if args.key?(:enabled)
|
26097
|
+
@request_response_logging_schema_version = args[:request_response_logging_schema_version] if args.key?(:request_response_logging_schema_version)
|
25076
26098
|
@sampling_rate = args[:sampling_rate] if args.key?(:sampling_rate)
|
25077
26099
|
end
|
25078
26100
|
end
|
@@ -25412,8 +26434,8 @@ module Google
|
|
25412
26434
|
# @return [Fixnum]
|
25413
26435
|
attr_accessor :port
|
25414
26436
|
|
25415
|
-
# Service is the name of the service to place in the gRPC HealthCheckRequest
|
25416
|
-
#
|
26437
|
+
# Service is the name of the service to place in the gRPC HealthCheckRequest.
|
26438
|
+
# See https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this
|
25417
26439
|
# is not specified, the default behavior is defined by gRPC.
|
25418
26440
|
# Corresponds to the JSON property `service`
|
25419
26441
|
# @return [String]
|
@@ -26029,6 +27051,25 @@ module Google
|
|
26029
27051
|
end
|
26030
27052
|
end
|
26031
27053
|
|
27054
|
+
# This message contains configs of a publisher model.
|
27055
|
+
class GoogleCloudAiplatformV1beta1PublisherModelConfig
|
27056
|
+
include Google::Apis::Core::Hashable
|
27057
|
+
|
27058
|
+
# Configuration for logging request-response to a BigQuery table.
|
27059
|
+
# Corresponds to the JSON property `loggingConfig`
|
27060
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig]
|
27061
|
+
attr_accessor :logging_config
|
27062
|
+
|
27063
|
+
def initialize(**args)
|
27064
|
+
update!(**args)
|
27065
|
+
end
|
27066
|
+
|
27067
|
+
# Update properties of this object
|
27068
|
+
def update!(**args)
|
27069
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
27070
|
+
end
|
27071
|
+
end
|
27072
|
+
|
26032
27073
|
# A named piece of documentation.
|
26033
27074
|
class GoogleCloudAiplatformV1beta1PublisherModelDocumentation
|
26034
27075
|
include Google::Apis::Core::Hashable
|
@@ -26055,6 +27096,38 @@ module Google
|
|
26055
27096
|
end
|
26056
27097
|
end
|
26057
27098
|
|
27099
|
+
# Response message for ModelGardenService.UpdatePublisherModelEula.
|
27100
|
+
class GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance
|
27101
|
+
include Google::Apis::Core::Hashable
|
27102
|
+
|
27103
|
+
# The project number requesting access for named model.
|
27104
|
+
# Corresponds to the JSON property `projectNumber`
|
27105
|
+
# @return [Fixnum]
|
27106
|
+
attr_accessor :project_number
|
27107
|
+
|
27108
|
+
# The publisher model resource name.
|
27109
|
+
# Corresponds to the JSON property `publisherModel`
|
27110
|
+
# @return [String]
|
27111
|
+
attr_accessor :publisher_model
|
27112
|
+
|
27113
|
+
# The EULA content acceptance status.
|
27114
|
+
# Corresponds to the JSON property `publisherModelEulaAcked`
|
27115
|
+
# @return [Boolean]
|
27116
|
+
attr_accessor :publisher_model_eula_acked
|
27117
|
+
alias_method :publisher_model_eula_acked?, :publisher_model_eula_acked
|
27118
|
+
|
27119
|
+
def initialize(**args)
|
27120
|
+
update!(**args)
|
27121
|
+
end
|
27122
|
+
|
27123
|
+
# Update properties of this object
|
27124
|
+
def update!(**args)
|
27125
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
27126
|
+
@publisher_model = args[:publisher_model] if args.key?(:publisher_model)
|
27127
|
+
@publisher_model_eula_acked = args[:publisher_model_eula_acked] if args.key?(:publisher_model_eula_acked)
|
27128
|
+
end
|
27129
|
+
end
|
27130
|
+
|
26058
27131
|
# The information about the parent of a model.
|
26059
27132
|
class GoogleCloudAiplatformV1beta1PublisherModelParent
|
26060
27133
|
include Google::Apis::Core::Hashable
|
@@ -27013,6 +28086,57 @@ module Google
|
|
27013
28086
|
end
|
27014
28087
|
end
|
27015
28088
|
|
28089
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
28090
|
+
# metadata.
|
28091
|
+
class GoogleCloudAiplatformV1beta1RagChunk
|
28092
|
+
include Google::Apis::Core::Hashable
|
28093
|
+
|
28094
|
+
# Represents where the chunk starts and ends in the document.
|
28095
|
+
# Corresponds to the JSON property `pageSpan`
|
28096
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagChunkPageSpan]
|
28097
|
+
attr_accessor :page_span
|
28098
|
+
|
28099
|
+
# The content of the chunk.
|
28100
|
+
# Corresponds to the JSON property `text`
|
28101
|
+
# @return [String]
|
28102
|
+
attr_accessor :text
|
28103
|
+
|
28104
|
+
def initialize(**args)
|
28105
|
+
update!(**args)
|
28106
|
+
end
|
28107
|
+
|
28108
|
+
# Update properties of this object
|
28109
|
+
def update!(**args)
|
28110
|
+
@page_span = args[:page_span] if args.key?(:page_span)
|
28111
|
+
@text = args[:text] if args.key?(:text)
|
28112
|
+
end
|
28113
|
+
end
|
28114
|
+
|
28115
|
+
# Represents where the chunk starts and ends in the document.
|
28116
|
+
class GoogleCloudAiplatformV1beta1RagChunkPageSpan
|
28117
|
+
include Google::Apis::Core::Hashable
|
28118
|
+
|
28119
|
+
# Page where chunk starts in the document. Inclusive. 1-indexed.
|
28120
|
+
# Corresponds to the JSON property `firstPage`
|
28121
|
+
# @return [Fixnum]
|
28122
|
+
attr_accessor :first_page
|
28123
|
+
|
28124
|
+
# Page where chunk ends in the document. Inclusive. 1-indexed.
|
28125
|
+
# Corresponds to the JSON property `lastPage`
|
28126
|
+
# @return [Fixnum]
|
28127
|
+
attr_accessor :last_page
|
28128
|
+
|
28129
|
+
def initialize(**args)
|
28130
|
+
update!(**args)
|
28131
|
+
end
|
28132
|
+
|
28133
|
+
# Update properties of this object
|
28134
|
+
def update!(**args)
|
28135
|
+
@first_page = args[:first_page] if args.key?(:first_page)
|
28136
|
+
@last_page = args[:last_page] if args.key?(:last_page)
|
28137
|
+
end
|
28138
|
+
end
|
28139
|
+
|
27016
28140
|
# Relevant contexts for one query.
|
27017
28141
|
class GoogleCloudAiplatformV1beta1RagContexts
|
27018
28142
|
include Google::Apis::Core::Hashable
|
@@ -27036,6 +28160,12 @@ module Google
|
|
27036
28160
|
class GoogleCloudAiplatformV1beta1RagContextsContext
|
27037
28161
|
include Google::Apis::Core::Hashable
|
27038
28162
|
|
28163
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
28164
|
+
# metadata.
|
28165
|
+
# Corresponds to the JSON property `chunk`
|
28166
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagChunk]
|
28167
|
+
attr_accessor :chunk
|
28168
|
+
|
27039
28169
|
# The distance between the query dense embedding vector and the context text
|
27040
28170
|
# vector.
|
27041
28171
|
# Corresponds to the JSON property `distance`
|
@@ -27082,6 +28212,7 @@ module Google
|
|
27082
28212
|
|
27083
28213
|
# Update properties of this object
|
27084
28214
|
def update!(**args)
|
28215
|
+
@chunk = args[:chunk] if args.key?(:chunk)
|
27085
28216
|
@distance = args[:distance] if args.key?(:distance)
|
27086
28217
|
@score = args[:score] if args.key?(:score)
|
27087
28218
|
@source_display_name = args[:source_display_name] if args.key?(:source_display_name)
|
@@ -27312,6 +28443,32 @@ module Google
|
|
27312
28443
|
end
|
27313
28444
|
end
|
27314
28445
|
|
28446
|
+
# Config for RagEngine.
|
28447
|
+
class GoogleCloudAiplatformV1beta1RagEngineConfig
|
28448
|
+
include Google::Apis::Core::Hashable
|
28449
|
+
|
28450
|
+
# Identifier. The name of the RagEngineConfig. Format: `projects/`project`/
|
28451
|
+
# locations/`location`/ragEngineConfig`
|
28452
|
+
# Corresponds to the JSON property `name`
|
28453
|
+
# @return [String]
|
28454
|
+
attr_accessor :name
|
28455
|
+
|
28456
|
+
# Configuration message for RagManagedDb used by RagEngine.
|
28457
|
+
# Corresponds to the JSON property `ragManagedDbConfig`
|
28458
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfig]
|
28459
|
+
attr_accessor :rag_managed_db_config
|
28460
|
+
|
28461
|
+
def initialize(**args)
|
28462
|
+
update!(**args)
|
28463
|
+
end
|
28464
|
+
|
28465
|
+
# Update properties of this object
|
28466
|
+
def update!(**args)
|
28467
|
+
@name = args[:name] if args.key?(:name)
|
28468
|
+
@rag_managed_db_config = args[:rag_managed_db_config] if args.key?(:rag_managed_db_config)
|
28469
|
+
end
|
28470
|
+
end
|
28471
|
+
|
27315
28472
|
# A RagFile contains user data for chunking, embedding and indexing.
|
27316
28473
|
class GoogleCloudAiplatformV1beta1RagFile
|
27317
28474
|
include Google::Apis::Core::Hashable
|
@@ -27528,6 +28685,15 @@ module Google
|
|
27528
28685
|
class GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser
|
27529
28686
|
include Google::Apis::Core::Hashable
|
27530
28687
|
|
28688
|
+
# The maximum number of requests the job is allowed to make to the Document AI
|
28689
|
+
# processor per minute in this project. Consult https://cloud.google.com/
|
28690
|
+
# document-ai/quotas and the Quota page for your project to set an appropriate
|
28691
|
+
# value here. If this value is not specified, max_parsing_requests_per_min will
|
28692
|
+
# be used by indexing pipeline as the global limit.
|
28693
|
+
# Corresponds to the JSON property `globalMaxParsingRequestsPerMin`
|
28694
|
+
# @return [Fixnum]
|
28695
|
+
attr_accessor :global_max_parsing_requests_per_min
|
28696
|
+
|
27531
28697
|
# The maximum number of requests the job is allowed to make to the Document AI
|
27532
28698
|
# processor per minute. Consult https://cloud.google.com/document-ai/quotas and
|
27533
28699
|
# the Quota page for your project to set an appropriate value here. If
|
@@ -27552,6 +28718,7 @@ module Google
|
|
27552
28718
|
|
27553
28719
|
# Update properties of this object
|
27554
28720
|
def update!(**args)
|
28721
|
+
@global_max_parsing_requests_per_min = args[:global_max_parsing_requests_per_min] if args.key?(:global_max_parsing_requests_per_min)
|
27555
28722
|
@max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
|
27556
28723
|
@processor_name = args[:processor_name] if args.key?(:processor_name)
|
27557
28724
|
end
|
@@ -27566,6 +28733,15 @@ module Google
|
|
27566
28733
|
# @return [String]
|
27567
28734
|
attr_accessor :custom_parsing_prompt
|
27568
28735
|
|
28736
|
+
# The maximum number of requests the job is allowed to make to the LLM model per
|
28737
|
+
# minute in this project. Consult https://cloud.google.com/vertex-ai/generative-
|
28738
|
+
# ai/docs/quotas and your document size to set an appropriate value here. If
|
28739
|
+
# this value is not specified, max_parsing_requests_per_min will be used by
|
28740
|
+
# indexing pipeline job as the global limit.
|
28741
|
+
# Corresponds to the JSON property `globalMaxParsingRequestsPerMin`
|
28742
|
+
# @return [Fixnum]
|
28743
|
+
attr_accessor :global_max_parsing_requests_per_min
|
28744
|
+
|
27569
28745
|
# The maximum number of requests the job is allowed to make to the LLM model per
|
27570
28746
|
# minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
|
27571
28747
|
# and your document size to set an appropriate value here. If unspecified, a
|
@@ -27587,6 +28763,7 @@ module Google
|
|
27587
28763
|
# Update properties of this object
|
27588
28764
|
def update!(**args)
|
27589
28765
|
@custom_parsing_prompt = args[:custom_parsing_prompt] if args.key?(:custom_parsing_prompt)
|
28766
|
+
@global_max_parsing_requests_per_min = args[:global_max_parsing_requests_per_min] if args.key?(:global_max_parsing_requests_per_min)
|
27590
28767
|
@max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
|
27591
28768
|
@model_name = args[:model_name] if args.key?(:model_name)
|
27592
28769
|
end
|
@@ -27611,6 +28788,67 @@ module Google
|
|
27611
28788
|
end
|
27612
28789
|
end
|
27613
28790
|
|
28791
|
+
# Configuration message for RagManagedDb used by RagEngine.
|
28792
|
+
class GoogleCloudAiplatformV1beta1RagManagedDbConfig
|
28793
|
+
include Google::Apis::Core::Hashable
|
28794
|
+
|
28795
|
+
# Basic tier is a cost-effective and low compute tier suitable for the following
|
28796
|
+
# cases: * Experimenting with RagManagedDb. * Small data size. * Latency
|
28797
|
+
# insensitive workload. * Only using RAG Engine with external vector DBs.
|
28798
|
+
# Corresponds to the JSON property `basic`
|
28799
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic]
|
28800
|
+
attr_accessor :basic
|
28801
|
+
|
28802
|
+
# Enterprise tier offers production grade performance along with autoscaling
|
28803
|
+
# functionality. It is suitable for customers with large amounts of data or
|
28804
|
+
# performance sensitive workloads. NOTE: This is the default tier if not
|
28805
|
+
# explicitly chosen.
|
28806
|
+
# Corresponds to the JSON property `enterprise`
|
28807
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise]
|
28808
|
+
attr_accessor :enterprise
|
28809
|
+
|
28810
|
+
def initialize(**args)
|
28811
|
+
update!(**args)
|
28812
|
+
end
|
28813
|
+
|
28814
|
+
# Update properties of this object
|
28815
|
+
def update!(**args)
|
28816
|
+
@basic = args[:basic] if args.key?(:basic)
|
28817
|
+
@enterprise = args[:enterprise] if args.key?(:enterprise)
|
28818
|
+
end
|
28819
|
+
end
|
28820
|
+
|
28821
|
+
# Basic tier is a cost-effective and low compute tier suitable for the following
|
28822
|
+
# cases: * Experimenting with RagManagedDb. * Small data size. * Latency
|
28823
|
+
# insensitive workload. * Only using RAG Engine with external vector DBs.
|
28824
|
+
class GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic
|
28825
|
+
include Google::Apis::Core::Hashable
|
28826
|
+
|
28827
|
+
def initialize(**args)
|
28828
|
+
update!(**args)
|
28829
|
+
end
|
28830
|
+
|
28831
|
+
# Update properties of this object
|
28832
|
+
def update!(**args)
|
28833
|
+
end
|
28834
|
+
end
|
28835
|
+
|
28836
|
+
# Enterprise tier offers production grade performance along with autoscaling
|
28837
|
+
# functionality. It is suitable for customers with large amounts of data or
|
28838
|
+
# performance sensitive workloads. NOTE: This is the default tier if not
|
28839
|
+
# explicitly chosen.
|
28840
|
+
class GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise
|
28841
|
+
include Google::Apis::Core::Hashable
|
28842
|
+
|
28843
|
+
def initialize(**args)
|
28844
|
+
update!(**args)
|
28845
|
+
end
|
28846
|
+
|
28847
|
+
# Update properties of this object
|
28848
|
+
def update!(**args)
|
28849
|
+
end
|
28850
|
+
end
|
28851
|
+
|
27614
28852
|
# A query to retrieve relevant contexts.
|
27615
28853
|
class GoogleCloudAiplatformV1beta1RagQuery
|
27616
28854
|
include Google::Apis::Core::Hashable
|
@@ -27791,7 +29029,9 @@ module Google
|
|
27791
29029
|
class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker
|
27792
29030
|
include Google::Apis::Core::Hashable
|
27793
29031
|
|
27794
|
-
# Optional. The model name used for ranking.
|
29032
|
+
# Optional. The model name used for ranking. See [Supported models](https://
|
29033
|
+
# cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#
|
29034
|
+
# supported-models).
|
27795
29035
|
# Corresponds to the JSON property `modelName`
|
27796
29036
|
# @return [String]
|
27797
29037
|
attr_accessor :model_name
|
@@ -27990,6 +29230,25 @@ module Google
|
|
27990
29230
|
end
|
27991
29231
|
end
|
27992
29232
|
|
29233
|
+
# Raw output.
|
29234
|
+
class GoogleCloudAiplatformV1beta1RawOutput
|
29235
|
+
include Google::Apis::Core::Hashable
|
29236
|
+
|
29237
|
+
# Output only. Raw output string.
|
29238
|
+
# Corresponds to the JSON property `rawOutput`
|
29239
|
+
# @return [Array<String>]
|
29240
|
+
attr_accessor :raw_output
|
29241
|
+
|
29242
|
+
def initialize(**args)
|
29243
|
+
update!(**args)
|
29244
|
+
end
|
29245
|
+
|
29246
|
+
# Update properties of this object
|
29247
|
+
def update!(**args)
|
29248
|
+
@raw_output = args[:raw_output] if args.key?(:raw_output)
|
29249
|
+
end
|
29250
|
+
end
|
29251
|
+
|
27993
29252
|
# Request message for PredictionService.RawPredict.
|
27994
29253
|
class GoogleCloudAiplatformV1beta1RawPredictRequest
|
27995
29254
|
include Google::Apis::Core::Hashable
|
@@ -28506,7 +29765,8 @@ module Google
|
|
28506
29765
|
include Google::Apis::Core::Hashable
|
28507
29766
|
|
28508
29767
|
# Optional. The OSS agent framework used to develop the agent. Currently
|
28509
|
-
# supported values: "langchain", "langgraph", "ag2", "
|
29768
|
+
# supported values: "google-adk", "langchain", "langgraph", "ag2", "llama-index",
|
29769
|
+
# "custom".
|
28510
29770
|
# Corresponds to the JSON property `agentFramework`
|
28511
29771
|
# @return [String]
|
28512
29772
|
attr_accessor :agent_framework
|
@@ -28749,6 +30009,54 @@ module Google
|
|
28749
30009
|
end
|
28750
30010
|
end
|
28751
30011
|
|
30012
|
+
# Request message for ExampleStoreService.RemoveExamples.
|
30013
|
+
class GoogleCloudAiplatformV1beta1RemoveExamplesRequest
|
30014
|
+
include Google::Apis::Core::Hashable
|
30015
|
+
|
30016
|
+
# Optional. Example IDs to remove. If both metadata filters and Example IDs are
|
30017
|
+
# specified, the metadata filters will be applied to the specified examples in
|
30018
|
+
# order to identify which should be removed.
|
30019
|
+
# Corresponds to the JSON property `exampleIds`
|
30020
|
+
# @return [Array<String>]
|
30021
|
+
attr_accessor :example_ids
|
30022
|
+
|
30023
|
+
# The metadata filters that will be used to remove or fetch
|
30024
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
30025
|
+
# field will be applied.
|
30026
|
+
# Corresponds to the JSON property `storedContentsExampleFilter`
|
30027
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleFilter]
|
30028
|
+
attr_accessor :stored_contents_example_filter
|
30029
|
+
|
30030
|
+
def initialize(**args)
|
30031
|
+
update!(**args)
|
30032
|
+
end
|
30033
|
+
|
30034
|
+
# Update properties of this object
|
30035
|
+
def update!(**args)
|
30036
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
30037
|
+
@stored_contents_example_filter = args[:stored_contents_example_filter] if args.key?(:stored_contents_example_filter)
|
30038
|
+
end
|
30039
|
+
end
|
30040
|
+
|
30041
|
+
# Response message for ExampleStoreService.RemoveExamples.
|
30042
|
+
class GoogleCloudAiplatformV1beta1RemoveExamplesResponse
|
30043
|
+
include Google::Apis::Core::Hashable
|
30044
|
+
|
30045
|
+
# The IDs for the removed examples.
|
30046
|
+
# Corresponds to the JSON property `exampleIds`
|
30047
|
+
# @return [Array<String>]
|
30048
|
+
attr_accessor :example_ids
|
30049
|
+
|
30050
|
+
def initialize(**args)
|
30051
|
+
update!(**args)
|
30052
|
+
end
|
30053
|
+
|
30054
|
+
# Update properties of this object
|
30055
|
+
def update!(**args)
|
30056
|
+
@example_ids = args[:example_ids] if args.key?(:example_ids)
|
30057
|
+
end
|
30058
|
+
end
|
30059
|
+
|
28752
30060
|
# Request message for NotebookInternalService.ReportExecutionEvent.
|
28753
30061
|
class GoogleCloudAiplatformV1beta1ReportExecutionEventRequest
|
28754
30062
|
include Google::Apis::Core::Hashable
|
@@ -29484,6 +30792,121 @@ module Google
|
|
29484
30792
|
end
|
29485
30793
|
end
|
29486
30794
|
|
30795
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
30796
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInput
|
30797
|
+
include Google::Apis::Core::Hashable
|
30798
|
+
|
30799
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
30800
|
+
# to one row in an evaluation dataset.
|
30801
|
+
# Corresponds to the JSON property `instance`
|
30802
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance]
|
30803
|
+
attr_accessor :instance
|
30804
|
+
|
30805
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
30806
|
+
# corresponding to rubrics along with overall score.
|
30807
|
+
# Corresponds to the JSON property `metricSpec`
|
30808
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingSpec]
|
30809
|
+
attr_accessor :metric_spec
|
30810
|
+
|
30811
|
+
def initialize(**args)
|
30812
|
+
update!(**args)
|
30813
|
+
end
|
30814
|
+
|
30815
|
+
# Update properties of this object
|
30816
|
+
def update!(**args)
|
30817
|
+
@instance = args[:instance] if args.key?(:instance)
|
30818
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
30819
|
+
end
|
30820
|
+
end
|
30821
|
+
|
30822
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
30823
|
+
# to one row in an evaluation dataset.
|
30824
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance
|
30825
|
+
include Google::Apis::Core::Hashable
|
30826
|
+
|
30827
|
+
# Required. Instance specified as a json string. String key-value pairs are
|
30828
|
+
# expected in the json_instance to render RubricBasedInstructionFollowing prompt
|
30829
|
+
# templates.
|
30830
|
+
# Corresponds to the JSON property `jsonInstance`
|
30831
|
+
# @return [String]
|
30832
|
+
attr_accessor :json_instance
|
30833
|
+
|
30834
|
+
def initialize(**args)
|
30835
|
+
update!(**args)
|
30836
|
+
end
|
30837
|
+
|
30838
|
+
# Update properties of this object
|
30839
|
+
def update!(**args)
|
30840
|
+
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
30841
|
+
end
|
30842
|
+
end
|
30843
|
+
|
30844
|
+
# Result for RubricBasedInstructionFollowing metric.
|
30845
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingResult
|
30846
|
+
include Google::Apis::Core::Hashable
|
30847
|
+
|
30848
|
+
# Output only. List of per rubric critique results.
|
30849
|
+
# Corresponds to the JSON property `rubricCritiqueResults`
|
30850
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricCritiqueResult>]
|
30851
|
+
attr_accessor :rubric_critique_results
|
30852
|
+
|
30853
|
+
# Output only. Overall score for the instruction following.
|
30854
|
+
# Corresponds to the JSON property `score`
|
30855
|
+
# @return [Float]
|
30856
|
+
attr_accessor :score
|
30857
|
+
|
30858
|
+
def initialize(**args)
|
30859
|
+
update!(**args)
|
30860
|
+
end
|
30861
|
+
|
30862
|
+
# Update properties of this object
|
30863
|
+
def update!(**args)
|
30864
|
+
@rubric_critique_results = args[:rubric_critique_results] if args.key?(:rubric_critique_results)
|
30865
|
+
@score = args[:score] if args.key?(:score)
|
30866
|
+
end
|
30867
|
+
end
|
30868
|
+
|
30869
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
30870
|
+
# corresponding to rubrics along with overall score.
|
30871
|
+
class GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingSpec
|
30872
|
+
include Google::Apis::Core::Hashable
|
30873
|
+
|
30874
|
+
def initialize(**args)
|
30875
|
+
update!(**args)
|
30876
|
+
end
|
30877
|
+
|
30878
|
+
# Update properties of this object
|
30879
|
+
def update!(**args)
|
30880
|
+
end
|
30881
|
+
end
|
30882
|
+
|
30883
|
+
# Rubric critique result.
|
30884
|
+
class GoogleCloudAiplatformV1beta1RubricCritiqueResult
|
30885
|
+
include Google::Apis::Core::Hashable
|
30886
|
+
|
30887
|
+
# Output only. Rubric to be evaluated.
|
30888
|
+
# Corresponds to the JSON property `rubric`
|
30889
|
+
# @return [String]
|
30890
|
+
attr_accessor :rubric
|
30891
|
+
|
30892
|
+
# Output only. Verdict for the rubric - true if the rubric is met, false
|
30893
|
+
# otherwise.
|
30894
|
+
# Corresponds to the JSON property `verdict`
|
30895
|
+
# @return [Boolean]
|
30896
|
+
attr_accessor :verdict
|
30897
|
+
alias_method :verdict?, :verdict
|
30898
|
+
|
30899
|
+
def initialize(**args)
|
30900
|
+
update!(**args)
|
30901
|
+
end
|
30902
|
+
|
30903
|
+
# Update properties of this object
|
30904
|
+
def update!(**args)
|
30905
|
+
@rubric = args[:rubric] if args.key?(:rubric)
|
30906
|
+
@verdict = args[:verdict] if args.key?(:verdict)
|
30907
|
+
end
|
30908
|
+
end
|
30909
|
+
|
29487
30910
|
# The definition of a runtime artifact.
|
29488
30911
|
class GoogleCloudAiplatformV1beta1RuntimeArtifact
|
29489
30912
|
include Google::Apis::Core::Hashable
|
@@ -37108,6 +38531,76 @@ module Google
|
|
37108
38531
|
end
|
37109
38532
|
end
|
37110
38533
|
|
38534
|
+
# Request message for ExampleStoreService.SearchExamples.
|
38535
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesRequest
|
38536
|
+
include Google::Apis::Core::Hashable
|
38537
|
+
|
38538
|
+
# The metadata filters that will be used to search StoredContentsExamples. If a
|
38539
|
+
# field is unspecified, then no filtering for that field will be applied
|
38540
|
+
# Corresponds to the JSON property `storedContentsExampleParameters`
|
38541
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleParameters]
|
38542
|
+
attr_accessor :stored_contents_example_parameters
|
38543
|
+
|
38544
|
+
# Optional. The number of similar examples to return.
|
38545
|
+
# Corresponds to the JSON property `topK`
|
38546
|
+
# @return [Fixnum]
|
38547
|
+
attr_accessor :top_k
|
38548
|
+
|
38549
|
+
def initialize(**args)
|
38550
|
+
update!(**args)
|
38551
|
+
end
|
38552
|
+
|
38553
|
+
# Update properties of this object
|
38554
|
+
def update!(**args)
|
38555
|
+
@stored_contents_example_parameters = args[:stored_contents_example_parameters] if args.key?(:stored_contents_example_parameters)
|
38556
|
+
@top_k = args[:top_k] if args.key?(:top_k)
|
38557
|
+
end
|
38558
|
+
end
|
38559
|
+
|
38560
|
+
# Response message for ExampleStoreService.SearchExamples.
|
38561
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesResponse
|
38562
|
+
include Google::Apis::Core::Hashable
|
38563
|
+
|
38564
|
+
# The results of searching for similar examples.
|
38565
|
+
# Corresponds to the JSON property `results`
|
38566
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample>]
|
38567
|
+
attr_accessor :results
|
38568
|
+
|
38569
|
+
def initialize(**args)
|
38570
|
+
update!(**args)
|
38571
|
+
end
|
38572
|
+
|
38573
|
+
# Update properties of this object
|
38574
|
+
def update!(**args)
|
38575
|
+
@results = args[:results] if args.key?(:results)
|
38576
|
+
end
|
38577
|
+
end
|
38578
|
+
|
38579
|
+
# The result of the similar example.
|
38580
|
+
class GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample
|
38581
|
+
include Google::Apis::Core::Hashable
|
38582
|
+
|
38583
|
+
# A single example to upload or read from the Example Store.
|
38584
|
+
# Corresponds to the JSON property `example`
|
38585
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example]
|
38586
|
+
attr_accessor :example
|
38587
|
+
|
38588
|
+
# The similarity score of this example.
|
38589
|
+
# Corresponds to the JSON property `similarityScore`
|
38590
|
+
# @return [Float]
|
38591
|
+
attr_accessor :similarity_score
|
38592
|
+
|
38593
|
+
def initialize(**args)
|
38594
|
+
update!(**args)
|
38595
|
+
end
|
38596
|
+
|
38597
|
+
# Update properties of this object
|
38598
|
+
def update!(**args)
|
38599
|
+
@example = args[:example] if args.key?(:example)
|
38600
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
38601
|
+
end
|
38602
|
+
end
|
38603
|
+
|
37111
38604
|
# Response message for FeaturestoreService.SearchFeatures.
|
37112
38605
|
class GoogleCloudAiplatformV1beta1SearchFeaturesResponse
|
37113
38606
|
include Google::Apis::Core::Hashable
|
@@ -37714,6 +39207,149 @@ module Google
|
|
37714
39207
|
end
|
37715
39208
|
end
|
37716
39209
|
|
39210
|
+
# A session contains a set of actions between users and Vertex agents.
|
39211
|
+
class GoogleCloudAiplatformV1beta1Session
|
39212
|
+
include Google::Apis::Core::Hashable
|
39213
|
+
|
39214
|
+
# Output only. Timestamp when the session was created.
|
39215
|
+
# Corresponds to the JSON property `createTime`
|
39216
|
+
# @return [String]
|
39217
|
+
attr_accessor :create_time
|
39218
|
+
|
39219
|
+
# Optional. The display name of the session.
|
39220
|
+
# Corresponds to the JSON property `displayName`
|
39221
|
+
# @return [String]
|
39222
|
+
attr_accessor :display_name
|
39223
|
+
|
39224
|
+
# Required. Identifier. The resource name of the session. Format: 'projects/`
|
39225
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
39226
|
+
# session`'.
|
39227
|
+
# Corresponds to the JSON property `name`
|
39228
|
+
# @return [String]
|
39229
|
+
attr_accessor :name
|
39230
|
+
|
39231
|
+
# Optional. Session specific memory which stores key conversation points.
|
39232
|
+
# Corresponds to the JSON property `sessionState`
|
39233
|
+
# @return [Hash<String,Object>]
|
39234
|
+
attr_accessor :session_state
|
39235
|
+
|
39236
|
+
# Output only. Timestamp when the session was updated.
|
39237
|
+
# Corresponds to the JSON property `updateTime`
|
39238
|
+
# @return [String]
|
39239
|
+
attr_accessor :update_time
|
39240
|
+
|
39241
|
+
# Required. Immutable. String id provided by the user
|
39242
|
+
# Corresponds to the JSON property `userId`
|
39243
|
+
# @return [String]
|
39244
|
+
attr_accessor :user_id
|
39245
|
+
|
39246
|
+
def initialize(**args)
|
39247
|
+
update!(**args)
|
39248
|
+
end
|
39249
|
+
|
39250
|
+
# Update properties of this object
|
39251
|
+
def update!(**args)
|
39252
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
39253
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
39254
|
+
@name = args[:name] if args.key?(:name)
|
39255
|
+
@session_state = args[:session_state] if args.key?(:session_state)
|
39256
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
39257
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
39258
|
+
end
|
39259
|
+
end
|
39260
|
+
|
39261
|
+
# An event represents a message from either the user or agent.
|
39262
|
+
class GoogleCloudAiplatformV1beta1SessionEvent
|
39263
|
+
include Google::Apis::Core::Hashable
|
39264
|
+
|
39265
|
+
# Actions are parts of events that are executed by the agent.
|
39266
|
+
# Corresponds to the JSON property `actions`
|
39267
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EventActions]
|
39268
|
+
attr_accessor :actions
|
39269
|
+
|
39270
|
+
# Required. The name of the agent that sent the event, or user.
|
39271
|
+
# Corresponds to the JSON property `author`
|
39272
|
+
# @return [String]
|
39273
|
+
attr_accessor :author
|
39274
|
+
|
39275
|
+
# The base structured datatype containing multi-part content of a message. A `
|
39276
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
39277
|
+
# a `parts` field containing multi-part data that contains the content of the
|
39278
|
+
# message turn.
|
39279
|
+
# Corresponds to the JSON property `content`
|
39280
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
39281
|
+
attr_accessor :content
|
39282
|
+
|
39283
|
+
# Optional. Error code if the response is an error. Code varies by model.
|
39284
|
+
# Corresponds to the JSON property `errorCode`
|
39285
|
+
# @return [String]
|
39286
|
+
attr_accessor :error_code
|
39287
|
+
|
39288
|
+
# Optional. Error message if the response is an error.
|
39289
|
+
# Corresponds to the JSON property `errorMessage`
|
39290
|
+
# @return [String]
|
39291
|
+
attr_accessor :error_message
|
39292
|
+
|
39293
|
+
# Metadata relating to a LLM response event.
|
39294
|
+
# Corresponds to the JSON property `eventMetadata`
|
39295
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EventMetadata]
|
39296
|
+
attr_accessor :event_metadata
|
39297
|
+
|
39298
|
+
# Required. The invocation id of the event, multiple events can have the same
|
39299
|
+
# invocation id.
|
39300
|
+
# Corresponds to the JSON property `invocationId`
|
39301
|
+
# @return [String]
|
39302
|
+
attr_accessor :invocation_id
|
39303
|
+
|
39304
|
+
# Required. Identifier. The resource name of the event. Format:`projects/`
|
39305
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
|
39306
|
+
# session`/events/`event``.
|
39307
|
+
# Corresponds to the JSON property `name`
|
39308
|
+
# @return [String]
|
39309
|
+
attr_accessor :name
|
39310
|
+
|
39311
|
+
# Required. Timestamp when the event was created on client side.
|
39312
|
+
# Corresponds to the JSON property `timestamp`
|
39313
|
+
# @return [String]
|
39314
|
+
attr_accessor :timestamp
|
39315
|
+
|
39316
|
+
def initialize(**args)
|
39317
|
+
update!(**args)
|
39318
|
+
end
|
39319
|
+
|
39320
|
+
# Update properties of this object
|
39321
|
+
def update!(**args)
|
39322
|
+
@actions = args[:actions] if args.key?(:actions)
|
39323
|
+
@author = args[:author] if args.key?(:author)
|
39324
|
+
@content = args[:content] if args.key?(:content)
|
39325
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
39326
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
39327
|
+
@event_metadata = args[:event_metadata] if args.key?(:event_metadata)
|
39328
|
+
@invocation_id = args[:invocation_id] if args.key?(:invocation_id)
|
39329
|
+
@name = args[:name] if args.key?(:name)
|
39330
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
39331
|
+
end
|
39332
|
+
end
|
39333
|
+
|
39334
|
+
# Request message for EndpointService.SetPublisherModelConfig.
|
39335
|
+
class GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest
|
39336
|
+
include Google::Apis::Core::Hashable
|
39337
|
+
|
39338
|
+
# This message contains configs of a publisher model.
|
39339
|
+
# Corresponds to the JSON property `publisherModelConfig`
|
39340
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig]
|
39341
|
+
attr_accessor :publisher_model_config
|
39342
|
+
|
39343
|
+
def initialize(**args)
|
39344
|
+
update!(**args)
|
39345
|
+
end
|
39346
|
+
|
39347
|
+
# Update properties of this object
|
39348
|
+
def update!(**args)
|
39349
|
+
@publisher_model_config = args[:publisher_model_config] if args.key?(:publisher_model_config)
|
39350
|
+
end
|
39351
|
+
end
|
39352
|
+
|
37717
39353
|
# The SharePointSources to pass to ImportRagFiles.
|
37718
39354
|
class GoogleCloudAiplatformV1beta1SharePointSources
|
37719
39355
|
include Google::Apis::Core::Hashable
|
@@ -38086,6 +39722,11 @@ module Google
|
|
38086
39722
|
class GoogleCloudAiplatformV1beta1SpeechConfig
|
38087
39723
|
include Google::Apis::Core::Hashable
|
38088
39724
|
|
39725
|
+
# Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.
|
39726
|
+
# Corresponds to the JSON property `languageCode`
|
39727
|
+
# @return [String]
|
39728
|
+
attr_accessor :language_code
|
39729
|
+
|
38089
39730
|
# The configuration for the voice to use.
|
38090
39731
|
# Corresponds to the JSON property `voiceConfig`
|
38091
39732
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig]
|
@@ -38097,6 +39738,7 @@ module Google
|
|
38097
39738
|
|
38098
39739
|
# Update properties of this object
|
38099
39740
|
def update!(**args)
|
39741
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
38100
39742
|
@voice_config = args[:voice_config] if args.key?(:voice_config)
|
38101
39743
|
end
|
38102
39744
|
end
|
@@ -38166,6 +39808,163 @@ module Google
|
|
38166
39808
|
end
|
38167
39809
|
end
|
38168
39810
|
|
39811
|
+
# A ContentsExample to be used with GenerateContent alongside information
|
39812
|
+
# required for storage and retrieval with Example Store.
|
39813
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExample
|
39814
|
+
include Google::Apis::Core::Hashable
|
39815
|
+
|
39816
|
+
# A single example of a conversation with the model.
|
39817
|
+
# Corresponds to the JSON property `contentsExample`
|
39818
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ContentsExample]
|
39819
|
+
attr_accessor :contents_example
|
39820
|
+
|
39821
|
+
# Optional. (Optional) the search key used for retrieval. If not provided at
|
39822
|
+
# upload-time, the search key will be generated from `contents_example.contents`
|
39823
|
+
# using the method provided by `search_key_generation_method`. The generated
|
39824
|
+
# search key will be included in retrieved examples.
|
39825
|
+
# Corresponds to the JSON property `searchKey`
|
39826
|
+
# @return [String]
|
39827
|
+
attr_accessor :search_key
|
39828
|
+
|
39829
|
+
# Options for generating the search key from the conversation history.
|
39830
|
+
# Corresponds to the JSON property `searchKeyGenerationMethod`
|
39831
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod]
|
39832
|
+
attr_accessor :search_key_generation_method
|
39833
|
+
|
39834
|
+
def initialize(**args)
|
39835
|
+
update!(**args)
|
39836
|
+
end
|
39837
|
+
|
39838
|
+
# Update properties of this object
|
39839
|
+
def update!(**args)
|
39840
|
+
@contents_example = args[:contents_example] if args.key?(:contents_example)
|
39841
|
+
@search_key = args[:search_key] if args.key?(:search_key)
|
39842
|
+
@search_key_generation_method = args[:search_key_generation_method] if args.key?(:search_key_generation_method)
|
39843
|
+
end
|
39844
|
+
end
|
39845
|
+
|
39846
|
+
# The metadata filters that will be used to remove or fetch
|
39847
|
+
# StoredContentsExamples. If a field is unspecified, then no filtering for that
|
39848
|
+
# field will be applied.
|
39849
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleFilter
|
39850
|
+
include Google::Apis::Core::Hashable
|
39851
|
+
|
39852
|
+
# Filters for examples' array metadata fields. An array field is example
|
39853
|
+
# metadata where multiple values are attributed to a single example.
|
39854
|
+
# Corresponds to the JSON property `functionNames`
|
39855
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesArrayFilter]
|
39856
|
+
attr_accessor :function_names
|
39857
|
+
|
39858
|
+
# Optional. The search keys for filtering. Only examples with one of the
|
39859
|
+
# specified search keys (StoredContentsExample.search_key) are eligible to be
|
39860
|
+
# returned.
|
39861
|
+
# Corresponds to the JSON property `searchKeys`
|
39862
|
+
# @return [Array<String>]
|
39863
|
+
attr_accessor :search_keys
|
39864
|
+
|
39865
|
+
def initialize(**args)
|
39866
|
+
update!(**args)
|
39867
|
+
end
|
39868
|
+
|
39869
|
+
# Update properties of this object
|
39870
|
+
def update!(**args)
|
39871
|
+
@function_names = args[:function_names] if args.key?(:function_names)
|
39872
|
+
@search_keys = args[:search_keys] if args.key?(:search_keys)
|
39873
|
+
end
|
39874
|
+
end
|
39875
|
+
|
39876
|
+
# The metadata filters that will be used to search StoredContentsExamples. If a
|
39877
|
+
# field is unspecified, then no filtering for that field will be applied
|
39878
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleParameters
|
39879
|
+
include Google::Apis::Core::Hashable
|
39880
|
+
|
39881
|
+
# The chat history to use to generate the search key for retrieval.
|
39882
|
+
# Corresponds to the JSON property `contentSearchKey`
|
39883
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleParametersContentSearchKey]
|
39884
|
+
attr_accessor :content_search_key
|
39885
|
+
|
39886
|
+
# Filters for examples' array metadata fields. An array field is example
|
39887
|
+
# metadata where multiple values are attributed to a single example.
|
39888
|
+
# Corresponds to the JSON property `functionNames`
|
39889
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExamplesArrayFilter]
|
39890
|
+
attr_accessor :function_names
|
39891
|
+
|
39892
|
+
# The exact search key to use for retrieval.
|
39893
|
+
# Corresponds to the JSON property `searchKey`
|
39894
|
+
# @return [String]
|
39895
|
+
attr_accessor :search_key
|
39896
|
+
|
39897
|
+
def initialize(**args)
|
39898
|
+
update!(**args)
|
39899
|
+
end
|
39900
|
+
|
39901
|
+
# Update properties of this object
|
39902
|
+
def update!(**args)
|
39903
|
+
@content_search_key = args[:content_search_key] if args.key?(:content_search_key)
|
39904
|
+
@function_names = args[:function_names] if args.key?(:function_names)
|
39905
|
+
@search_key = args[:search_key] if args.key?(:search_key)
|
39906
|
+
end
|
39907
|
+
end
|
39908
|
+
|
39909
|
+
# The chat history to use to generate the search key for retrieval.
|
39910
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleParametersContentSearchKey
|
39911
|
+
include Google::Apis::Core::Hashable
|
39912
|
+
|
39913
|
+
# Required. The conversation for generating a search key.
|
39914
|
+
# Corresponds to the JSON property `contents`
|
39915
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
39916
|
+
attr_accessor :contents
|
39917
|
+
|
39918
|
+
# Options for generating the search key from the conversation history.
|
39919
|
+
# Corresponds to the JSON property `searchKeyGenerationMethod`
|
39920
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod]
|
39921
|
+
attr_accessor :search_key_generation_method
|
39922
|
+
|
39923
|
+
def initialize(**args)
|
39924
|
+
update!(**args)
|
39925
|
+
end
|
39926
|
+
|
39927
|
+
# Update properties of this object
|
39928
|
+
def update!(**args)
|
39929
|
+
@contents = args[:contents] if args.key?(:contents)
|
39930
|
+
@search_key_generation_method = args[:search_key_generation_method] if args.key?(:search_key_generation_method)
|
39931
|
+
end
|
39932
|
+
end
|
39933
|
+
|
39934
|
+
# Options for generating the search key from the conversation history.
|
39935
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethod
|
39936
|
+
include Google::Apis::Core::Hashable
|
39937
|
+
|
39938
|
+
# Configuration for using only the last entry of the conversation history as the
|
39939
|
+
# search key.
|
39940
|
+
# Corresponds to the JSON property `lastEntry`
|
39941
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethodLastEntry]
|
39942
|
+
attr_accessor :last_entry
|
39943
|
+
|
39944
|
+
def initialize(**args)
|
39945
|
+
update!(**args)
|
39946
|
+
end
|
39947
|
+
|
39948
|
+
# Update properties of this object
|
39949
|
+
def update!(**args)
|
39950
|
+
@last_entry = args[:last_entry] if args.key?(:last_entry)
|
39951
|
+
end
|
39952
|
+
end
|
39953
|
+
|
39954
|
+
# Configuration for using only the last entry of the conversation history as the
|
39955
|
+
# search key.
|
39956
|
+
class GoogleCloudAiplatformV1beta1StoredContentsExampleSearchKeyGenerationMethodLastEntry
|
39957
|
+
include Google::Apis::Core::Hashable
|
39958
|
+
|
39959
|
+
def initialize(**args)
|
39960
|
+
update!(**args)
|
39961
|
+
end
|
39962
|
+
|
39963
|
+
# Update properties of this object
|
39964
|
+
def update!(**args)
|
39965
|
+
end
|
39966
|
+
end
|
39967
|
+
|
38169
39968
|
# Assigns input data to the training, validation, and test sets so that the
|
38170
39969
|
# distribution of values found in the categorical column (as specified by the `
|
38171
39970
|
# key` field) is mirrored within each split. The fraction values determine the
|
@@ -42489,7 +44288,9 @@ module Google
|
|
42489
44288
|
class GoogleCloudAiplatformV1beta1TuningJob
|
42490
44289
|
include Google::Apis::Core::Hashable
|
42491
44290
|
|
42492
|
-
# The base model that is being tuned
|
44291
|
+
# The base model that is being tuned. See [Supported models](https://cloud.
|
44292
|
+
# google.com/vertex-ai/generative-ai/docs/model-reference/tuning#
|
44293
|
+
# supported_models).
|
42493
44294
|
# Corresponds to the JSON property `baseModel`
|
42494
44295
|
# @return [String]
|
42495
44296
|
attr_accessor :base_model
|
@@ -43383,6 +45184,85 @@ module Google
|
|
43383
45184
|
end
|
43384
45185
|
end
|
43385
45186
|
|
45187
|
+
# Request message for ExampleStoreService.UpsertExamples.
|
45188
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesRequest
|
45189
|
+
include Google::Apis::Core::Hashable
|
45190
|
+
|
45191
|
+
# Required. A list of examples to be created/updated.
|
45192
|
+
# Corresponds to the JSON property `examples`
|
45193
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example>]
|
45194
|
+
attr_accessor :examples
|
45195
|
+
|
45196
|
+
# Optional. A flag indicating whether an example can be overwritten if it
|
45197
|
+
# already exists. If False (default) and the example already exists, the example
|
45198
|
+
# will not be updated. This does not affect behavior if the example does not
|
45199
|
+
# exist already.
|
45200
|
+
# Corresponds to the JSON property `overwrite`
|
45201
|
+
# @return [Boolean]
|
45202
|
+
attr_accessor :overwrite
|
45203
|
+
alias_method :overwrite?, :overwrite
|
45204
|
+
|
45205
|
+
def initialize(**args)
|
45206
|
+
update!(**args)
|
45207
|
+
end
|
45208
|
+
|
45209
|
+
# Update properties of this object
|
45210
|
+
def update!(**args)
|
45211
|
+
@examples = args[:examples] if args.key?(:examples)
|
45212
|
+
@overwrite = args[:overwrite] if args.key?(:overwrite)
|
45213
|
+
end
|
45214
|
+
end
|
45215
|
+
|
45216
|
+
# Response message for ExampleStoreService.UpsertExamples.
|
45217
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesResponse
|
45218
|
+
include Google::Apis::Core::Hashable
|
45219
|
+
|
45220
|
+
# A list of results for creating/updating. It's either a successfully created/
|
45221
|
+
# updated example or a status with an error message.
|
45222
|
+
# Corresponds to the JSON property `results`
|
45223
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponseUpsertResult>]
|
45224
|
+
attr_accessor :results
|
45225
|
+
|
45226
|
+
def initialize(**args)
|
45227
|
+
update!(**args)
|
45228
|
+
end
|
45229
|
+
|
45230
|
+
# Update properties of this object
|
45231
|
+
def update!(**args)
|
45232
|
+
@results = args[:results] if args.key?(:results)
|
45233
|
+
end
|
45234
|
+
end
|
45235
|
+
|
45236
|
+
# The result for creating/updating a single example.
|
45237
|
+
class GoogleCloudAiplatformV1beta1UpsertExamplesResponseUpsertResult
|
45238
|
+
include Google::Apis::Core::Hashable
|
45239
|
+
|
45240
|
+
# A single example to upload or read from the Example Store.
|
45241
|
+
# Corresponds to the JSON property `example`
|
45242
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example]
|
45243
|
+
attr_accessor :example
|
45244
|
+
|
45245
|
+
# The `Status` type defines a logical error model that is suitable for different
|
45246
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
45247
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
45248
|
+
# data: error code, error message, and error details. You can find out more
|
45249
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
45250
|
+
# //cloud.google.com/apis/design/errors).
|
45251
|
+
# Corresponds to the JSON property `status`
|
45252
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
45253
|
+
attr_accessor :status
|
45254
|
+
|
45255
|
+
def initialize(**args)
|
45256
|
+
update!(**args)
|
45257
|
+
end
|
45258
|
+
|
45259
|
+
# Update properties of this object
|
45260
|
+
def update!(**args)
|
45261
|
+
@example = args[:example] if args.key?(:example)
|
45262
|
+
@status = args[:status] if args.key?(:status)
|
45263
|
+
end
|
45264
|
+
end
|
45265
|
+
|
43386
45266
|
# References an API call. It contains more information about long running
|
43387
45267
|
# operation and Jobs that are triggered by the API call.
|
43388
45268
|
class GoogleCloudAiplatformV1beta1UserActionReference
|