google-apis-aiplatform_v1beta1 0.56.0 → 0.58.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 +828 -60
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +342 -21
- data/lib/google/apis/aiplatform_v1beta1/service.rb +70 -0
- metadata +2 -2
@@ -1118,18 +1118,6 @@ module Google
|
|
1118
1118
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiRequestReadConfig]
|
1119
1119
|
attr_accessor :gemini_request_read_config
|
1120
1120
|
|
1121
|
-
# Template configuration to create Gemini examples from a multimodal dataset.
|
1122
|
-
# Corresponds to the JSON property `geminiTemplateConfig`
|
1123
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiTemplateConfig]
|
1124
|
-
attr_accessor :gemini_template_config
|
1125
|
-
|
1126
|
-
# Optional. The column name in the underlying table that contains already fully
|
1127
|
-
# assembled requests. If this field is set, the original request will be copied
|
1128
|
-
# to the output table.
|
1129
|
-
# Corresponds to the JSON property `requestColumnName`
|
1130
|
-
# @return [String]
|
1131
|
-
attr_accessor :request_column_name
|
1132
|
-
|
1133
1121
|
def initialize(**args)
|
1134
1122
|
update!(**args)
|
1135
1123
|
end
|
@@ -1137,8 +1125,6 @@ module Google
|
|
1137
1125
|
# Update properties of this object
|
1138
1126
|
def update!(**args)
|
1139
1127
|
@gemini_request_read_config = args[:gemini_request_read_config] if args.key?(:gemini_request_read_config)
|
1140
|
-
@gemini_template_config = args[:gemini_template_config] if args.key?(:gemini_template_config)
|
1141
|
-
@request_column_name = args[:request_column_name] if args.key?(:request_column_name)
|
1142
1128
|
end
|
1143
1129
|
end
|
1144
1130
|
|
@@ -1162,17 +1148,6 @@ module Google
|
|
1162
1148
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiRequestReadConfig]
|
1163
1149
|
attr_accessor :gemini_request_read_config
|
1164
1150
|
|
1165
|
-
# Template configuration to create Gemini examples from a multimodal dataset.
|
1166
|
-
# Corresponds to the JSON property `geminiTemplateConfig`
|
1167
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiTemplateConfig]
|
1168
|
-
attr_accessor :gemini_template_config
|
1169
|
-
|
1170
|
-
# Optional. The column name in the underlying table that contains already fully
|
1171
|
-
# assembled requests.
|
1172
|
-
# Corresponds to the JSON property `requestColumnName`
|
1173
|
-
# @return [String]
|
1174
|
-
attr_accessor :request_column_name
|
1175
|
-
|
1176
1151
|
# Configuration for the tuning resource usage assessment.
|
1177
1152
|
# Corresponds to the JSON property `tuningResourceUsageAssessmentConfig`
|
1178
1153
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequestTuningResourceUsageAssessmentConfig]
|
@@ -1192,8 +1167,6 @@ module Google
|
|
1192
1167
|
@batch_prediction_resource_usage_assessment_config = args[:batch_prediction_resource_usage_assessment_config] if args.key?(:batch_prediction_resource_usage_assessment_config)
|
1193
1168
|
@batch_prediction_validation_assessment_config = args[:batch_prediction_validation_assessment_config] if args.key?(:batch_prediction_validation_assessment_config)
|
1194
1169
|
@gemini_request_read_config = args[:gemini_request_read_config] if args.key?(:gemini_request_read_config)
|
1195
|
-
@gemini_template_config = args[:gemini_template_config] if args.key?(:gemini_template_config)
|
1196
|
-
@request_column_name = args[:request_column_name] if args.key?(:request_column_name)
|
1197
1170
|
@tuning_resource_usage_assessment_config = args[:tuning_resource_usage_assessment_config] if args.key?(:tuning_resource_usage_assessment_config)
|
1198
1171
|
@tuning_validation_assessment_config = args[:tuning_validation_assessment_config] if args.key?(:tuning_validation_assessment_config)
|
1199
1172
|
end
|
@@ -1809,7 +1782,8 @@ module Google
|
|
1809
1782
|
|
1810
1783
|
# Required. The resource metric name. Supported metrics: * For Online Prediction:
|
1811
1784
|
# * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `
|
1812
|
-
# aiplatform.googleapis.com/prediction/online/cpu/utilization`
|
1785
|
+
# aiplatform.googleapis.com/prediction/online/cpu/utilization` * `aiplatform.
|
1786
|
+
# googleapis.com/prediction/online/request_count`
|
1813
1787
|
# Corresponds to the JSON property `metricName`
|
1814
1788
|
# @return [String]
|
1815
1789
|
attr_accessor :metric_name
|
@@ -2037,6 +2011,12 @@ module Google
|
|
2037
2011
|
class GoogleCloudAiplatformV1beta1BatchDedicatedResources
|
2038
2012
|
include Google::Apis::Core::Hashable
|
2039
2013
|
|
2014
|
+
# FlexStart is used to schedule the deployment workload on DWS resource. It
|
2015
|
+
# contains the max duration of the deployment.
|
2016
|
+
# Corresponds to the JSON property `flexStart`
|
2017
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FlexStart]
|
2018
|
+
attr_accessor :flex_start
|
2019
|
+
|
2040
2020
|
# Specification of a single machine.
|
2041
2021
|
# Corresponds to the JSON property `machineSpec`
|
2042
2022
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec]
|
@@ -2048,6 +2028,13 @@ module Google
|
|
2048
2028
|
# @return [Fixnum]
|
2049
2029
|
attr_accessor :max_replica_count
|
2050
2030
|
|
2031
|
+
# Optional. If true, schedule the deployment workload on [spot VMs](https://
|
2032
|
+
# cloud.google.com/kubernetes-engine/docs/concepts/spot-vms).
|
2033
|
+
# Corresponds to the JSON property `spot`
|
2034
|
+
# @return [Boolean]
|
2035
|
+
attr_accessor :spot
|
2036
|
+
alias_method :spot?, :spot
|
2037
|
+
|
2051
2038
|
# Immutable. The number of machine replicas used at the start of the batch
|
2052
2039
|
# operation. If not set, Vertex AI decides starting number, not greater than
|
2053
2040
|
# max_replica_count
|
@@ -2061,8 +2048,10 @@ module Google
|
|
2061
2048
|
|
2062
2049
|
# Update properties of this object
|
2063
2050
|
def update!(**args)
|
2051
|
+
@flex_start = args[:flex_start] if args.key?(:flex_start)
|
2064
2052
|
@machine_spec = args[:machine_spec] if args.key?(:machine_spec)
|
2065
2053
|
@max_replica_count = args[:max_replica_count] if args.key?(:max_replica_count)
|
2054
|
+
@spot = args[:spot] if args.key?(:spot)
|
2066
2055
|
@starting_replica_count = args[:starting_replica_count] if args.key?(:starting_replica_count)
|
2067
2056
|
end
|
2068
2057
|
end
|
@@ -6212,6 +6201,18 @@ module Google
|
|
6212
6201
|
class GoogleCloudAiplatformV1beta1DatasetStats
|
6213
6202
|
include Google::Apis::Core::Hashable
|
6214
6203
|
|
6204
|
+
# Output only. A partial sample of the indices (starting from 1) of the dropped
|
6205
|
+
# examples.
|
6206
|
+
# Corresponds to the JSON property `droppedExampleIndices`
|
6207
|
+
# @return [Array<Fixnum>]
|
6208
|
+
attr_accessor :dropped_example_indices
|
6209
|
+
|
6210
|
+
# Output only. For each index in `dropped_example_indices`, the user-facing
|
6211
|
+
# reason why the example was dropped.
|
6212
|
+
# Corresponds to the JSON property `droppedExampleReasons`
|
6213
|
+
# @return [Array<String>]
|
6214
|
+
attr_accessor :dropped_example_reasons
|
6215
|
+
|
6215
6216
|
# Output only. Number of billable characters in the tuning dataset.
|
6216
6217
|
# Corresponds to the JSON property `totalBillableCharacterCount`
|
6217
6218
|
# @return [Fixnum]
|
@@ -6258,6 +6259,8 @@ module Google
|
|
6258
6259
|
|
6259
6260
|
# Update properties of this object
|
6260
6261
|
def update!(**args)
|
6262
|
+
@dropped_example_indices = args[:dropped_example_indices] if args.key?(:dropped_example_indices)
|
6263
|
+
@dropped_example_reasons = args[:dropped_example_reasons] if args.key?(:dropped_example_reasons)
|
6261
6264
|
@total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
|
6262
6265
|
@total_tuning_character_count = args[:total_tuning_character_count] if args.key?(:total_tuning_character_count)
|
6263
6266
|
@tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
|
@@ -6992,12 +6995,26 @@ module Google
|
|
6992
6995
|
class GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig
|
6993
6996
|
include Google::Apis::Core::Hashable
|
6994
6997
|
|
6995
|
-
# Optional.
|
6996
|
-
#
|
6997
|
-
# isolated from other users' traffic and
|
6998
|
-
# reliability. Note: Once you enabled dedicated
|
6999
|
-
# send request to the shared DNS `region`-
|
7000
|
-
# limitations will be removed soon.
|
6998
|
+
# Optional. By default, if dedicated endpoint is enabled, the endpoint will be
|
6999
|
+
# exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your
|
7000
|
+
# request to the dedicated DNS will be isolated from other users' traffic and
|
7001
|
+
# will have better performance and reliability. Note: Once you enabled dedicated
|
7002
|
+
# endpoint, you won't be able to send request to the shared DNS `region`-
|
7003
|
+
# aiplatform.googleapis.com. The limitations will be removed soon. If this field
|
7004
|
+
# is set to true, the dedicated endpoint will be disabled and the deployed model
|
7005
|
+
# will be exposed through the shared DNS `region`-aiplatform.googleapis.com.
|
7006
|
+
# Corresponds to the JSON property `dedicatedEndpointDisabled`
|
7007
|
+
# @return [Boolean]
|
7008
|
+
attr_accessor :dedicated_endpoint_disabled
|
7009
|
+
alias_method :dedicated_endpoint_disabled?, :dedicated_endpoint_disabled
|
7010
|
+
|
7011
|
+
# Optional. Deprecated. Use dedicated_endpoint_disabled instead. If true, the
|
7012
|
+
# endpoint will be exposed through a dedicated DNS [Endpoint.
|
7013
|
+
# dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated
|
7014
|
+
# from other users' traffic and will have better performance and reliability.
|
7015
|
+
# Note: Once you enabled dedicated endpoint, you won't be able to send request
|
7016
|
+
# to the shared DNS `region`-aiplatform.googleapis.com. The limitations will be
|
7017
|
+
# removed soon.
|
7001
7018
|
# Corresponds to the JSON property `dedicatedEndpointEnabled`
|
7002
7019
|
# @return [Boolean]
|
7003
7020
|
attr_accessor :dedicated_endpoint_enabled
|
@@ -7009,14 +7026,29 @@ module Google
|
|
7009
7026
|
# @return [String]
|
7010
7027
|
attr_accessor :endpoint_display_name
|
7011
7028
|
|
7029
|
+
# Optional. Immutable. The ID to use for endpoint, which will become the final
|
7030
|
+
# component of the endpoint resource name. If not provided, Vertex AI will
|
7031
|
+
# generate a value for this ID. If the first character is a letter, this value
|
7032
|
+
# may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last
|
7033
|
+
# character must be a letter or number. If the first character is a number, this
|
7034
|
+
# value may be up to 9 characters, and valid characters are `[0-9]` with no
|
7035
|
+
# leading zeros. When using HTTP/JSON, this field is populated based on a query
|
7036
|
+
# string argument, such as `?endpoint_id=12345`. This is the fallback for fields
|
7037
|
+
# that are not included in either the URI or the body.
|
7038
|
+
# Corresponds to the JSON property `endpointUserId`
|
7039
|
+
# @return [String]
|
7040
|
+
attr_accessor :endpoint_user_id
|
7041
|
+
|
7012
7042
|
def initialize(**args)
|
7013
7043
|
update!(**args)
|
7014
7044
|
end
|
7015
7045
|
|
7016
7046
|
# Update properties of this object
|
7017
7047
|
def update!(**args)
|
7048
|
+
@dedicated_endpoint_disabled = args[:dedicated_endpoint_disabled] if args.key?(:dedicated_endpoint_disabled)
|
7018
7049
|
@dedicated_endpoint_enabled = args[:dedicated_endpoint_enabled] if args.key?(:dedicated_endpoint_enabled)
|
7019
7050
|
@endpoint_display_name = args[:endpoint_display_name] if args.key?(:endpoint_display_name)
|
7051
|
+
@endpoint_user_id = args[:endpoint_user_id] if args.key?(:endpoint_user_id)
|
7020
7052
|
end
|
7021
7053
|
end
|
7022
7054
|
|
@@ -7142,6 +7174,12 @@ module Google
|
|
7142
7174
|
# @return [String]
|
7143
7175
|
attr_accessor :deployment_group
|
7144
7176
|
|
7177
|
+
# Optional. The deployment tier that the index is deployed to.
|
7178
|
+
# DEPLOYMENT_TIER_UNSPECIFIED defaults to PERFORMANCE.
|
7179
|
+
# Corresponds to the JSON property `deploymentTier`
|
7180
|
+
# @return [String]
|
7181
|
+
attr_accessor :deployment_tier
|
7182
|
+
|
7145
7183
|
# The display name of the DeployedIndex. If not provided upon creation, the
|
7146
7184
|
# Index's display_name is used.
|
7147
7185
|
# Corresponds to the JSON property `displayName`
|
@@ -7234,6 +7272,7 @@ module Google
|
|
7234
7272
|
@dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
|
7235
7273
|
@deployed_index_auth_config = args[:deployed_index_auth_config] if args.key?(:deployed_index_auth_config)
|
7236
7274
|
@deployment_group = args[:deployment_group] if args.key?(:deployment_group)
|
7275
|
+
@deployment_tier = args[:deployment_tier] if args.key?(:deployment_tier)
|
7237
7276
|
@display_name = args[:display_name] if args.key?(:display_name)
|
7238
7277
|
@enable_access_logging = args[:enable_access_logging] if args.key?(:enable_access_logging)
|
7239
7278
|
@enable_datapoint_upsert_logging = args[:enable_datapoint_upsert_logging] if args.key?(:enable_datapoint_upsert_logging)
|
@@ -8211,12 +8250,19 @@ module Google
|
|
8211
8250
|
class GoogleCloudAiplatformV1beta1EnterpriseWebSearch
|
8212
8251
|
include Google::Apis::Core::Hashable
|
8213
8252
|
|
8253
|
+
# Optional. List of domains to be excluded from the search results. The default
|
8254
|
+
# limit is 2000 domains.
|
8255
|
+
# Corresponds to the JSON property `excludeDomains`
|
8256
|
+
# @return [Array<String>]
|
8257
|
+
attr_accessor :exclude_domains
|
8258
|
+
|
8214
8259
|
def initialize(**args)
|
8215
8260
|
update!(**args)
|
8216
8261
|
end
|
8217
8262
|
|
8218
8263
|
# Update properties of this object
|
8219
8264
|
def update!(**args)
|
8265
|
+
@exclude_domains = args[:exclude_domains] if args.key?(:exclude_domains)
|
8220
8266
|
end
|
8221
8267
|
end
|
8222
8268
|
|
@@ -8472,6 +8518,44 @@ module Google
|
|
8472
8518
|
end
|
8473
8519
|
end
|
8474
8520
|
|
8521
|
+
# Evaluate Dataset Run Result for Tuning Job.
|
8522
|
+
class GoogleCloudAiplatformV1beta1EvaluateDatasetRun
|
8523
|
+
include Google::Apis::Core::Hashable
|
8524
|
+
|
8525
|
+
# Output only. The checkpoint id used in the evaluation run. Only populated when
|
8526
|
+
# evaluating checkpoints.
|
8527
|
+
# Corresponds to the JSON property `checkpointId`
|
8528
|
+
# @return [String]
|
8529
|
+
attr_accessor :checkpoint_id
|
8530
|
+
|
8531
|
+
# The `Status` type defines a logical error model that is suitable for different
|
8532
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
8533
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
8534
|
+
# data: error code, error message, and error details. You can find out more
|
8535
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
8536
|
+
# //cloud.google.com/apis/design/errors).
|
8537
|
+
# Corresponds to the JSON property `error`
|
8538
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
8539
|
+
attr_accessor :error
|
8540
|
+
|
8541
|
+
# Output only. The operation ID of the evaluation run. Format: `projects/`
|
8542
|
+
# project`/locations/`location`/operations/`operation_id``.
|
8543
|
+
# Corresponds to the JSON property `operationName`
|
8544
|
+
# @return [String]
|
8545
|
+
attr_accessor :operation_name
|
8546
|
+
|
8547
|
+
def initialize(**args)
|
8548
|
+
update!(**args)
|
8549
|
+
end
|
8550
|
+
|
8551
|
+
# Update properties of this object
|
8552
|
+
def update!(**args)
|
8553
|
+
@checkpoint_id = args[:checkpoint_id] if args.key?(:checkpoint_id)
|
8554
|
+
@error = args[:error] if args.key?(:error)
|
8555
|
+
@operation_name = args[:operation_name] if args.key?(:operation_name)
|
8556
|
+
end
|
8557
|
+
end
|
8558
|
+
|
8475
8559
|
# Request message for EvaluationService.EvaluateInstances.
|
8476
8560
|
class GoogleCloudAiplatformV1beta1EvaluateInstancesRequest
|
8477
8561
|
include Google::Apis::Core::Hashable
|
@@ -8995,6 +9079,38 @@ module Google
|
|
8995
9079
|
end
|
8996
9080
|
end
|
8997
9081
|
|
9082
|
+
# Evaluation Config for Tuning Job.
|
9083
|
+
class GoogleCloudAiplatformV1beta1EvaluationConfig
|
9084
|
+
include Google::Apis::Core::Hashable
|
9085
|
+
|
9086
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
9087
|
+
# EvaluateDataset.
|
9088
|
+
# Corresponds to the JSON property `autoraterConfig`
|
9089
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AutoraterConfig]
|
9090
|
+
attr_accessor :autorater_config
|
9091
|
+
|
9092
|
+
# Required. The metrics used for evaluation.
|
9093
|
+
# Corresponds to the JSON property `metrics`
|
9094
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric>]
|
9095
|
+
attr_accessor :metrics
|
9096
|
+
|
9097
|
+
# Config for evaluation output.
|
9098
|
+
# Corresponds to the JSON property `outputConfig`
|
9099
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OutputConfig]
|
9100
|
+
attr_accessor :output_config
|
9101
|
+
|
9102
|
+
def initialize(**args)
|
9103
|
+
update!(**args)
|
9104
|
+
end
|
9105
|
+
|
9106
|
+
# Update properties of this object
|
9107
|
+
def update!(**args)
|
9108
|
+
@autorater_config = args[:autorater_config] if args.key?(:autorater_config)
|
9109
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
9110
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
9111
|
+
end
|
9112
|
+
end
|
9113
|
+
|
8998
9114
|
# The dataset used for evaluation.
|
8999
9115
|
class GoogleCloudAiplatformV1beta1EvaluationDataset
|
9000
9116
|
include Google::Apis::Core::Hashable
|
@@ -14684,6 +14800,59 @@ module Google
|
|
14684
14800
|
end
|
14685
14801
|
end
|
14686
14802
|
|
14803
|
+
# Input example for preference optimization.
|
14804
|
+
class GoogleCloudAiplatformV1beta1GeminiPreferenceExample
|
14805
|
+
include Google::Apis::Core::Hashable
|
14806
|
+
|
14807
|
+
# List of completions for a given prompt.
|
14808
|
+
# Corresponds to the JSON property `completions`
|
14809
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExampleCompletion>]
|
14810
|
+
attr_accessor :completions
|
14811
|
+
|
14812
|
+
# Multi-turn contents that represents the Prompt.
|
14813
|
+
# Corresponds to the JSON property `contents`
|
14814
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
14815
|
+
attr_accessor :contents
|
14816
|
+
|
14817
|
+
def initialize(**args)
|
14818
|
+
update!(**args)
|
14819
|
+
end
|
14820
|
+
|
14821
|
+
# Update properties of this object
|
14822
|
+
def update!(**args)
|
14823
|
+
@completions = args[:completions] if args.key?(:completions)
|
14824
|
+
@contents = args[:contents] if args.key?(:contents)
|
14825
|
+
end
|
14826
|
+
end
|
14827
|
+
|
14828
|
+
# Completion and its preference score.
|
14829
|
+
class GoogleCloudAiplatformV1beta1GeminiPreferenceExampleCompletion
|
14830
|
+
include Google::Apis::Core::Hashable
|
14831
|
+
|
14832
|
+
# The base structured datatype containing multi-part content of a message. A `
|
14833
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
14834
|
+
# a `parts` field containing multi-part data that contains the content of the
|
14835
|
+
# message turn.
|
14836
|
+
# Corresponds to the JSON property `completion`
|
14837
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
14838
|
+
attr_accessor :completion
|
14839
|
+
|
14840
|
+
# The score for the given completion.
|
14841
|
+
# Corresponds to the JSON property `score`
|
14842
|
+
# @return [Float]
|
14843
|
+
attr_accessor :score
|
14844
|
+
|
14845
|
+
def initialize(**args)
|
14846
|
+
update!(**args)
|
14847
|
+
end
|
14848
|
+
|
14849
|
+
# Update properties of this object
|
14850
|
+
def update!(**args)
|
14851
|
+
@completion = args[:completion] if args.key?(:completion)
|
14852
|
+
@score = args[:score] if args.key?(:score)
|
14853
|
+
end
|
14854
|
+
end
|
14855
|
+
|
14687
14856
|
# Configuration for how to read Gemini requests from a multimodal dataset.
|
14688
14857
|
class GoogleCloudAiplatformV1beta1GeminiRequestReadConfig
|
14689
14858
|
include Google::Apis::Core::Hashable
|
@@ -14870,6 +15039,11 @@ module Google
|
|
14870
15039
|
# @return [Hash<String,String>]
|
14871
15040
|
attr_accessor :labels
|
14872
15041
|
|
15042
|
+
# Configuration for Model Armor integrations of prompt and responses.
|
15043
|
+
# Corresponds to the JSON property `modelArmorConfig`
|
15044
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelArmorConfig]
|
15045
|
+
attr_accessor :model_armor_config
|
15046
|
+
|
14873
15047
|
# Optional. Per request settings for blocking unsafe content. Enforced on
|
14874
15048
|
# GenerateContentResponse.candidates.
|
14875
15049
|
# Corresponds to the JSON property `safetySettings`
|
@@ -14907,6 +15081,7 @@ module Google
|
|
14907
15081
|
@contents = args[:contents] if args.key?(:contents)
|
14908
15082
|
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
14909
15083
|
@labels = args[:labels] if args.key?(:labels)
|
15084
|
+
@model_armor_config = args[:model_armor_config] if args.key?(:model_armor_config)
|
14910
15085
|
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
14911
15086
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
14912
15087
|
@tool_config = args[:tool_config] if args.key?(:tool_config)
|
@@ -15089,6 +15264,12 @@ module Google
|
|
15089
15264
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSource]
|
15090
15265
|
attr_accessor :direct_contents_source
|
15091
15266
|
|
15267
|
+
# Defines a direct source of memories that should be uploaded to Memory Bank
|
15268
|
+
# with consolidation.
|
15269
|
+
# Corresponds to the JSON property `directMemoriesSource`
|
15270
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSource]
|
15271
|
+
attr_accessor :direct_memories_source
|
15272
|
+
|
15092
15273
|
# Optional. If true, generated memories will not be consolidated with existing
|
15093
15274
|
# memories; all generated memories will be added as new memories regardless of
|
15094
15275
|
# whether they are duplicates of or contradictory to existing memories. By
|
@@ -15121,6 +15302,7 @@ module Google
|
|
15121
15302
|
# Update properties of this object
|
15122
15303
|
def update!(**args)
|
15123
15304
|
@direct_contents_source = args[:direct_contents_source] if args.key?(:direct_contents_source)
|
15305
|
+
@direct_memories_source = args[:direct_memories_source] if args.key?(:direct_memories_source)
|
15124
15306
|
@disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation)
|
15125
15307
|
@scope = args[:scope] if args.key?(:scope)
|
15126
15308
|
@vertex_session_source = args[:vertex_session_source] if args.key?(:vertex_session_source)
|
@@ -15168,6 +15350,46 @@ module Google
|
|
15168
15350
|
end
|
15169
15351
|
end
|
15170
15352
|
|
15353
|
+
# Defines a direct source of memories that should be uploaded to Memory Bank
|
15354
|
+
# with consolidation.
|
15355
|
+
class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSource
|
15356
|
+
include Google::Apis::Core::Hashable
|
15357
|
+
|
15358
|
+
# Required. The direct memories to upload to Memory Bank. At most 5 direct
|
15359
|
+
# memories are allowed per request.
|
15360
|
+
# Corresponds to the JSON property `directMemories`
|
15361
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory>]
|
15362
|
+
attr_accessor :direct_memories
|
15363
|
+
|
15364
|
+
def initialize(**args)
|
15365
|
+
update!(**args)
|
15366
|
+
end
|
15367
|
+
|
15368
|
+
# Update properties of this object
|
15369
|
+
def update!(**args)
|
15370
|
+
@direct_memories = args[:direct_memories] if args.key?(:direct_memories)
|
15371
|
+
end
|
15372
|
+
end
|
15373
|
+
|
15374
|
+
# A direct memory to upload to Memory Bank.
|
15375
|
+
class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory
|
15376
|
+
include Google::Apis::Core::Hashable
|
15377
|
+
|
15378
|
+
# Required. The fact to consolidate with existing memories.
|
15379
|
+
# Corresponds to the JSON property `fact`
|
15380
|
+
# @return [String]
|
15381
|
+
attr_accessor :fact
|
15382
|
+
|
15383
|
+
def initialize(**args)
|
15384
|
+
update!(**args)
|
15385
|
+
end
|
15386
|
+
|
15387
|
+
# Update properties of this object
|
15388
|
+
def update!(**args)
|
15389
|
+
@fact = args[:fact] if args.key?(:fact)
|
15390
|
+
end
|
15391
|
+
end
|
15392
|
+
|
15171
15393
|
# Defines an Agent Engine Session from which to generate the memories. If `scope`
|
15172
15394
|
# is not provided, the scope will be extracted from the Session (i.e. `"user_id"
|
15173
15395
|
# : sesison.user_id`).
|
@@ -15979,6 +16201,12 @@ module Google
|
|
15979
16201
|
class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
|
15980
16202
|
include Google::Apis::Core::Hashable
|
15981
16203
|
|
16204
|
+
# Output only. The full document name for the referenced Vertex AI Search
|
16205
|
+
# document.
|
16206
|
+
# Corresponds to the JSON property `documentName`
|
16207
|
+
# @return [String]
|
16208
|
+
attr_accessor :document_name
|
16209
|
+
|
15982
16210
|
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
15983
16211
|
# metadata.
|
15984
16212
|
# Corresponds to the JSON property `ragChunk`
|
@@ -16006,6 +16234,7 @@ module Google
|
|
16006
16234
|
|
16007
16235
|
# Update properties of this object
|
16008
16236
|
def update!(**args)
|
16237
|
+
@document_name = args[:document_name] if args.key?(:document_name)
|
16009
16238
|
@rag_chunk = args[:rag_chunk] if args.key?(:rag_chunk)
|
16010
16239
|
@text = args[:text] if args.key?(:text)
|
16011
16240
|
@title = args[:title] if args.key?(:title)
|
@@ -19749,6 +19978,12 @@ module Google
|
|
19749
19978
|
# @return [String]
|
19750
19979
|
attr_accessor :display_name
|
19751
19980
|
|
19981
|
+
# Optional. Timestamp of when this resource is considered expired. This is *
|
19982
|
+
# always* provided on output, regardless of what `expiration` was sent on input.
|
19983
|
+
# Corresponds to the JSON property `expireTime`
|
19984
|
+
# @return [String]
|
19985
|
+
attr_accessor :expire_time
|
19986
|
+
|
19752
19987
|
# Required. Semantic knowledge extracted from the source content.
|
19753
19988
|
# Corresponds to the JSON property `fact`
|
19754
19989
|
# @return [String]
|
@@ -19767,6 +20002,12 @@ module Google
|
|
19767
20002
|
# @return [Hash<String,String>]
|
19768
20003
|
attr_accessor :scope
|
19769
20004
|
|
20005
|
+
# Optional. Input only. The TTL for this resource. The expiration time is
|
20006
|
+
# computed: now + TTL.
|
20007
|
+
# Corresponds to the JSON property `ttl`
|
20008
|
+
# @return [String]
|
20009
|
+
attr_accessor :ttl
|
20010
|
+
|
19770
20011
|
# Output only. Timestamp when this Memory was most recently updated.
|
19771
20012
|
# Corresponds to the JSON property `updateTime`
|
19772
20013
|
# @return [String]
|
@@ -19781,9 +20022,11 @@ module Google
|
|
19781
20022
|
@create_time = args[:create_time] if args.key?(:create_time)
|
19782
20023
|
@description = args[:description] if args.key?(:description)
|
19783
20024
|
@display_name = args[:display_name] if args.key?(:display_name)
|
20025
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
19784
20026
|
@fact = args[:fact] if args.key?(:fact)
|
19785
20027
|
@name = args[:name] if args.key?(:name)
|
19786
20028
|
@scope = args[:scope] if args.key?(:scope)
|
20029
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
19787
20030
|
@update_time = args[:update_time] if args.key?(:update_time)
|
19788
20031
|
end
|
19789
20032
|
end
|
@@ -20846,6 +21089,32 @@ module Google
|
|
20846
21089
|
end
|
20847
21090
|
end
|
20848
21091
|
|
21092
|
+
# Configuration for Model Armor integrations of prompt and responses.
|
21093
|
+
class GoogleCloudAiplatformV1beta1ModelArmorConfig
|
21094
|
+
include Google::Apis::Core::Hashable
|
21095
|
+
|
21096
|
+
# Optional. The name of the Model Armor template to use for prompt sanitization.
|
21097
|
+
# Corresponds to the JSON property `promptTemplateName`
|
21098
|
+
# @return [String]
|
21099
|
+
attr_accessor :prompt_template_name
|
21100
|
+
|
21101
|
+
# Optional. The name of the Model Armor template to use for response
|
21102
|
+
# sanitization.
|
21103
|
+
# Corresponds to the JSON property `responseTemplateName`
|
21104
|
+
# @return [String]
|
21105
|
+
attr_accessor :response_template_name
|
21106
|
+
|
21107
|
+
def initialize(**args)
|
21108
|
+
update!(**args)
|
21109
|
+
end
|
21110
|
+
|
21111
|
+
# Update properties of this object
|
21112
|
+
def update!(**args)
|
21113
|
+
@prompt_template_name = args[:prompt_template_name] if args.key?(:prompt_template_name)
|
21114
|
+
@response_template_name = args[:response_template_name] if args.key?(:response_template_name)
|
21115
|
+
end
|
21116
|
+
end
|
21117
|
+
|
20849
21118
|
# User input field to specify the base model source. Currently it only supports
|
20850
21119
|
# specifing the Model Garden models and Genie models.
|
20851
21120
|
class GoogleCloudAiplatformV1beta1ModelBaseModelSource
|
@@ -25351,6 +25620,50 @@ module Google
|
|
25351
25620
|
end
|
25352
25621
|
end
|
25353
25622
|
|
25623
|
+
# Request message for GenAiTuningService.OptimizePrompt.
|
25624
|
+
class GoogleCloudAiplatformV1beta1OptimizePromptRequest
|
25625
|
+
include Google::Apis::Core::Hashable
|
25626
|
+
|
25627
|
+
# The base structured datatype containing multi-part content of a message. A `
|
25628
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
25629
|
+
# a `parts` field containing multi-part data that contains the content of the
|
25630
|
+
# message turn.
|
25631
|
+
# Corresponds to the JSON property `content`
|
25632
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
25633
|
+
attr_accessor :content
|
25634
|
+
|
25635
|
+
def initialize(**args)
|
25636
|
+
update!(**args)
|
25637
|
+
end
|
25638
|
+
|
25639
|
+
# Update properties of this object
|
25640
|
+
def update!(**args)
|
25641
|
+
@content = args[:content] if args.key?(:content)
|
25642
|
+
end
|
25643
|
+
end
|
25644
|
+
|
25645
|
+
# Response message for GenAiTuningService.OptimizePrompt
|
25646
|
+
class GoogleCloudAiplatformV1beta1OptimizePromptResponse
|
25647
|
+
include Google::Apis::Core::Hashable
|
25648
|
+
|
25649
|
+
# The base structured datatype containing multi-part content of a message. A `
|
25650
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
25651
|
+
# a `parts` field containing multi-part data that contains the content of the
|
25652
|
+
# message turn.
|
25653
|
+
# Corresponds to the JSON property `content`
|
25654
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
25655
|
+
attr_accessor :content
|
25656
|
+
|
25657
|
+
def initialize(**args)
|
25658
|
+
update!(**args)
|
25659
|
+
end
|
25660
|
+
|
25661
|
+
# Update properties of this object
|
25662
|
+
def update!(**args)
|
25663
|
+
@content = args[:content] if args.key?(:content)
|
25664
|
+
end
|
25665
|
+
end
|
25666
|
+
|
25354
25667
|
# Config for evaluation output.
|
25355
25668
|
class GoogleCloudAiplatformV1beta1OutputConfig
|
25356
25669
|
include Google::Apis::Core::Hashable
|
@@ -27051,6 +27364,42 @@ module Google
|
|
27051
27364
|
end
|
27052
27365
|
end
|
27053
27366
|
|
27367
|
+
# A pre-tuned model for continuous tuning.
|
27368
|
+
class GoogleCloudAiplatformV1beta1PreTunedModel
|
27369
|
+
include Google::Apis::Core::Hashable
|
27370
|
+
|
27371
|
+
# Output only. The name of the base model this PreTunedModel was tuned from.
|
27372
|
+
# Corresponds to the JSON property `baseModel`
|
27373
|
+
# @return [String]
|
27374
|
+
attr_accessor :base_model
|
27375
|
+
|
27376
|
+
# Optional. The source checkpoint id. If not specified, the default checkpoint
|
27377
|
+
# will be used.
|
27378
|
+
# Corresponds to the JSON property `checkpointId`
|
27379
|
+
# @return [String]
|
27380
|
+
attr_accessor :checkpoint_id
|
27381
|
+
|
27382
|
+
# The resource name of the Model. E.g., a model resource name with a specified
|
27383
|
+
# version id or alias: `projects/`project`/locations/`location`/models/`model`@`
|
27384
|
+
# version_id`` `projects/`project`/locations/`location`/models/`model`@`alias``
|
27385
|
+
# Or, omit the version id to use the default version: `projects/`project`/
|
27386
|
+
# locations/`location`/models/`model``
|
27387
|
+
# Corresponds to the JSON property `tunedModelName`
|
27388
|
+
# @return [String]
|
27389
|
+
attr_accessor :tuned_model_name
|
27390
|
+
|
27391
|
+
def initialize(**args)
|
27392
|
+
update!(**args)
|
27393
|
+
end
|
27394
|
+
|
27395
|
+
# Update properties of this object
|
27396
|
+
def update!(**args)
|
27397
|
+
@base_model = args[:base_model] if args.key?(:base_model)
|
27398
|
+
@checkpoint_id = args[:checkpoint_id] if args.key?(:checkpoint_id)
|
27399
|
+
@tuned_model_name = args[:tuned_model_name] if args.key?(:tuned_model_name)
|
27400
|
+
end
|
27401
|
+
end
|
27402
|
+
|
27054
27403
|
# The configuration for the prebuilt speaker to use.
|
27055
27404
|
class GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig
|
27056
27405
|
include Google::Apis::Core::Hashable
|
@@ -27350,6 +27699,158 @@ module Google
|
|
27350
27699
|
end
|
27351
27700
|
end
|
27352
27701
|
|
27702
|
+
# Statistics computed for datasets used for preference optimization.
|
27703
|
+
class GoogleCloudAiplatformV1beta1PreferenceOptimizationDataStats
|
27704
|
+
include Google::Apis::Core::Hashable
|
27705
|
+
|
27706
|
+
# Output only. A partial sample of the indices (starting from 1) of the dropped
|
27707
|
+
# examples.
|
27708
|
+
# Corresponds to the JSON property `droppedExampleIndices`
|
27709
|
+
# @return [Array<Fixnum>]
|
27710
|
+
attr_accessor :dropped_example_indices
|
27711
|
+
|
27712
|
+
# Output only. For each index in `dropped_example_indices`, the user-facing
|
27713
|
+
# reason why the example was dropped.
|
27714
|
+
# Corresponds to the JSON property `droppedExampleReasons`
|
27715
|
+
# @return [Array<String>]
|
27716
|
+
attr_accessor :dropped_example_reasons
|
27717
|
+
|
27718
|
+
# Distribution computed over a tuning dataset.
|
27719
|
+
# Corresponds to the JSON property `scoreVariancePerExampleDistribution`
|
27720
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution]
|
27721
|
+
attr_accessor :score_variance_per_example_distribution
|
27722
|
+
|
27723
|
+
# Distribution computed over a tuning dataset.
|
27724
|
+
# Corresponds to the JSON property `scoresDistribution`
|
27725
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution]
|
27726
|
+
attr_accessor :scores_distribution
|
27727
|
+
|
27728
|
+
# Output only. Number of billable tokens in the tuning dataset.
|
27729
|
+
# Corresponds to the JSON property `totalBillableTokenCount`
|
27730
|
+
# @return [Fixnum]
|
27731
|
+
attr_accessor :total_billable_token_count
|
27732
|
+
|
27733
|
+
# Output only. Number of examples in the tuning dataset.
|
27734
|
+
# Corresponds to the JSON property `tuningDatasetExampleCount`
|
27735
|
+
# @return [Fixnum]
|
27736
|
+
attr_accessor :tuning_dataset_example_count
|
27737
|
+
|
27738
|
+
# Output only. Number of tuning steps for this Tuning Job.
|
27739
|
+
# Corresponds to the JSON property `tuningStepCount`
|
27740
|
+
# @return [Fixnum]
|
27741
|
+
attr_accessor :tuning_step_count
|
27742
|
+
|
27743
|
+
# Output only. Sample user examples in the training dataset.
|
27744
|
+
# Corresponds to the JSON property `userDatasetExamples`
|
27745
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExample>]
|
27746
|
+
attr_accessor :user_dataset_examples
|
27747
|
+
|
27748
|
+
# Distribution computed over a tuning dataset.
|
27749
|
+
# Corresponds to the JSON property `userInputTokenDistribution`
|
27750
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution]
|
27751
|
+
attr_accessor :user_input_token_distribution
|
27752
|
+
|
27753
|
+
# Distribution computed over a tuning dataset.
|
27754
|
+
# Corresponds to the JSON property `userOutputTokenDistribution`
|
27755
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetDistribution]
|
27756
|
+
attr_accessor :user_output_token_distribution
|
27757
|
+
|
27758
|
+
def initialize(**args)
|
27759
|
+
update!(**args)
|
27760
|
+
end
|
27761
|
+
|
27762
|
+
# Update properties of this object
|
27763
|
+
def update!(**args)
|
27764
|
+
@dropped_example_indices = args[:dropped_example_indices] if args.key?(:dropped_example_indices)
|
27765
|
+
@dropped_example_reasons = args[:dropped_example_reasons] if args.key?(:dropped_example_reasons)
|
27766
|
+
@score_variance_per_example_distribution = args[:score_variance_per_example_distribution] if args.key?(:score_variance_per_example_distribution)
|
27767
|
+
@scores_distribution = args[:scores_distribution] if args.key?(:scores_distribution)
|
27768
|
+
@total_billable_token_count = args[:total_billable_token_count] if args.key?(:total_billable_token_count)
|
27769
|
+
@tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
|
27770
|
+
@tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
|
27771
|
+
@user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
|
27772
|
+
@user_input_token_distribution = args[:user_input_token_distribution] if args.key?(:user_input_token_distribution)
|
27773
|
+
@user_output_token_distribution = args[:user_output_token_distribution] if args.key?(:user_output_token_distribution)
|
27774
|
+
end
|
27775
|
+
end
|
27776
|
+
|
27777
|
+
# Hyperparameters for Preference Optimization.
|
27778
|
+
class GoogleCloudAiplatformV1beta1PreferenceOptimizationHyperParameters
|
27779
|
+
include Google::Apis::Core::Hashable
|
27780
|
+
|
27781
|
+
# Optional. Adapter size for preference optimization.
|
27782
|
+
# Corresponds to the JSON property `adapterSize`
|
27783
|
+
# @return [String]
|
27784
|
+
attr_accessor :adapter_size
|
27785
|
+
|
27786
|
+
# Optional. Weight for KL Divergence regularization.
|
27787
|
+
# Corresponds to the JSON property `beta`
|
27788
|
+
# @return [Float]
|
27789
|
+
attr_accessor :beta
|
27790
|
+
|
27791
|
+
# Optional. Number of complete passes the model makes over the entire training
|
27792
|
+
# dataset during training.
|
27793
|
+
# Corresponds to the JSON property `epochCount`
|
27794
|
+
# @return [Fixnum]
|
27795
|
+
attr_accessor :epoch_count
|
27796
|
+
|
27797
|
+
# Optional. Multiplier for adjusting the default learning rate.
|
27798
|
+
# Corresponds to the JSON property `learningRateMultiplier`
|
27799
|
+
# @return [Float]
|
27800
|
+
attr_accessor :learning_rate_multiplier
|
27801
|
+
|
27802
|
+
def initialize(**args)
|
27803
|
+
update!(**args)
|
27804
|
+
end
|
27805
|
+
|
27806
|
+
# Update properties of this object
|
27807
|
+
def update!(**args)
|
27808
|
+
@adapter_size = args[:adapter_size] if args.key?(:adapter_size)
|
27809
|
+
@beta = args[:beta] if args.key?(:beta)
|
27810
|
+
@epoch_count = args[:epoch_count] if args.key?(:epoch_count)
|
27811
|
+
@learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
|
27812
|
+
end
|
27813
|
+
end
|
27814
|
+
|
27815
|
+
# Tuning Spec for Preference Optimization.
|
27816
|
+
class GoogleCloudAiplatformV1beta1PreferenceOptimizationSpec
|
27817
|
+
include Google::Apis::Core::Hashable
|
27818
|
+
|
27819
|
+
# Evaluation Config for Tuning Job.
|
27820
|
+
# Corresponds to the JSON property `evaluationConfig`
|
27821
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig]
|
27822
|
+
attr_accessor :evaluation_config
|
27823
|
+
|
27824
|
+
# Hyperparameters for Preference Optimization.
|
27825
|
+
# Corresponds to the JSON property `hyperParameters`
|
27826
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationHyperParameters]
|
27827
|
+
attr_accessor :hyper_parameters
|
27828
|
+
|
27829
|
+
# Required. Cloud Storage path to file containing training dataset for
|
27830
|
+
# preference optimization tuning. The dataset must be formatted as a JSONL file.
|
27831
|
+
# Corresponds to the JSON property `trainingDatasetUri`
|
27832
|
+
# @return [String]
|
27833
|
+
attr_accessor :training_dataset_uri
|
27834
|
+
|
27835
|
+
# Optional. Cloud Storage path to file containing validation dataset for
|
27836
|
+
# preference optimization tuning. The dataset must be formatted as a JSONL file.
|
27837
|
+
# Corresponds to the JSON property `validationDatasetUri`
|
27838
|
+
# @return [String]
|
27839
|
+
attr_accessor :validation_dataset_uri
|
27840
|
+
|
27841
|
+
def initialize(**args)
|
27842
|
+
update!(**args)
|
27843
|
+
end
|
27844
|
+
|
27845
|
+
# Update properties of this object
|
27846
|
+
def update!(**args)
|
27847
|
+
@evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config)
|
27848
|
+
@hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
|
27849
|
+
@training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
|
27850
|
+
@validation_dataset_uri = args[:validation_dataset_uri] if args.key?(:validation_dataset_uri)
|
27851
|
+
end
|
27852
|
+
end
|
27853
|
+
|
27353
27854
|
# Preset configuration for example-based explanations
|
27354
27855
|
class GoogleCloudAiplatformV1beta1Presets
|
27355
27856
|
include Google::Apis::Core::Hashable
|
@@ -29439,7 +29940,8 @@ module Google
|
|
29439
29940
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig]
|
29440
29941
|
attr_accessor :rag_embedding_model_config
|
29441
29942
|
|
29442
|
-
# Output only. Number of RagFiles in the RagCorpus.
|
29943
|
+
# Output only. Number of RagFiles in the RagCorpus. NOTE: This field is not
|
29944
|
+
# populated in the response of VertexRagDataService.ListRagCorpora.
|
29443
29945
|
# Corresponds to the JSON property `ragFilesCount`
|
29444
29946
|
# @return [Fixnum]
|
29445
29947
|
attr_accessor :rag_files_count
|
@@ -31319,6 +31821,12 @@ module Google
|
|
31319
31821
|
class GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec
|
31320
31822
|
include Google::Apis::Core::Hashable
|
31321
31823
|
|
31824
|
+
# Optional. Concurrency for each container and agent server. Recommended value:
|
31825
|
+
# 2 * cpu + 1. Defaults to 9.
|
31826
|
+
# Corresponds to the JSON property `containerConcurrency`
|
31827
|
+
# @return [Fixnum]
|
31828
|
+
attr_accessor :container_concurrency
|
31829
|
+
|
31322
31830
|
# Optional. Environment variables to be set with the Reasoning Engine deployment.
|
31323
31831
|
# The environment variables can be updated through the UpdateReasoningEngine
|
31324
31832
|
# API.
|
@@ -31326,6 +31834,32 @@ module Google
|
|
31326
31834
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar>]
|
31327
31835
|
attr_accessor :env
|
31328
31836
|
|
31837
|
+
# Optional. The maximum number of application instances that can be launched to
|
31838
|
+
# handle increased traffic. Defaults to 100.
|
31839
|
+
# Corresponds to the JSON property `maxInstances`
|
31840
|
+
# @return [Fixnum]
|
31841
|
+
attr_accessor :max_instances
|
31842
|
+
|
31843
|
+
# Optional. The minimum number of application instances that will be kept
|
31844
|
+
# running at all times. Defaults to 1.
|
31845
|
+
# Corresponds to the JSON property `minInstances`
|
31846
|
+
# @return [Fixnum]
|
31847
|
+
attr_accessor :min_instances
|
31848
|
+
|
31849
|
+
# Configuration for PSC-I.
|
31850
|
+
# Corresponds to the JSON property `pscInterfaceConfig`
|
31851
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PscInterfaceConfig]
|
31852
|
+
attr_accessor :psc_interface_config
|
31853
|
+
|
31854
|
+
# Optional. Resource limits for each container. Only 'cpu' and 'memory' keys are
|
31855
|
+
# supported. Defaults to `"cpu": "4", "memory": "4Gi"`. * The only supported
|
31856
|
+
# values for CPU are '1', '2', '4', and '8'. For more information, go to https://
|
31857
|
+
# cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and
|
31858
|
+
# syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
|
31859
|
+
# Corresponds to the JSON property `resourceLimits`
|
31860
|
+
# @return [Hash<String,String>]
|
31861
|
+
attr_accessor :resource_limits
|
31862
|
+
|
31329
31863
|
# Optional. Environment variables where the value is a secret in Cloud Secret
|
31330
31864
|
# Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/
|
31331
31865
|
# secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.
|
@@ -31339,7 +31873,12 @@ module Google
|
|
31339
31873
|
|
31340
31874
|
# Update properties of this object
|
31341
31875
|
def update!(**args)
|
31876
|
+
@container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
|
31342
31877
|
@env = args[:env] if args.key?(:env)
|
31878
|
+
@max_instances = args[:max_instances] if args.key?(:max_instances)
|
31879
|
+
@min_instances = args[:min_instances] if args.key?(:min_instances)
|
31880
|
+
@psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
|
31881
|
+
@resource_limits = args[:resource_limits] if args.key?(:resource_limits)
|
31343
31882
|
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
31344
31883
|
end
|
31345
31884
|
end
|
@@ -31460,6 +31999,136 @@ module Google
|
|
31460
31999
|
end
|
31461
32000
|
end
|
31462
32001
|
|
32002
|
+
# Request message for ModelService.RecommendSpec.
|
32003
|
+
class GoogleCloudAiplatformV1beta1RecommendSpecRequest
|
32004
|
+
include Google::Apis::Core::Hashable
|
32005
|
+
|
32006
|
+
# Optional. If true, check machine availability for the recommended regions.
|
32007
|
+
# Only return the machine spec in regions where the machine is available.
|
32008
|
+
# Corresponds to the JSON property `checkMachineAvailability`
|
32009
|
+
# @return [Boolean]
|
32010
|
+
attr_accessor :check_machine_availability
|
32011
|
+
alias_method :check_machine_availability?, :check_machine_availability
|
32012
|
+
|
32013
|
+
# Optional. If true, check user quota for the recommended regions. Returns all
|
32014
|
+
# the machine spec in regions they are available, and also the user quota state
|
32015
|
+
# for each machine type in each region.
|
32016
|
+
# Corresponds to the JSON property `checkUserQuota`
|
32017
|
+
# @return [Boolean]
|
32018
|
+
attr_accessor :check_user_quota
|
32019
|
+
alias_method :check_user_quota?, :check_user_quota
|
32020
|
+
|
32021
|
+
# Required. The Google Cloud Storage URI of the custom model, storing weights
|
32022
|
+
# and config files (which can be used to infer the base model).
|
32023
|
+
# Corresponds to the JSON property `gcsUri`
|
32024
|
+
# @return [String]
|
32025
|
+
attr_accessor :gcs_uri
|
32026
|
+
|
32027
|
+
def initialize(**args)
|
32028
|
+
update!(**args)
|
32029
|
+
end
|
32030
|
+
|
32031
|
+
# Update properties of this object
|
32032
|
+
def update!(**args)
|
32033
|
+
@check_machine_availability = args[:check_machine_availability] if args.key?(:check_machine_availability)
|
32034
|
+
@check_user_quota = args[:check_user_quota] if args.key?(:check_user_quota)
|
32035
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
32036
|
+
end
|
32037
|
+
end
|
32038
|
+
|
32039
|
+
# Response message for ModelService.RecommendSpec.
|
32040
|
+
class GoogleCloudAiplatformV1beta1RecommendSpecResponse
|
32041
|
+
include Google::Apis::Core::Hashable
|
32042
|
+
|
32043
|
+
# Output only. The base model used to finetune the custom model.
|
32044
|
+
# Corresponds to the JSON property `baseModel`
|
32045
|
+
# @return [String]
|
32046
|
+
attr_accessor :base_model
|
32047
|
+
|
32048
|
+
# Output only. Recommendations of deployment options for the given custom
|
32049
|
+
# weights model.
|
32050
|
+
# Corresponds to the JSON property `recommendations`
|
32051
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponseRecommendation>]
|
32052
|
+
attr_accessor :recommendations
|
32053
|
+
|
32054
|
+
# Output only. The machine and model container specs.
|
32055
|
+
# Corresponds to the JSON property `specs`
|
32056
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponseMachineAndModelContainerSpec>]
|
32057
|
+
attr_accessor :specs
|
32058
|
+
|
32059
|
+
def initialize(**args)
|
32060
|
+
update!(**args)
|
32061
|
+
end
|
32062
|
+
|
32063
|
+
# Update properties of this object
|
32064
|
+
def update!(**args)
|
32065
|
+
@base_model = args[:base_model] if args.key?(:base_model)
|
32066
|
+
@recommendations = args[:recommendations] if args.key?(:recommendations)
|
32067
|
+
@specs = args[:specs] if args.key?(:specs)
|
32068
|
+
end
|
32069
|
+
end
|
32070
|
+
|
32071
|
+
# A machine and model container spec.
|
32072
|
+
class GoogleCloudAiplatformV1beta1RecommendSpecResponseMachineAndModelContainerSpec
|
32073
|
+
include Google::Apis::Core::Hashable
|
32074
|
+
|
32075
|
+
# Specification of a container for serving predictions. Some fields in this
|
32076
|
+
# message correspond to fields in the [Kubernetes Container v1 core
|
32077
|
+
# specification](https://kubernetes.io/docs/reference/generated/kubernetes-api/
|
32078
|
+
# v1.23/#container-v1-core).
|
32079
|
+
# Corresponds to the JSON property `containerSpec`
|
32080
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelContainerSpec]
|
32081
|
+
attr_accessor :container_spec
|
32082
|
+
|
32083
|
+
# Specification of a single machine.
|
32084
|
+
# Corresponds to the JSON property `machineSpec`
|
32085
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec]
|
32086
|
+
attr_accessor :machine_spec
|
32087
|
+
|
32088
|
+
def initialize(**args)
|
32089
|
+
update!(**args)
|
32090
|
+
end
|
32091
|
+
|
32092
|
+
# Update properties of this object
|
32093
|
+
def update!(**args)
|
32094
|
+
@container_spec = args[:container_spec] if args.key?(:container_spec)
|
32095
|
+
@machine_spec = args[:machine_spec] if args.key?(:machine_spec)
|
32096
|
+
end
|
32097
|
+
end
|
32098
|
+
|
32099
|
+
# Recommendation of one deployment option for the given custom weights model in
|
32100
|
+
# one region. Contains the machine and container spec, and user accelerator
|
32101
|
+
# quota state.
|
32102
|
+
class GoogleCloudAiplatformV1beta1RecommendSpecResponseRecommendation
|
32103
|
+
include Google::Apis::Core::Hashable
|
32104
|
+
|
32105
|
+
# The region for the deployment spec (machine).
|
32106
|
+
# Corresponds to the JSON property `region`
|
32107
|
+
# @return [String]
|
32108
|
+
attr_accessor :region
|
32109
|
+
|
32110
|
+
# A machine and model container spec.
|
32111
|
+
# Corresponds to the JSON property `spec`
|
32112
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponseMachineAndModelContainerSpec]
|
32113
|
+
attr_accessor :spec
|
32114
|
+
|
32115
|
+
# Output only. The user accelerator quota state.
|
32116
|
+
# Corresponds to the JSON property `userQuotaState`
|
32117
|
+
# @return [String]
|
32118
|
+
attr_accessor :user_quota_state
|
32119
|
+
|
32120
|
+
def initialize(**args)
|
32121
|
+
update!(**args)
|
32122
|
+
end
|
32123
|
+
|
32124
|
+
# Update properties of this object
|
32125
|
+
def update!(**args)
|
32126
|
+
@region = args[:region] if args.key?(:region)
|
32127
|
+
@spec = args[:spec] if args.key?(:spec)
|
32128
|
+
@user_quota_state = args[:user_quota_state] if args.key?(:user_quota_state)
|
32129
|
+
end
|
32130
|
+
end
|
32131
|
+
|
31463
32132
|
# Request message for MetadataService.DeleteContextChildrenRequest.
|
31464
32133
|
class GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest
|
31465
32134
|
include Google::Apis::Core::Hashable
|
@@ -43522,6 +44191,11 @@ module Google
|
|
43522
44191
|
class GoogleCloudAiplatformV1beta1SupervisedTuningSpec
|
43523
44192
|
include Google::Apis::Core::Hashable
|
43524
44193
|
|
44194
|
+
# Evaluation Config for Tuning Job.
|
44195
|
+
# Corresponds to the JSON property `evaluationConfig`
|
44196
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig]
|
44197
|
+
attr_accessor :evaluation_config
|
44198
|
+
|
43525
44199
|
# Optional. If set to true, disable intermediate checkpoints for SFT and only
|
43526
44200
|
# the last checkpoint will be exported. Otherwise, enable intermediate
|
43527
44201
|
# checkpoints for SFT. Default is false.
|
@@ -43560,6 +44234,7 @@ module Google
|
|
43560
44234
|
|
43561
44235
|
# Update properties of this object
|
43562
44236
|
def update!(**args)
|
44237
|
+
@evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config)
|
43563
44238
|
@export_last_checkpoint_only = args[:export_last_checkpoint_only] if args.key?(:export_last_checkpoint_only)
|
43564
44239
|
@hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
|
43565
44240
|
@training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
|
@@ -44352,11 +45027,6 @@ module Google
|
|
44352
45027
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCodeExecution]
|
44353
45028
|
attr_accessor :code_execution
|
44354
45029
|
|
44355
|
-
# Tool to support computer use.
|
44356
|
-
# Corresponds to the JSON property `computerUse`
|
44357
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolComputerUse]
|
44358
|
-
attr_accessor :computer_use
|
44359
|
-
|
44360
45030
|
# Tool to search public web data, powered by Vertex AI Search and Sec4
|
44361
45031
|
# compliance.
|
44362
45032
|
# Corresponds to the JSON property `enterpriseWebSearch`
|
@@ -44406,7 +45076,6 @@ module Google
|
|
44406
45076
|
# Update properties of this object
|
44407
45077
|
def update!(**args)
|
44408
45078
|
@code_execution = args[:code_execution] if args.key?(:code_execution)
|
44409
|
-
@computer_use = args[:computer_use] if args.key?(:computer_use)
|
44410
45079
|
@enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
|
44411
45080
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
44412
45081
|
@google_maps = args[:google_maps] if args.key?(:google_maps)
|
@@ -44558,25 +45227,6 @@ module Google
|
|
44558
45227
|
end
|
44559
45228
|
end
|
44560
45229
|
|
44561
|
-
# Tool to support computer use.
|
44562
|
-
class GoogleCloudAiplatformV1beta1ToolComputerUse
|
44563
|
-
include Google::Apis::Core::Hashable
|
44564
|
-
|
44565
|
-
# Required. The environment being operated.
|
44566
|
-
# Corresponds to the JSON property `environment`
|
44567
|
-
# @return [String]
|
44568
|
-
attr_accessor :environment
|
44569
|
-
|
44570
|
-
def initialize(**args)
|
44571
|
-
update!(**args)
|
44572
|
-
end
|
44573
|
-
|
44574
|
-
# Update properties of this object
|
44575
|
-
def update!(**args)
|
44576
|
-
@environment = args[:environment] if args.key?(:environment)
|
44577
|
-
end
|
44578
|
-
end
|
44579
|
-
|
44580
45230
|
# Tool config. This config is shared for all tools provided in the request.
|
44581
45231
|
class GoogleCloudAiplatformV1beta1ToolConfig
|
44582
45232
|
include Google::Apis::Core::Hashable
|
@@ -44607,12 +45257,19 @@ module Google
|
|
44607
45257
|
class GoogleCloudAiplatformV1beta1ToolGoogleSearch
|
44608
45258
|
include Google::Apis::Core::Hashable
|
44609
45259
|
|
45260
|
+
# Optional. List of domains to be excluded from the search results. The default
|
45261
|
+
# limit is 2000 domains. Example: ["amazon.com", "facebook.com"].
|
45262
|
+
# Corresponds to the JSON property `excludeDomains`
|
45263
|
+
# @return [Array<String>]
|
45264
|
+
attr_accessor :exclude_domains
|
45265
|
+
|
44610
45266
|
def initialize(**args)
|
44611
45267
|
update!(**args)
|
44612
45268
|
end
|
44613
45269
|
|
44614
45270
|
# Update properties of this object
|
44615
45271
|
def update!(**args)
|
45272
|
+
@exclude_domains = args[:exclude_domains] if args.key?(:exclude_domains)
|
44616
45273
|
end
|
44617
45274
|
end
|
44618
45275
|
|
@@ -46098,6 +46755,11 @@ module Google
|
|
46098
46755
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DistillationDataStats]
|
46099
46756
|
attr_accessor :distillation_data_stats
|
46100
46757
|
|
46758
|
+
# Statistics computed for datasets used for preference optimization.
|
46759
|
+
# Corresponds to the JSON property `preferenceOptimizationDataStats`
|
46760
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationDataStats]
|
46761
|
+
attr_accessor :preference_optimization_data_stats
|
46762
|
+
|
46101
46763
|
# Tuning data statistics for Supervised Tuning.
|
46102
46764
|
# Corresponds to the JSON property `supervisedTuningDataStats`
|
46103
46765
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SupervisedTuningDataStats]
|
@@ -46110,6 +46772,7 @@ module Google
|
|
46110
46772
|
# Update properties of this object
|
46111
46773
|
def update!(**args)
|
46112
46774
|
@distillation_data_stats = args[:distillation_data_stats] if args.key?(:distillation_data_stats)
|
46775
|
+
@preference_optimization_data_stats = args[:preference_optimization_data_stats] if args.key?(:preference_optimization_data_stats)
|
46113
46776
|
@supervised_tuning_data_stats = args[:supervised_tuning_data_stats] if args.key?(:supervised_tuning_data_stats)
|
46114
46777
|
end
|
46115
46778
|
end
|
@@ -46173,6 +46836,11 @@ module Google
|
|
46173
46836
|
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
46174
46837
|
attr_accessor :error
|
46175
46838
|
|
46839
|
+
# Output only. Evaluation runs for the Tuning Job.
|
46840
|
+
# Corresponds to the JSON property `evaluateDatasetRuns`
|
46841
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRun>]
|
46842
|
+
attr_accessor :evaluate_dataset_runs
|
46843
|
+
|
46176
46844
|
# Output only. The Experiment associated with this TuningJob.
|
46177
46845
|
# Corresponds to the JSON property `experiment`
|
46178
46846
|
# @return [String]
|
@@ -46212,6 +46880,16 @@ module Google
|
|
46212
46880
|
# @return [String]
|
46213
46881
|
attr_accessor :pipeline_job
|
46214
46882
|
|
46883
|
+
# A pre-tuned model for continuous tuning.
|
46884
|
+
# Corresponds to the JSON property `preTunedModel`
|
46885
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreTunedModel]
|
46886
|
+
attr_accessor :pre_tuned_model
|
46887
|
+
|
46888
|
+
# Tuning Spec for Preference Optimization.
|
46889
|
+
# Corresponds to the JSON property `preferenceOptimizationSpec`
|
46890
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationSpec]
|
46891
|
+
attr_accessor :preference_optimization_spec
|
46892
|
+
|
46215
46893
|
# Output only. Reserved for future use.
|
46216
46894
|
# Corresponds to the JSON property `satisfiesPzi`
|
46217
46895
|
# @return [Boolean]
|
@@ -46266,11 +46944,22 @@ module Google
|
|
46266
46944
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningDataStats]
|
46267
46945
|
attr_accessor :tuning_data_stats
|
46268
46946
|
|
46947
|
+
# Output only. The detail state of the tuning job (while the overall `JobState`
|
46948
|
+
# is running).
|
46949
|
+
# Corresponds to the JSON property `tuningJobState`
|
46950
|
+
# @return [String]
|
46951
|
+
attr_accessor :tuning_job_state
|
46952
|
+
|
46269
46953
|
# Output only. Time when the TuningJob was most recently updated.
|
46270
46954
|
# Corresponds to the JSON property `updateTime`
|
46271
46955
|
# @return [String]
|
46272
46956
|
attr_accessor :update_time
|
46273
46957
|
|
46958
|
+
# Tuning Spec for Veo Model Tuning.
|
46959
|
+
# Corresponds to the JSON property `veoTuningSpec`
|
46960
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VeoTuningSpec]
|
46961
|
+
attr_accessor :veo_tuning_spec
|
46962
|
+
|
46274
46963
|
def initialize(**args)
|
46275
46964
|
update!(**args)
|
46276
46965
|
end
|
@@ -46285,12 +46974,15 @@ module Google
|
|
46285
46974
|
@encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
|
46286
46975
|
@end_time = args[:end_time] if args.key?(:end_time)
|
46287
46976
|
@error = args[:error] if args.key?(:error)
|
46977
|
+
@evaluate_dataset_runs = args[:evaluate_dataset_runs] if args.key?(:evaluate_dataset_runs)
|
46288
46978
|
@experiment = args[:experiment] if args.key?(:experiment)
|
46289
46979
|
@labels = args[:labels] if args.key?(:labels)
|
46290
46980
|
@name = args[:name] if args.key?(:name)
|
46291
46981
|
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
46292
46982
|
@partner_model_tuning_spec = args[:partner_model_tuning_spec] if args.key?(:partner_model_tuning_spec)
|
46293
46983
|
@pipeline_job = args[:pipeline_job] if args.key?(:pipeline_job)
|
46984
|
+
@pre_tuned_model = args[:pre_tuned_model] if args.key?(:pre_tuned_model)
|
46985
|
+
@preference_optimization_spec = args[:preference_optimization_spec] if args.key?(:preference_optimization_spec)
|
46294
46986
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
46295
46987
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
46296
46988
|
@service_account = args[:service_account] if args.key?(:service_account)
|
@@ -46300,7 +46992,9 @@ module Google
|
|
46300
46992
|
@tuned_model = args[:tuned_model] if args.key?(:tuned_model)
|
46301
46993
|
@tuned_model_display_name = args[:tuned_model_display_name] if args.key?(:tuned_model_display_name)
|
46302
46994
|
@tuning_data_stats = args[:tuning_data_stats] if args.key?(:tuning_data_stats)
|
46995
|
+
@tuning_job_state = args[:tuning_job_state] if args.key?(:tuning_job_state)
|
46303
46996
|
@update_time = args[:update_time] if args.key?(:update_time)
|
46997
|
+
@veo_tuning_spec = args[:veo_tuning_spec] if args.key?(:veo_tuning_spec)
|
46304
46998
|
end
|
46305
46999
|
end
|
46306
47000
|
|
@@ -47262,6 +47956,73 @@ module Google
|
|
47262
47956
|
end
|
47263
47957
|
end
|
47264
47958
|
|
47959
|
+
# Hyperparameters for Veo.
|
47960
|
+
class GoogleCloudAiplatformV1beta1VeoHyperParameters
|
47961
|
+
include Google::Apis::Core::Hashable
|
47962
|
+
|
47963
|
+
# Optional. Number of complete passes the model makes over the entire training
|
47964
|
+
# dataset during training.
|
47965
|
+
# Corresponds to the JSON property `epochCount`
|
47966
|
+
# @return [Fixnum]
|
47967
|
+
attr_accessor :epoch_count
|
47968
|
+
|
47969
|
+
# Optional. Multiplier for adjusting the default learning rate.
|
47970
|
+
# Corresponds to the JSON property `learningRateMultiplier`
|
47971
|
+
# @return [Float]
|
47972
|
+
attr_accessor :learning_rate_multiplier
|
47973
|
+
|
47974
|
+
# Optional. The tuning task. Either I2V or T2V.
|
47975
|
+
# Corresponds to the JSON property `tuningTask`
|
47976
|
+
# @return [String]
|
47977
|
+
attr_accessor :tuning_task
|
47978
|
+
|
47979
|
+
def initialize(**args)
|
47980
|
+
update!(**args)
|
47981
|
+
end
|
47982
|
+
|
47983
|
+
# Update properties of this object
|
47984
|
+
def update!(**args)
|
47985
|
+
@epoch_count = args[:epoch_count] if args.key?(:epoch_count)
|
47986
|
+
@learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
|
47987
|
+
@tuning_task = args[:tuning_task] if args.key?(:tuning_task)
|
47988
|
+
end
|
47989
|
+
end
|
47990
|
+
|
47991
|
+
# Tuning Spec for Veo Model Tuning.
|
47992
|
+
class GoogleCloudAiplatformV1beta1VeoTuningSpec
|
47993
|
+
include Google::Apis::Core::Hashable
|
47994
|
+
|
47995
|
+
# Hyperparameters for Veo.
|
47996
|
+
# Corresponds to the JSON property `hyperParameters`
|
47997
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VeoHyperParameters]
|
47998
|
+
attr_accessor :hyper_parameters
|
47999
|
+
|
48000
|
+
# Required. Training dataset used for tuning. The dataset can be specified as
|
48001
|
+
# either a Cloud Storage path to a JSONL file or as the resource name of a
|
48002
|
+
# Vertex Multimodal Dataset.
|
48003
|
+
# Corresponds to the JSON property `trainingDatasetUri`
|
48004
|
+
# @return [String]
|
48005
|
+
attr_accessor :training_dataset_uri
|
48006
|
+
|
48007
|
+
# Optional. Validation dataset used for tuning. The dataset can be specified as
|
48008
|
+
# either a Cloud Storage path to a JSONL file or as the resource name of a
|
48009
|
+
# Vertex Multimodal Dataset.
|
48010
|
+
# Corresponds to the JSON property `validationDatasetUri`
|
48011
|
+
# @return [String]
|
48012
|
+
attr_accessor :validation_dataset_uri
|
48013
|
+
|
48014
|
+
def initialize(**args)
|
48015
|
+
update!(**args)
|
48016
|
+
end
|
48017
|
+
|
48018
|
+
# Update properties of this object
|
48019
|
+
def update!(**args)
|
48020
|
+
@hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
|
48021
|
+
@training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
|
48022
|
+
@validation_dataset_uri = args[:validation_dataset_uri] if args.key?(:validation_dataset_uri)
|
48023
|
+
end
|
48024
|
+
end
|
48025
|
+
|
47265
48026
|
# Retrieve from Vertex AI Search datastore or engine for grounding. datastore
|
47266
48027
|
# and engine are mutually exclusive. See https://cloud.google.com/products/agent-
|
47267
48028
|
# builder
|
@@ -47460,6 +48221,12 @@ module Google
|
|
47460
48221
|
# @return [String]
|
47461
48222
|
attr_accessor :end_offset
|
47462
48223
|
|
48224
|
+
# Optional. The frame rate of the video sent to the model. If not specified, the
|
48225
|
+
# default value will be 1.0. The fps range is (0.0, 24.0].
|
48226
|
+
# Corresponds to the JSON property `fps`
|
48227
|
+
# @return [Float]
|
48228
|
+
attr_accessor :fps
|
48229
|
+
|
47463
48230
|
# Optional. The start offset of the video.
|
47464
48231
|
# Corresponds to the JSON property `startOffset`
|
47465
48232
|
# @return [String]
|
@@ -47472,6 +48239,7 @@ module Google
|
|
47472
48239
|
# Update properties of this object
|
47473
48240
|
def update!(**args)
|
47474
48241
|
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
48242
|
+
@fps = args[:fps] if args.key?(:fps)
|
47475
48243
|
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
47476
48244
|
end
|
47477
48245
|
end
|