google-cloud-ai_platform-v1 0.51.0 → 0.53.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +129 -0
  3. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +817 -0
  4. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/paths.rb +19 -0
  5. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +122 -0
  6. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +4181 -0
  7. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +60 -0
  8. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +1 -0
  9. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +1 -0
  10. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +4 -1
  11. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +4 -1
  12. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +18 -2
  13. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +18 -2
  14. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  15. data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -1
  16. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_pb.rb +8 -1
  17. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +4 -0
  18. data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +1 -1
  19. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  20. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +2 -1
  21. data/proto_docs/google/cloud/aiplatform/v1/content.rb +49 -0
  22. data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +36 -0
  23. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +11 -2
  24. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +26 -0
  25. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +18 -1
  26. metadata +4 -2
@@ -23,8 +23,8 @@ module Google
23
23
  module V1
24
24
  # Schema is used to define the format of input/output data. Represents a select
25
25
  # subset of an [OpenAPI 3.0 schema
26
- # object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be
27
- # added in the future as needed.
26
+ # object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
27
+ # be added in the future as needed.
28
28
  # @!attribute [rw] type
29
29
  # @return [::Google::Cloud::AIPlatform::V1::Type]
30
30
  # Optional. The type of the data.
@@ -66,6 +66,11 @@ module Google
66
66
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::Schema}]
67
67
  # Optional. SCHEMA FIELDS FOR TYPE OBJECT
68
68
  # Properties of Type.OBJECT.
69
+ # @!attribute [rw] property_ordering
70
+ # @return [::Array<::String>]
71
+ # Optional. The order of the properties.
72
+ # Not a standard field in open api spec. Only used to support the order of
73
+ # the properties.
69
74
  # @!attribute [rw] required
70
75
  # @return [::Array<::String>]
71
76
  # Optional. Required properties of Type.OBJECT.
@@ -97,6 +102,10 @@ module Google
97
102
  # @return [::Google::Protobuf::Value]
98
103
  # Optional. Example of the object. Will only populated when the object is the
99
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.
100
109
  class Schema
101
110
  include ::Google::Protobuf::MessageExts
102
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -454,6 +454,10 @@ module Google
454
454
  # A `Tool` is a piece of code that enables the system to interact with
455
455
  # external systems to perform an action, or set of actions, outside of
456
456
  # knowledge and scope of the model.
457
+ # @!attribute [rw] generation_config
458
+ # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig]
459
+ # Optional. Generation config that the model will use to generate the
460
+ # response.
457
461
  class CountTokensRequest
458
462
  include ::Google::Protobuf::MessageExts
459
463
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -507,6 +511,15 @@ module Google
507
511
  # @return [::Google::Cloud::AIPlatform::V1::ToolConfig]
508
512
  # Optional. Tool config. This config is shared for all tools provided in the
509
513
  # request.
514
+ # @!attribute [rw] labels
515
+ # @return [::Google::Protobuf::Map{::String => ::String}]
516
+ # Optional. The labels with user-defined metadata for the request. It is used
517
+ # for billing and reporting only.
518
+ #
519
+ # Label keys and values can be no longer than 63 characters
520
+ # (Unicode codepoints) and can only contain lowercase letters, numeric
521
+ # characters, underscores, and dashes. International characters are allowed.
522
+ # Label values are optional. Label keys must start with a letter.
510
523
  # @!attribute [rw] safety_settings
511
524
  # @return [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting>]
512
525
  # Optional. Per request settings for blocking unsafe content.
@@ -517,12 +530,24 @@ module Google
517
530
  class GenerateContentRequest
518
531
  include ::Google::Protobuf::MessageExts
519
532
  extend ::Google::Protobuf::MessageExts::ClassMethods
533
+
534
+ # @!attribute [rw] key
535
+ # @return [::String]
536
+ # @!attribute [rw] value
537
+ # @return [::String]
538
+ class LabelsEntry
539
+ include ::Google::Protobuf::MessageExts
540
+ extend ::Google::Protobuf::MessageExts::ClassMethods
541
+ end
520
542
  end
521
543
 
522
544
  # Response message for [PredictionService.GenerateContent].
523
545
  # @!attribute [r] candidates
524
546
  # @return [::Array<::Google::Cloud::AIPlatform::V1::Candidate>]
525
547
  # Output only. Generated candidates.
548
+ # @!attribute [r] model_version
549
+ # @return [::String]
550
+ # Output only. The model version used to generate the response.
526
551
  # @!attribute [r] prompt_feedback
527
552
  # @return [::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback]
528
553
  # Output only. Content filter results for a prompt sent in the request.
@@ -580,6 +605,7 @@ module Google
580
605
  # Number of tokens in the response(s).
581
606
  # @!attribute [rw] total_token_count
582
607
  # @return [::Integer]
608
+ # Total token count for prompt and response candidates.
583
609
  class UsageMetadata
584
610
  include ::Google::Protobuf::MessageExts
585
611
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -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.51.0
4
+ version: 0.53.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-09-11 00:00:00.000000000 Z
11
+ date: 2024-09-30 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