google-apis-aiplatform_v1 0.37.0 → 0.38.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: 9a279d6619ed5650f5a5011d43a3ff10d460c2a29dc2db6d79aa6872fe3d6a2e
|
4
|
+
data.tar.gz: 9f2aca5a1639e481f167ee5b5f8c8b80e65d09338ed74875c828176e245de829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d94845e379f7764e9f8c4b483c824be34daf52e1c4be1eebd0ea71cc9d97d2696098674d7492ce1851c2959b41f65d5c06bfa8c060b8eb98e1c04d723a629db
|
7
|
+
data.tar.gz: 207918e1481310a7a8320a0e7c5007e5ab5ae627e82c4cc09db35384fc017d4a455481bb3dcd07a17afededfc851455d70b1f8879eae61daa1dd34778b691e52
|
data/CHANGELOG.md
CHANGED
@@ -5664,6 +5664,32 @@ module Google
|
|
5664
5664
|
end
|
5665
5665
|
end
|
5666
5666
|
|
5667
|
+
# Describes the options to customize dynamic retrieval.
|
5668
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
5669
|
+
include Google::Apis::Core::Hashable
|
5670
|
+
|
5671
|
+
# Optional. The threshold to be used in dynamic retrieval. If not set, a system
|
5672
|
+
# default value is used.
|
5673
|
+
# Corresponds to the JSON property `dynamicThreshold`
|
5674
|
+
# @return [Float]
|
5675
|
+
attr_accessor :dynamic_threshold
|
5676
|
+
|
5677
|
+
# The mode of the predictor to be used in dynamic retrieval.
|
5678
|
+
# Corresponds to the JSON property `mode`
|
5679
|
+
# @return [String]
|
5680
|
+
attr_accessor :mode
|
5681
|
+
|
5682
|
+
def initialize(**args)
|
5683
|
+
update!(**args)
|
5684
|
+
end
|
5685
|
+
|
5686
|
+
# Update properties of this object
|
5687
|
+
def update!(**args)
|
5688
|
+
@dynamic_threshold = args[:dynamic_threshold] if args.key?(:dynamic_threshold)
|
5689
|
+
@mode = args[:mode] if args.key?(:mode)
|
5690
|
+
end
|
5691
|
+
end
|
5692
|
+
|
5667
5693
|
# Represents a customer-managed encryption key spec that can be applied to a top-
|
5668
5694
|
# level resource.
|
5669
5695
|
class GoogleCloudAiplatformV1EncryptionSpec
|
@@ -10785,12 +10811,18 @@ module Google
|
|
10785
10811
|
class GoogleCloudAiplatformV1GoogleSearchRetrieval
|
10786
10812
|
include Google::Apis::Core::Hashable
|
10787
10813
|
|
10814
|
+
# Describes the options to customize dynamic retrieval.
|
10815
|
+
# Corresponds to the JSON property `dynamicRetrievalConfig`
|
10816
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig]
|
10817
|
+
attr_accessor :dynamic_retrieval_config
|
10818
|
+
|
10788
10819
|
def initialize(**args)
|
10789
10820
|
update!(**args)
|
10790
10821
|
end
|
10791
10822
|
|
10792
10823
|
# Update properties of this object
|
10793
10824
|
def update!(**args)
|
10825
|
+
@dynamic_retrieval_config = args[:dynamic_retrieval_config] if args.key?(:dynamic_retrieval_config)
|
10794
10826
|
end
|
10795
10827
|
end
|
10796
10828
|
|
@@ -10984,6 +11016,11 @@ module Google
|
|
10984
11016
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport>]
|
10985
11017
|
attr_accessor :grounding_supports
|
10986
11018
|
|
11019
|
+
# Metadata related to retrieval in the grounding flow.
|
11020
|
+
# Corresponds to the JSON property `retrievalMetadata`
|
11021
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata]
|
11022
|
+
attr_accessor :retrieval_metadata
|
11023
|
+
|
10987
11024
|
# Google search entry point.
|
10988
11025
|
# Corresponds to the JSON property `searchEntryPoint`
|
10989
11026
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint]
|
@@ -11002,6 +11039,7 @@ module Google
|
|
11002
11039
|
def update!(**args)
|
11003
11040
|
@grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
|
11004
11041
|
@grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
|
11042
|
+
@retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
|
11005
11043
|
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
11006
11044
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
11007
11045
|
end
|
@@ -13605,12 +13643,12 @@ module Google
|
|
13605
13643
|
# @return [Float]
|
13606
13644
|
attr_accessor :log_probability
|
13607
13645
|
|
13608
|
-
# The candidate
|
13646
|
+
# The candidate's token string value.
|
13609
13647
|
# Corresponds to the JSON property `token`
|
13610
13648
|
# @return [String]
|
13611
13649
|
attr_accessor :token
|
13612
13650
|
|
13613
|
-
# The candidate
|
13651
|
+
# The candidate's token id value.
|
13614
13652
|
# Corresponds to the JSON property `tokenId`
|
13615
13653
|
# @return [Fixnum]
|
13616
13654
|
attr_accessor :token_id
|
@@ -21572,6 +21610,29 @@ module Google
|
|
21572
21610
|
end
|
21573
21611
|
end
|
21574
21612
|
|
21613
|
+
# Metadata related to retrieval in the grounding flow.
|
21614
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
21615
|
+
include Google::Apis::Core::Hashable
|
21616
|
+
|
21617
|
+
# Optional. Score indicating how likely information from Google Search could
|
21618
|
+
# help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
|
21619
|
+
# least likely and 1 is the most likely. This score is only populated when
|
21620
|
+
# Google Search grounding and dynamic retrieval is enabled. It will be compared
|
21621
|
+
# to the threshold to determine whether to trigger Google Search.
|
21622
|
+
# Corresponds to the JSON property `googleSearchDynamicRetrievalScore`
|
21623
|
+
# @return [Float]
|
21624
|
+
attr_accessor :google_search_dynamic_retrieval_score
|
21625
|
+
|
21626
|
+
def initialize(**args)
|
21627
|
+
update!(**args)
|
21628
|
+
end
|
21629
|
+
|
21630
|
+
# Update properties of this object
|
21631
|
+
def update!(**args)
|
21632
|
+
@google_search_dynamic_retrieval_score = args[:google_search_dynamic_retrieval_score] if args.key?(:google_search_dynamic_retrieval_score)
|
21633
|
+
end
|
21634
|
+
end
|
21635
|
+
|
21575
21636
|
# Input for rouge metric.
|
21576
21637
|
class GoogleCloudAiplatformV1RougeInput
|
21577
21638
|
include Google::Apis::Core::Hashable
|
@@ -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.38.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 = "20241001"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1006,6 +1006,12 @@ module Google
|
|
1006
1006
|
include Google::Apis::Core::JsonObjectSupport
|
1007
1007
|
end
|
1008
1008
|
|
1009
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
1010
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
|
+
|
1012
|
+
include Google::Apis::Core::JsonObjectSupport
|
1013
|
+
end
|
1014
|
+
|
1009
1015
|
class GoogleCloudAiplatformV1EncryptionSpec
|
1010
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
1017
|
|
@@ -3562,6 +3568,12 @@ module Google
|
|
3562
3568
|
include Google::Apis::Core::JsonObjectSupport
|
3563
3569
|
end
|
3564
3570
|
|
3571
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
3572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3573
|
+
|
3574
|
+
include Google::Apis::Core::JsonObjectSupport
|
3575
|
+
end
|
3576
|
+
|
3565
3577
|
class GoogleCloudAiplatformV1RougeInput
|
3566
3578
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3567
3579
|
|
@@ -7297,6 +7309,14 @@ module Google
|
|
7297
7309
|
end
|
7298
7310
|
end
|
7299
7311
|
|
7312
|
+
class GoogleCloudAiplatformV1DynamicRetrievalConfig
|
7313
|
+
# @private
|
7314
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7315
|
+
property :dynamic_threshold, as: 'dynamicThreshold'
|
7316
|
+
property :mode, as: 'mode'
|
7317
|
+
end
|
7318
|
+
end
|
7319
|
+
|
7300
7320
|
class GoogleCloudAiplatformV1EncryptionSpec
|
7301
7321
|
# @private
|
7302
7322
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8703,6 +8723,8 @@ module Google
|
|
8703
8723
|
class GoogleCloudAiplatformV1GoogleSearchRetrieval
|
8704
8724
|
# @private
|
8705
8725
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8726
|
+
property :dynamic_retrieval_config, as: 'dynamicRetrievalConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DynamicRetrievalConfig::Representation
|
8727
|
+
|
8706
8728
|
end
|
8707
8729
|
end
|
8708
8730
|
|
@@ -8773,6 +8795,8 @@ module Google
|
|
8773
8795
|
|
8774
8796
|
collection :grounding_supports, as: 'groundingSupports', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport::Representation
|
8775
8797
|
|
8798
|
+
property :retrieval_metadata, as: 'retrievalMetadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrievalMetadata::Representation
|
8799
|
+
|
8776
8800
|
property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint::Representation
|
8777
8801
|
|
8778
8802
|
collection :web_search_queries, as: 'webSearchQueries'
|
@@ -11763,6 +11787,13 @@ module Google
|
|
11763
11787
|
end
|
11764
11788
|
end
|
11765
11789
|
|
11790
|
+
class GoogleCloudAiplatformV1RetrievalMetadata
|
11791
|
+
# @private
|
11792
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
11793
|
+
property :google_search_dynamic_retrieval_score, as: 'googleSearchDynamicRetrievalScore'
|
11794
|
+
end
|
11795
|
+
end
|
11796
|
+
|
11766
11797
|
class GoogleCloudAiplatformV1RougeInput
|
11767
11798
|
# @private
|
11768
11799
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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`.
|
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.38.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-13 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.38.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
|