google-apis-aiplatform_v1 0.48.0 → 0.50.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.
@@ -1309,12 +1309,12 @@ module Google
|
|
1309
1309
|
# @return [String]
|
1310
1310
|
attr_accessor :autorater_model
|
1311
1311
|
|
1312
|
-
# Optional. Whether to flip the candidate and baseline
|
1313
|
-
# applicable to the pairwise metric. If enabled, also
|
1314
|
-
# candidate_response_field_name and
|
1315
|
-
# baseline_response_field_name. When rendering
|
1316
|
-
# metric_prompt_template, the candidate and baseline fields
|
1317
|
-
# half of the samples to reduce bias.
|
1312
|
+
# Optional. Default is true. Whether to flip the candidate and baseline
|
1313
|
+
# responses. This is only applicable to the pairwise metric. If enabled, also
|
1314
|
+
# provide PairwiseMetricSpec.candidate_response_field_name and
|
1315
|
+
# PairwiseMetricSpec.baseline_response_field_name. When rendering
|
1316
|
+
# PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields
|
1317
|
+
# will be flipped for half of the samples to reduce bias.
|
1318
1318
|
# Corresponds to the JSON property `flipEnabled`
|
1319
1319
|
# @return [Boolean]
|
1320
1320
|
attr_accessor :flip_enabled
|
@@ -3599,6 +3599,44 @@ module Google
|
|
3599
3599
|
end
|
3600
3600
|
end
|
3601
3601
|
|
3602
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
3603
|
+
class GoogleCloudAiplatformV1ContentMap
|
3604
|
+
include Google::Apis::Core::Hashable
|
3605
|
+
|
3606
|
+
# Optional. Map of placeholder to contents.
|
3607
|
+
# Corresponds to the JSON property `values`
|
3608
|
+
# @return [Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMapContents>]
|
3609
|
+
attr_accessor :values
|
3610
|
+
|
3611
|
+
def initialize(**args)
|
3612
|
+
update!(**args)
|
3613
|
+
end
|
3614
|
+
|
3615
|
+
# Update properties of this object
|
3616
|
+
def update!(**args)
|
3617
|
+
@values = args[:values] if args.key?(:values)
|
3618
|
+
end
|
3619
|
+
end
|
3620
|
+
|
3621
|
+
# Repeated Content type.
|
3622
|
+
class GoogleCloudAiplatformV1ContentMapContents
|
3623
|
+
include Google::Apis::Core::Hashable
|
3624
|
+
|
3625
|
+
# Optional. Repeated contents.
|
3626
|
+
# Corresponds to the JSON property `contents`
|
3627
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
3628
|
+
attr_accessor :contents
|
3629
|
+
|
3630
|
+
def initialize(**args)
|
3631
|
+
update!(**args)
|
3632
|
+
end
|
3633
|
+
|
3634
|
+
# Update properties of this object
|
3635
|
+
def update!(**args)
|
3636
|
+
@contents = args[:contents] if args.key?(:contents)
|
3637
|
+
end
|
3638
|
+
end
|
3639
|
+
|
3602
3640
|
# Instance of a general context.
|
3603
3641
|
class GoogleCloudAiplatformV1Context
|
3604
3642
|
include Google::Apis::Core::Hashable
|
@@ -4862,6 +4900,45 @@ module Google
|
|
4862
4900
|
end
|
4863
4901
|
end
|
4864
4902
|
|
4903
|
+
# Spec for custom output.
|
4904
|
+
class GoogleCloudAiplatformV1CustomOutput
|
4905
|
+
include Google::Apis::Core::Hashable
|
4906
|
+
|
4907
|
+
# Raw output.
|
4908
|
+
# Corresponds to the JSON property `rawOutputs`
|
4909
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RawOutput]
|
4910
|
+
attr_accessor :raw_outputs
|
4911
|
+
|
4912
|
+
def initialize(**args)
|
4913
|
+
update!(**args)
|
4914
|
+
end
|
4915
|
+
|
4916
|
+
# Update properties of this object
|
4917
|
+
def update!(**args)
|
4918
|
+
@raw_outputs = args[:raw_outputs] if args.key?(:raw_outputs)
|
4919
|
+
end
|
4920
|
+
end
|
4921
|
+
|
4922
|
+
# Spec for custom output format configuration.
|
4923
|
+
class GoogleCloudAiplatformV1CustomOutputFormatConfig
|
4924
|
+
include Google::Apis::Core::Hashable
|
4925
|
+
|
4926
|
+
# Optional. Whether to return raw output.
|
4927
|
+
# Corresponds to the JSON property `returnRawOutput`
|
4928
|
+
# @return [Boolean]
|
4929
|
+
attr_accessor :return_raw_output
|
4930
|
+
alias_method :return_raw_output?, :return_raw_output
|
4931
|
+
|
4932
|
+
def initialize(**args)
|
4933
|
+
update!(**args)
|
4934
|
+
end
|
4935
|
+
|
4936
|
+
# Update properties of this object
|
4937
|
+
def update!(**args)
|
4938
|
+
@return_raw_output = args[:return_raw_output] if args.key?(:return_raw_output)
|
4939
|
+
end
|
4940
|
+
end
|
4941
|
+
|
4865
4942
|
# A piece of data in a Dataset. Could be an image, a video, a document or plain
|
4866
4943
|
# text.
|
4867
4944
|
class GoogleCloudAiplatformV1DataItem
|
@@ -6546,8 +6623,10 @@ module Google
|
|
6546
6623
|
attr_accessor :create_time
|
6547
6624
|
|
6548
6625
|
# Output only. DNS of the dedicated endpoint. Will only be populated if
|
6549
|
-
# dedicated_endpoint_enabled is true.
|
6550
|
-
#
|
6626
|
+
# dedicated_endpoint_enabled is true. Depending on the features enabled, uid
|
6627
|
+
# might be a random number or a string. For example, if fast_tryout is enabled,
|
6628
|
+
# uid will be fasttryout. Format: `https://`endpoint_id`.`region`-`uid`.
|
6629
|
+
# prediction.vertexai.goog`.
|
6551
6630
|
# Corresponds to the JSON property `dedicatedEndpointDns`
|
6552
6631
|
# @return [String]
|
6553
6632
|
attr_accessor :dedicated_endpoint_dns
|
@@ -7066,6 +7145,11 @@ module Google
|
|
7066
7145
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeInput]
|
7067
7146
|
attr_accessor :rouge_input
|
7068
7147
|
|
7148
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
7149
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingInput`
|
7150
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput]
|
7151
|
+
attr_accessor :rubric_based_instruction_following_input
|
7152
|
+
|
7069
7153
|
# Input for safety metric.
|
7070
7154
|
# Corresponds to the JSON property `safetyInput`
|
7071
7155
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyInput]
|
@@ -7160,6 +7244,7 @@ module Google
|
|
7160
7244
|
@question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
|
7161
7245
|
@question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
|
7162
7246
|
@rouge_input = args[:rouge_input] if args.key?(:rouge_input)
|
7247
|
+
@rubric_based_instruction_following_input = args[:rubric_based_instruction_following_input] if args.key?(:rubric_based_instruction_following_input)
|
7163
7248
|
@safety_input = args[:safety_input] if args.key?(:safety_input)
|
7164
7249
|
@summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
|
7165
7250
|
@summarization_quality_input = args[:summarization_quality_input] if args.key?(:summarization_quality_input)
|
@@ -7268,6 +7353,11 @@ module Google
|
|
7268
7353
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeResults]
|
7269
7354
|
attr_accessor :rouge_results
|
7270
7355
|
|
7356
|
+
# Result for RubricBasedInstructionFollowing metric.
|
7357
|
+
# Corresponds to the JSON property `rubricBasedInstructionFollowingResult`
|
7358
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult]
|
7359
|
+
attr_accessor :rubric_based_instruction_following_result
|
7360
|
+
|
7271
7361
|
# Spec for safety result.
|
7272
7362
|
# Corresponds to the JSON property `safetyResult`
|
7273
7363
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyResult]
|
@@ -7361,6 +7451,7 @@ module Google
|
|
7361
7451
|
@question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
|
7362
7452
|
@question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
|
7363
7453
|
@rouge_results = args[:rouge_results] if args.key?(:rouge_results)
|
7454
|
+
@rubric_based_instruction_following_result = args[:rubric_based_instruction_following_result] if args.key?(:rubric_based_instruction_following_result)
|
7364
7455
|
@safety_result = args[:safety_result] if args.key?(:safety_result)
|
7365
7456
|
@summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
|
7366
7457
|
@summarization_quality_result = args[:summarization_quality_result] if args.key?(:summarization_quality_result)
|
@@ -9106,6 +9197,12 @@ module Google
|
|
9106
9197
|
class GoogleCloudAiplatformV1Fact
|
9107
9198
|
include Google::Apis::Core::Hashable
|
9108
9199
|
|
9200
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
9201
|
+
# metadata.
|
9202
|
+
# Corresponds to the JSON property `chunk`
|
9203
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunk]
|
9204
|
+
attr_accessor :chunk
|
9205
|
+
|
9109
9206
|
# Query that is used to retrieve this fact.
|
9110
9207
|
# Corresponds to the JSON property `query`
|
9111
9208
|
# @return [String]
|
@@ -9148,6 +9245,7 @@ module Google
|
|
9148
9245
|
|
9149
9246
|
# Update properties of this object
|
9150
9247
|
def update!(**args)
|
9248
|
+
@chunk = args[:chunk] if args.key?(:chunk)
|
9151
9249
|
@query = args[:query] if args.key?(:query)
|
9152
9250
|
@score = args[:score] if args.key?(:score)
|
9153
9251
|
@summary = args[:summary] if args.key?(:summary)
|
@@ -11481,8 +11579,8 @@ module Google
|
|
11481
11579
|
class GoogleCloudAiplatformV1FunctionCall
|
11482
11580
|
include Google::Apis::Core::Hashable
|
11483
11581
|
|
11484
|
-
# Optional.
|
11485
|
-
#
|
11582
|
+
# Optional. The function parameters and values in JSON object format. See [
|
11583
|
+
# FunctionDeclaration.parameters] for parameter details.
|
11486
11584
|
# Corresponds to the JSON property `args`
|
11487
11585
|
# @return [Hash<String,Object>]
|
11488
11586
|
attr_accessor :args
|
@@ -11637,7 +11735,7 @@ module Google
|
|
11637
11735
|
|
11638
11736
|
# Required. Google Cloud Storage URI(-s) to the input file(s). May contain
|
11639
11737
|
# wildcards. For more information on wildcards, see https://cloud.google.com/
|
11640
|
-
# storage/docs/
|
11738
|
+
# storage/docs/wildcards.
|
11641
11739
|
# Corresponds to the JSON property `uris`
|
11642
11740
|
# @return [Array<String>]
|
11643
11741
|
attr_accessor :uris
|
@@ -11911,6 +12009,12 @@ module Google
|
|
11911
12009
|
# @return [Fixnum]
|
11912
12010
|
attr_accessor :total_token_count
|
11913
12011
|
|
12012
|
+
# Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
|
12013
|
+
# or Provisioned Throughput quota.
|
12014
|
+
# Corresponds to the JSON property `trafficType`
|
12015
|
+
# @return [String]
|
12016
|
+
attr_accessor :traffic_type
|
12017
|
+
|
11914
12018
|
def initialize(**args)
|
11915
12019
|
update!(**args)
|
11916
12020
|
end
|
@@ -11927,6 +12031,7 @@ module Google
|
|
11927
12031
|
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
|
11928
12032
|
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
|
11929
12033
|
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
12034
|
+
@traffic_type = args[:traffic_type] if args.key?(:traffic_type)
|
11930
12035
|
end
|
11931
12036
|
end
|
11932
12037
|
|
@@ -12091,6 +12196,11 @@ module Google
|
|
12091
12196
|
# @return [Float]
|
12092
12197
|
attr_accessor :temperature
|
12093
12198
|
|
12199
|
+
# Config for thinking features.
|
12200
|
+
# Corresponds to the JSON property `thinkingConfig`
|
12201
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfigThinkingConfig]
|
12202
|
+
attr_accessor :thinking_config
|
12203
|
+
|
12094
12204
|
# Optional. If specified, top-k sampling will be used.
|
12095
12205
|
# Corresponds to the JSON property `topK`
|
12096
12206
|
# @return [Float]
|
@@ -12123,6 +12233,7 @@ module Google
|
|
12123
12233
|
@speech_config = args[:speech_config] if args.key?(:speech_config)
|
12124
12234
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
12125
12235
|
@temperature = args[:temperature] if args.key?(:temperature)
|
12236
|
+
@thinking_config = args[:thinking_config] if args.key?(:thinking_config)
|
12126
12237
|
@top_k = args[:top_k] if args.key?(:top_k)
|
12127
12238
|
@top_p = args[:top_p] if args.key?(:top_p)
|
12128
12239
|
end
|
@@ -12178,8 +12289,9 @@ module Google
|
|
12178
12289
|
class GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode
|
12179
12290
|
include Google::Apis::Core::Hashable
|
12180
12291
|
|
12181
|
-
# The model name to use. Only the public LLM models are accepted.
|
12182
|
-
#
|
12292
|
+
# The model name to use. Only the public LLM models are accepted. See [Supported
|
12293
|
+
# models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/
|
12294
|
+
# inference#supported-models).
|
12183
12295
|
# Corresponds to the JSON property `modelName`
|
12184
12296
|
# @return [String]
|
12185
12297
|
attr_accessor :model_name
|
@@ -12194,6 +12306,26 @@ module Google
|
|
12194
12306
|
end
|
12195
12307
|
end
|
12196
12308
|
|
12309
|
+
# Config for thinking features.
|
12310
|
+
class GoogleCloudAiplatformV1GenerationConfigThinkingConfig
|
12311
|
+
include Google::Apis::Core::Hashable
|
12312
|
+
|
12313
|
+
# Optional. Indicates the thinking budget in tokens. This is only applied when
|
12314
|
+
# enable_thinking is true.
|
12315
|
+
# Corresponds to the JSON property `thinkingBudget`
|
12316
|
+
# @return [Fixnum]
|
12317
|
+
attr_accessor :thinking_budget
|
12318
|
+
|
12319
|
+
def initialize(**args)
|
12320
|
+
update!(**args)
|
12321
|
+
end
|
12322
|
+
|
12323
|
+
# Update properties of this object
|
12324
|
+
def update!(**args)
|
12325
|
+
@thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
|
12326
|
+
end
|
12327
|
+
end
|
12328
|
+
|
12197
12329
|
# Generic Metadata shared by all operations.
|
12198
12330
|
class GoogleCloudAiplatformV1GenericOperationMetadata
|
12199
12331
|
include Google::Apis::Core::Hashable
|
@@ -12441,6 +12573,12 @@ module Google
|
|
12441
12573
|
class GoogleCloudAiplatformV1GroundingChunkRetrievedContext
|
12442
12574
|
include Google::Apis::Core::Hashable
|
12443
12575
|
|
12576
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
12577
|
+
# metadata.
|
12578
|
+
# Corresponds to the JSON property `ragChunk`
|
12579
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunk]
|
12580
|
+
attr_accessor :rag_chunk
|
12581
|
+
|
12444
12582
|
# Text of the attribution.
|
12445
12583
|
# Corresponds to the JSON property `text`
|
12446
12584
|
# @return [String]
|
@@ -12462,6 +12600,7 @@ module Google
|
|
12462
12600
|
|
12463
12601
|
# Update properties of this object
|
12464
12602
|
def update!(**args)
|
12603
|
+
@rag_chunk = args[:rag_chunk] if args.key?(:rag_chunk)
|
12465
12604
|
@text = args[:text] if args.key?(:text)
|
12466
12605
|
@title = args[:title] if args.key?(:title)
|
12467
12606
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -19543,6 +19682,42 @@ module Google
|
|
19543
19682
|
end
|
19544
19683
|
end
|
19545
19684
|
|
19685
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
19686
|
+
class GoogleCloudAiplatformV1NotebookReservationAffinity
|
19687
|
+
include Google::Apis::Core::Hashable
|
19688
|
+
|
19689
|
+
# Required. Specifies the type of reservation from which this instance can
|
19690
|
+
# consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
|
19691
|
+
# RESERVATION_NONE. See Consuming reserved instances for examples.
|
19692
|
+
# Corresponds to the JSON property `consumeReservationType`
|
19693
|
+
# @return [String]
|
19694
|
+
attr_accessor :consume_reservation_type
|
19695
|
+
|
19696
|
+
# Optional. Corresponds to the label key of a reservation resource. To target a
|
19697
|
+
# RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
|
19698
|
+
# the key and specify the name of your reservation as its value.
|
19699
|
+
# Corresponds to the JSON property `key`
|
19700
|
+
# @return [String]
|
19701
|
+
attr_accessor :key
|
19702
|
+
|
19703
|
+
# Optional. Corresponds to the label values of a reservation resource. This must
|
19704
|
+
# be the full path name of Reservation.
|
19705
|
+
# Corresponds to the JSON property `values`
|
19706
|
+
# @return [Array<String>]
|
19707
|
+
attr_accessor :values
|
19708
|
+
|
19709
|
+
def initialize(**args)
|
19710
|
+
update!(**args)
|
19711
|
+
end
|
19712
|
+
|
19713
|
+
# Update properties of this object
|
19714
|
+
def update!(**args)
|
19715
|
+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
19716
|
+
@key = args[:key] if args.key?(:key)
|
19717
|
+
@values = args[:values] if args.key?(:values)
|
19718
|
+
end
|
19719
|
+
end
|
19720
|
+
|
19546
19721
|
# A runtime is a virtual machine allocated to a particular user for a particular
|
19547
19722
|
# Notebook file on temporary basis with lifetime limited to 24 hours.
|
19548
19723
|
class GoogleCloudAiplatformV1NotebookRuntime
|
@@ -19659,6 +19834,11 @@ module Google
|
|
19659
19834
|
# @return [String]
|
19660
19835
|
attr_accessor :proxy_uri
|
19661
19836
|
|
19837
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
19838
|
+
# Corresponds to the JSON property `reservationAffinity`
|
19839
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
19840
|
+
attr_accessor :reservation_affinity
|
19841
|
+
|
19662
19842
|
# Output only. The runtime (instance) state of the NotebookRuntime.
|
19663
19843
|
# Corresponds to the JSON property `runtimeState`
|
19664
19844
|
# @return [String]
|
@@ -19737,6 +19917,7 @@ module Google
|
|
19737
19917
|
@notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
|
19738
19918
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
19739
19919
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
19920
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
19740
19921
|
@runtime_state = args[:runtime_state] if args.key?(:runtime_state)
|
19741
19922
|
@runtime_user = args[:runtime_user] if args.key?(:runtime_user)
|
19742
19923
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
@@ -19841,6 +20022,11 @@ module Google
|
|
19841
20022
|
# @return [String]
|
19842
20023
|
attr_accessor :notebook_runtime_type
|
19843
20024
|
|
20025
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
20026
|
+
# Corresponds to the JSON property `reservationAffinity`
|
20027
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
20028
|
+
attr_accessor :reservation_affinity
|
20029
|
+
|
19844
20030
|
# Deprecated: This field is ignored and the "Vertex AI Notebook Service Account"
|
19845
20031
|
# (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used
|
19846
20032
|
# for the runtime workload identity. See https://cloud.google.com/iam/docs/
|
@@ -19894,6 +20080,7 @@ module Google
|
|
19894
20080
|
@network_spec = args[:network_spec] if args.key?(:network_spec)
|
19895
20081
|
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
19896
20082
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
20083
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
19897
20084
|
@service_account = args[:service_account] if args.key?(:service_account)
|
19898
20085
|
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
19899
20086
|
@software_config = args[:software_config] if args.key?(:software_config)
|
@@ -20026,6 +20213,11 @@ module Google
|
|
20026
20213
|
class GoogleCloudAiplatformV1PairwiseMetricInstance
|
20027
20214
|
include Google::Apis::Core::Hashable
|
20028
20215
|
|
20216
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
20217
|
+
# Corresponds to the JSON property `contentMapInstance`
|
20218
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap]
|
20219
|
+
attr_accessor :content_map_instance
|
20220
|
+
|
20029
20221
|
# Instance specified as a json string. String key-value pairs are expected in
|
20030
20222
|
# the json_instance to render PairwiseMetricSpec.instance_prompt_template.
|
20031
20223
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -20038,6 +20230,7 @@ module Google
|
|
20038
20230
|
|
20039
20231
|
# Update properties of this object
|
20040
20232
|
def update!(**args)
|
20233
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
20041
20234
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
20042
20235
|
end
|
20043
20236
|
end
|
@@ -20046,6 +20239,11 @@ module Google
|
|
20046
20239
|
class GoogleCloudAiplatformV1PairwiseMetricResult
|
20047
20240
|
include Google::Apis::Core::Hashable
|
20048
20241
|
|
20242
|
+
# Spec for custom output.
|
20243
|
+
# Corresponds to the JSON property `customOutput`
|
20244
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput]
|
20245
|
+
attr_accessor :custom_output
|
20246
|
+
|
20049
20247
|
# Output only. Explanation for pairwise metric score.
|
20050
20248
|
# Corresponds to the JSON property `explanation`
|
20051
20249
|
# @return [String]
|
@@ -20062,6 +20260,7 @@ module Google
|
|
20062
20260
|
|
20063
20261
|
# Update properties of this object
|
20064
20262
|
def update!(**args)
|
20263
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
20065
20264
|
@explanation = args[:explanation] if args.key?(:explanation)
|
20066
20265
|
@pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
|
20067
20266
|
end
|
@@ -20081,6 +20280,11 @@ module Google
|
|
20081
20280
|
# @return [String]
|
20082
20281
|
attr_accessor :candidate_response_field_name
|
20083
20282
|
|
20283
|
+
# Spec for custom output format configuration.
|
20284
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
20285
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig]
|
20286
|
+
attr_accessor :custom_output_format_config
|
20287
|
+
|
20084
20288
|
# Required. Metric prompt template for pairwise metric.
|
20085
20289
|
# Corresponds to the JSON property `metricPromptTemplate`
|
20086
20290
|
# @return [String]
|
@@ -20099,6 +20303,7 @@ module Google
|
|
20099
20303
|
def update!(**args)
|
20100
20304
|
@baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
|
20101
20305
|
@candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
|
20306
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
20102
20307
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
20103
20308
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
20104
20309
|
end
|
@@ -21210,6 +21415,11 @@ module Google
|
|
21210
21415
|
class GoogleCloudAiplatformV1PointwiseMetricInstance
|
21211
21416
|
include Google::Apis::Core::Hashable
|
21212
21417
|
|
21418
|
+
# Map of placeholder in metric prompt template to contents of model input.
|
21419
|
+
# Corresponds to the JSON property `contentMapInstance`
|
21420
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap]
|
21421
|
+
attr_accessor :content_map_instance
|
21422
|
+
|
21213
21423
|
# Instance specified as a json string. String key-value pairs are expected in
|
21214
21424
|
# the json_instance to render PointwiseMetricSpec.instance_prompt_template.
|
21215
21425
|
# Corresponds to the JSON property `jsonInstance`
|
@@ -21222,6 +21432,7 @@ module Google
|
|
21222
21432
|
|
21223
21433
|
# Update properties of this object
|
21224
21434
|
def update!(**args)
|
21435
|
+
@content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
|
21225
21436
|
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
21226
21437
|
end
|
21227
21438
|
end
|
@@ -21230,6 +21441,11 @@ module Google
|
|
21230
21441
|
class GoogleCloudAiplatformV1PointwiseMetricResult
|
21231
21442
|
include Google::Apis::Core::Hashable
|
21232
21443
|
|
21444
|
+
# Spec for custom output.
|
21445
|
+
# Corresponds to the JSON property `customOutput`
|
21446
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput]
|
21447
|
+
attr_accessor :custom_output
|
21448
|
+
|
21233
21449
|
# Output only. Explanation for pointwise metric score.
|
21234
21450
|
# Corresponds to the JSON property `explanation`
|
21235
21451
|
# @return [String]
|
@@ -21246,6 +21462,7 @@ module Google
|
|
21246
21462
|
|
21247
21463
|
# Update properties of this object
|
21248
21464
|
def update!(**args)
|
21465
|
+
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
21249
21466
|
@explanation = args[:explanation] if args.key?(:explanation)
|
21250
21467
|
@score = args[:score] if args.key?(:score)
|
21251
21468
|
end
|
@@ -21255,6 +21472,11 @@ module Google
|
|
21255
21472
|
class GoogleCloudAiplatformV1PointwiseMetricSpec
|
21256
21473
|
include Google::Apis::Core::Hashable
|
21257
21474
|
|
21475
|
+
# Spec for custom output format configuration.
|
21476
|
+
# Corresponds to the JSON property `customOutputFormatConfig`
|
21477
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig]
|
21478
|
+
attr_accessor :custom_output_format_config
|
21479
|
+
|
21258
21480
|
# Required. Metric prompt template for pointwise metric.
|
21259
21481
|
# Corresponds to the JSON property `metricPromptTemplate`
|
21260
21482
|
# @return [String]
|
@@ -21271,6 +21493,7 @@ module Google
|
|
21271
21493
|
|
21272
21494
|
# Update properties of this object
|
21273
21495
|
def update!(**args)
|
21496
|
+
@custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
|
21274
21497
|
@metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
|
21275
21498
|
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
21276
21499
|
end
|
@@ -21792,8 +22015,8 @@ module Google
|
|
21792
22015
|
# @return [Fixnum]
|
21793
22016
|
attr_accessor :port
|
21794
22017
|
|
21795
|
-
# Service is the name of the service to place in the gRPC HealthCheckRequest
|
21796
|
-
#
|
22018
|
+
# Service is the name of the service to place in the gRPC HealthCheckRequest.
|
22019
|
+
# See https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this
|
21797
22020
|
# is not specified, the default behavior is defined by gRPC.
|
21798
22021
|
# Corresponds to the JSON property `service`
|
21799
22022
|
# @return [String]
|
@@ -23289,6 +23512,57 @@ module Google
|
|
23289
23512
|
end
|
23290
23513
|
end
|
23291
23514
|
|
23515
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
23516
|
+
# metadata.
|
23517
|
+
class GoogleCloudAiplatformV1RagChunk
|
23518
|
+
include Google::Apis::Core::Hashable
|
23519
|
+
|
23520
|
+
# Represents where the chunk starts and ends in the document.
|
23521
|
+
# Corresponds to the JSON property `pageSpan`
|
23522
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunkPageSpan]
|
23523
|
+
attr_accessor :page_span
|
23524
|
+
|
23525
|
+
# The content of the chunk.
|
23526
|
+
# Corresponds to the JSON property `text`
|
23527
|
+
# @return [String]
|
23528
|
+
attr_accessor :text
|
23529
|
+
|
23530
|
+
def initialize(**args)
|
23531
|
+
update!(**args)
|
23532
|
+
end
|
23533
|
+
|
23534
|
+
# Update properties of this object
|
23535
|
+
def update!(**args)
|
23536
|
+
@page_span = args[:page_span] if args.key?(:page_span)
|
23537
|
+
@text = args[:text] if args.key?(:text)
|
23538
|
+
end
|
23539
|
+
end
|
23540
|
+
|
23541
|
+
# Represents where the chunk starts and ends in the document.
|
23542
|
+
class GoogleCloudAiplatformV1RagChunkPageSpan
|
23543
|
+
include Google::Apis::Core::Hashable
|
23544
|
+
|
23545
|
+
# Page where chunk starts in the document. Inclusive. 1-indexed.
|
23546
|
+
# Corresponds to the JSON property `firstPage`
|
23547
|
+
# @return [Fixnum]
|
23548
|
+
attr_accessor :first_page
|
23549
|
+
|
23550
|
+
# Page where chunk ends in the document. Inclusive. 1-indexed.
|
23551
|
+
# Corresponds to the JSON property `lastPage`
|
23552
|
+
# @return [Fixnum]
|
23553
|
+
attr_accessor :last_page
|
23554
|
+
|
23555
|
+
def initialize(**args)
|
23556
|
+
update!(**args)
|
23557
|
+
end
|
23558
|
+
|
23559
|
+
# Update properties of this object
|
23560
|
+
def update!(**args)
|
23561
|
+
@first_page = args[:first_page] if args.key?(:first_page)
|
23562
|
+
@last_page = args[:last_page] if args.key?(:last_page)
|
23563
|
+
end
|
23564
|
+
end
|
23565
|
+
|
23292
23566
|
# Relevant contexts for one query.
|
23293
23567
|
class GoogleCloudAiplatformV1RagContexts
|
23294
23568
|
include Google::Apis::Core::Hashable
|
@@ -23312,6 +23586,12 @@ module Google
|
|
23312
23586
|
class GoogleCloudAiplatformV1RagContextsContext
|
23313
23587
|
include Google::Apis::Core::Hashable
|
23314
23588
|
|
23589
|
+
# A RagChunk includes the content of a chunk of a RagFile, and associated
|
23590
|
+
# metadata.
|
23591
|
+
# Corresponds to the JSON property `chunk`
|
23592
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunk]
|
23593
|
+
attr_accessor :chunk
|
23594
|
+
|
23315
23595
|
# According to the underlying Vector DB and the selected metric type, the score
|
23316
23596
|
# can be either the distance or the similarity between the query and the context
|
23317
23597
|
# and its range depends on the metric type. For example, if the metric type is
|
@@ -23346,6 +23626,7 @@ module Google
|
|
23346
23626
|
|
23347
23627
|
# Update properties of this object
|
23348
23628
|
def update!(**args)
|
23629
|
+
@chunk = args[:chunk] if args.key?(:chunk)
|
23349
23630
|
@score = args[:score] if args.key?(:score)
|
23350
23631
|
@source_display_name = args[:source_display_name] if args.key?(:source_display_name)
|
23351
23632
|
@source_uri = args[:source_uri] if args.key?(:source_uri)
|
@@ -23789,7 +24070,9 @@ module Google
|
|
23789
24070
|
class GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker
|
23790
24071
|
include Google::Apis::Core::Hashable
|
23791
24072
|
|
23792
|
-
# Optional. The model name used for ranking.
|
24073
|
+
# Optional. The model name used for ranking. See [Supported models](https://
|
24074
|
+
# cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#
|
24075
|
+
# supported-models).
|
23793
24076
|
# Corresponds to the JSON property `modelName`
|
23794
24077
|
# @return [String]
|
23795
24078
|
attr_accessor :model_name
|
@@ -23927,6 +24210,25 @@ module Google
|
|
23927
24210
|
end
|
23928
24211
|
end
|
23929
24212
|
|
24213
|
+
# Raw output.
|
24214
|
+
class GoogleCloudAiplatformV1RawOutput
|
24215
|
+
include Google::Apis::Core::Hashable
|
24216
|
+
|
24217
|
+
# Output only. Raw output string.
|
24218
|
+
# Corresponds to the JSON property `rawOutput`
|
24219
|
+
# @return [Array<String>]
|
24220
|
+
attr_accessor :raw_output
|
24221
|
+
|
24222
|
+
def initialize(**args)
|
24223
|
+
update!(**args)
|
24224
|
+
end
|
24225
|
+
|
24226
|
+
# Update properties of this object
|
24227
|
+
def update!(**args)
|
24228
|
+
@raw_output = args[:raw_output] if args.key?(:raw_output)
|
24229
|
+
end
|
24230
|
+
end
|
24231
|
+
|
23930
24232
|
# Request message for PredictionService.RawPredict.
|
23931
24233
|
class GoogleCloudAiplatformV1RawPredictRequest
|
23932
24234
|
include Google::Apis::Core::Hashable
|
@@ -24437,7 +24739,8 @@ module Google
|
|
24437
24739
|
include Google::Apis::Core::Hashable
|
24438
24740
|
|
24439
24741
|
# Optional. The OSS agent framework used to develop the agent. Currently
|
24440
|
-
# supported values: "langchain", "langgraph", "ag2", "
|
24742
|
+
# supported values: "google-adk", "langchain", "langgraph", "ag2", "llama-index",
|
24743
|
+
# "custom".
|
24441
24744
|
# Corresponds to the JSON property `agentFramework`
|
24442
24745
|
# @return [String]
|
24443
24746
|
attr_accessor :agent_framework
|
@@ -25233,6 +25536,121 @@ module Google
|
|
25233
25536
|
end
|
25234
25537
|
end
|
25235
25538
|
|
25539
|
+
# Instance and metric spec for RubricBasedInstructionFollowing metric.
|
25540
|
+
class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
|
25541
|
+
include Google::Apis::Core::Hashable
|
25542
|
+
|
25543
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
25544
|
+
# to one row in an evaluation dataset.
|
25545
|
+
# Corresponds to the JSON property `instance`
|
25546
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance]
|
25547
|
+
attr_accessor :instance
|
25548
|
+
|
25549
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
25550
|
+
# corresponding to rubrics along with overall score.
|
25551
|
+
# Corresponds to the JSON property `metricSpec`
|
25552
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec]
|
25553
|
+
attr_accessor :metric_spec
|
25554
|
+
|
25555
|
+
def initialize(**args)
|
25556
|
+
update!(**args)
|
25557
|
+
end
|
25558
|
+
|
25559
|
+
# Update properties of this object
|
25560
|
+
def update!(**args)
|
25561
|
+
@instance = args[:instance] if args.key?(:instance)
|
25562
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
25563
|
+
end
|
25564
|
+
end
|
25565
|
+
|
25566
|
+
# Instance for RubricBasedInstructionFollowing metric - one instance corresponds
|
25567
|
+
# to one row in an evaluation dataset.
|
25568
|
+
class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance
|
25569
|
+
include Google::Apis::Core::Hashable
|
25570
|
+
|
25571
|
+
# Required. Instance specified as a json string. String key-value pairs are
|
25572
|
+
# expected in the json_instance to render RubricBasedInstructionFollowing prompt
|
25573
|
+
# templates.
|
25574
|
+
# Corresponds to the JSON property `jsonInstance`
|
25575
|
+
# @return [String]
|
25576
|
+
attr_accessor :json_instance
|
25577
|
+
|
25578
|
+
def initialize(**args)
|
25579
|
+
update!(**args)
|
25580
|
+
end
|
25581
|
+
|
25582
|
+
# Update properties of this object
|
25583
|
+
def update!(**args)
|
25584
|
+
@json_instance = args[:json_instance] if args.key?(:json_instance)
|
25585
|
+
end
|
25586
|
+
end
|
25587
|
+
|
25588
|
+
# Result for RubricBasedInstructionFollowing metric.
|
25589
|
+
class GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
|
25590
|
+
include Google::Apis::Core::Hashable
|
25591
|
+
|
25592
|
+
# Output only. List of per rubric critique results.
|
25593
|
+
# Corresponds to the JSON property `rubricCritiqueResults`
|
25594
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricCritiqueResult>]
|
25595
|
+
attr_accessor :rubric_critique_results
|
25596
|
+
|
25597
|
+
# Output only. Overall score for the instruction following.
|
25598
|
+
# Corresponds to the JSON property `score`
|
25599
|
+
# @return [Float]
|
25600
|
+
attr_accessor :score
|
25601
|
+
|
25602
|
+
def initialize(**args)
|
25603
|
+
update!(**args)
|
25604
|
+
end
|
25605
|
+
|
25606
|
+
# Update properties of this object
|
25607
|
+
def update!(**args)
|
25608
|
+
@rubric_critique_results = args[:rubric_critique_results] if args.key?(:rubric_critique_results)
|
25609
|
+
@score = args[:score] if args.key?(:score)
|
25610
|
+
end
|
25611
|
+
end
|
25612
|
+
|
25613
|
+
# Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
|
25614
|
+
# corresponding to rubrics along with overall score.
|
25615
|
+
class GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec
|
25616
|
+
include Google::Apis::Core::Hashable
|
25617
|
+
|
25618
|
+
def initialize(**args)
|
25619
|
+
update!(**args)
|
25620
|
+
end
|
25621
|
+
|
25622
|
+
# Update properties of this object
|
25623
|
+
def update!(**args)
|
25624
|
+
end
|
25625
|
+
end
|
25626
|
+
|
25627
|
+
# Rubric critique result.
|
25628
|
+
class GoogleCloudAiplatformV1RubricCritiqueResult
|
25629
|
+
include Google::Apis::Core::Hashable
|
25630
|
+
|
25631
|
+
# Output only. Rubric to be evaluated.
|
25632
|
+
# Corresponds to the JSON property `rubric`
|
25633
|
+
# @return [String]
|
25634
|
+
attr_accessor :rubric
|
25635
|
+
|
25636
|
+
# Output only. Verdict for the rubric - true if the rubric is met, false
|
25637
|
+
# otherwise.
|
25638
|
+
# Corresponds to the JSON property `verdict`
|
25639
|
+
# @return [Boolean]
|
25640
|
+
attr_accessor :verdict
|
25641
|
+
alias_method :verdict?, :verdict
|
25642
|
+
|
25643
|
+
def initialize(**args)
|
25644
|
+
update!(**args)
|
25645
|
+
end
|
25646
|
+
|
25647
|
+
# Update properties of this object
|
25648
|
+
def update!(**args)
|
25649
|
+
@rubric = args[:rubric] if args.key?(:rubric)
|
25650
|
+
@verdict = args[:verdict] if args.key?(:verdict)
|
25651
|
+
end
|
25652
|
+
end
|
25653
|
+
|
25236
25654
|
# Input for safety metric.
|
25237
25655
|
class GoogleCloudAiplatformV1SafetyInput
|
25238
25656
|
include Google::Apis::Core::Hashable
|
@@ -33439,6 +33857,11 @@ module Google
|
|
33439
33857
|
class GoogleCloudAiplatformV1SpeechConfig
|
33440
33858
|
include Google::Apis::Core::Hashable
|
33441
33859
|
|
33860
|
+
# Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.
|
33861
|
+
# Corresponds to the JSON property `languageCode`
|
33862
|
+
# @return [String]
|
33863
|
+
attr_accessor :language_code
|
33864
|
+
|
33442
33865
|
# The configuration for the voice to use.
|
33443
33866
|
# Corresponds to the JSON property `voiceConfig`
|
33444
33867
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VoiceConfig]
|
@@ -33450,6 +33873,7 @@ module Google
|
|
33450
33873
|
|
33451
33874
|
# Update properties of this object
|
33452
33875
|
def update!(**args)
|
33876
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
33453
33877
|
@voice_config = args[:voice_config] if args.key?(:voice_config)
|
33454
33878
|
end
|
33455
33879
|
end
|
@@ -37590,7 +38014,9 @@ module Google
|
|
37590
38014
|
class GoogleCloudAiplatformV1TuningJob
|
37591
38015
|
include Google::Apis::Core::Hashable
|
37592
38016
|
|
37593
|
-
# The base model that is being tuned
|
38017
|
+
# The base model that is being tuned. See [Supported models](https://cloud.
|
38018
|
+
# google.com/vertex-ai/generative-ai/docs/model-reference/tuning#
|
38019
|
+
# supported_models).
|
37594
38020
|
# Corresponds to the JSON property `baseModel`
|
37595
38021
|
# @return [String]
|
37596
38022
|
attr_accessor :base_model
|