google-apis-aiplatform_v1 0.37.0 → 0.39.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 301cfb1e189c07c9fd78989ed214c750a5c9da10a0c51107cf2e0d07374b86f1
|
4
|
+
data.tar.gz: 6cc9f1d7cc415b5974b8ba2fabc560ec86d7758528e7db4d894e33c5c185200f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a65dccd32d176de80e7b03fe5efadd1e2affcd6f2a2f5d97a13b1ef4bbcf539d1481297651be27b40dd0ce226255296d7a866cc6b143d819571a1e0d7a32f5
|
7
|
+
data.tar.gz: 988f82cc3c9406cfd38024a33fdf28d7a2ff6e8114ec2397d48f0e3bd72543dfaf7a78cb01d1641b270550a542d2e42d3c87f80e64e781604d6234132e8580a3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-aiplatform_v1
|
2
2
|
|
3
|
+
### v0.39.0 (2024-10-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241007
|
6
|
+
|
7
|
+
### v0.38.0 (2024-10-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241001
|
10
|
+
|
3
11
|
### v0.37.0 (2024-10-06)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240925
|
@@ -80,6 +80,11 @@ module Google
|
|
80
80
|
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores]
|
81
81
|
attr_accessor :image_rai_scores
|
82
82
|
|
83
|
+
# Image size.
|
84
|
+
# Corresponds to the JSON property `imageSize`
|
85
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize]
|
86
|
+
attr_accessor :image_size
|
87
|
+
|
83
88
|
# Next ID: 6
|
84
89
|
# Corresponds to the JSON property `raiInfo`
|
85
90
|
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo]
|
@@ -110,6 +115,7 @@ module Google
|
|
110
115
|
@generation_seed = args[:generation_seed] if args.key?(:generation_seed)
|
111
116
|
@image = args[:image] if args.key?(:image)
|
112
117
|
@image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
|
118
|
+
@image_size = args[:image_size] if args.key?(:image_size)
|
113
119
|
@rai_info = args[:rai_info] if args.key?(:rai_info)
|
114
120
|
@semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
|
115
121
|
@text = args[:text] if args.key?(:text)
|
@@ -117,6 +123,37 @@ module Google
|
|
117
123
|
end
|
118
124
|
end
|
119
125
|
|
126
|
+
# Image size.
|
127
|
+
class CloudAiLargeModelsVisionImageImageSize
|
128
|
+
include Google::Apis::Core::Hashable
|
129
|
+
|
130
|
+
#
|
131
|
+
# Corresponds to the JSON property `channels`
|
132
|
+
# @return [Fixnum]
|
133
|
+
attr_accessor :channels
|
134
|
+
|
135
|
+
#
|
136
|
+
# Corresponds to the JSON property `height`
|
137
|
+
# @return [Fixnum]
|
138
|
+
attr_accessor :height
|
139
|
+
|
140
|
+
#
|
141
|
+
# Corresponds to the JSON property `width`
|
142
|
+
# @return [Fixnum]
|
143
|
+
attr_accessor :width
|
144
|
+
|
145
|
+
def initialize(**args)
|
146
|
+
update!(**args)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Update properties of this object
|
150
|
+
def update!(**args)
|
151
|
+
@channels = args[:channels] if args.key?(:channels)
|
152
|
+
@height = args[:height] if args.key?(:height)
|
153
|
+
@width = args[:width] if args.key?(:width)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
120
157
|
# RAI scores for generated image returned.
|
121
158
|
class CloudAiLargeModelsVisionImageRaiScores
|
122
159
|
include Google::Apis::Core::Hashable
|
@@ -4068,6 +4105,11 @@ module Google
|
|
4068
4105
|
# @return [String]
|
4069
4106
|
attr_accessor :protected_artifact_location_id
|
4070
4107
|
|
4108
|
+
# Configuration for PSC-I.
|
4109
|
+
# Corresponds to the JSON property `pscInterfaceConfig`
|
4110
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig]
|
4111
|
+
attr_accessor :psc_interface_config
|
4112
|
+
|
4071
4113
|
# Optional. A list of names for the reserved ip ranges under the VPC network
|
4072
4114
|
# that can be used for this job. If set, we will deploy the job within the
|
4073
4115
|
# provided ip ranges. Otherwise, the job will be deployed to any ip ranges under
|
@@ -4118,6 +4160,7 @@ module Google
|
|
4118
4160
|
@network = args[:network] if args.key?(:network)
|
4119
4161
|
@persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
|
4120
4162
|
@protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
|
4163
|
+
@psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
|
4121
4164
|
@reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
|
4122
4165
|
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
4123
4166
|
@service_account = args[:service_account] if args.key?(:service_account)
|
@@ -5664,6 +5707,32 @@ module Google
|
|
5664
5707
|
end
|
5665
5708
|
end
|
5666
5709
|
|
5710
|
+
# Describes the options to customize dynamic retrieval.
|
5711
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
5712
|
+
include Google::Apis::Core::Hashable
|
5713
|
+
|
5714
|
+
# Optional. The threshold to be used in dynamic retrieval. If not set, a system
|
5715
|
+
# default value is used.
|
5716
|
+
# Corresponds to the JSON property `dynamicThreshold`
|
5717
|
+
# @return [Float]
|
5718
|
+
attr_accessor :dynamic_threshold
|
5719
|
+
|
5720
|
+
# The mode of the predictor to be used in dynamic retrieval.
|
5721
|
+
# Corresponds to the JSON property `mode`
|
5722
|
+
# @return [String]
|
5723
|
+
attr_accessor :mode
|
5724
|
+
|
5725
|
+
def initialize(**args)
|
5726
|
+
update!(**args)
|
5727
|
+
end
|
5728
|
+
|
5729
|
+
# Update properties of this object
|
5730
|
+
def update!(**args)
|
5731
|
+
@dynamic_threshold = args[:dynamic_threshold] if args.key?(:dynamic_threshold)
|
5732
|
+
@mode = args[:mode] if args.key?(:mode)
|
5733
|
+
end
|
5734
|
+
end
|
5735
|
+
|
5667
5736
|
# Represents a customer-managed encryption key spec that can be applied to a top-
|
5668
5737
|
# level resource.
|
5669
5738
|
class GoogleCloudAiplatformV1EncryptionSpec
|
@@ -9219,6 +9288,13 @@ module Google
|
|
9219
9288
|
class GoogleCloudAiplatformV1FeatureViewSyncConfig
|
9220
9289
|
include Google::Apis::Core::Hashable
|
9221
9290
|
|
9291
|
+
# Optional. If true, syncs the FeatureView in a continuous manner to Online
|
9292
|
+
# Store.
|
9293
|
+
# Corresponds to the JSON property `continuous`
|
9294
|
+
# @return [Boolean]
|
9295
|
+
attr_accessor :continuous
|
9296
|
+
alias_method :continuous?, :continuous
|
9297
|
+
|
9222
9298
|
# Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs.
|
9223
9299
|
# To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "
|
9224
9300
|
# CRON_TZ=$`IANA_TIME_ZONE`" or "TZ=$`IANA_TIME_ZONE`". The $`IANA_TIME_ZONE`
|
@@ -9234,6 +9310,7 @@ module Google
|
|
9234
9310
|
|
9235
9311
|
# Update properties of this object
|
9236
9312
|
def update!(**args)
|
9313
|
+
@continuous = args[:continuous] if args.key?(:continuous)
|
9237
9314
|
@cron = args[:cron] if args.key?(:cron)
|
9238
9315
|
end
|
9239
9316
|
end
|
@@ -10561,6 +10638,13 @@ module Google
|
|
10561
10638
|
class GoogleCloudAiplatformV1GenerationConfig
|
10562
10639
|
include Google::Apis::Core::Hashable
|
10563
10640
|
|
10641
|
+
# Optional. If enabled, audio timestamp will be included in the request to the
|
10642
|
+
# model.
|
10643
|
+
# Corresponds to the JSON property `audioTimestamp`
|
10644
|
+
# @return [Boolean]
|
10645
|
+
attr_accessor :audio_timestamp
|
10646
|
+
alias_method :audio_timestamp?, :audio_timestamp
|
10647
|
+
|
10564
10648
|
# Optional. Number of candidates to generate.
|
10565
10649
|
# Corresponds to the JSON property `candidateCount`
|
10566
10650
|
# @return [Fixnum]
|
@@ -10644,6 +10728,7 @@ module Google
|
|
10644
10728
|
|
10645
10729
|
# Update properties of this object
|
10646
10730
|
def update!(**args)
|
10731
|
+
@audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
|
10647
10732
|
@candidate_count = args[:candidate_count] if args.key?(:candidate_count)
|
10648
10733
|
@frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
|
10649
10734
|
@logprobs = args[:logprobs] if args.key?(:logprobs)
|
@@ -10785,12 +10870,18 @@ module Google
|
|
10785
10870
|
class GoogleCloudAiplatformV1GoogleSearchRetrieval
|
10786
10871
|
include Google::Apis::Core::Hashable
|
10787
10872
|
|
10873
|
+
# Describes the options to customize dynamic retrieval.
|
10874
|
+
# Corresponds to the JSON property `dynamicRetrievalConfig`
|
10875
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig]
|
10876
|
+
attr_accessor :dynamic_retrieval_config
|
10877
|
+
|
10788
10878
|
def initialize(**args)
|
10789
10879
|
update!(**args)
|
10790
10880
|
end
|
10791
10881
|
|
10792
10882
|
# Update properties of this object
|
10793
10883
|
def update!(**args)
|
10884
|
+
@dynamic_retrieval_config = args[:dynamic_retrieval_config] if args.key?(:dynamic_retrieval_config)
|
10794
10885
|
end
|
10795
10886
|
end
|
10796
10887
|
|
@@ -10984,6 +11075,11 @@ module Google
|
|
10984
11075
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport>]
|
10985
11076
|
attr_accessor :grounding_supports
|
10986
11077
|
|
11078
|
+
# Metadata related to retrieval in the grounding flow.
|
11079
|
+
# Corresponds to the JSON property `retrievalMetadata`
|
11080
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata]
|
11081
|
+
attr_accessor :retrieval_metadata
|
11082
|
+
|
10987
11083
|
# Google search entry point.
|
10988
11084
|
# Corresponds to the JSON property `searchEntryPoint`
|
10989
11085
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint]
|
@@ -11002,6 +11098,7 @@ module Google
|
|
11002
11098
|
def update!(**args)
|
11003
11099
|
@grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
|
11004
11100
|
@grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
|
11101
|
+
@retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
|
11005
11102
|
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
11006
11103
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
11007
11104
|
end
|
@@ -13605,12 +13702,12 @@ module Google
|
|
13605
13702
|
# @return [Float]
|
13606
13703
|
attr_accessor :log_probability
|
13607
13704
|
|
13608
|
-
# The candidate
|
13705
|
+
# The candidate's token string value.
|
13609
13706
|
# Corresponds to the JSON property `token`
|
13610
13707
|
# @return [String]
|
13611
13708
|
attr_accessor :token
|
13612
13709
|
|
13613
|
-
# The candidate
|
13710
|
+
# The candidate's token id value.
|
13614
13711
|
# Corresponds to the JSON property `tokenId`
|
13615
13712
|
# @return [Fixnum]
|
13616
13713
|
attr_accessor :token_id
|
@@ -19401,6 +19498,19 @@ module Google
|
|
19401
19498
|
end
|
19402
19499
|
end
|
19403
19500
|
|
19501
|
+
# Configuration for PSC-I.
|
19502
|
+
class GoogleCloudAiplatformV1PscInterfaceConfig
|
19503
|
+
include Google::Apis::Core::Hashable
|
19504
|
+
|
19505
|
+
def initialize(**args)
|
19506
|
+
update!(**args)
|
19507
|
+
end
|
19508
|
+
|
19509
|
+
# Update properties of this object
|
19510
|
+
def update!(**args)
|
19511
|
+
end
|
19512
|
+
end
|
19513
|
+
|
19404
19514
|
# A Model Garden Publisher Model.
|
19405
19515
|
class GoogleCloudAiplatformV1PublisherModel
|
19406
19516
|
include Google::Apis::Core::Hashable
|
@@ -21572,6 +21682,29 @@ module Google
|
|
21572
21682
|
end
|
21573
21683
|
end
|
21574
21684
|
|
21685
|
+
# Metadata related to retrieval in the grounding flow.
|
21686
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
21687
|
+
include Google::Apis::Core::Hashable
|
21688
|
+
|
21689
|
+
# Optional. Score indicating how likely information from Google Search could
|
21690
|
+
# help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
|
21691
|
+
# least likely and 1 is the most likely. This score is only populated when
|
21692
|
+
# Google Search grounding and dynamic retrieval is enabled. It will be compared
|
21693
|
+
# to the threshold to determine whether to trigger Google Search.
|
21694
|
+
# Corresponds to the JSON property `googleSearchDynamicRetrievalScore`
|
21695
|
+
# @return [Float]
|
21696
|
+
attr_accessor :google_search_dynamic_retrieval_score
|
21697
|
+
|
21698
|
+
def initialize(**args)
|
21699
|
+
update!(**args)
|
21700
|
+
end
|
21701
|
+
|
21702
|
+
# Update properties of this object
|
21703
|
+
def update!(**args)
|
21704
|
+
@google_search_dynamic_retrieval_score = args[:google_search_dynamic_retrieval_score] if args.key?(:google_search_dynamic_retrieval_score)
|
21705
|
+
end
|
21706
|
+
end
|
21707
|
+
|
21575
21708
|
# Input for rouge metric.
|
21576
21709
|
class GoogleCloudAiplatformV1RougeInput
|
21577
21710
|
include Google::Apis::Core::Hashable
|
@@ -22319,9 +22452,10 @@ module Google
|
|
22319
22452
|
# @return [String]
|
22320
22453
|
attr_accessor :description
|
22321
22454
|
|
22322
|
-
# Optional. Possible values of the element of
|
22323
|
-
#
|
22324
|
-
# EAST", NORTH", "SOUTH", "WEST"]`
|
22455
|
+
# Optional. Possible values of the element of primitive type with enum format.
|
22456
|
+
# Examples: 1. We can define direction as : `type:STRING, format:enum, enum:["
|
22457
|
+
# EAST", NORTH", "SOUTH", "WEST"]` 2. We can define apartment number as : `type:
|
22458
|
+
# INTEGER, format:enum, enum:["101", "201", "301"]`
|
22325
22459
|
# Corresponds to the JSON property `enum`
|
22326
22460
|
# @return [Array<String>]
|
22327
22461
|
attr_accessor :enum
|
@@ -25107,6 +25241,232 @@ module Google
|
|
25107
25241
|
end
|
25108
25242
|
end
|
25109
25243
|
|
25244
|
+
# The A2 schema of a prompt.
|
25245
|
+
class GoogleCloudAiplatformV1SchemaPromptApiSchema
|
25246
|
+
include Google::Apis::Core::Hashable
|
25247
|
+
|
25248
|
+
# The Schema version that represents changes to the API behavior.
|
25249
|
+
# Corresponds to the JSON property `apiSchemaVersion`
|
25250
|
+
# @return [String]
|
25251
|
+
attr_accessor :api_schema_version
|
25252
|
+
|
25253
|
+
# A list of execution instances for constructing a ready-to-use prompt.
|
25254
|
+
# Corresponds to the JSON property `executions`
|
25255
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution>]
|
25256
|
+
attr_accessor :executions
|
25257
|
+
|
25258
|
+
# Prompt variation that embeds preambles to prompt string.
|
25259
|
+
# Corresponds to the JSON property `multimodalPrompt`
|
25260
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt]
|
25261
|
+
attr_accessor :multimodal_prompt
|
25262
|
+
|
25263
|
+
# Prompt variation that stores preambles in separate fields.
|
25264
|
+
# Corresponds to the JSON property `structuredPrompt`
|
25265
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt]
|
25266
|
+
attr_accessor :structured_prompt
|
25267
|
+
|
25268
|
+
def initialize(**args)
|
25269
|
+
update!(**args)
|
25270
|
+
end
|
25271
|
+
|
25272
|
+
# Update properties of this object
|
25273
|
+
def update!(**args)
|
25274
|
+
@api_schema_version = args[:api_schema_version] if args.key?(:api_schema_version)
|
25275
|
+
@executions = args[:executions] if args.key?(:executions)
|
25276
|
+
@multimodal_prompt = args[:multimodal_prompt] if args.key?(:multimodal_prompt)
|
25277
|
+
@structured_prompt = args[:structured_prompt] if args.key?(:structured_prompt)
|
25278
|
+
end
|
25279
|
+
end
|
25280
|
+
|
25281
|
+
# A prompt instance's parameters set that contains a set of variable values.
|
25282
|
+
class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
|
25283
|
+
include Google::Apis::Core::Hashable
|
25284
|
+
|
25285
|
+
# Maps variable names to their value.
|
25286
|
+
# Corresponds to the JSON property `arguments`
|
25287
|
+
# @return [Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue>]
|
25288
|
+
attr_accessor :arguments
|
25289
|
+
|
25290
|
+
def initialize(**args)
|
25291
|
+
update!(**args)
|
25292
|
+
end
|
25293
|
+
|
25294
|
+
# Update properties of this object
|
25295
|
+
def update!(**args)
|
25296
|
+
@arguments = args[:arguments] if args.key?(:arguments)
|
25297
|
+
end
|
25298
|
+
end
|
25299
|
+
|
25300
|
+
# The value of a variable in prompt.
|
25301
|
+
class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
|
25302
|
+
include Google::Apis::Core::Hashable
|
25303
|
+
|
25304
|
+
# A list of elements and information that make up a portion of prompt.
|
25305
|
+
# Corresponds to the JSON property `partList`
|
25306
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList]
|
25307
|
+
attr_accessor :part_list
|
25308
|
+
|
25309
|
+
def initialize(**args)
|
25310
|
+
update!(**args)
|
25311
|
+
end
|
25312
|
+
|
25313
|
+
# Update properties of this object
|
25314
|
+
def update!(**args)
|
25315
|
+
@part_list = args[:part_list] if args.key?(:part_list)
|
25316
|
+
end
|
25317
|
+
end
|
25318
|
+
|
25319
|
+
# Prompt variation that embeds preambles to prompt string.
|
25320
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
|
25321
|
+
include Google::Apis::Core::Hashable
|
25322
|
+
|
25323
|
+
# The prompt message that aligns with the prompt message in google.cloud.
|
25324
|
+
# aiplatform.master.GenerateContentRequest.
|
25325
|
+
# Corresponds to the JSON property `promptMessage`
|
25326
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage]
|
25327
|
+
attr_accessor :prompt_message
|
25328
|
+
|
25329
|
+
def initialize(**args)
|
25330
|
+
update!(**args)
|
25331
|
+
end
|
25332
|
+
|
25333
|
+
# Update properties of this object
|
25334
|
+
def update!(**args)
|
25335
|
+
@prompt_message = args[:prompt_message] if args.key?(:prompt_message)
|
25336
|
+
end
|
25337
|
+
end
|
25338
|
+
|
25339
|
+
# A list of elements and information that make up a portion of prompt.
|
25340
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPartList
|
25341
|
+
include Google::Apis::Core::Hashable
|
25342
|
+
|
25343
|
+
# A list of elements that can be part of a prompt.
|
25344
|
+
# Corresponds to the JSON property `parts`
|
25345
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
|
25346
|
+
attr_accessor :parts
|
25347
|
+
|
25348
|
+
def initialize(**args)
|
25349
|
+
update!(**args)
|
25350
|
+
end
|
25351
|
+
|
25352
|
+
# Update properties of this object
|
25353
|
+
def update!(**args)
|
25354
|
+
@parts = args[:parts] if args.key?(:parts)
|
25355
|
+
end
|
25356
|
+
end
|
25357
|
+
|
25358
|
+
# The prompt message that aligns with the prompt message in google.cloud.
|
25359
|
+
# aiplatform.master.GenerateContentRequest.
|
25360
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
|
25361
|
+
include Google::Apis::Core::Hashable
|
25362
|
+
|
25363
|
+
# The content of the current conversation with the model. For single-turn
|
25364
|
+
# queries, this is a single instance. For multi-turn queries, this is a repeated
|
25365
|
+
# field that contains conversation history + latest request.
|
25366
|
+
# Corresponds to the JSON property `contents`
|
25367
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
25368
|
+
attr_accessor :contents
|
25369
|
+
|
25370
|
+
# Generation config.
|
25371
|
+
# Corresponds to the JSON property `generationConfig`
|
25372
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig]
|
25373
|
+
attr_accessor :generation_config
|
25374
|
+
|
25375
|
+
# The model name.
|
25376
|
+
# Corresponds to the JSON property `model`
|
25377
|
+
# @return [String]
|
25378
|
+
attr_accessor :model
|
25379
|
+
|
25380
|
+
# Per request settings for blocking unsafe content. Enforced on
|
25381
|
+
# GenerateContentResponse.candidates.
|
25382
|
+
# Corresponds to the JSON property `safetySettings`
|
25383
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting>]
|
25384
|
+
attr_accessor :safety_settings
|
25385
|
+
|
25386
|
+
# The base structured datatype containing multi-part content of a message. A `
|
25387
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
25388
|
+
# a `parts` field containing multi-part data that contains the content of the
|
25389
|
+
# message turn.
|
25390
|
+
# Corresponds to the JSON property `systemInstruction`
|
25391
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
25392
|
+
attr_accessor :system_instruction
|
25393
|
+
|
25394
|
+
# Tool config. This config is shared for all tools provided in the request.
|
25395
|
+
# Corresponds to the JSON property `toolConfig`
|
25396
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig]
|
25397
|
+
attr_accessor :tool_config
|
25398
|
+
|
25399
|
+
# A list of `Tools` the model may use to generate the next response. A `Tool` is
|
25400
|
+
# a piece of code that enables the system to interact with external systems to
|
25401
|
+
# perform an action, or set of actions, outside of knowledge and scope of the
|
25402
|
+
# model.
|
25403
|
+
# Corresponds to the JSON property `tools`
|
25404
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
|
25405
|
+
attr_accessor :tools
|
25406
|
+
|
25407
|
+
def initialize(**args)
|
25408
|
+
update!(**args)
|
25409
|
+
end
|
25410
|
+
|
25411
|
+
# Update properties of this object
|
25412
|
+
def update!(**args)
|
25413
|
+
@contents = args[:contents] if args.key?(:contents)
|
25414
|
+
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
25415
|
+
@model = args[:model] if args.key?(:model)
|
25416
|
+
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
25417
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
25418
|
+
@tool_config = args[:tool_config] if args.key?(:tool_config)
|
25419
|
+
@tools = args[:tools] if args.key?(:tools)
|
25420
|
+
end
|
25421
|
+
end
|
25422
|
+
|
25423
|
+
# Prompt variation that stores preambles in separate fields.
|
25424
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
|
25425
|
+
include Google::Apis::Core::Hashable
|
25426
|
+
|
25427
|
+
# The base structured datatype containing multi-part content of a message. A `
|
25428
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
25429
|
+
# a `parts` field containing multi-part data that contains the content of the
|
25430
|
+
# message turn.
|
25431
|
+
# Corresponds to the JSON property `context`
|
25432
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
25433
|
+
attr_accessor :context
|
25434
|
+
|
25435
|
+
# Preamble: A set of examples for expected model response.
|
25436
|
+
# Corresponds to the JSON property `examples`
|
25437
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList>]
|
25438
|
+
attr_accessor :examples
|
25439
|
+
|
25440
|
+
# Preamble: The input prefixes before each example input.
|
25441
|
+
# Corresponds to the JSON property `inputPrefixes`
|
25442
|
+
# @return [Array<String>]
|
25443
|
+
attr_accessor :input_prefixes
|
25444
|
+
|
25445
|
+
# Preamble: The output prefixes before each example output.
|
25446
|
+
# Corresponds to the JSON property `outputPrefixes`
|
25447
|
+
# @return [Array<String>]
|
25448
|
+
attr_accessor :output_prefixes
|
25449
|
+
|
25450
|
+
# The prompt message that aligns with the prompt message in google.cloud.
|
25451
|
+
# aiplatform.master.GenerateContentRequest.
|
25452
|
+
# Corresponds to the JSON property `promptMessage`
|
25453
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage]
|
25454
|
+
attr_accessor :prompt_message
|
25455
|
+
|
25456
|
+
def initialize(**args)
|
25457
|
+
update!(**args)
|
25458
|
+
end
|
25459
|
+
|
25460
|
+
# Update properties of this object
|
25461
|
+
def update!(**args)
|
25462
|
+
@context = args[:context] if args.key?(:context)
|
25463
|
+
@examples = args[:examples] if args.key?(:examples)
|
25464
|
+
@input_prefixes = args[:input_prefixes] if args.key?(:input_prefixes)
|
25465
|
+
@output_prefixes = args[:output_prefixes] if args.key?(:output_prefixes)
|
25466
|
+
@prompt_message = args[:prompt_message] if args.key?(:prompt_message)
|
25467
|
+
end
|
25468
|
+
end
|
25469
|
+
|
25110
25470
|
# The metadata of Datasets that contain tables data.
|
25111
25471
|
class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
|
25112
25472
|
include Google::Apis::Core::Hashable
|
@@ -25338,6 +25698,11 @@ module Google
|
|
25338
25698
|
# @return [String]
|
25339
25699
|
attr_accessor :note
|
25340
25700
|
|
25701
|
+
# The A2 schema of a prompt.
|
25702
|
+
# Corresponds to the JSON property `promptApiSchema`
|
25703
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema]
|
25704
|
+
attr_accessor :prompt_api_schema
|
25705
|
+
|
25341
25706
|
# Type of the prompt dataset.
|
25342
25707
|
# Corresponds to the JSON property `promptType`
|
25343
25708
|
# @return [String]
|
@@ -25409,6 +25774,7 @@ module Google
|
|
25409
25774
|
@logprobs = args[:logprobs] if args.key?(:logprobs)
|
25410
25775
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
25411
25776
|
@note = args[:note] if args.key?(:note)
|
25777
|
+
@prompt_api_schema = args[:prompt_api_schema] if args.key?(:prompt_api_schema)
|
25412
25778
|
@prompt_type = args[:prompt_type] if args.key?(:prompt_type)
|
25413
25779
|
@seed_enabled = args[:seed_enabled] if args.key?(:seed_enabled)
|
25414
25780
|
@seed_value = args[:seed_value] if args.key?(:seed_value)
|
@@ -31966,7 +32332,7 @@ module Google
|
|
31966
32332
|
class GoogleCloudAiplatformV1ToolParameterKvMatchSpec
|
31967
32333
|
include Google::Apis::Core::Hashable
|
31968
32334
|
|
31969
|
-
# Optional. Whether to use
|
32335
|
+
# Optional. Whether to use STRICT string match on parameter values.
|
31970
32336
|
# Corresponds to the JSON property `useStrictStringMatch`
|
31971
32337
|
# @return [Boolean]
|
31972
32338
|
attr_accessor :use_strict_string_match
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AiplatformV1
|
18
18
|
# Version of the google-apis-aiplatform_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241007"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class CloudAiLargeModelsVisionImageImageSize
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class CloudAiLargeModelsVisionImageRaiScores
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -1006,6 +1012,12 @@ module Google
|
|
1006
1012
|
include Google::Apis::Core::JsonObjectSupport
|
1007
1013
|
end
|
1008
1014
|
|
1015
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
1016
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
|
+
|
1018
|
+
include Google::Apis::Core::JsonObjectSupport
|
1019
|
+
end
|
1020
|
+
|
1009
1021
|
class GoogleCloudAiplatformV1EncryptionSpec
|
1010
1022
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
1023
|
|
@@ -3118,6 +3130,12 @@ module Google
|
|
3118
3130
|
include Google::Apis::Core::JsonObjectSupport
|
3119
3131
|
end
|
3120
3132
|
|
3133
|
+
class GoogleCloudAiplatformV1PscInterfaceConfig
|
3134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3135
|
+
|
3136
|
+
include Google::Apis::Core::JsonObjectSupport
|
3137
|
+
end
|
3138
|
+
|
3121
3139
|
class GoogleCloudAiplatformV1PublisherModel
|
3122
3140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3123
3141
|
|
@@ -3562,6 +3580,12 @@ module Google
|
|
3562
3580
|
include Google::Apis::Core::JsonObjectSupport
|
3563
3581
|
end
|
3564
3582
|
|
3583
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
3584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3585
|
+
|
3586
|
+
include Google::Apis::Core::JsonObjectSupport
|
3587
|
+
end
|
3588
|
+
|
3565
3589
|
class GoogleCloudAiplatformV1RougeInput
|
3566
3590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3567
3591
|
|
@@ -4084,6 +4108,48 @@ module Google
|
|
4084
4108
|
include Google::Apis::Core::JsonObjectSupport
|
4085
4109
|
end
|
4086
4110
|
|
4111
|
+
class GoogleCloudAiplatformV1SchemaPromptApiSchema
|
4112
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4113
|
+
|
4114
|
+
include Google::Apis::Core::JsonObjectSupport
|
4115
|
+
end
|
4116
|
+
|
4117
|
+
class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
|
4118
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4119
|
+
|
4120
|
+
include Google::Apis::Core::JsonObjectSupport
|
4121
|
+
end
|
4122
|
+
|
4123
|
+
class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
|
4124
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4125
|
+
|
4126
|
+
include Google::Apis::Core::JsonObjectSupport
|
4127
|
+
end
|
4128
|
+
|
4129
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
|
4130
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4131
|
+
|
4132
|
+
include Google::Apis::Core::JsonObjectSupport
|
4133
|
+
end
|
4134
|
+
|
4135
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPartList
|
4136
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4137
|
+
|
4138
|
+
include Google::Apis::Core::JsonObjectSupport
|
4139
|
+
end
|
4140
|
+
|
4141
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
|
4142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4143
|
+
|
4144
|
+
include Google::Apis::Core::JsonObjectSupport
|
4145
|
+
end
|
4146
|
+
|
4147
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
|
4148
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4149
|
+
|
4150
|
+
include Google::Apis::Core::JsonObjectSupport
|
4151
|
+
end
|
4152
|
+
|
4087
4153
|
class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
|
4088
4154
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4089
4155
|
|
@@ -5704,6 +5770,8 @@ module Google
|
|
5704
5770
|
property :image, :base64 => true, as: 'image'
|
5705
5771
|
property :image_rai_scores, as: 'imageRaiScores', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores::Representation
|
5706
5772
|
|
5773
|
+
property :image_size, as: 'imageSize', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize::Representation
|
5774
|
+
|
5707
5775
|
property :rai_info, as: 'raiInfo', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo::Representation
|
5708
5776
|
|
5709
5777
|
property :semantic_filter_response, as: 'semanticFilterResponse', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse::Representation
|
@@ -5713,6 +5781,15 @@ module Google
|
|
5713
5781
|
end
|
5714
5782
|
end
|
5715
5783
|
|
5784
|
+
class CloudAiLargeModelsVisionImageImageSize
|
5785
|
+
# @private
|
5786
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5787
|
+
property :channels, as: 'channels'
|
5788
|
+
property :height, as: 'height'
|
5789
|
+
property :width, as: 'width'
|
5790
|
+
end
|
5791
|
+
end
|
5792
|
+
|
5716
5793
|
class CloudAiLargeModelsVisionImageRaiScores
|
5717
5794
|
# @private
|
5718
5795
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6896,6 +6973,8 @@ module Google
|
|
6896
6973
|
property :network, as: 'network'
|
6897
6974
|
property :persistent_resource_id, as: 'persistentResourceId'
|
6898
6975
|
property :protected_artifact_location_id, as: 'protectedArtifactLocationId'
|
6976
|
+
property :psc_interface_config, as: 'pscInterfaceConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig::Representation
|
6977
|
+
|
6899
6978
|
collection :reserved_ip_ranges, as: 'reservedIpRanges'
|
6900
6979
|
property :scheduling, as: 'scheduling', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling::Representation
|
6901
6980
|
|
@@ -7297,6 +7376,14 @@ module Google
|
|
7297
7376
|
end
|
7298
7377
|
end
|
7299
7378
|
|
7379
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
7380
|
+
# @private
|
7381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7382
|
+
property :dynamic_threshold, as: 'dynamicThreshold'
|
7383
|
+
property :mode, as: 'mode'
|
7384
|
+
end
|
7385
|
+
end
|
7386
|
+
|
7300
7387
|
class GoogleCloudAiplatformV1EncryptionSpec
|
7301
7388
|
# @private
|
7302
7389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8252,6 +8339,7 @@ module Google
|
|
8252
8339
|
class GoogleCloudAiplatformV1FeatureViewSyncConfig
|
8253
8340
|
# @private
|
8254
8341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8342
|
+
property :continuous, as: 'continuous'
|
8255
8343
|
property :cron, as: 'cron'
|
8256
8344
|
end
|
8257
8345
|
end
|
@@ -8640,6 +8728,7 @@ module Google
|
|
8640
8728
|
class GoogleCloudAiplatformV1GenerationConfig
|
8641
8729
|
# @private
|
8642
8730
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8731
|
+
property :audio_timestamp, as: 'audioTimestamp'
|
8643
8732
|
property :candidate_count, as: 'candidateCount'
|
8644
8733
|
property :frequency_penalty, as: 'frequencyPenalty'
|
8645
8734
|
property :logprobs, as: 'logprobs'
|
@@ -8703,6 +8792,8 @@ module Google
|
|
8703
8792
|
class GoogleCloudAiplatformV1GoogleSearchRetrieval
|
8704
8793
|
# @private
|
8705
8794
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8795
|
+
property :dynamic_retrieval_config, as: 'dynamicRetrievalConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig::Representation
|
8796
|
+
|
8706
8797
|
end
|
8707
8798
|
end
|
8708
8799
|
|
@@ -8773,6 +8864,8 @@ module Google
|
|
8773
8864
|
|
8774
8865
|
collection :grounding_supports, as: 'groundingSupports', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport::Representation
|
8775
8866
|
|
8867
|
+
property :retrieval_metadata, as: 'retrievalMetadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata::Representation
|
8868
|
+
|
8776
8869
|
property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint::Representation
|
8777
8870
|
|
8778
8871
|
collection :web_search_queries, as: 'webSearchQueries'
|
@@ -11073,6 +11166,12 @@ module Google
|
|
11073
11166
|
end
|
11074
11167
|
end
|
11075
11168
|
|
11169
|
+
class GoogleCloudAiplatformV1PscInterfaceConfig
|
11170
|
+
# @private
|
11171
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
11172
|
+
end
|
11173
|
+
end
|
11174
|
+
|
11076
11175
|
class GoogleCloudAiplatformV1PublisherModel
|
11077
11176
|
# @private
|
11078
11177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -11763,6 +11862,13 @@ module Google
|
|
11763
11862
|
end
|
11764
11863
|
end
|
11765
11864
|
|
11865
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
11866
|
+
# @private
|
11867
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
11868
|
+
property :google_search_dynamic_retrieval_score, as: 'googleSearchDynamicRetrievalScore'
|
11869
|
+
end
|
11870
|
+
end
|
11871
|
+
|
11766
11872
|
class GoogleCloudAiplatformV1RougeInput
|
11767
11873
|
# @private
|
11768
11874
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12673,6 +12779,84 @@ module Google
|
|
12673
12779
|
end
|
12674
12780
|
end
|
12675
12781
|
|
12782
|
+
class GoogleCloudAiplatformV1SchemaPromptApiSchema
|
12783
|
+
# @private
|
12784
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12785
|
+
property :api_schema_version, as: 'apiSchemaVersion'
|
12786
|
+
collection :executions, as: 'executions', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution::Representation
|
12787
|
+
|
12788
|
+
property :multimodal_prompt, as: 'multimodalPrompt', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt::Representation
|
12789
|
+
|
12790
|
+
property :structured_prompt, as: 'structuredPrompt', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt::Representation
|
12791
|
+
|
12792
|
+
end
|
12793
|
+
end
|
12794
|
+
|
12795
|
+
class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
|
12796
|
+
# @private
|
12797
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12798
|
+
hash :arguments, as: 'arguments', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue::Representation
|
12799
|
+
|
12800
|
+
end
|
12801
|
+
end
|
12802
|
+
|
12803
|
+
class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
|
12804
|
+
# @private
|
12805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12806
|
+
property :part_list, as: 'partList', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList::Representation
|
12807
|
+
|
12808
|
+
end
|
12809
|
+
end
|
12810
|
+
|
12811
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
|
12812
|
+
# @private
|
12813
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12814
|
+
property :prompt_message, as: 'promptMessage', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage::Representation
|
12815
|
+
|
12816
|
+
end
|
12817
|
+
end
|
12818
|
+
|
12819
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPartList
|
12820
|
+
# @private
|
12821
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12822
|
+
collection :parts, as: 'parts', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part::Representation
|
12823
|
+
|
12824
|
+
end
|
12825
|
+
end
|
12826
|
+
|
12827
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
|
12828
|
+
# @private
|
12829
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12830
|
+
collection :contents, as: 'contents', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
|
12831
|
+
|
12832
|
+
property :generation_config, as: 'generationConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig::Representation
|
12833
|
+
|
12834
|
+
property :model, as: 'model'
|
12835
|
+
collection :safety_settings, as: 'safetySettings', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting::Representation
|
12836
|
+
|
12837
|
+
property :system_instruction, as: 'systemInstruction', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
|
12838
|
+
|
12839
|
+
property :tool_config, as: 'toolConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig::Representation
|
12840
|
+
|
12841
|
+
collection :tools, as: 'tools', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool::Representation
|
12842
|
+
|
12843
|
+
end
|
12844
|
+
end
|
12845
|
+
|
12846
|
+
class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
|
12847
|
+
# @private
|
12848
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12849
|
+
property :context, as: 'context', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
|
12850
|
+
|
12851
|
+
collection :examples, as: 'examples', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList::Representation
|
12852
|
+
|
12853
|
+
collection :input_prefixes, as: 'inputPrefixes'
|
12854
|
+
collection :output_prefixes, as: 'outputPrefixes'
|
12855
|
+
property :prompt_message, as: 'promptMessage', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage::Representation
|
12856
|
+
|
12857
|
+
end
|
12858
|
+
end
|
12859
|
+
|
12676
12860
|
class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
|
12677
12861
|
# @private
|
12678
12862
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12749,6 +12933,8 @@ module Google
|
|
12749
12933
|
property :logprobs, as: 'logprobs'
|
12750
12934
|
property :max_output_tokens, :numeric_string => true, as: 'maxOutputTokens'
|
12751
12935
|
property :note, as: 'note'
|
12936
|
+
property :prompt_api_schema, as: 'promptApiSchema', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema::Representation
|
12937
|
+
|
12752
12938
|
property :prompt_type, as: 'promptType'
|
12753
12939
|
property :seed_enabled, as: 'seedEnabled'
|
12754
12940
|
property :seed_value, :numeric_string => true, as: 'seedValue'
|
@@ -4428,6 +4428,40 @@ module Google
|
|
4428
4428
|
execute_or_queue_command(command, &block)
|
4429
4429
|
end
|
4430
4430
|
|
4431
|
+
# Exposes an OpenAI-compatible endpoint for chat completions.
|
4432
|
+
# @param [String] endpoint
|
4433
|
+
# Required. The name of the endpoint requested to serve the prediction. Format: `
|
4434
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
4435
|
+
# @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object
|
4436
|
+
# @param [String] fields
|
4437
|
+
# Selector specifying which fields to include in a partial response.
|
4438
|
+
# @param [String] quota_user
|
4439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4441
|
+
# @param [Google::Apis::RequestOptions] options
|
4442
|
+
# Request-specific options
|
4443
|
+
#
|
4444
|
+
# @yield [result, err] Result & error if block supplied
|
4445
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
4446
|
+
# @yieldparam err [StandardError] error object if request failed
|
4447
|
+
#
|
4448
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
4449
|
+
#
|
4450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4453
|
+
def completions_project_location_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4454
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/chat/completions', options)
|
4455
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
4456
|
+
command.request_object = google_api_http_body_object
|
4457
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
4458
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
4459
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
4460
|
+
command.query['fields'] = fields unless fields.nil?
|
4461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4462
|
+
execute_or_queue_command(command, &block)
|
4463
|
+
end
|
4464
|
+
|
4431
4465
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
4432
4466
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
4433
4467
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -4816,6 +4850,42 @@ module Google
|
|
4816
4850
|
execute_or_queue_command(command, &block)
|
4817
4851
|
end
|
4818
4852
|
|
4853
|
+
# Creates a batch of Features in a given FeatureGroup.
|
4854
|
+
# @param [String] parent
|
4855
|
+
# Required. The resource name of the EntityType/FeatureGroup to create the batch
|
4856
|
+
# of Features under. Format: `projects/`project`/locations/`location`/
|
4857
|
+
# featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/
|
4858
|
+
# locations/`location`/featureGroups/`feature_group``
|
4859
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1_batch_create_features_request_object
|
4860
|
+
# @param [String] fields
|
4861
|
+
# Selector specifying which fields to include in a partial response.
|
4862
|
+
# @param [String] quota_user
|
4863
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4864
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4865
|
+
# @param [Google::Apis::RequestOptions] options
|
4866
|
+
# Request-specific options
|
4867
|
+
#
|
4868
|
+
# @yield [result, err] Result & error if block supplied
|
4869
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
4870
|
+
# @yieldparam err [StandardError] error object if request failed
|
4871
|
+
#
|
4872
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
4873
|
+
#
|
4874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4877
|
+
def batch_project_location_feature_group_feature_create(parent, google_cloud_aiplatform_v1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4878
|
+
command = make_simple_command(:post, 'v1/{+parent}/features:batchCreate', options)
|
4879
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateFeaturesRequest::Representation
|
4880
|
+
command.request_object = google_cloud_aiplatform_v1_batch_create_features_request_object
|
4881
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
4882
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
4883
|
+
command.params['parent'] = parent unless parent.nil?
|
4884
|
+
command.query['fields'] = fields unless fields.nil?
|
4885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4886
|
+
execute_or_queue_command(command, &block)
|
4887
|
+
end
|
4888
|
+
|
4819
4889
|
# Creates a new Feature in a given FeatureGroup.
|
4820
4890
|
# @param [String] parent
|
4821
4891
|
# Required. The resource name of the EntityType or FeatureGroup to create a
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-aiplatform_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.39.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-10-
|
11
|
+
date: 2024-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.39.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Vertex AI API V1
|