google-apis-aiplatform_v1 0.65.0 → 0.66.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a20e2c9258c1e130c3165997ef84fb43b0b1a5eab15cd8100489595cad7c2379
|
4
|
+
data.tar.gz: 4f22d4fd36c00895d8b4d156e91fedc2b313c21f65a85c465e317d331b6a8f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48d871367a05225a7bc3673b4a692a975d754693b44a050b1be644ced476e0bcb0ac6020ae5d31f8b0b340cf232ccc76e99d1020062cee01a828d9ed6013995a
|
7
|
+
data.tar.gz: e3b31c820dcdabea2c14929a6c42ea797e993244267c27757b562ec4d10612af89b13c4bd0d9e90cf5b5ab5bea0cf988892ceff4d997cf9d64808acbc621264d
|
data/CHANGELOG.md
CHANGED
@@ -6482,8 +6482,10 @@ module Google
|
|
6482
6482
|
class GoogleCloudAiplatformV1DeployRequestEndpointConfig
|
6483
6483
|
include Google::Apis::Core::Hashable
|
6484
6484
|
|
6485
|
-
# Optional. By default, if dedicated endpoint is enabled
|
6486
|
-
# exposed through a dedicated
|
6485
|
+
# Optional. By default, if dedicated endpoint is enabled and private service
|
6486
|
+
# connect config is not set, the endpoint will be exposed through a dedicated
|
6487
|
+
# DNS [Endpoint.dedicated_endpoint_dns]. If private service connect config is
|
6488
|
+
# set, the endpoint will be exposed through private service connect. Your
|
6487
6489
|
# request to the dedicated DNS will be isolated from other users' traffic and
|
6488
6490
|
# will have better performance and reliability. Note: Once you enabled dedicated
|
6489
6491
|
# endpoint, you won't be able to send request to the shared DNS `region`-
|
@@ -6526,6 +6528,11 @@ module Google
|
|
6526
6528
|
# @return [String]
|
6527
6529
|
attr_accessor :endpoint_user_id
|
6528
6530
|
|
6531
|
+
# Represents configuration for private service connect.
|
6532
|
+
# Corresponds to the JSON property `privateServiceConnectConfig`
|
6533
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig]
|
6534
|
+
attr_accessor :private_service_connect_config
|
6535
|
+
|
6529
6536
|
def initialize(**args)
|
6530
6537
|
update!(**args)
|
6531
6538
|
end
|
@@ -6536,6 +6543,7 @@ module Google
|
|
6536
6543
|
@dedicated_endpoint_enabled = args[:dedicated_endpoint_enabled] if args.key?(:dedicated_endpoint_enabled)
|
6537
6544
|
@endpoint_display_name = args[:endpoint_display_name] if args.key?(:endpoint_display_name)
|
6538
6545
|
@endpoint_user_id = args[:endpoint_user_id] if args.key?(:endpoint_user_id)
|
6546
|
+
@private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
|
6539
6547
|
end
|
6540
6548
|
end
|
6541
6549
|
|
@@ -9166,11 +9174,6 @@ module Google
|
|
9166
9174
|
class GoogleCloudAiplatformV1EvaluationRunMetric
|
9167
9175
|
include Google::Apis::Core::Hashable
|
9168
9176
|
|
9169
|
-
# Specification for a computation based metric.
|
9170
|
-
# Corresponds to the JSON property `computationBasedMetricSpec`
|
9171
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec]
|
9172
|
-
attr_accessor :computation_based_metric_spec
|
9173
|
-
|
9174
9177
|
# Specification for an LLM based metric.
|
9175
9178
|
# Corresponds to the JSON property `llmBasedMetricSpec`
|
9176
9179
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec]
|
@@ -9197,7 +9200,6 @@ module Google
|
|
9197
9200
|
|
9198
9201
|
# Update properties of this object
|
9199
9202
|
def update!(**args)
|
9200
|
-
@computation_based_metric_spec = args[:computation_based_metric_spec] if args.key?(:computation_based_metric_spec)
|
9201
9203
|
@llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
|
9202
9204
|
@metric = args[:metric] if args.key?(:metric)
|
9203
9205
|
@predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
|
@@ -9205,31 +9207,6 @@ module Google
|
|
9205
9207
|
end
|
9206
9208
|
end
|
9207
9209
|
|
9208
|
-
# Specification for a computation based metric.
|
9209
|
-
class GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec
|
9210
|
-
include Google::Apis::Core::Hashable
|
9211
|
-
|
9212
|
-
# Optional. A map of parameters for the metric, e.g. `"rouge_type": "rougeL"`.
|
9213
|
-
# Corresponds to the JSON property `parameters`
|
9214
|
-
# @return [Hash<String,Object>]
|
9215
|
-
attr_accessor :parameters
|
9216
|
-
|
9217
|
-
# Required. The type of the computation based metric.
|
9218
|
-
# Corresponds to the JSON property `type`
|
9219
|
-
# @return [String]
|
9220
|
-
attr_accessor :type
|
9221
|
-
|
9222
|
-
def initialize(**args)
|
9223
|
-
update!(**args)
|
9224
|
-
end
|
9225
|
-
|
9226
|
-
# Update properties of this object
|
9227
|
-
def update!(**args)
|
9228
|
-
@parameters = args[:parameters] if args.key?(:parameters)
|
9229
|
-
@type = args[:type] if args.key?(:type)
|
9230
|
-
end
|
9231
|
-
end
|
9232
|
-
|
9233
9210
|
# Specification for an LLM based metric.
|
9234
9211
|
class GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec
|
9235
9212
|
include Google::Apis::Core::Hashable
|
@@ -14028,7 +14005,9 @@ module Google
|
|
14028
14005
|
# @return [String]
|
14029
14006
|
attr_accessor :model_version
|
14030
14007
|
|
14031
|
-
# Content filter results for a prompt sent in the request.
|
14008
|
+
# Content filter results for a prompt sent in the request. Note: This is sent
|
14009
|
+
# only in the first stream chunk and only if no candidates were generated due to
|
14010
|
+
# content violations.
|
14032
14011
|
# Corresponds to the JSON property `promptFeedback`
|
14033
14012
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback]
|
14034
14013
|
attr_accessor :prompt_feedback
|
@@ -14039,7 +14018,8 @@ module Google
|
|
14039
14018
|
# @return [String]
|
14040
14019
|
attr_accessor :response_id
|
14041
14020
|
|
14042
|
-
# Usage metadata about response
|
14021
|
+
# Usage metadata about the content generation request and response. This message
|
14022
|
+
# provides a detailed breakdown of token usage and other relevant metrics.
|
14043
14023
|
# Corresponds to the JSON property `usageMetadata`
|
14044
14024
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata]
|
14045
14025
|
attr_accessor :usage_metadata
|
@@ -14059,21 +14039,25 @@ module Google
|
|
14059
14039
|
end
|
14060
14040
|
end
|
14061
14041
|
|
14062
|
-
# Content filter results for a prompt sent in the request.
|
14042
|
+
# Content filter results for a prompt sent in the request. Note: This is sent
|
14043
|
+
# only in the first stream chunk and only if no candidates were generated due to
|
14044
|
+
# content violations.
|
14063
14045
|
class GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback
|
14064
14046
|
include Google::Apis::Core::Hashable
|
14065
14047
|
|
14066
|
-
# Output only.
|
14048
|
+
# Output only. The reason why the prompt was blocked.
|
14067
14049
|
# Corresponds to the JSON property `blockReason`
|
14068
14050
|
# @return [String]
|
14069
14051
|
attr_accessor :block_reason
|
14070
14052
|
|
14071
|
-
# Output only. A readable
|
14053
|
+
# Output only. A readable message that explains the reason why the prompt was
|
14054
|
+
# blocked.
|
14072
14055
|
# Corresponds to the JSON property `blockReasonMessage`
|
14073
14056
|
# @return [String]
|
14074
14057
|
attr_accessor :block_reason_message
|
14075
14058
|
|
14076
|
-
# Output only.
|
14059
|
+
# Output only. A list of safety ratings for the prompt. There is one rating per
|
14060
|
+
# category.
|
14077
14061
|
# Corresponds to the JSON property `safetyRatings`
|
14078
14062
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyRating>]
|
14079
14063
|
attr_accessor :safety_ratings
|
@@ -14090,67 +14074,73 @@ module Google
|
|
14090
14074
|
end
|
14091
14075
|
end
|
14092
14076
|
|
14093
|
-
# Usage metadata about response
|
14077
|
+
# Usage metadata about the content generation request and response. This message
|
14078
|
+
# provides a detailed breakdown of token usage and other relevant metrics.
|
14094
14079
|
class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
|
14095
14080
|
include Google::Apis::Core::Hashable
|
14096
14081
|
|
14097
|
-
# Output only.
|
14082
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
14083
|
+
# cached content.
|
14098
14084
|
# Corresponds to the JSON property `cacheTokensDetails`
|
14099
14085
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
14100
14086
|
attr_accessor :cache_tokens_details
|
14101
14087
|
|
14102
|
-
# Output only.
|
14103
|
-
#
|
14088
|
+
# Output only. The number of tokens in the cached content that was used for this
|
14089
|
+
# request.
|
14104
14090
|
# Corresponds to the JSON property `cachedContentTokenCount`
|
14105
14091
|
# @return [Fixnum]
|
14106
14092
|
attr_accessor :cached_content_token_count
|
14107
14093
|
|
14108
|
-
#
|
14094
|
+
# The total number of tokens in the generated candidates.
|
14109
14095
|
# Corresponds to the JSON property `candidatesTokenCount`
|
14110
14096
|
# @return [Fixnum]
|
14111
14097
|
attr_accessor :candidates_token_count
|
14112
14098
|
|
14113
|
-
# Output only.
|
14099
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
14100
|
+
# generated candidates.
|
14114
14101
|
# Corresponds to the JSON property `candidatesTokensDetails`
|
14115
14102
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
14116
14103
|
attr_accessor :candidates_tokens_details
|
14117
14104
|
|
14118
|
-
#
|
14119
|
-
#
|
14120
|
-
# the cached content.
|
14105
|
+
# The total number of tokens in the prompt. This includes any text, images, or
|
14106
|
+
# other media provided in the request. When `cached_content` is set, this also
|
14107
|
+
# includes the number of tokens in the cached content.
|
14121
14108
|
# Corresponds to the JSON property `promptTokenCount`
|
14122
14109
|
# @return [Fixnum]
|
14123
14110
|
attr_accessor :prompt_token_count
|
14124
14111
|
|
14125
|
-
# Output only.
|
14112
|
+
# Output only. A detailed breakdown of the token count for each modality in the
|
14113
|
+
# prompt.
|
14126
14114
|
# Corresponds to the JSON property `promptTokensDetails`
|
14127
14115
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
14128
14116
|
attr_accessor :prompt_tokens_details
|
14129
14117
|
|
14130
|
-
# Output only.
|
14118
|
+
# Output only. The number of tokens that were part of the model's generated "
|
14119
|
+
# thoughts" output, if applicable.
|
14131
14120
|
# Corresponds to the JSON property `thoughtsTokenCount`
|
14132
14121
|
# @return [Fixnum]
|
14133
14122
|
attr_accessor :thoughts_token_count
|
14134
14123
|
|
14135
|
-
# Output only.
|
14124
|
+
# Output only. The number of tokens in the results from tool executions, which
|
14125
|
+
# are provided back to the model as input, if applicable.
|
14136
14126
|
# Corresponds to the JSON property `toolUsePromptTokenCount`
|
14137
14127
|
# @return [Fixnum]
|
14138
14128
|
attr_accessor :tool_use_prompt_token_count
|
14139
14129
|
|
14140
|
-
# Output only.
|
14141
|
-
#
|
14130
|
+
# Output only. A detailed breakdown by modality of the token counts from the
|
14131
|
+
# results of tool executions, which are provided back to the model as input.
|
14142
14132
|
# Corresponds to the JSON property `toolUsePromptTokensDetails`
|
14143
14133
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
|
14144
14134
|
attr_accessor :tool_use_prompt_tokens_details
|
14145
14135
|
|
14146
|
-
#
|
14147
|
-
#
|
14136
|
+
# The total number of tokens for the entire request. This is the sum of `
|
14137
|
+
# prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
|
14138
|
+
# and `thoughts_token_count`.
|
14148
14139
|
# Corresponds to the JSON property `totalTokenCount`
|
14149
14140
|
# @return [Fixnum]
|
14150
14141
|
attr_accessor :total_token_count
|
14151
14142
|
|
14152
|
-
# Output only.
|
14153
|
-
# or Provisioned Throughput quota.
|
14143
|
+
# Output only. The traffic type for this request.
|
14154
14144
|
# Corresponds to the JSON property `trafficType`
|
14155
14145
|
# @return [String]
|
14156
14146
|
attr_accessor :traffic_type
|
@@ -14711,12 +14701,19 @@ module Google
|
|
14711
14701
|
class GoogleCloudAiplatformV1GoogleMaps
|
14712
14702
|
include Google::Apis::Core::Hashable
|
14713
14703
|
|
14704
|
+
# Optional. If true, include the widget context token in the response.
|
14705
|
+
# Corresponds to the JSON property `enableWidget`
|
14706
|
+
# @return [Boolean]
|
14707
|
+
attr_accessor :enable_widget
|
14708
|
+
alias_method :enable_widget?, :enable_widget
|
14709
|
+
|
14714
14710
|
def initialize(**args)
|
14715
14711
|
update!(**args)
|
14716
14712
|
end
|
14717
14713
|
|
14718
14714
|
# Update properties of this object
|
14719
14715
|
def update!(**args)
|
14716
|
+
@enable_widget = args[:enable_widget] if args.key?(:enable_widget)
|
14720
14717
|
end
|
14721
14718
|
end
|
14722
14719
|
|
@@ -14886,17 +14883,17 @@ module Google
|
|
14886
14883
|
# @return [String]
|
14887
14884
|
attr_accessor :place_id
|
14888
14885
|
|
14889
|
-
# Text of the
|
14886
|
+
# Text of the place answer.
|
14890
14887
|
# Corresponds to the JSON property `text`
|
14891
14888
|
# @return [String]
|
14892
14889
|
attr_accessor :text
|
14893
14890
|
|
14894
|
-
# Title of the
|
14891
|
+
# Title of the place.
|
14895
14892
|
# Corresponds to the JSON property `title`
|
14896
14893
|
# @return [String]
|
14897
14894
|
attr_accessor :title
|
14898
14895
|
|
14899
|
-
# URI reference of the
|
14896
|
+
# URI reference of the place.
|
14900
14897
|
# Corresponds to the JSON property `uri`
|
14901
14898
|
# @return [String]
|
14902
14899
|
attr_accessor :uri
|
@@ -14919,11 +14916,6 @@ module Google
|
|
14919
14916
|
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources
|
14920
14917
|
include Google::Apis::Core::Hashable
|
14921
14918
|
|
14922
|
-
# A link where users can flag a problem with the generated answer.
|
14923
|
-
# Corresponds to the JSON property `flagContentUri`
|
14924
|
-
# @return [String]
|
14925
|
-
attr_accessor :flag_content_uri
|
14926
|
-
|
14927
14919
|
# Snippets of reviews that are used to generate the answer.
|
14928
14920
|
# Corresponds to the JSON property `reviewSnippets`
|
14929
14921
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet>]
|
@@ -14935,72 +14927,28 @@ module Google
|
|
14935
14927
|
|
14936
14928
|
# Update properties of this object
|
14937
14929
|
def update!(**args)
|
14938
|
-
@flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
|
14939
14930
|
@review_snippets = args[:review_snippets] if args.key?(:review_snippets)
|
14940
14931
|
end
|
14941
14932
|
end
|
14942
14933
|
|
14943
|
-
# Author attribution for a photo or review.
|
14944
|
-
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
|
14945
|
-
include Google::Apis::Core::Hashable
|
14946
|
-
|
14947
|
-
# Name of the author of the Photo or Review.
|
14948
|
-
# Corresponds to the JSON property `displayName`
|
14949
|
-
# @return [String]
|
14950
|
-
attr_accessor :display_name
|
14951
|
-
|
14952
|
-
# Profile photo URI of the author of the Photo or Review.
|
14953
|
-
# Corresponds to the JSON property `photoUri`
|
14954
|
-
# @return [String]
|
14955
|
-
attr_accessor :photo_uri
|
14956
|
-
|
14957
|
-
# URI of the author of the Photo or Review.
|
14958
|
-
# Corresponds to the JSON property `uri`
|
14959
|
-
# @return [String]
|
14960
|
-
attr_accessor :uri
|
14961
|
-
|
14962
|
-
def initialize(**args)
|
14963
|
-
update!(**args)
|
14964
|
-
end
|
14965
|
-
|
14966
|
-
# Update properties of this object
|
14967
|
-
def update!(**args)
|
14968
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
14969
|
-
@photo_uri = args[:photo_uri] if args.key?(:photo_uri)
|
14970
|
-
@uri = args[:uri] if args.key?(:uri)
|
14971
|
-
end
|
14972
|
-
end
|
14973
|
-
|
14974
14934
|
# Encapsulates a review snippet.
|
14975
14935
|
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
|
14976
14936
|
include Google::Apis::Core::Hashable
|
14977
14937
|
|
14978
|
-
# Author attribution for a photo or review.
|
14979
|
-
# Corresponds to the JSON property `authorAttribution`
|
14980
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution]
|
14981
|
-
attr_accessor :author_attribution
|
14982
|
-
|
14983
|
-
# A link where users can flag a problem with the review.
|
14984
|
-
# Corresponds to the JSON property `flagContentUri`
|
14985
|
-
# @return [String]
|
14986
|
-
attr_accessor :flag_content_uri
|
14987
|
-
|
14988
14938
|
# A link to show the review on Google Maps.
|
14989
14939
|
# Corresponds to the JSON property `googleMapsUri`
|
14990
14940
|
# @return [String]
|
14991
14941
|
attr_accessor :google_maps_uri
|
14992
14942
|
|
14993
|
-
#
|
14994
|
-
#
|
14995
|
-
# Corresponds to the JSON property `relativePublishTimeDescription`
|
14943
|
+
# Id of the review referencing the place.
|
14944
|
+
# Corresponds to the JSON property `reviewId`
|
14996
14945
|
# @return [String]
|
14997
|
-
attr_accessor :
|
14946
|
+
attr_accessor :review_id
|
14998
14947
|
|
14999
|
-
#
|
15000
|
-
#
|
15001
|
-
# Corresponds to the JSON property `review`
|
14948
|
+
# Title of the review.
|
14949
|
+
# Corresponds to the JSON property `title`
|
15002
14950
|
# @return [String]
|
15003
|
-
attr_accessor :
|
14951
|
+
attr_accessor :title
|
15004
14952
|
|
15005
14953
|
def initialize(**args)
|
15006
14954
|
update!(**args)
|
@@ -15008,11 +14956,9 @@ module Google
|
|
15008
14956
|
|
15009
14957
|
# Update properties of this object
|
15010
14958
|
def update!(**args)
|
15011
|
-
@author_attribution = args[:author_attribution] if args.key?(:author_attribution)
|
15012
|
-
@flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
|
15013
14959
|
@google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
|
15014
|
-
@
|
15015
|
-
@
|
14960
|
+
@review_id = args[:review_id] if args.key?(:review_id)
|
14961
|
+
@title = args[:title] if args.key?(:title)
|
15016
14962
|
end
|
15017
14963
|
end
|
15018
14964
|
|
@@ -15123,6 +15069,12 @@ module Google
|
|
15123
15069
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint]
|
15124
15070
|
attr_accessor :search_entry_point
|
15125
15071
|
|
15072
|
+
# Optional. Output only. List of source flagging uris. This is currently
|
15073
|
+
# populated only for Google Maps grounding.
|
15074
|
+
# Corresponds to the JSON property `sourceFlaggingUris`
|
15075
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri>]
|
15076
|
+
attr_accessor :source_flagging_uris
|
15077
|
+
|
15126
15078
|
# Optional. Web search queries for the following-up web search.
|
15127
15079
|
# Corresponds to the JSON property `webSearchQueries`
|
15128
15080
|
# @return [Array<String>]
|
@@ -15139,10 +15091,37 @@ module Google
|
|
15139
15091
|
@grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
|
15140
15092
|
@retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
|
15141
15093
|
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
15094
|
+
@source_flagging_uris = args[:source_flagging_uris] if args.key?(:source_flagging_uris)
|
15142
15095
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
15143
15096
|
end
|
15144
15097
|
end
|
15145
15098
|
|
15099
|
+
# Source content flagging uri for a place or review. This is currently populated
|
15100
|
+
# only for Google Maps grounding.
|
15101
|
+
class GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri
|
15102
|
+
include Google::Apis::Core::Hashable
|
15103
|
+
|
15104
|
+
# A link where users can flag a problem with the source (place or review).
|
15105
|
+
# Corresponds to the JSON property `flagContentUri`
|
15106
|
+
# @return [String]
|
15107
|
+
attr_accessor :flag_content_uri
|
15108
|
+
|
15109
|
+
# Id of the place or review.
|
15110
|
+
# Corresponds to the JSON property `sourceId`
|
15111
|
+
# @return [String]
|
15112
|
+
attr_accessor :source_id
|
15113
|
+
|
15114
|
+
def initialize(**args)
|
15115
|
+
update!(**args)
|
15116
|
+
end
|
15117
|
+
|
15118
|
+
# Update properties of this object
|
15119
|
+
def update!(**args)
|
15120
|
+
@flag_content_uri = args[:flag_content_uri] if args.key?(:flag_content_uri)
|
15121
|
+
@source_id = args[:source_id] if args.key?(:source_id)
|
15122
|
+
end
|
15123
|
+
end
|
15124
|
+
|
15146
15125
|
# Grounding support.
|
15147
15126
|
class GoogleCloudAiplatformV1GroundingSupport
|
15148
15127
|
include Google::Apis::Core::Hashable
|
@@ -16521,6 +16500,46 @@ module Google
|
|
16521
16500
|
end
|
16522
16501
|
end
|
16523
16502
|
|
16503
|
+
# Request message for PredictionService.Invoke.
|
16504
|
+
class GoogleCloudAiplatformV1InvokeRequest
|
16505
|
+
include Google::Apis::Core::Hashable
|
16506
|
+
|
16507
|
+
# ID of the DeployedModel that serves the invoke request.
|
16508
|
+
# Corresponds to the JSON property `deployedModelId`
|
16509
|
+
# @return [String]
|
16510
|
+
attr_accessor :deployed_model_id
|
16511
|
+
|
16512
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
16513
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
16514
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
16515
|
+
# methods in the request as well as the response. It can be used as a top-level
|
16516
|
+
# request field, which is convenient if one wants to extract parameters from
|
16517
|
+
# either the URL or HTTP template into the request fields and also want access
|
16518
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
16519
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
16520
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
16521
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
16522
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
16523
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
16524
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
16525
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
16526
|
+
# only changes how the request and response bodies are handled, all other
|
16527
|
+
# features will continue to work unchanged.
|
16528
|
+
# Corresponds to the JSON property `httpBody`
|
16529
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
16530
|
+
attr_accessor :http_body
|
16531
|
+
|
16532
|
+
def initialize(**args)
|
16533
|
+
update!(**args)
|
16534
|
+
end
|
16535
|
+
|
16536
|
+
# Update properties of this object
|
16537
|
+
def update!(**args)
|
16538
|
+
@deployed_model_id = args[:deployed_model_id] if args.key?(:deployed_model_id)
|
16539
|
+
@http_body = args[:http_body] if args.key?(:http_body)
|
16540
|
+
end
|
16541
|
+
end
|
16542
|
+
|
16524
16543
|
# The Jira source for the ImportRagFilesRequest.
|
16525
16544
|
class GoogleCloudAiplatformV1JiraSource
|
16526
16545
|
include Google::Apis::Core::Hashable
|
@@ -16585,6 +16604,63 @@ module Google
|
|
16585
16604
|
end
|
16586
16605
|
end
|
16587
16606
|
|
16607
|
+
# Specification for an LLM based metric.
|
16608
|
+
class GoogleCloudAiplatformV1LlmBasedMetricSpec
|
16609
|
+
include Google::Apis::Core::Hashable
|
16610
|
+
|
16611
|
+
# Optional. Optional additional configuration for the metric.
|
16612
|
+
# Corresponds to the JSON property `additionalConfig`
|
16613
|
+
# @return [Hash<String,Object>]
|
16614
|
+
attr_accessor :additional_config
|
16615
|
+
|
16616
|
+
# The configs for autorater. This is applicable to both EvaluateInstances and
|
16617
|
+
# EvaluateDataset.
|
16618
|
+
# Corresponds to the JSON property `judgeAutoraterConfig`
|
16619
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig]
|
16620
|
+
attr_accessor :judge_autorater_config
|
16621
|
+
|
16622
|
+
# Required. Template for the prompt sent to the judge model.
|
16623
|
+
# Corresponds to the JSON property `metricPromptTemplate`
|
16624
|
+
# @return [String]
|
16625
|
+
attr_accessor :metric_prompt_template
|
16626
|
+
|
16627
|
+
# The spec for a pre-defined metric.
|
16628
|
+
# Corresponds to the JSON property `predefinedRubricGenerationSpec`
|
16629
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec]
|
16630
|
+
attr_accessor :predefined_rubric_generation_spec
|
16631
|
+
|
16632
|
+
# Specification for how rubrics should be generated.
|
16633
|
+
# Corresponds to the JSON property `rubricGenerationSpec`
|
16634
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGenerationSpec]
|
16635
|
+
attr_accessor :rubric_generation_spec
|
16636
|
+
|
16637
|
+
# Use a pre-defined group of rubrics associated with the input. Refers to a key
|
16638
|
+
# in the rubric_groups map of EvaluationInstance.
|
16639
|
+
# Corresponds to the JSON property `rubricGroupKey`
|
16640
|
+
# @return [String]
|
16641
|
+
attr_accessor :rubric_group_key
|
16642
|
+
|
16643
|
+
# Optional. System instructions for the judge model.
|
16644
|
+
# Corresponds to the JSON property `systemInstruction`
|
16645
|
+
# @return [String]
|
16646
|
+
attr_accessor :system_instruction
|
16647
|
+
|
16648
|
+
def initialize(**args)
|
16649
|
+
update!(**args)
|
16650
|
+
end
|
16651
|
+
|
16652
|
+
# Update properties of this object
|
16653
|
+
def update!(**args)
|
16654
|
+
@additional_config = args[:additional_config] if args.key?(:additional_config)
|
16655
|
+
@judge_autorater_config = args[:judge_autorater_config] if args.key?(:judge_autorater_config)
|
16656
|
+
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
16657
|
+
@predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
|
16658
|
+
@rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
|
16659
|
+
@rubric_group_key = args[:rubric_group_key] if args.key?(:rubric_group_key)
|
16660
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
16661
|
+
end
|
16662
|
+
end
|
16663
|
+
|
16588
16664
|
# Contains information about the Large Model.
|
16589
16665
|
class GoogleCloudAiplatformV1LargeModelReference
|
16590
16666
|
include Google::Apis::Core::Hashable
|
@@ -18534,6 +18610,11 @@ module Google
|
|
18534
18610
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchSpec]
|
18535
18611
|
attr_accessor :exact_match_spec
|
18536
18612
|
|
18613
|
+
# Specification for an LLM based metric.
|
18614
|
+
# Corresponds to the JSON property `llmBasedMetricSpec`
|
18615
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LlmBasedMetricSpec]
|
18616
|
+
attr_accessor :llm_based_metric_spec
|
18617
|
+
|
18537
18618
|
# Spec for pairwise metric.
|
18538
18619
|
# Corresponds to the JSON property `pairwiseMetricSpec`
|
18539
18620
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec]
|
@@ -18564,6 +18645,7 @@ module Google
|
|
18564
18645
|
@aggregation_metrics = args[:aggregation_metrics] if args.key?(:aggregation_metrics)
|
18565
18646
|
@bleu_spec = args[:bleu_spec] if args.key?(:bleu_spec)
|
18566
18647
|
@exact_match_spec = args[:exact_match_spec] if args.key?(:exact_match_spec)
|
18648
|
+
@llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
|
18567
18649
|
@pairwise_metric_spec = args[:pairwise_metric_spec] if args.key?(:pairwise_metric_spec)
|
18568
18650
|
@pointwise_metric_spec = args[:pointwise_metric_spec] if args.key?(:pointwise_metric_spec)
|
18569
18651
|
@predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
|
@@ -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.66.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250916"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1498,12 +1498,6 @@ module Google
|
|
1498
1498
|
include Google::Apis::Core::JsonObjectSupport
|
1499
1499
|
end
|
1500
1500
|
|
1501
|
-
class GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec
|
1502
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1503
|
-
|
1504
|
-
include Google::Apis::Core::JsonObjectSupport
|
1505
|
-
end
|
1506
|
-
|
1507
1501
|
class GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec
|
1508
1502
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1509
1503
|
|
@@ -2452,31 +2446,31 @@ module Google
|
|
2452
2446
|
include Google::Apis::Core::JsonObjectSupport
|
2453
2447
|
end
|
2454
2448
|
|
2455
|
-
class
|
2449
|
+
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
|
2456
2450
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2457
2451
|
|
2458
2452
|
include Google::Apis::Core::JsonObjectSupport
|
2459
2453
|
end
|
2460
2454
|
|
2461
|
-
class
|
2455
|
+
class GoogleCloudAiplatformV1GroundingChunkRetrievedContext
|
2462
2456
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2463
2457
|
|
2464
2458
|
include Google::Apis::Core::JsonObjectSupport
|
2465
2459
|
end
|
2466
2460
|
|
2467
|
-
class
|
2461
|
+
class GoogleCloudAiplatformV1GroundingChunkWeb
|
2468
2462
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2469
2463
|
|
2470
2464
|
include Google::Apis::Core::JsonObjectSupport
|
2471
2465
|
end
|
2472
2466
|
|
2473
|
-
class
|
2467
|
+
class GoogleCloudAiplatformV1GroundingMetadata
|
2474
2468
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2475
2469
|
|
2476
2470
|
include Google::Apis::Core::JsonObjectSupport
|
2477
2471
|
end
|
2478
2472
|
|
2479
|
-
class
|
2473
|
+
class GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri
|
2480
2474
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2481
2475
|
|
2482
2476
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -2638,6 +2632,12 @@ module Google
|
|
2638
2632
|
include Google::Apis::Core::JsonObjectSupport
|
2639
2633
|
end
|
2640
2634
|
|
2635
|
+
class GoogleCloudAiplatformV1InvokeRequest
|
2636
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2637
|
+
|
2638
|
+
include Google::Apis::Core::JsonObjectSupport
|
2639
|
+
end
|
2640
|
+
|
2641
2641
|
class GoogleCloudAiplatformV1JiraSource
|
2642
2642
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2643
2643
|
|
@@ -2650,6 +2650,12 @@ module Google
|
|
2650
2650
|
include Google::Apis::Core::JsonObjectSupport
|
2651
2651
|
end
|
2652
2652
|
|
2653
|
+
class GoogleCloudAiplatformV1LlmBasedMetricSpec
|
2654
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2655
|
+
|
2656
|
+
include Google::Apis::Core::JsonObjectSupport
|
2657
|
+
end
|
2658
|
+
|
2653
2659
|
class GoogleCloudAiplatformV1LargeModelReference
|
2654
2660
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2655
2661
|
|
@@ -9237,6 +9243,8 @@ module Google
|
|
9237
9243
|
property :dedicated_endpoint_enabled, as: 'dedicatedEndpointEnabled'
|
9238
9244
|
property :endpoint_display_name, as: 'endpointDisplayName'
|
9239
9245
|
property :endpoint_user_id, as: 'endpointUserId'
|
9246
|
+
property :private_service_connect_config, as: 'privateServiceConnectConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PrivateServiceConnectConfig::Representation
|
9247
|
+
|
9240
9248
|
end
|
9241
9249
|
end
|
9242
9250
|
|
@@ -9974,8 +9982,6 @@ module Google
|
|
9974
9982
|
class GoogleCloudAiplatformV1EvaluationRunMetric
|
9975
9983
|
# @private
|
9976
9984
|
class Representation < Google::Apis::Core::JsonRepresentation
|
9977
|
-
property :computation_based_metric_spec, as: 'computationBasedMetricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec::Representation
|
9978
|
-
|
9979
9985
|
property :llm_based_metric_spec, as: 'llmBasedMetricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec::Representation
|
9980
9986
|
|
9981
9987
|
property :metric, as: 'metric'
|
@@ -9986,14 +9992,6 @@ module Google
|
|
9986
9992
|
end
|
9987
9993
|
end
|
9988
9994
|
|
9989
|
-
class GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec
|
9990
|
-
# @private
|
9991
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
9992
|
-
hash :parameters, as: 'parameters'
|
9993
|
-
property :type, as: 'type'
|
9994
|
-
end
|
9995
|
-
end
|
9996
|
-
|
9997
9995
|
class GoogleCloudAiplatformV1EvaluationRunMetricLlmBasedMetricSpec
|
9998
9996
|
# @private
|
9999
9997
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -11524,6 +11522,7 @@ module Google
|
|
11524
11522
|
class GoogleCloudAiplatformV1GoogleMaps
|
11525
11523
|
# @private
|
11526
11524
|
class Representation < Google::Apis::Core::JsonRepresentation
|
11525
|
+
property :enable_widget, as: 'enableWidget'
|
11527
11526
|
end
|
11528
11527
|
end
|
11529
11528
|
|
@@ -11596,30 +11595,17 @@ module Google
|
|
11596
11595
|
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources
|
11597
11596
|
# @private
|
11598
11597
|
class Representation < Google::Apis::Core::JsonRepresentation
|
11599
|
-
property :flag_content_uri, as: 'flagContentUri'
|
11600
11598
|
collection :review_snippets, as: 'reviewSnippets', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet::Representation
|
11601
11599
|
|
11602
11600
|
end
|
11603
11601
|
end
|
11604
11602
|
|
11605
|
-
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
|
11606
|
-
# @private
|
11607
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
11608
|
-
property :display_name, as: 'displayName'
|
11609
|
-
property :photo_uri, as: 'photoUri'
|
11610
|
-
property :uri, as: 'uri'
|
11611
|
-
end
|
11612
|
-
end
|
11613
|
-
|
11614
11603
|
class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet
|
11615
11604
|
# @private
|
11616
11605
|
class Representation < Google::Apis::Core::JsonRepresentation
|
11617
|
-
property :author_attribution, as: 'authorAttribution', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution::Representation
|
11618
|
-
|
11619
|
-
property :flag_content_uri, as: 'flagContentUri'
|
11620
11606
|
property :google_maps_uri, as: 'googleMapsUri'
|
11621
|
-
property :
|
11622
|
-
property :
|
11607
|
+
property :review_id, as: 'reviewId'
|
11608
|
+
property :title, as: 'title'
|
11623
11609
|
end
|
11624
11610
|
end
|
11625
11611
|
|
@@ -11656,10 +11642,20 @@ module Google
|
|
11656
11642
|
|
11657
11643
|
property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint::Representation
|
11658
11644
|
|
11645
|
+
collection :source_flagging_uris, as: 'sourceFlaggingUris', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri::Representation
|
11646
|
+
|
11659
11647
|
collection :web_search_queries, as: 'webSearchQueries'
|
11660
11648
|
end
|
11661
11649
|
end
|
11662
11650
|
|
11651
|
+
class GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri
|
11652
|
+
# @private
|
11653
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
11654
|
+
property :flag_content_uri, as: 'flagContentUri'
|
11655
|
+
property :source_id, as: 'sourceId'
|
11656
|
+
end
|
11657
|
+
end
|
11658
|
+
|
11663
11659
|
class GoogleCloudAiplatformV1GroundingSupport
|
11664
11660
|
# @private
|
11665
11661
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12000,6 +11996,15 @@ module Google
|
|
12000
11996
|
end
|
12001
11997
|
end
|
12002
11998
|
|
11999
|
+
class GoogleCloudAiplatformV1InvokeRequest
|
12000
|
+
# @private
|
12001
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12002
|
+
property :deployed_model_id, as: 'deployedModelId'
|
12003
|
+
property :http_body, as: 'httpBody', class: Google::Apis::AiplatformV1::GoogleApiHttpBody, decorator: Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
12004
|
+
|
12005
|
+
end
|
12006
|
+
end
|
12007
|
+
|
12003
12008
|
class GoogleCloudAiplatformV1JiraSource
|
12004
12009
|
# @private
|
12005
12010
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12020,6 +12025,22 @@ module Google
|
|
12020
12025
|
end
|
12021
12026
|
end
|
12022
12027
|
|
12028
|
+
class GoogleCloudAiplatformV1LlmBasedMetricSpec
|
12029
|
+
# @private
|
12030
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12031
|
+
hash :additional_config, as: 'additionalConfig'
|
12032
|
+
property :judge_autorater_config, as: 'judgeAutoraterConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig::Representation
|
12033
|
+
|
12034
|
+
property :metric_prompt_template, as: 'metricPromptTemplate'
|
12035
|
+
property :predefined_rubric_generation_spec, as: 'predefinedRubricGenerationSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredefinedMetricSpec::Representation
|
12036
|
+
|
12037
|
+
property :rubric_generation_spec, as: 'rubricGenerationSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGenerationSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGenerationSpec::Representation
|
12038
|
+
|
12039
|
+
property :rubric_group_key, as: 'rubricGroupKey'
|
12040
|
+
property :system_instruction, as: 'systemInstruction'
|
12041
|
+
end
|
12042
|
+
end
|
12043
|
+
|
12023
12044
|
class GoogleCloudAiplatformV1LargeModelReference
|
12024
12045
|
# @private
|
12025
12046
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12676,6 +12697,8 @@ module Google
|
|
12676
12697
|
|
12677
12698
|
property :exact_match_spec, as: 'exactMatchSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchSpec::Representation
|
12678
12699
|
|
12700
|
+
property :llm_based_metric_spec, as: 'llmBasedMetricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LlmBasedMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LlmBasedMetricSpec::Representation
|
12701
|
+
|
12679
12702
|
property :pairwise_metric_spec, as: 'pairwiseMetricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec::Representation
|
12680
12703
|
|
12681
12704
|
property :pointwise_metric_spec, as: 'pointwiseMetricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PointwiseMetricSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PointwiseMetricSpec::Representation
|
@@ -1278,8 +1278,8 @@ module Google
|
|
1278
1278
|
# @param [String] name
|
1279
1279
|
# The resource that owns the locations collection, if applicable.
|
1280
1280
|
# @param [Array<String>, String] extra_location_types
|
1281
|
-
# Optional.
|
1282
|
-
#
|
1281
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
1282
|
+
# field which is primarily intended for internal usage.
|
1283
1283
|
# @param [String] filter
|
1284
1284
|
# A filter to narrow down results to a preferred subset. The filtering language
|
1285
1285
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -5430,6 +5430,124 @@ module Google
|
|
5430
5430
|
execute_or_queue_command(command, &block)
|
5431
5431
|
end
|
5432
5432
|
|
5433
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5434
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5435
|
+
# will be specified in the request.
|
5436
|
+
# @param [String] endpoint
|
5437
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5438
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5439
|
+
# @param [String] deployed_model_id
|
5440
|
+
# ID of the DeployedModel that serves the invoke request.
|
5441
|
+
# @param [String] invoke_id
|
5442
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest] google_cloud_aiplatform_v1_invoke_request_object
|
5443
|
+
# @param [String] fields
|
5444
|
+
# Selector specifying which fields to include in a partial response.
|
5445
|
+
# @param [String] quota_user
|
5446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5448
|
+
# @param [Google::Apis::RequestOptions] options
|
5449
|
+
# Request-specific options
|
5450
|
+
#
|
5451
|
+
# @yield [result, err] Result & error if block supplied
|
5452
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5453
|
+
# @yieldparam err [StandardError] error object if request failed
|
5454
|
+
#
|
5455
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5456
|
+
#
|
5457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5460
|
+
def invoke_project_location_endpoint_deployed_model_invoke(endpoint, deployed_model_id, invoke_id, google_cloud_aiplatform_v1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5461
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}', options)
|
5462
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest::Representation
|
5463
|
+
command.request_object = google_cloud_aiplatform_v1_invoke_request_object
|
5464
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5465
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5466
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5467
|
+
command.params['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
|
5468
|
+
command.params['invokeId'] = invoke_id unless invoke_id.nil?
|
5469
|
+
command.query['fields'] = fields unless fields.nil?
|
5470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5471
|
+
execute_or_queue_command(command, &block)
|
5472
|
+
end
|
5473
|
+
|
5474
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5475
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5476
|
+
# will be specified in the request.
|
5477
|
+
# @param [String] endpoint
|
5478
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5479
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5480
|
+
# @param [String] invoke_id
|
5481
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest] google_cloud_aiplatform_v1_invoke_request_object
|
5482
|
+
# @param [String] fields
|
5483
|
+
# Selector specifying which fields to include in a partial response.
|
5484
|
+
# @param [String] quota_user
|
5485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5487
|
+
# @param [Google::Apis::RequestOptions] options
|
5488
|
+
# Request-specific options
|
5489
|
+
#
|
5490
|
+
# @yield [result, err] Result & error if block supplied
|
5491
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5492
|
+
# @yieldparam err [StandardError] error object if request failed
|
5493
|
+
#
|
5494
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5495
|
+
#
|
5496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5499
|
+
def invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_aiplatform_v1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5500
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/invoke/{+invokeId}', options)
|
5501
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest::Representation
|
5502
|
+
command.request_object = google_cloud_aiplatform_v1_invoke_request_object
|
5503
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5504
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5505
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5506
|
+
command.params['invokeId'] = invoke_id unless invoke_id.nil?
|
5507
|
+
command.query['fields'] = fields unless fields.nil?
|
5508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5509
|
+
execute_or_queue_command(command, &block)
|
5510
|
+
end
|
5511
|
+
|
5512
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5513
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5514
|
+
# will be specified in the request.
|
5515
|
+
# @param [String] endpoint
|
5516
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5517
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5518
|
+
# @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object
|
5519
|
+
# @param [String] deployed_model_id
|
5520
|
+
# ID of the DeployedModel that serves the invoke request.
|
5521
|
+
# @param [String] fields
|
5522
|
+
# Selector specifying which fields to include in a partial response.
|
5523
|
+
# @param [String] quota_user
|
5524
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5525
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5526
|
+
# @param [Google::Apis::RequestOptions] options
|
5527
|
+
# Request-specific options
|
5528
|
+
#
|
5529
|
+
# @yield [result, err] Result & error if block supplied
|
5530
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5531
|
+
# @yieldparam err [StandardError] error object if request failed
|
5532
|
+
#
|
5533
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5534
|
+
#
|
5535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5538
|
+
def embeddings_project_location_endpoint_openapi(endpoint, google_api_http_body_object = nil, deployed_model_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5539
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/embeddings', options)
|
5540
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5541
|
+
command.request_object = google_api_http_body_object
|
5542
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5543
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5544
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5545
|
+
command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
|
5546
|
+
command.query['fields'] = fields unless fields.nil?
|
5547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5548
|
+
execute_or_queue_command(command, &block)
|
5549
|
+
end
|
5550
|
+
|
5433
5551
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
5434
5552
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
5435
5553
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.66.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|