google-cloud-ai_platform-v1 0.52.0 → 0.54.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/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +129 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +817 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +122 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +4181 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +1 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +1 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +5 -1
- data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/genai_tuning_service_pb.rb +8 -1
- data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +4 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +62 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +36 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +18 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +25 -0
- data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +18 -1
- metadata +5 -3
@@ -94,6 +94,42 @@ module Google
|
|
94
94
|
include ::Google::Protobuf::MessageExts
|
95
95
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
96
|
end
|
97
|
+
|
98
|
+
# Request message for
|
99
|
+
# {::Google::Cloud::AIPlatform::V1::GenAiTuningService::Client#rebase_tuned_model GenAiTuningService.RebaseTunedModel}.
|
100
|
+
# @!attribute [rw] parent
|
101
|
+
# @return [::String]
|
102
|
+
# Required. The resource name of the Location into which to rebase the Model.
|
103
|
+
# Format: `projects/{project}/locations/{location}`
|
104
|
+
# @!attribute [rw] tuned_model_ref
|
105
|
+
# @return [::Google::Cloud::AIPlatform::V1::TunedModelRef]
|
106
|
+
# Required. TunedModel reference to retrieve the legacy model information.
|
107
|
+
# @!attribute [rw] tuning_job
|
108
|
+
# @return [::Google::Cloud::AIPlatform::V1::TuningJob]
|
109
|
+
# Optional. The TuningJob to be updated. Users can use this TuningJob field
|
110
|
+
# to overwrite tuning configs.
|
111
|
+
# @!attribute [rw] artifact_destination
|
112
|
+
# @return [::Google::Cloud::AIPlatform::V1::GcsDestination]
|
113
|
+
# Optional. The Google Cloud Storage location to write the artifacts.
|
114
|
+
# @!attribute [rw] deploy_to_same_endpoint
|
115
|
+
# @return [::Boolean]
|
116
|
+
# Optional. By default, bison to gemini migration will always create new
|
117
|
+
# model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default
|
118
|
+
# deploy to the same endpoint. See details in this Section.
|
119
|
+
class RebaseTunedModelRequest
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
|
124
|
+
# Runtime operation information for
|
125
|
+
# {::Google::Cloud::AIPlatform::V1::GenAiTuningService::Client#rebase_tuned_model GenAiTuningService.RebaseTunedModel}.
|
126
|
+
# @!attribute [rw] generic_metadata
|
127
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
128
|
+
# The common part of the operation generic information.
|
129
|
+
class RebaseTunedModelOperationMetadata
|
130
|
+
include ::Google::Protobuf::MessageExts
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
end
|
97
133
|
end
|
98
134
|
end
|
99
135
|
end
|
@@ -240,6 +240,11 @@ module Google
|
|
240
240
|
# [d, e] is disallowed.
|
241
241
|
#
|
242
242
|
# Note: we only support up to 5 deployment groups(not including 'default').
|
243
|
+
# @!attribute [rw] psc_automation_configs
|
244
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::PSCAutomationConfig>]
|
245
|
+
# Optional. If set for PSC deployed index, PSC connection will be
|
246
|
+
# automatically created after deployment is done and the endpoint information
|
247
|
+
# is populated in private_endpoints.psc_automated_endpoints.
|
243
248
|
class DeployedIndex
|
244
249
|
include ::Google::Protobuf::MessageExts
|
245
250
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -102,6 +102,10 @@ module Google
|
|
102
102
|
# @return [::Google::Protobuf::Value]
|
103
103
|
# Optional. Example of the object. Will only populated when the object is the
|
104
104
|
# root.
|
105
|
+
# @!attribute [rw] any_of
|
106
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::Schema>]
|
107
|
+
# Optional. The value should be validated against any (one or more) of the
|
108
|
+
# subschemas in the list.
|
105
109
|
class Schema
|
106
110
|
include ::Google::Protobuf::MessageExts
|
107
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -545,6 +545,9 @@ module Google
|
|
545
545
|
# @!attribute [r] candidates
|
546
546
|
# @return [::Array<::Google::Cloud::AIPlatform::V1::Candidate>]
|
547
547
|
# Output only. Generated candidates.
|
548
|
+
# @!attribute [r] model_version
|
549
|
+
# @return [::String]
|
550
|
+
# Output only. The model version used to generate the response.
|
548
551
|
# @!attribute [r] prompt_feedback
|
549
552
|
# @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback]
|
550
553
|
# Output only. Content filter results for a prompt sent in the request.
|
@@ -21,6 +21,24 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
|
+
# PSC config that is used to automatically create forwarding rule via
|
25
|
+
# ServiceConnectionMap.
|
26
|
+
# @!attribute [rw] project_id
|
27
|
+
# @return [::String]
|
28
|
+
# Required. Project id used to create forwarding rule.
|
29
|
+
# @!attribute [rw] network
|
30
|
+
# @return [::String]
|
31
|
+
# Required. The full name of the Google Compute Engine
|
32
|
+
# [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
|
33
|
+
# [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
|
34
|
+
# `projects/{project}/global/networks/{network}`.
|
35
|
+
# Where \\{project} is a project number, as in '12345', and \\{network} is
|
36
|
+
# network name.
|
37
|
+
class PSCAutomationConfig
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
end
|
41
|
+
|
24
42
|
# Represents configuration for private service connect.
|
25
43
|
# @!attribute [rw] enable_private_service_connect
|
26
44
|
# @return [::Boolean]
|
@@ -147,11 +147,36 @@ module Google
|
|
147
147
|
end
|
148
148
|
|
149
149
|
# Tool to retrieve public web data for grounding, powered by Google.
|
150
|
+
# @!attribute [rw] dynamic_retrieval_config
|
151
|
+
# @return [::Google::Cloud::AIPlatform::V1::DynamicRetrievalConfig]
|
152
|
+
# Specifies the dynamic retrieval configuration for the given source.
|
150
153
|
class GoogleSearchRetrieval
|
151
154
|
include ::Google::Protobuf::MessageExts
|
152
155
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
153
156
|
end
|
154
157
|
|
158
|
+
# Describes the options to customize dynamic retrieval.
|
159
|
+
# @!attribute [rw] mode
|
160
|
+
# @return [::Google::Cloud::AIPlatform::V1::DynamicRetrievalConfig::Mode]
|
161
|
+
# The mode of the predictor to be used in dynamic retrieval.
|
162
|
+
# @!attribute [rw] dynamic_threshold
|
163
|
+
# @return [::Float]
|
164
|
+
# Optional. The threshold to be used in dynamic retrieval.
|
165
|
+
# If not set, a system default value is used.
|
166
|
+
class DynamicRetrievalConfig
|
167
|
+
include ::Google::Protobuf::MessageExts
|
168
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
169
|
+
|
170
|
+
# The mode of the predictor to be used in dynamic retrieval.
|
171
|
+
module Mode
|
172
|
+
# Always trigger retrieval.
|
173
|
+
MODE_UNSPECIFIED = 0
|
174
|
+
|
175
|
+
# Run retrieval only when system decides it is necessary.
|
176
|
+
MODE_DYNAMIC = 1
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
155
180
|
# Tool config. This config is shared for all tools provided in the request.
|
156
181
|
# @!attribute [rw] function_calling_config
|
157
182
|
# @return [::Google::Cloud::AIPlatform::V1::FunctionCallingConfig]
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
263
|
-
# Tuning Spec for Supervised Tuning.
|
263
|
+
# Tuning Spec for Supervised Tuning for first party models.
|
264
264
|
# @!attribute [rw] training_dataset_uri
|
265
265
|
# @return [::String]
|
266
266
|
# Required. Cloud Storage path to file containing training dataset for
|
@@ -276,6 +276,23 @@ module Google
|
|
276
276
|
include ::Google::Protobuf::MessageExts
|
277
277
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
278
278
|
end
|
279
|
+
|
280
|
+
# TunedModel Reference for legacy model migration.
|
281
|
+
# @!attribute [rw] tuned_model
|
282
|
+
# @return [::String]
|
283
|
+
# Support migration from model registry.
|
284
|
+
# @!attribute [rw] tuning_job
|
285
|
+
# @return [::String]
|
286
|
+
# Support migration from tuning job list page, from gemini-1.0-pro-002
|
287
|
+
# to 1.5 and above.
|
288
|
+
# @!attribute [rw] pipeline_job
|
289
|
+
# @return [::String]
|
290
|
+
# Support migration from tuning job list page, from bison model to gemini
|
291
|
+
# model.
|
292
|
+
class TunedModelRef
|
293
|
+
include ::Google::Protobuf::MessageExts
|
294
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
295
|
+
end
|
279
296
|
end
|
280
297
|
end
|
281
298
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-ai_platform-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.54.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -179,9 +179,11 @@ files:
|
|
179
179
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb
|
180
180
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb
|
181
181
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/credentials.rb
|
182
|
+
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb
|
182
183
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/paths.rb
|
183
184
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb
|
184
185
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb
|
186
|
+
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb
|
185
187
|
- lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb
|
186
188
|
- lib/google/cloud/ai_platform/v1/index_endpoint_service.rb
|
187
189
|
- lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb
|
@@ -649,7 +651,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
649
651
|
- !ruby/object:Gem::Version
|
650
652
|
version: '0'
|
651
653
|
requirements: []
|
652
|
-
rubygems_version: 3.5.
|
654
|
+
rubygems_version: 3.5.21
|
653
655
|
signing_key:
|
654
656
|
specification_version: 4
|
655
657
|
summary: Train high-quality custom machine learning models with minimal machine learning
|