google-apis-aiplatform_v1 0.40.0 → 0.41.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.
@@ -841,6 +841,45 @@ module Google
841
841
  end
842
842
  end
843
843
 
844
+ # The generic reusable api auth config.
845
+ class GoogleCloudAiplatformV1ApiAuth
846
+ include Google::Apis::Core::Hashable
847
+
848
+ # The API secret.
849
+ # Corresponds to the JSON property `apiKeyConfig`
850
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuthApiKeyConfig]
851
+ attr_accessor :api_key_config
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
860
+ end
861
+ end
862
+
863
+ # The API secret.
864
+ class GoogleCloudAiplatformV1ApiAuthApiKeyConfig
865
+ include Google::Apis::Core::Hashable
866
+
867
+ # Required. The SecretManager secret version resource name storing API key. e.g.
868
+ # projects/`project`/secrets/`secret`/versions/`version`
869
+ # Corresponds to the JSON property `apiKeySecretVersion`
870
+ # @return [String]
871
+ attr_accessor :api_key_secret_version
872
+
873
+ def initialize(**args)
874
+ update!(**args)
875
+ end
876
+
877
+ # Update properties of this object
878
+ def update!(**args)
879
+ @api_key_secret_version = args[:api_key_secret_version] if args.key?(:api_key_secret_version)
880
+ end
881
+ end
882
+
844
883
  # Instance of a general artifact.
845
884
  class GoogleCloudAiplatformV1Artifact
846
885
  include Google::Apis::Core::Hashable
@@ -1094,6 +1133,88 @@ module Google
1094
1133
  end
1095
1134
  end
1096
1135
 
1136
+ # Request message for AugmentPrompt.
1137
+ class GoogleCloudAiplatformV1AugmentPromptRequest
1138
+ include Google::Apis::Core::Hashable
1139
+
1140
+ # Optional. Input content to augment, only text format is supported for now.
1141
+ # Corresponds to the JSON property `contents`
1142
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
1143
+ attr_accessor :contents
1144
+
1145
+ # Metadata of the backend deployed model.
1146
+ # Corresponds to the JSON property `model`
1147
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptRequestModel]
1148
+ attr_accessor :model
1149
+
1150
+ # Retrieve from Vertex RAG Store for grounding.
1151
+ # Corresponds to the JSON property `vertexRagStore`
1152
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore]
1153
+ attr_accessor :vertex_rag_store
1154
+
1155
+ def initialize(**args)
1156
+ update!(**args)
1157
+ end
1158
+
1159
+ # Update properties of this object
1160
+ def update!(**args)
1161
+ @contents = args[:contents] if args.key?(:contents)
1162
+ @model = args[:model] if args.key?(:model)
1163
+ @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
1164
+ end
1165
+ end
1166
+
1167
+ # Metadata of the backend deployed model.
1168
+ class GoogleCloudAiplatformV1AugmentPromptRequestModel
1169
+ include Google::Apis::Core::Hashable
1170
+
1171
+ # Optional. The model that the user will send the augmented prompt for content
1172
+ # generation.
1173
+ # Corresponds to the JSON property `model`
1174
+ # @return [String]
1175
+ attr_accessor :model
1176
+
1177
+ # Optional. The model version of the backend deployed model.
1178
+ # Corresponds to the JSON property `modelVersion`
1179
+ # @return [String]
1180
+ attr_accessor :model_version
1181
+
1182
+ def initialize(**args)
1183
+ update!(**args)
1184
+ end
1185
+
1186
+ # Update properties of this object
1187
+ def update!(**args)
1188
+ @model = args[:model] if args.key?(:model)
1189
+ @model_version = args[:model_version] if args.key?(:model_version)
1190
+ end
1191
+ end
1192
+
1193
+ # Response message for AugmentPrompt.
1194
+ class GoogleCloudAiplatformV1AugmentPromptResponse
1195
+ include Google::Apis::Core::Hashable
1196
+
1197
+ # Augmented prompt, only text format is supported for now.
1198
+ # Corresponds to the JSON property `augmentedPrompt`
1199
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
1200
+ attr_accessor :augmented_prompt
1201
+
1202
+ # Retrieved facts from RAG data sources.
1203
+ # Corresponds to the JSON property `facts`
1204
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Fact>]
1205
+ attr_accessor :facts
1206
+
1207
+ def initialize(**args)
1208
+ update!(**args)
1209
+ end
1210
+
1211
+ # Update properties of this object
1212
+ def update!(**args)
1213
+ @augmented_prompt = args[:augmented_prompt] if args.key?(:augmented_prompt)
1214
+ @facts = args[:facts] if args.key?(:facts)
1215
+ end
1216
+ end
1217
+
1097
1218
  # A description of resources that to large degree are decided by Vertex AI, and
1098
1219
  # require only a modest additional configuration. Each Model supporting these
1099
1220
  # resources documents its specific guidelines.
@@ -2413,6 +2534,145 @@ module Google
2413
2534
  end
2414
2535
  end
2415
2536
 
2537
+ # A resource used in LLM queries for users to explicitly specify what to cache
2538
+ # and how to cache.
2539
+ class GoogleCloudAiplatformV1CachedContent
2540
+ include Google::Apis::Core::Hashable
2541
+
2542
+ # Optional. Input only. Immutable. The content to cache
2543
+ # Corresponds to the JSON property `contents`
2544
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
2545
+ attr_accessor :contents
2546
+
2547
+ # Output only. Creatation time of the cache entry.
2548
+ # Corresponds to the JSON property `createTime`
2549
+ # @return [String]
2550
+ attr_accessor :create_time
2551
+
2552
+ # Optional. Immutable. The user-generated meaningful display name of the cached
2553
+ # content.
2554
+ # Corresponds to the JSON property `displayName`
2555
+ # @return [String]
2556
+ attr_accessor :display_name
2557
+
2558
+ # Timestamp of when this resource is considered expired. This is *always*
2559
+ # provided on output, regardless of what was sent on input.
2560
+ # Corresponds to the JSON property `expireTime`
2561
+ # @return [String]
2562
+ attr_accessor :expire_time
2563
+
2564
+ # Immutable. The name of the publisher model to use for cached content. Format:
2565
+ # projects/`project`/locations/`location`/publishers/`publisher`/models/`model`
2566
+ # Corresponds to the JSON property `model`
2567
+ # @return [String]
2568
+ attr_accessor :model
2569
+
2570
+ # Immutable. Identifier. The server-generated resource name of the cached
2571
+ # content Format: projects/`project`/locations/`location`/cachedContents/`
2572
+ # cached_content`
2573
+ # Corresponds to the JSON property `name`
2574
+ # @return [String]
2575
+ attr_accessor :name
2576
+
2577
+ # The base structured datatype containing multi-part content of a message. A `
2578
+ # Content` includes a `role` field designating the producer of the `Content` and
2579
+ # a `parts` field containing multi-part data that contains the content of the
2580
+ # message turn.
2581
+ # Corresponds to the JSON property `systemInstruction`
2582
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
2583
+ attr_accessor :system_instruction
2584
+
2585
+ # Tool config. This config is shared for all tools provided in the request.
2586
+ # Corresponds to the JSON property `toolConfig`
2587
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig]
2588
+ attr_accessor :tool_config
2589
+
2590
+ # Optional. Input only. Immutable. A list of `Tools` the model may use to
2591
+ # generate the next response
2592
+ # Corresponds to the JSON property `tools`
2593
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
2594
+ attr_accessor :tools
2595
+
2596
+ # Input only. The TTL for this resource. The expiration time is computed: now +
2597
+ # TTL.
2598
+ # Corresponds to the JSON property `ttl`
2599
+ # @return [String]
2600
+ attr_accessor :ttl
2601
+
2602
+ # Output only. When the cache entry was last updated in UTC time.
2603
+ # Corresponds to the JSON property `updateTime`
2604
+ # @return [String]
2605
+ attr_accessor :update_time
2606
+
2607
+ # Metadata on the usage of the cached content.
2608
+ # Corresponds to the JSON property `usageMetadata`
2609
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContentUsageMetadata]
2610
+ attr_accessor :usage_metadata
2611
+
2612
+ def initialize(**args)
2613
+ update!(**args)
2614
+ end
2615
+
2616
+ # Update properties of this object
2617
+ def update!(**args)
2618
+ @contents = args[:contents] if args.key?(:contents)
2619
+ @create_time = args[:create_time] if args.key?(:create_time)
2620
+ @display_name = args[:display_name] if args.key?(:display_name)
2621
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
2622
+ @model = args[:model] if args.key?(:model)
2623
+ @name = args[:name] if args.key?(:name)
2624
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
2625
+ @tool_config = args[:tool_config] if args.key?(:tool_config)
2626
+ @tools = args[:tools] if args.key?(:tools)
2627
+ @ttl = args[:ttl] if args.key?(:ttl)
2628
+ @update_time = args[:update_time] if args.key?(:update_time)
2629
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
2630
+ end
2631
+ end
2632
+
2633
+ # Metadata on the usage of the cached content.
2634
+ class GoogleCloudAiplatformV1CachedContentUsageMetadata
2635
+ include Google::Apis::Core::Hashable
2636
+
2637
+ # Duration of audio in seconds.
2638
+ # Corresponds to the JSON property `audioDurationSeconds`
2639
+ # @return [Fixnum]
2640
+ attr_accessor :audio_duration_seconds
2641
+
2642
+ # Number of images.
2643
+ # Corresponds to the JSON property `imageCount`
2644
+ # @return [Fixnum]
2645
+ attr_accessor :image_count
2646
+
2647
+ # Number of text characters.
2648
+ # Corresponds to the JSON property `textCount`
2649
+ # @return [Fixnum]
2650
+ attr_accessor :text_count
2651
+
2652
+ # Total number of tokens that the cached content consumes.
2653
+ # Corresponds to the JSON property `totalTokenCount`
2654
+ # @return [Fixnum]
2655
+ attr_accessor :total_token_count
2656
+
2657
+ # Duration of video in seconds.
2658
+ # Corresponds to the JSON property `videoDurationSeconds`
2659
+ # @return [Fixnum]
2660
+ attr_accessor :video_duration_seconds
2661
+
2662
+ def initialize(**args)
2663
+ update!(**args)
2664
+ end
2665
+
2666
+ # Update properties of this object
2667
+ def update!(**args)
2668
+ @audio_duration_seconds = args[:audio_duration_seconds] if args.key?(:audio_duration_seconds)
2669
+ @image_count = args[:image_count] if args.key?(:image_count)
2670
+ @text_count = args[:text_count] if args.key?(:text_count)
2671
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
2672
+ @video_duration_seconds = args[:video_duration_seconds] if args.key?(:video_duration_seconds)
2673
+ end
2674
+ end
2675
+
2416
2676
  # Request message for JobService.CancelBatchPredictionJob.
2417
2677
  class GoogleCloudAiplatformV1CancelBatchPredictionJobRequest
2418
2678
  include Google::Apis::Core::Hashable
@@ -2730,6 +2990,43 @@ module Google
2730
2990
  end
2731
2991
  end
2732
2992
 
2993
+ # Claim that is extracted from the input text and facts that support it.
2994
+ class GoogleCloudAiplatformV1Claim
2995
+ include Google::Apis::Core::Hashable
2996
+
2997
+ # Index in the input text where the claim ends (exclusive).
2998
+ # Corresponds to the JSON property `endIndex`
2999
+ # @return [Fixnum]
3000
+ attr_accessor :end_index
3001
+
3002
+ # Indexes of the facts supporting this claim.
3003
+ # Corresponds to the JSON property `factIndexes`
3004
+ # @return [Array<Fixnum>]
3005
+ attr_accessor :fact_indexes
3006
+
3007
+ # Confidence score of this corroboration.
3008
+ # Corresponds to the JSON property `score`
3009
+ # @return [Float]
3010
+ attr_accessor :score
3011
+
3012
+ # Index in the input text where the claim starts (inclusive).
3013
+ # Corresponds to the JSON property `startIndex`
3014
+ # @return [Fixnum]
3015
+ attr_accessor :start_index
3016
+
3017
+ def initialize(**args)
3018
+ update!(**args)
3019
+ end
3020
+
3021
+ # Update properties of this object
3022
+ def update!(**args)
3023
+ @end_index = args[:end_index] if args.key?(:end_index)
3024
+ @fact_indexes = args[:fact_indexes] if args.key?(:fact_indexes)
3025
+ @score = args[:score] if args.key?(:score)
3026
+ @start_index = args[:start_index] if args.key?(:start_index)
3027
+ end
3028
+ end
3029
+
2733
3030
  # Configurations (e.g. inference timeout) that are applied on your endpoints.
2734
3031
  class GoogleCloudAiplatformV1ClientConnectionConfig
2735
3032
  include Google::Apis::Core::Hashable
@@ -2843,6 +3140,116 @@ module Google
2843
3140
  end
2844
3141
  end
2845
3142
 
3143
+ # Input for Comet metric.
3144
+ class GoogleCloudAiplatformV1CometInput
3145
+ include Google::Apis::Core::Hashable
3146
+
3147
+ # Spec for Comet instance - The fields used for evaluation are dependent on the
3148
+ # comet version.
3149
+ # Corresponds to the JSON property `instance`
3150
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CometInstance]
3151
+ attr_accessor :instance
3152
+
3153
+ # Spec for Comet metric.
3154
+ # Corresponds to the JSON property `metricSpec`
3155
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CometSpec]
3156
+ attr_accessor :metric_spec
3157
+
3158
+ def initialize(**args)
3159
+ update!(**args)
3160
+ end
3161
+
3162
+ # Update properties of this object
3163
+ def update!(**args)
3164
+ @instance = args[:instance] if args.key?(:instance)
3165
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
3166
+ end
3167
+ end
3168
+
3169
+ # Spec for Comet instance - The fields used for evaluation are dependent on the
3170
+ # comet version.
3171
+ class GoogleCloudAiplatformV1CometInstance
3172
+ include Google::Apis::Core::Hashable
3173
+
3174
+ # Required. Output of the evaluated model.
3175
+ # Corresponds to the JSON property `prediction`
3176
+ # @return [String]
3177
+ attr_accessor :prediction
3178
+
3179
+ # Optional. Ground truth used to compare against the prediction.
3180
+ # Corresponds to the JSON property `reference`
3181
+ # @return [String]
3182
+ attr_accessor :reference
3183
+
3184
+ # Optional. Source text in original language.
3185
+ # Corresponds to the JSON property `source`
3186
+ # @return [String]
3187
+ attr_accessor :source
3188
+
3189
+ def initialize(**args)
3190
+ update!(**args)
3191
+ end
3192
+
3193
+ # Update properties of this object
3194
+ def update!(**args)
3195
+ @prediction = args[:prediction] if args.key?(:prediction)
3196
+ @reference = args[:reference] if args.key?(:reference)
3197
+ @source = args[:source] if args.key?(:source)
3198
+ end
3199
+ end
3200
+
3201
+ # Spec for Comet result - calculates the comet score for the given instance
3202
+ # using the version specified in the spec.
3203
+ class GoogleCloudAiplatformV1CometResult
3204
+ include Google::Apis::Core::Hashable
3205
+
3206
+ # Output only. Comet score. Range depends on version.
3207
+ # Corresponds to the JSON property `score`
3208
+ # @return [Float]
3209
+ attr_accessor :score
3210
+
3211
+ def initialize(**args)
3212
+ update!(**args)
3213
+ end
3214
+
3215
+ # Update properties of this object
3216
+ def update!(**args)
3217
+ @score = args[:score] if args.key?(:score)
3218
+ end
3219
+ end
3220
+
3221
+ # Spec for Comet metric.
3222
+ class GoogleCloudAiplatformV1CometSpec
3223
+ include Google::Apis::Core::Hashable
3224
+
3225
+ # Optional. Source language in BCP-47 format.
3226
+ # Corresponds to the JSON property `sourceLanguage`
3227
+ # @return [String]
3228
+ attr_accessor :source_language
3229
+
3230
+ # Optional. Target language in BCP-47 format. Covers both prediction and
3231
+ # reference.
3232
+ # Corresponds to the JSON property `targetLanguage`
3233
+ # @return [String]
3234
+ attr_accessor :target_language
3235
+
3236
+ # Required. Which version to use for evaluation.
3237
+ # Corresponds to the JSON property `version`
3238
+ # @return [String]
3239
+ attr_accessor :version
3240
+
3241
+ def initialize(**args)
3242
+ update!(**args)
3243
+ end
3244
+
3245
+ # Update properties of this object
3246
+ def update!(**args)
3247
+ @source_language = args[:source_language] if args.key?(:source_language)
3248
+ @target_language = args[:target_language] if args.key?(:target_language)
3249
+ @version = args[:version] if args.key?(:version)
3250
+ end
3251
+ end
3252
+
2846
3253
  # Request message for VizierService.CompleteTrial.
2847
3254
  class GoogleCloudAiplatformV1CompleteTrialRequest
2848
3255
  include Google::Apis::Core::Hashable
@@ -3251,6 +3658,112 @@ module Google
3251
3658
  end
3252
3659
  end
3253
3660
 
3661
+ # RagCorpus status.
3662
+ class GoogleCloudAiplatformV1CorpusStatus
3663
+ include Google::Apis::Core::Hashable
3664
+
3665
+ # Output only. Only when the `state` field is ERROR.
3666
+ # Corresponds to the JSON property `errorStatus`
3667
+ # @return [String]
3668
+ attr_accessor :error_status
3669
+
3670
+ # Output only. RagCorpus life state.
3671
+ # Corresponds to the JSON property `state`
3672
+ # @return [String]
3673
+ attr_accessor :state
3674
+
3675
+ def initialize(**args)
3676
+ update!(**args)
3677
+ end
3678
+
3679
+ # Update properties of this object
3680
+ def update!(**args)
3681
+ @error_status = args[:error_status] if args.key?(:error_status)
3682
+ @state = args[:state] if args.key?(:state)
3683
+ end
3684
+ end
3685
+
3686
+ # Request message for CorroborateContent.
3687
+ class GoogleCloudAiplatformV1CorroborateContentRequest
3688
+ include Google::Apis::Core::Hashable
3689
+
3690
+ # The base structured datatype containing multi-part content of a message. A `
3691
+ # Content` includes a `role` field designating the producer of the `Content` and
3692
+ # a `parts` field containing multi-part data that contains the content of the
3693
+ # message turn.
3694
+ # Corresponds to the JSON property `content`
3695
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
3696
+ attr_accessor :content
3697
+
3698
+ # Optional. Facts used to generate the text can also be used to corroborate the
3699
+ # text.
3700
+ # Corresponds to the JSON property `facts`
3701
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Fact>]
3702
+ attr_accessor :facts
3703
+
3704
+ # Parameters that can be overrided per request.
3705
+ # Corresponds to the JSON property `parameters`
3706
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentRequestParameters]
3707
+ attr_accessor :parameters
3708
+
3709
+ def initialize(**args)
3710
+ update!(**args)
3711
+ end
3712
+
3713
+ # Update properties of this object
3714
+ def update!(**args)
3715
+ @content = args[:content] if args.key?(:content)
3716
+ @facts = args[:facts] if args.key?(:facts)
3717
+ @parameters = args[:parameters] if args.key?(:parameters)
3718
+ end
3719
+ end
3720
+
3721
+ # Parameters that can be overrided per request.
3722
+ class GoogleCloudAiplatformV1CorroborateContentRequestParameters
3723
+ include Google::Apis::Core::Hashable
3724
+
3725
+ # Optional. Only return claims with citation score larger than the threshold.
3726
+ # Corresponds to the JSON property `citationThreshold`
3727
+ # @return [Float]
3728
+ attr_accessor :citation_threshold
3729
+
3730
+ def initialize(**args)
3731
+ update!(**args)
3732
+ end
3733
+
3734
+ # Update properties of this object
3735
+ def update!(**args)
3736
+ @citation_threshold = args[:citation_threshold] if args.key?(:citation_threshold)
3737
+ end
3738
+ end
3739
+
3740
+ # Response message for CorroborateContent.
3741
+ class GoogleCloudAiplatformV1CorroborateContentResponse
3742
+ include Google::Apis::Core::Hashable
3743
+
3744
+ # Claims that are extracted from the input content and facts that support the
3745
+ # claims.
3746
+ # Corresponds to the JSON property `claims`
3747
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Claim>]
3748
+ attr_accessor :claims
3749
+
3750
+ # Confidence score of corroborating content. Value is [0,1] with 1 is the most
3751
+ # confidence.
3752
+ # Corresponds to the JSON property `corroborationScore`
3753
+ # @return [Float]
3754
+ attr_accessor :corroboration_score
3755
+
3756
+ def initialize(**args)
3757
+ update!(**args)
3758
+ end
3759
+
3760
+ # Update properties of this object
3761
+ def update!(**args)
3762
+ @claims = args[:claims] if args.key?(:claims)
3763
+ @corroboration_score = args[:corroboration_score] if args.key?(:corroboration_score)
3764
+ end
3765
+ end
3766
+
3254
3767
  # Request message for PredictionService.CountTokens.
3255
3768
  class GoogleCloudAiplatformV1CountTokensRequest
3256
3769
  include Google::Apis::Core::Hashable
@@ -4751,6 +5264,16 @@ module Google
4751
5264
  # @return [Fixnum]
4752
5265
  attr_accessor :min_replica_count
4753
5266
 
5267
+ # Optional. Number of required available replicas for the deployment to succeed.
5268
+ # This field is only needed when partial model deployment/mutation is desired.
5269
+ # If set, the model deploy/mutate operation will succeed once
5270
+ # available_replica_count reaches required_replica_count, and the rest of the
5271
+ # replicas will be retried. If not set, the default required_replica_count will
5272
+ # be min_replica_count.
5273
+ # Corresponds to the JSON property `requiredReplicaCount`
5274
+ # @return [Fixnum]
5275
+ attr_accessor :required_replica_count
5276
+
4754
5277
  # Optional. If true, schedule the deployment workload on [spot VMs](https://
4755
5278
  # cloud.google.com/kubernetes-engine/docs/concepts/spot-vms).
4756
5279
  # Corresponds to the JSON property `spot`
@@ -4768,6 +5291,7 @@ module Google
4768
5291
  @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
4769
5292
  @max_replica_count = args[:max_replica_count] if args.key?(:max_replica_count)
4770
5293
  @min_replica_count = args[:min_replica_count] if args.key?(:min_replica_count)
5294
+ @required_replica_count = args[:required_replica_count] if args.key?(:required_replica_count)
4771
5295
  @spot = args[:spot] if args.key?(:spot)
4772
5296
  end
4773
5297
  end
@@ -5417,6 +5941,11 @@ module Google
5417
5941
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExplanationSpec]
5418
5942
  attr_accessor :explanation_spec
5419
5943
 
5944
+ # Configuration for faster model deployment.
5945
+ # Corresponds to the JSON property `fasterDeploymentConfig`
5946
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FasterDeploymentConfig]
5947
+ attr_accessor :faster_deployment_config
5948
+
5420
5949
  # Immutable. The ID of the DeployedModel. If not provided upon deployment,
5421
5950
  # Vertex AI will generate a value for this ID. This value should be 1-10
5422
5951
  # characters, and valid characters are `/[0-9]/`.
@@ -5463,6 +5992,11 @@ module Google
5463
5992
  # @return [String]
5464
5993
  attr_accessor :shared_resources
5465
5994
 
5995
+ # Runtime status of the deployed model.
5996
+ # Corresponds to the JSON property `status`
5997
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployedModelStatus]
5998
+ attr_accessor :status
5999
+
5466
6000
  # System labels to apply to Model Garden deployments. System labels are managed
5467
6001
  # by Google for internal use only.
5468
6002
  # Corresponds to the JSON property `systemLabels`
@@ -5483,12 +6017,14 @@ module Google
5483
6017
  @display_name = args[:display_name] if args.key?(:display_name)
5484
6018
  @enable_access_logging = args[:enable_access_logging] if args.key?(:enable_access_logging)
5485
6019
  @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
6020
+ @faster_deployment_config = args[:faster_deployment_config] if args.key?(:faster_deployment_config)
5486
6021
  @id = args[:id] if args.key?(:id)
5487
6022
  @model = args[:model] if args.key?(:model)
5488
6023
  @model_version_id = args[:model_version_id] if args.key?(:model_version_id)
5489
6024
  @private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
5490
6025
  @service_account = args[:service_account] if args.key?(:service_account)
5491
6026
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
6027
+ @status = args[:status] if args.key?(:status)
5492
6028
  @system_labels = args[:system_labels] if args.key?(:system_labels)
5493
6029
  end
5494
6030
  end
@@ -5518,6 +6054,37 @@ module Google
5518
6054
  end
5519
6055
  end
5520
6056
 
6057
+ # Runtime status of the deployed model.
6058
+ class GoogleCloudAiplatformV1DeployedModelStatus
6059
+ include Google::Apis::Core::Hashable
6060
+
6061
+ # Output only. The number of available replicas of the deployed model.
6062
+ # Corresponds to the JSON property `availableReplicaCount`
6063
+ # @return [Fixnum]
6064
+ attr_accessor :available_replica_count
6065
+
6066
+ # Output only. The time at which the status was last updated.
6067
+ # Corresponds to the JSON property `lastUpdateTime`
6068
+ # @return [String]
6069
+ attr_accessor :last_update_time
6070
+
6071
+ # Output only. The latest deployed model's status message (if any).
6072
+ # Corresponds to the JSON property `message`
6073
+ # @return [String]
6074
+ attr_accessor :message
6075
+
6076
+ def initialize(**args)
6077
+ update!(**args)
6078
+ end
6079
+
6080
+ # Update properties of this object
6081
+ def update!(**args)
6082
+ @available_replica_count = args[:available_replica_count] if args.key?(:available_replica_count)
6083
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
6084
+ @message = args[:message] if args.key?(:message)
6085
+ end
6086
+ end
6087
+
5521
6088
  # A description of resources that can be shared by multiple DeployedModels,
5522
6089
  # whose underlying specification consists of a DedicatedResources.
5523
6090
  class GoogleCloudAiplatformV1DeploymentResourcePool
@@ -5721,6 +6288,19 @@ module Google
5721
6288
  end
5722
6289
  end
5723
6290
 
6291
+ # The input content is encapsulated and uploaded in the request.
6292
+ class GoogleCloudAiplatformV1DirectUploadSource
6293
+ include Google::Apis::Core::Hashable
6294
+
6295
+ def initialize(**args)
6296
+ update!(**args)
6297
+ end
6298
+
6299
+ # Update properties of this object
6300
+ def update!(**args)
6301
+ end
6302
+ end
6303
+
5724
6304
  # Represents the spec of disk options.
5725
6305
  class GoogleCloudAiplatformV1DiskSpec
5726
6306
  include Google::Apis::Core::Hashable
@@ -6213,6 +6793,11 @@ module Google
6213
6793
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CoherenceInput]
6214
6794
  attr_accessor :coherence_input
6215
6795
 
6796
+ # Input for Comet metric.
6797
+ # Corresponds to the JSON property `cometInput`
6798
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CometInput]
6799
+ attr_accessor :comet_input
6800
+
6216
6801
  # Input for exact match metric.
6217
6802
  # Corresponds to the JSON property `exactMatchInput`
6218
6803
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchInput]
@@ -6233,6 +6818,11 @@ module Google
6233
6818
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundednessInput]
6234
6819
  attr_accessor :groundedness_input
6235
6820
 
6821
+ # Input for MetricX metric.
6822
+ # Corresponds to the JSON property `metricxInput`
6823
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxInput]
6824
+ attr_accessor :metricx_input
6825
+
6236
6826
  # Input for pairwise metric.
6237
6827
  # Corresponds to the JSON property `pairwiseMetricInput`
6238
6828
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricInput]
@@ -6326,10 +6916,12 @@ module Google
6326
6916
  def update!(**args)
6327
6917
  @bleu_input = args[:bleu_input] if args.key?(:bleu_input)
6328
6918
  @coherence_input = args[:coherence_input] if args.key?(:coherence_input)
6919
+ @comet_input = args[:comet_input] if args.key?(:comet_input)
6329
6920
  @exact_match_input = args[:exact_match_input] if args.key?(:exact_match_input)
6330
6921
  @fluency_input = args[:fluency_input] if args.key?(:fluency_input)
6331
6922
  @fulfillment_input = args[:fulfillment_input] if args.key?(:fulfillment_input)
6332
6923
  @groundedness_input = args[:groundedness_input] if args.key?(:groundedness_input)
6924
+ @metricx_input = args[:metricx_input] if args.key?(:metricx_input)
6333
6925
  @pairwise_metric_input = args[:pairwise_metric_input] if args.key?(:pairwise_metric_input)
6334
6926
  @pairwise_question_answering_quality_input = args[:pairwise_question_answering_quality_input] if args.key?(:pairwise_question_answering_quality_input)
6335
6927
  @pairwise_summarization_quality_input = args[:pairwise_summarization_quality_input] if args.key?(:pairwise_summarization_quality_input)
@@ -6364,6 +6956,12 @@ module Google
6364
6956
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CoherenceResult]
6365
6957
  attr_accessor :coherence_result
6366
6958
 
6959
+ # Spec for Comet result - calculates the comet score for the given instance
6960
+ # using the version specified in the spec.
6961
+ # Corresponds to the JSON property `cometResult`
6962
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CometResult]
6963
+ attr_accessor :comet_result
6964
+
6367
6965
  # Results for exact match metric.
6368
6966
  # Corresponds to the JSON property `exactMatchResults`
6369
6967
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExactMatchResults]
@@ -6384,6 +6982,12 @@ module Google
6384
6982
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundednessResult]
6385
6983
  attr_accessor :groundedness_result
6386
6984
 
6985
+ # Spec for MetricX result - calculates the MetricX score for the given instance
6986
+ # using the version specified in the spec.
6987
+ # Corresponds to the JSON property `metricxResult`
6988
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxResult]
6989
+ attr_accessor :metricx_result
6990
+
6387
6991
  # Spec for pairwise metric result.
6388
6992
  # Corresponds to the JSON property `pairwiseMetricResult`
6389
6993
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricResult]
@@ -6477,10 +7081,12 @@ module Google
6477
7081
  def update!(**args)
6478
7082
  @bleu_results = args[:bleu_results] if args.key?(:bleu_results)
6479
7083
  @coherence_result = args[:coherence_result] if args.key?(:coherence_result)
7084
+ @comet_result = args[:comet_result] if args.key?(:comet_result)
6480
7085
  @exact_match_results = args[:exact_match_results] if args.key?(:exact_match_results)
6481
7086
  @fluency_result = args[:fluency_result] if args.key?(:fluency_result)
6482
7087
  @fulfillment_result = args[:fulfillment_result] if args.key?(:fulfillment_result)
6483
7088
  @groundedness_result = args[:groundedness_result] if args.key?(:groundedness_result)
7089
+ @metricx_result = args[:metricx_result] if args.key?(:metricx_result)
6484
7090
  @pairwise_metric_result = args[:pairwise_metric_result] if args.key?(:pairwise_metric_result)
6485
7091
  @pairwise_question_answering_quality_result = args[:pairwise_question_answering_quality_result] if args.key?(:pairwise_question_answering_quality_result)
6486
7092
  @pairwise_summarization_quality_result = args[:pairwise_summarization_quality_result] if args.key?(:pairwise_summarization_quality_result)
@@ -7616,13 +8222,14 @@ module Google
7616
8222
  # github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7617
8223
  # The schema files that can be used here are found in gs://google-cloud-
7618
8224
  # aiplatform/schema/dataset/annotation/, note that the chosen schema must be
7619
- # consistent with metadata of the Dataset specified by dataset_id. Only used for
7620
- # custom training data export use cases. Only applicable to Datasets that have
7621
- # DataItems and Annotations. Only Annotations that both match this schema and
7622
- # belong to DataItems not ignored by the split method are used in respectively
7623
- # training, validation or test role, depending on the role of the DataItem they
7624
- # are on. When used in conjunction with annotations_filter, the Annotations used
7625
- # for training are filtered by both annotations_filter and annotation_schema_uri.
8225
+ # consistent with metadata of the Dataset specified by ExportDataRequest.name.
8226
+ # Only used for custom training data export use cases. Only applicable to
8227
+ # Datasets that have DataItems and Annotations. Only Annotations that both match
8228
+ # this schema and belong to DataItems not ignored by the split method are used
8229
+ # in respectively training, validation or test role, depending on the role of
8230
+ # the DataItem they are on. When used in conjunction with annotations_filter,
8231
+ # the Annotations used for training are filtered by both annotations_filter and
8232
+ # annotation_schema_uri.
7626
8233
  # Corresponds to the JSON property `annotationSchemaUri`
7627
8234
  # @return [String]
7628
8235
  attr_accessor :annotation_schema_uri
@@ -7664,10 +8271,10 @@ module Google
7664
8271
  attr_accessor :gcs_destination
7665
8272
 
7666
8273
  # The ID of a SavedQuery (annotation set) under the Dataset specified by
7667
- # dataset_id used for filtering Annotations for training. Only used for custom
7668
- # training data export use cases. Only applicable to Datasets that have
7669
- # SavedQueries. Only Annotations that are associated with this SavedQuery are
7670
- # used in respectively training. When used in conjunction with
8274
+ # ExportDataRequest.name used for filtering Annotations for training. Only used
8275
+ # for custom training data export use cases. Only applicable to Datasets that
8276
+ # have SavedQueries. Only Annotations that are associated with this SavedQuery
8277
+ # are used in respectively training. When used in conjunction with
7671
8278
  # annotations_filter, the Annotations used for training are filtered by both
7672
8279
  # saved_query_id and annotations_filter. Only one of saved_query_id and
7673
8280
  # annotation_schema_uri should be specified as both of them represent the same
@@ -8172,6 +8779,81 @@ module Google
8172
8779
  end
8173
8780
  end
8174
8781
 
8782
+ # The fact used in grounding.
8783
+ class GoogleCloudAiplatformV1Fact
8784
+ include Google::Apis::Core::Hashable
8785
+
8786
+ # Query that is used to retrieve this fact.
8787
+ # Corresponds to the JSON property `query`
8788
+ # @return [String]
8789
+ attr_accessor :query
8790
+
8791
+ # If present, according to the underlying Vector DB and the selected metric type,
8792
+ # the score can be either the distance or the similarity between the query and
8793
+ # the fact and its range depends on the metric type. For example, if the metric
8794
+ # type is COSINE_DISTANCE, it represents the distance between the query and the
8795
+ # fact. The larger the distance, the less relevant the fact is to the query. The
8796
+ # range is [0, 2], while 0 means the most relevant and 2 means the least
8797
+ # relevant.
8798
+ # Corresponds to the JSON property `score`
8799
+ # @return [Float]
8800
+ attr_accessor :score
8801
+
8802
+ # If present, the summary/snippet of the fact.
8803
+ # Corresponds to the JSON property `summary`
8804
+ # @return [String]
8805
+ attr_accessor :summary
8806
+
8807
+ # If present, it refers to the title of this fact.
8808
+ # Corresponds to the JSON property `title`
8809
+ # @return [String]
8810
+ attr_accessor :title
8811
+
8812
+ # If present, this uri links to the source of the fact.
8813
+ # Corresponds to the JSON property `uri`
8814
+ # @return [String]
8815
+ attr_accessor :uri
8816
+
8817
+ # If present, the distance between the query vector and this fact vector.
8818
+ # Corresponds to the JSON property `vectorDistance`
8819
+ # @return [Float]
8820
+ attr_accessor :vector_distance
8821
+
8822
+ def initialize(**args)
8823
+ update!(**args)
8824
+ end
8825
+
8826
+ # Update properties of this object
8827
+ def update!(**args)
8828
+ @query = args[:query] if args.key?(:query)
8829
+ @score = args[:score] if args.key?(:score)
8830
+ @summary = args[:summary] if args.key?(:summary)
8831
+ @title = args[:title] if args.key?(:title)
8832
+ @uri = args[:uri] if args.key?(:uri)
8833
+ @vector_distance = args[:vector_distance] if args.key?(:vector_distance)
8834
+ end
8835
+ end
8836
+
8837
+ # Configuration for faster model deployment.
8838
+ class GoogleCloudAiplatformV1FasterDeploymentConfig
8839
+ include Google::Apis::Core::Hashable
8840
+
8841
+ # If true, enable fast tryout feature for this deployed model.
8842
+ # Corresponds to the JSON property `fastTryoutEnabled`
8843
+ # @return [Boolean]
8844
+ attr_accessor :fast_tryout_enabled
8845
+ alias_method :fast_tryout_enabled?, :fast_tryout_enabled
8846
+
8847
+ def initialize(**args)
8848
+ update!(**args)
8849
+ end
8850
+
8851
+ # Update properties of this object
8852
+ def update!(**args)
8853
+ @fast_tryout_enabled = args[:fast_tryout_enabled] if args.key?(:fast_tryout_enabled)
8854
+ end
8855
+ end
8856
+
8175
8857
  # Feature Metadata information. For example, color is a feature that describes
8176
8858
  # an apple.
8177
8859
  class GoogleCloudAiplatformV1Feature
@@ -9925,6 +10607,31 @@ module Google
9925
10607
  end
9926
10608
  end
9927
10609
 
10610
+ # RagFile status.
10611
+ class GoogleCloudAiplatformV1FileStatus
10612
+ include Google::Apis::Core::Hashable
10613
+
10614
+ # Output only. Only when the `state` field is ERROR.
10615
+ # Corresponds to the JSON property `errorStatus`
10616
+ # @return [String]
10617
+ attr_accessor :error_status
10618
+
10619
+ # Output only. RagFile state.
10620
+ # Corresponds to the JSON property `state`
10621
+ # @return [String]
10622
+ attr_accessor :state
10623
+
10624
+ def initialize(**args)
10625
+ update!(**args)
10626
+ end
10627
+
10628
+ # Update properties of this object
10629
+ def update!(**args)
10630
+ @error_status = args[:error_status] if args.key?(:error_status)
10631
+ @state = args[:state] if args.key?(:state)
10632
+ end
10633
+ end
10634
+
9928
10635
  # Assigns input data to training, validation, and test sets based on the given
9929
10636
  # filters, data pieces not matched by any filter are ignored. Currently only
9930
10637
  # supported for Datasets containing DataItems. If any of the filters in this
@@ -10581,6 +11288,15 @@ module Google
10581
11288
  class GoogleCloudAiplatformV1GenerateContentRequest
10582
11289
  include Google::Apis::Core::Hashable
10583
11290
 
11291
+ # Optional. The name of the cached content used as context to serve the
11292
+ # prediction. Note: only used in explicit caching, where users can have control
11293
+ # over caching (e.g. what content to cache) and enjoy guaranteed cost savings.
11294
+ # Format: `projects/`project`/locations/`location`/cachedContents/`cachedContent`
11295
+ # `
11296
+ # Corresponds to the JSON property `cachedContent`
11297
+ # @return [String]
11298
+ attr_accessor :cached_content
11299
+
10584
11300
  # Required. The content of the current conversation with the model. For single-
10585
11301
  # turn queries, this is a single instance. For multi-turn queries, this is a
10586
11302
  # repeated field that contains conversation history + latest request.
@@ -10635,6 +11351,7 @@ module Google
10635
11351
 
10636
11352
  # Update properties of this object
10637
11353
  def update!(**args)
11354
+ @cached_content = args[:cached_content] if args.key?(:cached_content)
10638
11355
  @contents = args[:contents] if args.key?(:contents)
10639
11356
  @generation_config = args[:generation_config] if args.key?(:generation_config)
10640
11357
  @labels = args[:labels] if args.key?(:labels)
@@ -10717,6 +11434,12 @@ module Google
10717
11434
  class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
10718
11435
  include Google::Apis::Core::Hashable
10719
11436
 
11437
+ # Output only. Number of tokens in the cached part in the input (the cached
11438
+ # content).
11439
+ # Corresponds to the JSON property `cachedContentTokenCount`
11440
+ # @return [Fixnum]
11441
+ attr_accessor :cached_content_token_count
11442
+
10720
11443
  # Number of tokens in the response(s).
10721
11444
  # Corresponds to the JSON property `candidatesTokenCount`
10722
11445
  # @return [Fixnum]
@@ -10740,6 +11463,7 @@ module Google
10740
11463
 
10741
11464
  # Update properties of this object
10742
11465
  def update!(**args)
11466
+ @cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
10743
11467
  @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
10744
11468
  @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
10745
11469
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
@@ -10978,6 +11702,50 @@ module Google
10978
11702
  end
10979
11703
  end
10980
11704
 
11705
+ # The Google Drive location for the input content.
11706
+ class GoogleCloudAiplatformV1GoogleDriveSource
11707
+ include Google::Apis::Core::Hashable
11708
+
11709
+ # Required. Google Drive resource IDs.
11710
+ # Corresponds to the JSON property `resourceIds`
11711
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleDriveSourceResourceId>]
11712
+ attr_accessor :resource_ids
11713
+
11714
+ def initialize(**args)
11715
+ update!(**args)
11716
+ end
11717
+
11718
+ # Update properties of this object
11719
+ def update!(**args)
11720
+ @resource_ids = args[:resource_ids] if args.key?(:resource_ids)
11721
+ end
11722
+ end
11723
+
11724
+ # The type and ID of the Google Drive resource.
11725
+ class GoogleCloudAiplatformV1GoogleDriveSourceResourceId
11726
+ include Google::Apis::Core::Hashable
11727
+
11728
+ # Required. The ID of the Google Drive resource.
11729
+ # Corresponds to the JSON property `resourceId`
11730
+ # @return [String]
11731
+ attr_accessor :resource_id
11732
+
11733
+ # Required. The type of the Google Drive resource.
11734
+ # Corresponds to the JSON property `resourceType`
11735
+ # @return [String]
11736
+ attr_accessor :resource_type
11737
+
11738
+ def initialize(**args)
11739
+ update!(**args)
11740
+ end
11741
+
11742
+ # Update properties of this object
11743
+ def update!(**args)
11744
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
11745
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
11746
+ end
11747
+ end
11748
+
10981
11749
  # Tool to retrieve public web data for grounding, powered by Google.
10982
11750
  class GoogleCloudAiplatformV1GoogleSearchRetrieval
10983
11751
  include Google::Apis::Core::Hashable
@@ -11758,6 +12526,90 @@ module Google
11758
12526
  end
11759
12527
  end
11760
12528
 
12529
+ # Config for importing RagFiles.
12530
+ class GoogleCloudAiplatformV1ImportRagFilesConfig
12531
+ include Google::Apis::Core::Hashable
12532
+
12533
+ # The Google Cloud Storage location for the input content.
12534
+ # Corresponds to the JSON property `gcsSource`
12535
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsSource]
12536
+ attr_accessor :gcs_source
12537
+
12538
+ # The Google Drive location for the input content.
12539
+ # Corresponds to the JSON property `googleDriveSource`
12540
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleDriveSource]
12541
+ attr_accessor :google_drive_source
12542
+
12543
+ # The Jira source for the ImportRagFilesRequest.
12544
+ # Corresponds to the JSON property `jiraSource`
12545
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1JiraSource]
12546
+ attr_accessor :jira_source
12547
+
12548
+ # Optional. The max number of queries per minute that this job is allowed to
12549
+ # make to the embedding model specified on the corpus. This value is specific to
12550
+ # this job and not shared across other import jobs. Consult the Quotas page on
12551
+ # the project to set an appropriate value here. If unspecified, a default value
12552
+ # of 1,000 QPM would be used.
12553
+ # Corresponds to the JSON property `maxEmbeddingRequestsPerMin`
12554
+ # @return [Fixnum]
12555
+ attr_accessor :max_embedding_requests_per_min
12556
+
12557
+ # The BigQuery location for the output content.
12558
+ # Corresponds to the JSON property `partialFailureBigquerySink`
12559
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BigQueryDestination]
12560
+ attr_accessor :partial_failure_bigquery_sink
12561
+
12562
+ # The Google Cloud Storage location where the output is to be written to.
12563
+ # Corresponds to the JSON property `partialFailureGcsSink`
12564
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
12565
+ attr_accessor :partial_failure_gcs_sink
12566
+
12567
+ # Specifies the transformation config for RagFiles.
12568
+ # Corresponds to the JSON property `ragFileTransformationConfig`
12569
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig]
12570
+ attr_accessor :rag_file_transformation_config
12571
+
12572
+ # The Slack source for the ImportRagFilesRequest.
12573
+ # Corresponds to the JSON property `slackSource`
12574
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSource]
12575
+ attr_accessor :slack_source
12576
+
12577
+ def initialize(**args)
12578
+ update!(**args)
12579
+ end
12580
+
12581
+ # Update properties of this object
12582
+ def update!(**args)
12583
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
12584
+ @google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
12585
+ @jira_source = args[:jira_source] if args.key?(:jira_source)
12586
+ @max_embedding_requests_per_min = args[:max_embedding_requests_per_min] if args.key?(:max_embedding_requests_per_min)
12587
+ @partial_failure_bigquery_sink = args[:partial_failure_bigquery_sink] if args.key?(:partial_failure_bigquery_sink)
12588
+ @partial_failure_gcs_sink = args[:partial_failure_gcs_sink] if args.key?(:partial_failure_gcs_sink)
12589
+ @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
12590
+ @slack_source = args[:slack_source] if args.key?(:slack_source)
12591
+ end
12592
+ end
12593
+
12594
+ # Request message for VertexRagDataService.ImportRagFiles.
12595
+ class GoogleCloudAiplatformV1ImportRagFilesRequest
12596
+ include Google::Apis::Core::Hashable
12597
+
12598
+ # Config for importing RagFiles.
12599
+ # Corresponds to the JSON property `importRagFilesConfig`
12600
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImportRagFilesConfig]
12601
+ attr_accessor :import_rag_files_config
12602
+
12603
+ def initialize(**args)
12604
+ update!(**args)
12605
+ end
12606
+
12607
+ # Update properties of this object
12608
+ def update!(**args)
12609
+ @import_rag_files_config = args[:import_rag_files_config] if args.key?(:import_rag_files_config)
12610
+ end
12611
+ end
12612
+
11761
12613
  # A representation of a collection of database items organized in a way that
11762
12614
  # allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
11763
12615
  class GoogleCloudAiplatformV1Index
@@ -12473,6 +13325,70 @@ module Google
12473
13325
  end
12474
13326
  end
12475
13327
 
13328
+ # The Jira source for the ImportRagFilesRequest.
13329
+ class GoogleCloudAiplatformV1JiraSource
13330
+ include Google::Apis::Core::Hashable
13331
+
13332
+ # Required. The Jira queries.
13333
+ # Corresponds to the JSON property `jiraQueries`
13334
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1JiraSourceJiraQueries>]
13335
+ attr_accessor :jira_queries
13336
+
13337
+ def initialize(**args)
13338
+ update!(**args)
13339
+ end
13340
+
13341
+ # Update properties of this object
13342
+ def update!(**args)
13343
+ @jira_queries = args[:jira_queries] if args.key?(:jira_queries)
13344
+ end
13345
+ end
13346
+
13347
+ # JiraQueries contains the Jira queries and corresponding authentication.
13348
+ class GoogleCloudAiplatformV1JiraSourceJiraQueries
13349
+ include Google::Apis::Core::Hashable
13350
+
13351
+ # The API secret.
13352
+ # Corresponds to the JSON property `apiKeyConfig`
13353
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuthApiKeyConfig]
13354
+ attr_accessor :api_key_config
13355
+
13356
+ # A list of custom Jira queries to import. For information about JQL (Jira Query
13357
+ # Language), see https://support.atlassian.com/jira-service-management-cloud/
13358
+ # docs/use-advanced-search-with-jira-query-language-jql/
13359
+ # Corresponds to the JSON property `customQueries`
13360
+ # @return [Array<String>]
13361
+ attr_accessor :custom_queries
13362
+
13363
+ # Required. The Jira email address.
13364
+ # Corresponds to the JSON property `email`
13365
+ # @return [String]
13366
+ attr_accessor :email
13367
+
13368
+ # A list of Jira projects to import in their entirety.
13369
+ # Corresponds to the JSON property `projects`
13370
+ # @return [Array<String>]
13371
+ attr_accessor :projects
13372
+
13373
+ # Required. The Jira server URI.
13374
+ # Corresponds to the JSON property `serverUri`
13375
+ # @return [String]
13376
+ attr_accessor :server_uri
13377
+
13378
+ def initialize(**args)
13379
+ update!(**args)
13380
+ end
13381
+
13382
+ # Update properties of this object
13383
+ def update!(**args)
13384
+ @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
13385
+ @custom_queries = args[:custom_queries] if args.key?(:custom_queries)
13386
+ @email = args[:email] if args.key?(:email)
13387
+ @projects = args[:projects] if args.key?(:projects)
13388
+ @server_uri = args[:server_uri] if args.key?(:server_uri)
13389
+ end
13390
+ end
13391
+
12476
13392
  # Contains information about the Large Model.
12477
13393
  class GoogleCloudAiplatformV1LargeModelReference
12478
13394
  include Google::Apis::Core::Hashable
@@ -12603,6 +13519,32 @@ module Google
12603
13519
  end
12604
13520
  end
12605
13521
 
13522
+ # Response with a list of CachedContents.
13523
+ class GoogleCloudAiplatformV1ListCachedContentsResponse
13524
+ include Google::Apis::Core::Hashable
13525
+
13526
+ # List of cached contents.
13527
+ # Corresponds to the JSON property `cachedContents`
13528
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent>]
13529
+ attr_accessor :cached_contents
13530
+
13531
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
13532
+ # field is omitted, there are no subsequent pages.
13533
+ # Corresponds to the JSON property `nextPageToken`
13534
+ # @return [String]
13535
+ attr_accessor :next_page_token
13536
+
13537
+ def initialize(**args)
13538
+ update!(**args)
13539
+ end
13540
+
13541
+ # Update properties of this object
13542
+ def update!(**args)
13543
+ @cached_contents = args[:cached_contents] if args.key?(:cached_contents)
13544
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13545
+ end
13546
+ end
13547
+
12606
13548
  # Response message for MetadataService.ListContexts.
12607
13549
  class GoogleCloudAiplatformV1ListContextsResponse
12608
13550
  include Google::Apis::Core::Hashable
@@ -13338,8 +14280,8 @@ module Google
13338
14280
  class GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse
13339
14281
  include Google::Apis::Core::Hashable
13340
14282
 
13341
- # A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.
13342
- # page_token to obtain that page.
14283
+ # A token to retrieve next page of results. Pass to
14284
+ # ListNotebookExecutionJobsRequest.page_token to obtain that page.
13343
14285
  # Corresponds to the JSON property `nextPageToken`
13344
14286
  # @return [String]
13345
14287
  attr_accessor :next_page_token
@@ -13498,6 +14440,84 @@ module Google
13498
14440
  end
13499
14441
  end
13500
14442
 
14443
+ # Response message for VertexRagDataService.ListRagCorpora.
14444
+ class GoogleCloudAiplatformV1ListRagCorporaResponse
14445
+ include Google::Apis::Core::Hashable
14446
+
14447
+ # A token to retrieve the next page of results. Pass to ListRagCorporaRequest.
14448
+ # page_token to obtain that page.
14449
+ # Corresponds to the JSON property `nextPageToken`
14450
+ # @return [String]
14451
+ attr_accessor :next_page_token
14452
+
14453
+ # List of RagCorpora in the requested page.
14454
+ # Corresponds to the JSON property `ragCorpora`
14455
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus>]
14456
+ attr_accessor :rag_corpora
14457
+
14458
+ def initialize(**args)
14459
+ update!(**args)
14460
+ end
14461
+
14462
+ # Update properties of this object
14463
+ def update!(**args)
14464
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14465
+ @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
14466
+ end
14467
+ end
14468
+
14469
+ # Response message for VertexRagDataService.ListRagFiles.
14470
+ class GoogleCloudAiplatformV1ListRagFilesResponse
14471
+ include Google::Apis::Core::Hashable
14472
+
14473
+ # A token to retrieve the next page of results. Pass to ListRagFilesRequest.
14474
+ # page_token to obtain that page.
14475
+ # Corresponds to the JSON property `nextPageToken`
14476
+ # @return [String]
14477
+ attr_accessor :next_page_token
14478
+
14479
+ # List of RagFiles in the requested page.
14480
+ # Corresponds to the JSON property `ragFiles`
14481
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile>]
14482
+ attr_accessor :rag_files
14483
+
14484
+ def initialize(**args)
14485
+ update!(**args)
14486
+ end
14487
+
14488
+ # Update properties of this object
14489
+ def update!(**args)
14490
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14491
+ @rag_files = args[:rag_files] if args.key?(:rag_files)
14492
+ end
14493
+ end
14494
+
14495
+ # Response message for ReasoningEngineService.ListReasoningEngines
14496
+ class GoogleCloudAiplatformV1ListReasoningEnginesResponse
14497
+ include Google::Apis::Core::Hashable
14498
+
14499
+ # A token to retrieve the next page of results. Pass to
14500
+ # ListReasoningEnginesRequest.page_token to obtain that page.
14501
+ # Corresponds to the JSON property `nextPageToken`
14502
+ # @return [String]
14503
+ attr_accessor :next_page_token
14504
+
14505
+ # List of ReasoningEngines in the requested page.
14506
+ # Corresponds to the JSON property `reasoningEngines`
14507
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine>]
14508
+ attr_accessor :reasoning_engines
14509
+
14510
+ def initialize(**args)
14511
+ update!(**args)
14512
+ end
14513
+
14514
+ # Update properties of this object
14515
+ def update!(**args)
14516
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14517
+ @reasoning_engines = args[:reasoning_engines] if args.key?(:reasoning_engines)
14518
+ end
14519
+ end
14520
+
13501
14521
  # Response message for DatasetService.ListSavedQueries.
13502
14522
  class GoogleCloudAiplatformV1ListSavedQueriesResponse
13503
14523
  include Google::Apis::Core::Hashable
@@ -14196,6 +15216,116 @@ module Google
14196
15216
  end
14197
15217
  end
14198
15218
 
15219
+ # Input for MetricX metric.
15220
+ class GoogleCloudAiplatformV1MetricxInput
15221
+ include Google::Apis::Core::Hashable
15222
+
15223
+ # Spec for MetricX instance - The fields used for evaluation are dependent on
15224
+ # the MetricX version.
15225
+ # Corresponds to the JSON property `instance`
15226
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxInstance]
15227
+ attr_accessor :instance
15228
+
15229
+ # Spec for MetricX metric.
15230
+ # Corresponds to the JSON property `metricSpec`
15231
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxSpec]
15232
+ attr_accessor :metric_spec
15233
+
15234
+ def initialize(**args)
15235
+ update!(**args)
15236
+ end
15237
+
15238
+ # Update properties of this object
15239
+ def update!(**args)
15240
+ @instance = args[:instance] if args.key?(:instance)
15241
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
15242
+ end
15243
+ end
15244
+
15245
+ # Spec for MetricX instance - The fields used for evaluation are dependent on
15246
+ # the MetricX version.
15247
+ class GoogleCloudAiplatformV1MetricxInstance
15248
+ include Google::Apis::Core::Hashable
15249
+
15250
+ # Required. Output of the evaluated model.
15251
+ # Corresponds to the JSON property `prediction`
15252
+ # @return [String]
15253
+ attr_accessor :prediction
15254
+
15255
+ # Optional. Ground truth used to compare against the prediction.
15256
+ # Corresponds to the JSON property `reference`
15257
+ # @return [String]
15258
+ attr_accessor :reference
15259
+
15260
+ # Optional. Source text in original language.
15261
+ # Corresponds to the JSON property `source`
15262
+ # @return [String]
15263
+ attr_accessor :source
15264
+
15265
+ def initialize(**args)
15266
+ update!(**args)
15267
+ end
15268
+
15269
+ # Update properties of this object
15270
+ def update!(**args)
15271
+ @prediction = args[:prediction] if args.key?(:prediction)
15272
+ @reference = args[:reference] if args.key?(:reference)
15273
+ @source = args[:source] if args.key?(:source)
15274
+ end
15275
+ end
15276
+
15277
+ # Spec for MetricX result - calculates the MetricX score for the given instance
15278
+ # using the version specified in the spec.
15279
+ class GoogleCloudAiplatformV1MetricxResult
15280
+ include Google::Apis::Core::Hashable
15281
+
15282
+ # Output only. MetricX score. Range depends on version.
15283
+ # Corresponds to the JSON property `score`
15284
+ # @return [Float]
15285
+ attr_accessor :score
15286
+
15287
+ def initialize(**args)
15288
+ update!(**args)
15289
+ end
15290
+
15291
+ # Update properties of this object
15292
+ def update!(**args)
15293
+ @score = args[:score] if args.key?(:score)
15294
+ end
15295
+ end
15296
+
15297
+ # Spec for MetricX metric.
15298
+ class GoogleCloudAiplatformV1MetricxSpec
15299
+ include Google::Apis::Core::Hashable
15300
+
15301
+ # Optional. Source language in BCP-47 format.
15302
+ # Corresponds to the JSON property `sourceLanguage`
15303
+ # @return [String]
15304
+ attr_accessor :source_language
15305
+
15306
+ # Optional. Target language in BCP-47 format. Covers both prediction and
15307
+ # reference.
15308
+ # Corresponds to the JSON property `targetLanguage`
15309
+ # @return [String]
15310
+ attr_accessor :target_language
15311
+
15312
+ # Required. Which version to use for evaluation.
15313
+ # Corresponds to the JSON property `version`
15314
+ # @return [String]
15315
+ attr_accessor :version
15316
+
15317
+ def initialize(**args)
15318
+ update!(**args)
15319
+ end
15320
+
15321
+ # Update properties of this object
15322
+ def update!(**args)
15323
+ @source_language = args[:source_language] if args.key?(:source_language)
15324
+ @target_language = args[:target_language] if args.key?(:target_language)
15325
+ @version = args[:version] if args.key?(:version)
15326
+ end
15327
+ end
15328
+
14199
15329
  # Represents one resource that exists in automl.googleapis.com, datalabeling.
14200
15330
  # googleapis.com or ml.googleapis.com.
14201
15331
  class GoogleCloudAiplatformV1MigratableResource
@@ -15951,9 +17081,8 @@ module Google
15951
17081
  attr_accessor :email_alert_config
15952
17082
 
15953
17083
  # Dump the anomalies to Cloud Logging. The anomalies will be put to json payload
15954
- # encoded from proto google.cloud.aiplatform.logging.
15955
- # ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any
15956
- # other services supported by Cloud Logging.
17084
+ # encoded from proto ModelMonitoringStatsAnomalies. This can be further synced
17085
+ # to Pub/Sub or any other services supported by Cloud Logging.
15957
17086
  # Corresponds to the JSON property `enableLogging`
15958
17087
  # @return [Boolean]
15959
17088
  attr_accessor :enable_logging
@@ -17434,6 +18563,12 @@ module Google
17434
18563
  # @return [String]
17435
18564
  attr_accessor :job_state
17436
18565
 
18566
+ # The name of the kernel to use during notebook execution. If unset, the default
18567
+ # kernel is used.
18568
+ # Corresponds to the JSON property `kernelName`
18569
+ # @return [String]
18570
+ attr_accessor :kernel_name
18571
+
17437
18572
  # The labels with user-defined metadata to organize NotebookExecutionJobs. Label
17438
18573
  # keys and values can be no longer than 64 characters (Unicode codepoints), can
17439
18574
  # only contain lowercase letters, numeric characters, underscores and dashes.
@@ -17482,6 +18617,11 @@ module Google
17482
18617
  # @return [String]
17483
18618
  attr_accessor :update_time
17484
18619
 
18620
+ # Configuration for a Workbench Instances-based environment.
18621
+ # Corresponds to the JSON property `workbenchRuntime`
18622
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime]
18623
+ attr_accessor :workbench_runtime
18624
+
17485
18625
  def initialize(**args)
17486
18626
  update!(**args)
17487
18627
  end
@@ -17499,6 +18639,7 @@ module Google
17499
18639
  @gcs_notebook_source = args[:gcs_notebook_source] if args.key?(:gcs_notebook_source)
17500
18640
  @gcs_output_uri = args[:gcs_output_uri] if args.key?(:gcs_output_uri)
17501
18641
  @job_state = args[:job_state] if args.key?(:job_state)
18642
+ @kernel_name = args[:kernel_name] if args.key?(:kernel_name)
17502
18643
  @labels = args[:labels] if args.key?(:labels)
17503
18644
  @name = args[:name] if args.key?(:name)
17504
18645
  @notebook_runtime_template_resource_name = args[:notebook_runtime_template_resource_name] if args.key?(:notebook_runtime_template_resource_name)
@@ -17506,6 +18647,7 @@ module Google
17506
18647
  @service_account = args[:service_account] if args.key?(:service_account)
17507
18648
  @status = args[:status] if args.key?(:status)
17508
18649
  @update_time = args[:update_time] if args.key?(:update_time)
18650
+ @workbench_runtime = args[:workbench_runtime] if args.key?(:workbench_runtime)
17509
18651
  end
17510
18652
  end
17511
18653
 
@@ -17615,6 +18757,19 @@ module Google
17615
18757
  end
17616
18758
  end
17617
18759
 
18760
+ # Configuration for a Workbench Instances-based environment.
18761
+ class GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime
18762
+ include Google::Apis::Core::Hashable
18763
+
18764
+ def initialize(**args)
18765
+ update!(**args)
18766
+ end
18767
+
18768
+ # Update properties of this object
18769
+ def update!(**args)
18770
+ end
18771
+ end
18772
+
17618
18773
  # The idle shutdown configuration of NotebookRuntimeTemplate, which contains the
17619
18774
  # idle_timeout as required field.
17620
18775
  class GoogleCloudAiplatformV1NotebookIdleShutdownConfig
@@ -20506,6 +21661,52 @@ module Google
20506
21661
  end
20507
21662
  end
20508
21663
 
21664
+ # Request message for ReasoningEngineExecutionService.Query.
21665
+ class GoogleCloudAiplatformV1QueryReasoningEngineRequest
21666
+ include Google::Apis::Core::Hashable
21667
+
21668
+ # Optional. Class method to be used for the query. It is optional and defaults
21669
+ # to "query" if unspecified.
21670
+ # Corresponds to the JSON property `classMethod`
21671
+ # @return [String]
21672
+ attr_accessor :class_method
21673
+
21674
+ # Optional. Input content provided by users in JSON object format. Examples
21675
+ # include text query, function calling parameters, media bytes, etc.
21676
+ # Corresponds to the JSON property `input`
21677
+ # @return [Hash<String,Object>]
21678
+ attr_accessor :input
21679
+
21680
+ def initialize(**args)
21681
+ update!(**args)
21682
+ end
21683
+
21684
+ # Update properties of this object
21685
+ def update!(**args)
21686
+ @class_method = args[:class_method] if args.key?(:class_method)
21687
+ @input = args[:input] if args.key?(:input)
21688
+ end
21689
+ end
21690
+
21691
+ # Response message for ReasoningEngineExecutionService.Query
21692
+ class GoogleCloudAiplatformV1QueryReasoningEngineResponse
21693
+ include Google::Apis::Core::Hashable
21694
+
21695
+ # Response provided by users in JSON object format.
21696
+ # Corresponds to the JSON property `output`
21697
+ # @return [Object]
21698
+ attr_accessor :output
21699
+
21700
+ def initialize(**args)
21701
+ update!(**args)
21702
+ end
21703
+
21704
+ # Update properties of this object
21705
+ def update!(**args)
21706
+ @output = args[:output] if args.key?(:output)
21707
+ end
21708
+ end
21709
+
20509
21710
  # Input for question answering correctness metric.
20510
21711
  class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput
20511
21712
  include Google::Apis::Core::Hashable
@@ -20986,6 +22187,490 @@ module Google
20986
22187
  end
20987
22188
  end
20988
22189
 
22190
+ # Relevant contexts for one query.
22191
+ class GoogleCloudAiplatformV1RagContexts
22192
+ include Google::Apis::Core::Hashable
22193
+
22194
+ # All its contexts.
22195
+ # Corresponds to the JSON property `contexts`
22196
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagContextsContext>]
22197
+ attr_accessor :contexts
22198
+
22199
+ def initialize(**args)
22200
+ update!(**args)
22201
+ end
22202
+
22203
+ # Update properties of this object
22204
+ def update!(**args)
22205
+ @contexts = args[:contexts] if args.key?(:contexts)
22206
+ end
22207
+ end
22208
+
22209
+ # A context of the query.
22210
+ class GoogleCloudAiplatformV1RagContextsContext
22211
+ include Google::Apis::Core::Hashable
22212
+
22213
+ # According to the underlying Vector DB and the selected metric type, the score
22214
+ # can be either the distance or the similarity between the query and the context
22215
+ # and its range depends on the metric type. For example, if the metric type is
22216
+ # COSINE_DISTANCE, it represents the distance between the query and the context.
22217
+ # The larger the distance, the less relevant the context is to the query. The
22218
+ # range is [0, 2], while 0 means the most relevant and 2 means the least
22219
+ # relevant.
22220
+ # Corresponds to the JSON property `score`
22221
+ # @return [Float]
22222
+ attr_accessor :score
22223
+
22224
+ # The file display name.
22225
+ # Corresponds to the JSON property `sourceDisplayName`
22226
+ # @return [String]
22227
+ attr_accessor :source_display_name
22228
+
22229
+ # If the file is imported from Cloud Storage or Google Drive, source_uri will be
22230
+ # original file URI in Cloud Storage or Google Drive; if file is uploaded,
22231
+ # source_uri will be file display name.
22232
+ # Corresponds to the JSON property `sourceUri`
22233
+ # @return [String]
22234
+ attr_accessor :source_uri
22235
+
22236
+ # The text chunk.
22237
+ # Corresponds to the JSON property `text`
22238
+ # @return [String]
22239
+ attr_accessor :text
22240
+
22241
+ def initialize(**args)
22242
+ update!(**args)
22243
+ end
22244
+
22245
+ # Update properties of this object
22246
+ def update!(**args)
22247
+ @score = args[:score] if args.key?(:score)
22248
+ @source_display_name = args[:source_display_name] if args.key?(:source_display_name)
22249
+ @source_uri = args[:source_uri] if args.key?(:source_uri)
22250
+ @text = args[:text] if args.key?(:text)
22251
+ end
22252
+ end
22253
+
22254
+ # A RagCorpus is a RagFile container and a project can have multiple RagCorpora.
22255
+ class GoogleCloudAiplatformV1RagCorpus
22256
+ include Google::Apis::Core::Hashable
22257
+
22258
+ # RagCorpus status.
22259
+ # Corresponds to the JSON property `corpusStatus`
22260
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorpusStatus]
22261
+ attr_accessor :corpus_status
22262
+
22263
+ # Output only. Timestamp when this RagCorpus was created.
22264
+ # Corresponds to the JSON property `createTime`
22265
+ # @return [String]
22266
+ attr_accessor :create_time
22267
+
22268
+ # Optional. The description of the RagCorpus.
22269
+ # Corresponds to the JSON property `description`
22270
+ # @return [String]
22271
+ attr_accessor :description
22272
+
22273
+ # Required. The display name of the RagCorpus. The name can be up to 128
22274
+ # characters long and can consist of any UTF-8 characters.
22275
+ # Corresponds to the JSON property `displayName`
22276
+ # @return [String]
22277
+ attr_accessor :display_name
22278
+
22279
+ # Output only. The resource name of the RagCorpus.
22280
+ # Corresponds to the JSON property `name`
22281
+ # @return [String]
22282
+ attr_accessor :name
22283
+
22284
+ # Output only. Timestamp when this RagCorpus was last updated.
22285
+ # Corresponds to the JSON property `updateTime`
22286
+ # @return [String]
22287
+ attr_accessor :update_time
22288
+
22289
+ # Config for the Vector DB to use for RAG.
22290
+ # Corresponds to the JSON property `vectorDbConfig`
22291
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfig]
22292
+ attr_accessor :vector_db_config
22293
+
22294
+ def initialize(**args)
22295
+ update!(**args)
22296
+ end
22297
+
22298
+ # Update properties of this object
22299
+ def update!(**args)
22300
+ @corpus_status = args[:corpus_status] if args.key?(:corpus_status)
22301
+ @create_time = args[:create_time] if args.key?(:create_time)
22302
+ @description = args[:description] if args.key?(:description)
22303
+ @display_name = args[:display_name] if args.key?(:display_name)
22304
+ @name = args[:name] if args.key?(:name)
22305
+ @update_time = args[:update_time] if args.key?(:update_time)
22306
+ @vector_db_config = args[:vector_db_config] if args.key?(:vector_db_config)
22307
+ end
22308
+ end
22309
+
22310
+ # Config for the embedding model to use for RAG.
22311
+ class GoogleCloudAiplatformV1RagEmbeddingModelConfig
22312
+ include Google::Apis::Core::Hashable
22313
+
22314
+ # Config representing a model hosted on Vertex Prediction Endpoint.
22315
+ # Corresponds to the JSON property `vertexPredictionEndpoint`
22316
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint]
22317
+ attr_accessor :vertex_prediction_endpoint
22318
+
22319
+ def initialize(**args)
22320
+ update!(**args)
22321
+ end
22322
+
22323
+ # Update properties of this object
22324
+ def update!(**args)
22325
+ @vertex_prediction_endpoint = args[:vertex_prediction_endpoint] if args.key?(:vertex_prediction_endpoint)
22326
+ end
22327
+ end
22328
+
22329
+ # Config representing a model hosted on Vertex Prediction Endpoint.
22330
+ class GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint
22331
+ include Google::Apis::Core::Hashable
22332
+
22333
+ # Required. The endpoint resource name. Format: `projects/`project`/locations/`
22334
+ # location`/publishers/`publisher`/models/`model`` or `projects/`project`/
22335
+ # locations/`location`/endpoints/`endpoint``
22336
+ # Corresponds to the JSON property `endpoint`
22337
+ # @return [String]
22338
+ attr_accessor :endpoint
22339
+
22340
+ # Output only. The resource name of the model that is deployed on the endpoint.
22341
+ # Present only when the endpoint is not a publisher model. Pattern: `projects/`
22342
+ # project`/locations/`location`/models/`model``
22343
+ # Corresponds to the JSON property `model`
22344
+ # @return [String]
22345
+ attr_accessor :model
22346
+
22347
+ # Output only. Version ID of the model that is deployed on the endpoint. Present
22348
+ # only when the endpoint is not a publisher model.
22349
+ # Corresponds to the JSON property `modelVersionId`
22350
+ # @return [String]
22351
+ attr_accessor :model_version_id
22352
+
22353
+ def initialize(**args)
22354
+ update!(**args)
22355
+ end
22356
+
22357
+ # Update properties of this object
22358
+ def update!(**args)
22359
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
22360
+ @model = args[:model] if args.key?(:model)
22361
+ @model_version_id = args[:model_version_id] if args.key?(:model_version_id)
22362
+ end
22363
+ end
22364
+
22365
+ # A RagFile contains user data for chunking, embedding and indexing.
22366
+ class GoogleCloudAiplatformV1RagFile
22367
+ include Google::Apis::Core::Hashable
22368
+
22369
+ # Output only. Timestamp when this RagFile was created.
22370
+ # Corresponds to the JSON property `createTime`
22371
+ # @return [String]
22372
+ attr_accessor :create_time
22373
+
22374
+ # Optional. The description of the RagFile.
22375
+ # Corresponds to the JSON property `description`
22376
+ # @return [String]
22377
+ attr_accessor :description
22378
+
22379
+ # The input content is encapsulated and uploaded in the request.
22380
+ # Corresponds to the JSON property `directUploadSource`
22381
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DirectUploadSource]
22382
+ attr_accessor :direct_upload_source
22383
+
22384
+ # Required. The display name of the RagFile. The name can be up to 128
22385
+ # characters long and can consist of any UTF-8 characters.
22386
+ # Corresponds to the JSON property `displayName`
22387
+ # @return [String]
22388
+ attr_accessor :display_name
22389
+
22390
+ # RagFile status.
22391
+ # Corresponds to the JSON property `fileStatus`
22392
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileStatus]
22393
+ attr_accessor :file_status
22394
+
22395
+ # The Google Cloud Storage location for the input content.
22396
+ # Corresponds to the JSON property `gcsSource`
22397
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsSource]
22398
+ attr_accessor :gcs_source
22399
+
22400
+ # The Google Drive location for the input content.
22401
+ # Corresponds to the JSON property `googleDriveSource`
22402
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleDriveSource]
22403
+ attr_accessor :google_drive_source
22404
+
22405
+ # The Jira source for the ImportRagFilesRequest.
22406
+ # Corresponds to the JSON property `jiraSource`
22407
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1JiraSource]
22408
+ attr_accessor :jira_source
22409
+
22410
+ # Output only. The resource name of the RagFile.
22411
+ # Corresponds to the JSON property `name`
22412
+ # @return [String]
22413
+ attr_accessor :name
22414
+
22415
+ # The Slack source for the ImportRagFilesRequest.
22416
+ # Corresponds to the JSON property `slackSource`
22417
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSource]
22418
+ attr_accessor :slack_source
22419
+
22420
+ # Output only. Timestamp when this RagFile was last updated.
22421
+ # Corresponds to the JSON property `updateTime`
22422
+ # @return [String]
22423
+ attr_accessor :update_time
22424
+
22425
+ def initialize(**args)
22426
+ update!(**args)
22427
+ end
22428
+
22429
+ # Update properties of this object
22430
+ def update!(**args)
22431
+ @create_time = args[:create_time] if args.key?(:create_time)
22432
+ @description = args[:description] if args.key?(:description)
22433
+ @direct_upload_source = args[:direct_upload_source] if args.key?(:direct_upload_source)
22434
+ @display_name = args[:display_name] if args.key?(:display_name)
22435
+ @file_status = args[:file_status] if args.key?(:file_status)
22436
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
22437
+ @google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
22438
+ @jira_source = args[:jira_source] if args.key?(:jira_source)
22439
+ @name = args[:name] if args.key?(:name)
22440
+ @slack_source = args[:slack_source] if args.key?(:slack_source)
22441
+ @update_time = args[:update_time] if args.key?(:update_time)
22442
+ end
22443
+ end
22444
+
22445
+ # Specifies the size and overlap of chunks for RagFiles.
22446
+ class GoogleCloudAiplatformV1RagFileChunkingConfig
22447
+ include Google::Apis::Core::Hashable
22448
+
22449
+ # Specifies the fixed length chunking config.
22450
+ # Corresponds to the JSON property `fixedLengthChunking`
22451
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking]
22452
+ attr_accessor :fixed_length_chunking
22453
+
22454
+ def initialize(**args)
22455
+ update!(**args)
22456
+ end
22457
+
22458
+ # Update properties of this object
22459
+ def update!(**args)
22460
+ @fixed_length_chunking = args[:fixed_length_chunking] if args.key?(:fixed_length_chunking)
22461
+ end
22462
+ end
22463
+
22464
+ # Specifies the fixed length chunking config.
22465
+ class GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking
22466
+ include Google::Apis::Core::Hashable
22467
+
22468
+ # The overlap between chunks.
22469
+ # Corresponds to the JSON property `chunkOverlap`
22470
+ # @return [Fixnum]
22471
+ attr_accessor :chunk_overlap
22472
+
22473
+ # The size of the chunks.
22474
+ # Corresponds to the JSON property `chunkSize`
22475
+ # @return [Fixnum]
22476
+ attr_accessor :chunk_size
22477
+
22478
+ def initialize(**args)
22479
+ update!(**args)
22480
+ end
22481
+
22482
+ # Update properties of this object
22483
+ def update!(**args)
22484
+ @chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap)
22485
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
22486
+ end
22487
+ end
22488
+
22489
+ # Specifies the transformation config for RagFiles.
22490
+ class GoogleCloudAiplatformV1RagFileTransformationConfig
22491
+ include Google::Apis::Core::Hashable
22492
+
22493
+ # Specifies the size and overlap of chunks for RagFiles.
22494
+ # Corresponds to the JSON property `ragFileChunkingConfig`
22495
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileChunkingConfig]
22496
+ attr_accessor :rag_file_chunking_config
22497
+
22498
+ def initialize(**args)
22499
+ update!(**args)
22500
+ end
22501
+
22502
+ # Update properties of this object
22503
+ def update!(**args)
22504
+ @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
22505
+ end
22506
+ end
22507
+
22508
+ # A query to retrieve relevant contexts.
22509
+ class GoogleCloudAiplatformV1RagQuery
22510
+ include Google::Apis::Core::Hashable
22511
+
22512
+ # Specifies the context retrieval config.
22513
+ # Corresponds to the JSON property `ragRetrievalConfig`
22514
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig]
22515
+ attr_accessor :rag_retrieval_config
22516
+
22517
+ # Optional. The query in text format to get relevant contexts.
22518
+ # Corresponds to the JSON property `text`
22519
+ # @return [String]
22520
+ attr_accessor :text
22521
+
22522
+ def initialize(**args)
22523
+ update!(**args)
22524
+ end
22525
+
22526
+ # Update properties of this object
22527
+ def update!(**args)
22528
+ @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config)
22529
+ @text = args[:text] if args.key?(:text)
22530
+ end
22531
+ end
22532
+
22533
+ # Specifies the context retrieval config.
22534
+ class GoogleCloudAiplatformV1RagRetrievalConfig
22535
+ include Google::Apis::Core::Hashable
22536
+
22537
+ # Config for filters.
22538
+ # Corresponds to the JSON property `filter`
22539
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter]
22540
+ attr_accessor :filter
22541
+
22542
+ # Optional. The number of contexts to retrieve.
22543
+ # Corresponds to the JSON property `topK`
22544
+ # @return [Fixnum]
22545
+ attr_accessor :top_k
22546
+
22547
+ def initialize(**args)
22548
+ update!(**args)
22549
+ end
22550
+
22551
+ # Update properties of this object
22552
+ def update!(**args)
22553
+ @filter = args[:filter] if args.key?(:filter)
22554
+ @top_k = args[:top_k] if args.key?(:top_k)
22555
+ end
22556
+ end
22557
+
22558
+ # Config for filters.
22559
+ class GoogleCloudAiplatformV1RagRetrievalConfigFilter
22560
+ include Google::Apis::Core::Hashable
22561
+
22562
+ # Optional. String for metadata filtering.
22563
+ # Corresponds to the JSON property `metadataFilter`
22564
+ # @return [String]
22565
+ attr_accessor :metadata_filter
22566
+
22567
+ # Optional. Only returns contexts with vector distance smaller than the
22568
+ # threshold.
22569
+ # Corresponds to the JSON property `vectorDistanceThreshold`
22570
+ # @return [Float]
22571
+ attr_accessor :vector_distance_threshold
22572
+
22573
+ # Optional. Only returns contexts with vector similarity larger than the
22574
+ # threshold.
22575
+ # Corresponds to the JSON property `vectorSimilarityThreshold`
22576
+ # @return [Float]
22577
+ attr_accessor :vector_similarity_threshold
22578
+
22579
+ def initialize(**args)
22580
+ update!(**args)
22581
+ end
22582
+
22583
+ # Update properties of this object
22584
+ def update!(**args)
22585
+ @metadata_filter = args[:metadata_filter] if args.key?(:metadata_filter)
22586
+ @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
22587
+ @vector_similarity_threshold = args[:vector_similarity_threshold] if args.key?(:vector_similarity_threshold)
22588
+ end
22589
+ end
22590
+
22591
+ # Config for the Vector DB to use for RAG.
22592
+ class GoogleCloudAiplatformV1RagVectorDbConfig
22593
+ include Google::Apis::Core::Hashable
22594
+
22595
+ # The generic reusable api auth config.
22596
+ # Corresponds to the JSON property `apiAuth`
22597
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth]
22598
+ attr_accessor :api_auth
22599
+
22600
+ # The config for the Pinecone.
22601
+ # Corresponds to the JSON property `pinecone`
22602
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigPinecone]
22603
+ attr_accessor :pinecone
22604
+
22605
+ # Config for the embedding model to use for RAG.
22606
+ # Corresponds to the JSON property `ragEmbeddingModelConfig`
22607
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagEmbeddingModelConfig]
22608
+ attr_accessor :rag_embedding_model_config
22609
+
22610
+ # The config for the Vertex Vector Search.
22611
+ # Corresponds to the JSON property `vertexVectorSearch`
22612
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch]
22613
+ attr_accessor :vertex_vector_search
22614
+
22615
+ def initialize(**args)
22616
+ update!(**args)
22617
+ end
22618
+
22619
+ # Update properties of this object
22620
+ def update!(**args)
22621
+ @api_auth = args[:api_auth] if args.key?(:api_auth)
22622
+ @pinecone = args[:pinecone] if args.key?(:pinecone)
22623
+ @rag_embedding_model_config = args[:rag_embedding_model_config] if args.key?(:rag_embedding_model_config)
22624
+ @vertex_vector_search = args[:vertex_vector_search] if args.key?(:vertex_vector_search)
22625
+ end
22626
+ end
22627
+
22628
+ # The config for the Pinecone.
22629
+ class GoogleCloudAiplatformV1RagVectorDbConfigPinecone
22630
+ include Google::Apis::Core::Hashable
22631
+
22632
+ # Pinecone index name. This value cannot be changed after it's set.
22633
+ # Corresponds to the JSON property `indexName`
22634
+ # @return [String]
22635
+ attr_accessor :index_name
22636
+
22637
+ def initialize(**args)
22638
+ update!(**args)
22639
+ end
22640
+
22641
+ # Update properties of this object
22642
+ def update!(**args)
22643
+ @index_name = args[:index_name] if args.key?(:index_name)
22644
+ end
22645
+ end
22646
+
22647
+ # The config for the Vertex Vector Search.
22648
+ class GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch
22649
+ include Google::Apis::Core::Hashable
22650
+
22651
+ # The resource name of the Index. Format: `projects/`project`/locations/`
22652
+ # location`/indexes/`index``
22653
+ # Corresponds to the JSON property `index`
22654
+ # @return [String]
22655
+ attr_accessor :index
22656
+
22657
+ # The resource name of the Index Endpoint. Format: `projects/`project`/locations/
22658
+ # `location`/indexEndpoints/`index_endpoint``
22659
+ # Corresponds to the JSON property `indexEndpoint`
22660
+ # @return [String]
22661
+ attr_accessor :index_endpoint
22662
+
22663
+ def initialize(**args)
22664
+ update!(**args)
22665
+ end
22666
+
22667
+ # Update properties of this object
22668
+ def update!(**args)
22669
+ @index = args[:index] if args.key?(:index)
22670
+ @index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
22671
+ end
22672
+ end
22673
+
20989
22674
  # Request message for PredictionService.RawPredict.
20990
22675
  class GoogleCloudAiplatformV1RawPredictRequest
20991
22676
  include Google::Apis::Core::Hashable
@@ -21434,6 +23119,127 @@ module Google
21434
23119
  end
21435
23120
  end
21436
23121
 
23122
+ # ReasoningEngine provides a customizable runtime for models to determine which
23123
+ # actions to take and in which order.
23124
+ class GoogleCloudAiplatformV1ReasoningEngine
23125
+ include Google::Apis::Core::Hashable
23126
+
23127
+ # Output only. Timestamp when this ReasoningEngine was created.
23128
+ # Corresponds to the JSON property `createTime`
23129
+ # @return [String]
23130
+ attr_accessor :create_time
23131
+
23132
+ # Optional. The description of the ReasoningEngine.
23133
+ # Corresponds to the JSON property `description`
23134
+ # @return [String]
23135
+ attr_accessor :description
23136
+
23137
+ # Required. The display name of the ReasoningEngine.
23138
+ # Corresponds to the JSON property `displayName`
23139
+ # @return [String]
23140
+ attr_accessor :display_name
23141
+
23142
+ # Optional. Used to perform consistent read-modify-write updates. If not set, a
23143
+ # blind "overwrite" update happens.
23144
+ # Corresponds to the JSON property `etag`
23145
+ # @return [String]
23146
+ attr_accessor :etag
23147
+
23148
+ # Identifier. The resource name of the ReasoningEngine.
23149
+ # Corresponds to the JSON property `name`
23150
+ # @return [String]
23151
+ attr_accessor :name
23152
+
23153
+ # ReasoningEngine configurations
23154
+ # Corresponds to the JSON property `spec`
23155
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpec]
23156
+ attr_accessor :spec
23157
+
23158
+ # Output only. Timestamp when this ReasoningEngine was most recently updated.
23159
+ # Corresponds to the JSON property `updateTime`
23160
+ # @return [String]
23161
+ attr_accessor :update_time
23162
+
23163
+ def initialize(**args)
23164
+ update!(**args)
23165
+ end
23166
+
23167
+ # Update properties of this object
23168
+ def update!(**args)
23169
+ @create_time = args[:create_time] if args.key?(:create_time)
23170
+ @description = args[:description] if args.key?(:description)
23171
+ @display_name = args[:display_name] if args.key?(:display_name)
23172
+ @etag = args[:etag] if args.key?(:etag)
23173
+ @name = args[:name] if args.key?(:name)
23174
+ @spec = args[:spec] if args.key?(:spec)
23175
+ @update_time = args[:update_time] if args.key?(:update_time)
23176
+ end
23177
+ end
23178
+
23179
+ # ReasoningEngine configurations
23180
+ class GoogleCloudAiplatformV1ReasoningEngineSpec
23181
+ include Google::Apis::Core::Hashable
23182
+
23183
+ # Optional. Declarations for object class methods in OpenAPI specification
23184
+ # format.
23185
+ # Corresponds to the JSON property `classMethods`
23186
+ # @return [Array<Hash<String,Object>>]
23187
+ attr_accessor :class_methods
23188
+
23189
+ # User provided package spec like pickled object and package requirements.
23190
+ # Corresponds to the JSON property `packageSpec`
23191
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec]
23192
+ attr_accessor :package_spec
23193
+
23194
+ def initialize(**args)
23195
+ update!(**args)
23196
+ end
23197
+
23198
+ # Update properties of this object
23199
+ def update!(**args)
23200
+ @class_methods = args[:class_methods] if args.key?(:class_methods)
23201
+ @package_spec = args[:package_spec] if args.key?(:package_spec)
23202
+ end
23203
+ end
23204
+
23205
+ # User provided package spec like pickled object and package requirements.
23206
+ class GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec
23207
+ include Google::Apis::Core::Hashable
23208
+
23209
+ # Optional. The Cloud Storage URI of the dependency files in tar.gz format.
23210
+ # Corresponds to the JSON property `dependencyFilesGcsUri`
23211
+ # @return [String]
23212
+ attr_accessor :dependency_files_gcs_uri
23213
+
23214
+ # Optional. The Cloud Storage URI of the pickled python object.
23215
+ # Corresponds to the JSON property `pickleObjectGcsUri`
23216
+ # @return [String]
23217
+ attr_accessor :pickle_object_gcs_uri
23218
+
23219
+ # Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. If not
23220
+ # specified, default value is 3.10.
23221
+ # Corresponds to the JSON property `pythonVersion`
23222
+ # @return [String]
23223
+ attr_accessor :python_version
23224
+
23225
+ # Optional. The Cloud Storage URI of the `requirements.txt` file
23226
+ # Corresponds to the JSON property `requirementsGcsUri`
23227
+ # @return [String]
23228
+ attr_accessor :requirements_gcs_uri
23229
+
23230
+ def initialize(**args)
23231
+ update!(**args)
23232
+ end
23233
+
23234
+ # Update properties of this object
23235
+ def update!(**args)
23236
+ @dependency_files_gcs_uri = args[:dependency_files_gcs_uri] if args.key?(:dependency_files_gcs_uri)
23237
+ @pickle_object_gcs_uri = args[:pickle_object_gcs_uri] if args.key?(:pickle_object_gcs_uri)
23238
+ @python_version = args[:python_version] if args.key?(:python_version)
23239
+ @requirements_gcs_uri = args[:requirements_gcs_uri] if args.key?(:requirements_gcs_uri)
23240
+ end
23241
+ end
23242
+
21437
23243
  # Request message for GenAiTuningService.RebaseTunedModel.
21438
23244
  class GoogleCloudAiplatformV1RebaseTunedModelRequest
21439
23245
  include Google::Apis::Core::Hashable
@@ -21879,6 +23685,104 @@ module Google
21879
23685
  end
21880
23686
  end
21881
23687
 
23688
+ # Request message for VertexRagService.RetrieveContexts.
23689
+ class GoogleCloudAiplatformV1RetrieveContextsRequest
23690
+ include Google::Apis::Core::Hashable
23691
+
23692
+ # A query to retrieve relevant contexts.
23693
+ # Corresponds to the JSON property `query`
23694
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagQuery]
23695
+ attr_accessor :query
23696
+
23697
+ # The data source for Vertex RagStore.
23698
+ # Corresponds to the JSON property `vertexRagStore`
23699
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore]
23700
+ attr_accessor :vertex_rag_store
23701
+
23702
+ def initialize(**args)
23703
+ update!(**args)
23704
+ end
23705
+
23706
+ # Update properties of this object
23707
+ def update!(**args)
23708
+ @query = args[:query] if args.key?(:query)
23709
+ @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
23710
+ end
23711
+ end
23712
+
23713
+ # The data source for Vertex RagStore.
23714
+ class GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore
23715
+ include Google::Apis::Core::Hashable
23716
+
23717
+ # Optional. The representation of the rag source. It can be used to specify
23718
+ # corpus only or ragfiles. Currently only support one corpus or multiple files
23719
+ # from one corpus. In the future we may open up multiple corpora support.
23720
+ # Corresponds to the JSON property `ragResources`
23721
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource>]
23722
+ attr_accessor :rag_resources
23723
+
23724
+ # Optional. Only return contexts with vector distance smaller than the threshold.
23725
+ # Corresponds to the JSON property `vectorDistanceThreshold`
23726
+ # @return [Float]
23727
+ attr_accessor :vector_distance_threshold
23728
+
23729
+ def initialize(**args)
23730
+ update!(**args)
23731
+ end
23732
+
23733
+ # Update properties of this object
23734
+ def update!(**args)
23735
+ @rag_resources = args[:rag_resources] if args.key?(:rag_resources)
23736
+ @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
23737
+ end
23738
+ end
23739
+
23740
+ # The definition of the Rag resource.
23741
+ class GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource
23742
+ include Google::Apis::Core::Hashable
23743
+
23744
+ # Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
23745
+ # location`/ragCorpora/`rag_corpus``
23746
+ # Corresponds to the JSON property `ragCorpus`
23747
+ # @return [String]
23748
+ attr_accessor :rag_corpus
23749
+
23750
+ # Optional. rag_file_id. The files should be in the same rag_corpus set in
23751
+ # rag_corpus field.
23752
+ # Corresponds to the JSON property `ragFileIds`
23753
+ # @return [Array<String>]
23754
+ attr_accessor :rag_file_ids
23755
+
23756
+ def initialize(**args)
23757
+ update!(**args)
23758
+ end
23759
+
23760
+ # Update properties of this object
23761
+ def update!(**args)
23762
+ @rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
23763
+ @rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
23764
+ end
23765
+ end
23766
+
23767
+ # Response message for VertexRagService.RetrieveContexts.
23768
+ class GoogleCloudAiplatformV1RetrieveContextsResponse
23769
+ include Google::Apis::Core::Hashable
23770
+
23771
+ # Relevant contexts for one query.
23772
+ # Corresponds to the JSON property `contexts`
23773
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagContexts]
23774
+ attr_accessor :contexts
23775
+
23776
+ def initialize(**args)
23777
+ update!(**args)
23778
+ end
23779
+
23780
+ # Update properties of this object
23781
+ def update!(**args)
23782
+ @contexts = args[:contexts] if args.key?(:contexts)
23783
+ end
23784
+ end
23785
+
21882
23786
  # Input for rouge metric.
21883
23787
  class GoogleCloudAiplatformV1RougeInput
21884
23788
  include Google::Apis::Core::Hashable
@@ -22572,9 +24476,9 @@ module Google
22572
24476
  # @return [String]
22573
24477
  attr_accessor :max_wait_duration
22574
24478
 
22575
- # Restarts the entire CustomJob if a worker gets restarted. This feature can be
22576
- # used by distributed training jobs that are not resilient to workers leaving
22577
- # and joining a job.
24479
+ # Optional. Restarts the entire CustomJob if a worker gets restarted. This
24480
+ # feature can be used by distributed training jobs that are not resilient to
24481
+ # workers leaving and joining a job.
22578
24482
  # Corresponds to the JSON property `restartJobOnWorkerRestart`
22579
24483
  # @return [Boolean]
22580
24484
  attr_accessor :restart_job_on_worker_restart
@@ -22585,7 +24489,7 @@ module Google
22585
24489
  # @return [String]
22586
24490
  attr_accessor :strategy
22587
24491
 
22588
- # The maximum job running time. The default is 7 days.
24492
+ # Optional. The maximum job running time. The default is 7 days.
22589
24493
  # Corresponds to the JSON property `timeout`
22590
24494
  # @return [String]
22591
24495
  attr_accessor :timeout
@@ -29806,6 +31710,81 @@ module Google
29806
31710
  end
29807
31711
  end
29808
31712
 
31713
+ # The Slack source for the ImportRagFilesRequest.
31714
+ class GoogleCloudAiplatformV1SlackSource
31715
+ include Google::Apis::Core::Hashable
31716
+
31717
+ # Required. The Slack channels.
31718
+ # Corresponds to the JSON property `channels`
31719
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSourceSlackChannels>]
31720
+ attr_accessor :channels
31721
+
31722
+ def initialize(**args)
31723
+ update!(**args)
31724
+ end
31725
+
31726
+ # Update properties of this object
31727
+ def update!(**args)
31728
+ @channels = args[:channels] if args.key?(:channels)
31729
+ end
31730
+ end
31731
+
31732
+ # SlackChannels contains the Slack channels and corresponding access token.
31733
+ class GoogleCloudAiplatformV1SlackSourceSlackChannels
31734
+ include Google::Apis::Core::Hashable
31735
+
31736
+ # The API secret.
31737
+ # Corresponds to the JSON property `apiKeyConfig`
31738
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuthApiKeyConfig]
31739
+ attr_accessor :api_key_config
31740
+
31741
+ # Required. The Slack channel IDs.
31742
+ # Corresponds to the JSON property `channels`
31743
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel>]
31744
+ attr_accessor :channels
31745
+
31746
+ def initialize(**args)
31747
+ update!(**args)
31748
+ end
31749
+
31750
+ # Update properties of this object
31751
+ def update!(**args)
31752
+ @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
31753
+ @channels = args[:channels] if args.key?(:channels)
31754
+ end
31755
+ end
31756
+
31757
+ # SlackChannel contains the Slack channel ID and the time range to import.
31758
+ class GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel
31759
+ include Google::Apis::Core::Hashable
31760
+
31761
+ # Required. The Slack channel ID.
31762
+ # Corresponds to the JSON property `channelId`
31763
+ # @return [String]
31764
+ attr_accessor :channel_id
31765
+
31766
+ # Optional. The ending timestamp for messages to import.
31767
+ # Corresponds to the JSON property `endTime`
31768
+ # @return [String]
31769
+ attr_accessor :end_time
31770
+
31771
+ # Optional. The starting timestamp for messages to import.
31772
+ # Corresponds to the JSON property `startTime`
31773
+ # @return [String]
31774
+ attr_accessor :start_time
31775
+
31776
+ def initialize(**args)
31777
+ update!(**args)
31778
+ end
31779
+
31780
+ # Update properties of this object
31781
+ def update!(**args)
31782
+ @channel_id = args[:channel_id] if args.key?(:channel_id)
31783
+ @end_time = args[:end_time] if args.key?(:end_time)
31784
+ @start_time = args[:start_time] if args.key?(:start_time)
31785
+ end
31786
+ end
31787
+
29809
31788
  # Config for SmoothGrad approximation of gradients. When enabled, the gradients
29810
31789
  # are approximated by averaging the gradients from noisy samples in the vicinity
29811
31790
  # of the inputs. Adding noise can help improve the computed gradients. Refer to
@@ -30110,7 +32089,7 @@ module Google
30110
32089
  end
30111
32090
 
30112
32091
  # Request message for FeaturestoreOnlineServingService.
30113
- # StreamingFeatureValuesRead.
32092
+ # StreamingReadFeatureValues.
30114
32093
  class GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest
30115
32094
  include Google::Apis::Core::Hashable
30116
32095
 
@@ -33346,6 +35325,15 @@ module Google
33346
35325
  # @return [String]
33347
35326
  attr_accessor :name
33348
35327
 
35328
+ # The service account that the tuningJob workload runs as. If not specified, the
35329
+ # Vertex AI Secure Fine-Tuned Service Agent in the project will be used. See
35330
+ # https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-
35331
+ # service-agent Users starting the pipeline must have the `iam.serviceAccounts.
35332
+ # actAs` permission on this service account.
35333
+ # Corresponds to the JSON property `serviceAccount`
35334
+ # @return [String]
35335
+ attr_accessor :service_account
35336
+
33349
35337
  # Output only. Time when the TuningJob for the first time entered the `
33350
35338
  # JOB_STATE_RUNNING` state.
33351
35339
  # Corresponds to the JSON property `startTime`
@@ -33399,6 +35387,7 @@ module Google
33399
35387
  @experiment = args[:experiment] if args.key?(:experiment)
33400
35388
  @labels = args[:labels] if args.key?(:labels)
33401
35389
  @name = args[:name] if args.key?(:name)
35390
+ @service_account = args[:service_account] if args.key?(:service_account)
33402
35391
  @start_time = args[:start_time] if args.key?(:start_time)
33403
35392
  @state = args[:state] if args.key?(:state)
33404
35393
  @supervised_tuning_spec = args[:supervised_tuning_spec] if args.key?(:supervised_tuning_spec)
@@ -33578,6 +35567,26 @@ module Google
33578
35567
  end
33579
35568
  end
33580
35569
 
35570
+ # Request message for EndpointService.UpdateEndpointLongRunning.
35571
+ class GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest
35572
+ include Google::Apis::Core::Hashable
35573
+
35574
+ # Models are deployed into it, and afterwards Endpoint is called to obtain
35575
+ # predictions and explanations.
35576
+ # Corresponds to the JSON property `endpoint`
35577
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Endpoint]
35578
+ attr_accessor :endpoint
35579
+
35580
+ def initialize(**args)
35581
+ update!(**args)
35582
+ end
35583
+
35584
+ # Update properties of this object
35585
+ def update!(**args)
35586
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
35587
+ end
35588
+ end
35589
+
33581
35590
  # Runtime operation information for ModelService.UpdateExplanationDataset.
33582
35591
  class GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata
33583
35592
  include Google::Apis::Core::Hashable
@@ -33972,6 +35981,80 @@ module Google
33972
35981
  end
33973
35982
  end
33974
35983
 
35984
+ # Config for uploading RagFile.
35985
+ class GoogleCloudAiplatformV1UploadRagFileConfig
35986
+ include Google::Apis::Core::Hashable
35987
+
35988
+ # Specifies the transformation config for RagFiles.
35989
+ # Corresponds to the JSON property `ragFileTransformationConfig`
35990
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig]
35991
+ attr_accessor :rag_file_transformation_config
35992
+
35993
+ def initialize(**args)
35994
+ update!(**args)
35995
+ end
35996
+
35997
+ # Update properties of this object
35998
+ def update!(**args)
35999
+ @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
36000
+ end
36001
+ end
36002
+
36003
+ # Request message for VertexRagDataService.UploadRagFile.
36004
+ class GoogleCloudAiplatformV1UploadRagFileRequest
36005
+ include Google::Apis::Core::Hashable
36006
+
36007
+ # A RagFile contains user data for chunking, embedding and indexing.
36008
+ # Corresponds to the JSON property `ragFile`
36009
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile]
36010
+ attr_accessor :rag_file
36011
+
36012
+ # Config for uploading RagFile.
36013
+ # Corresponds to the JSON property `uploadRagFileConfig`
36014
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileConfig]
36015
+ attr_accessor :upload_rag_file_config
36016
+
36017
+ def initialize(**args)
36018
+ update!(**args)
36019
+ end
36020
+
36021
+ # Update properties of this object
36022
+ def update!(**args)
36023
+ @rag_file = args[:rag_file] if args.key?(:rag_file)
36024
+ @upload_rag_file_config = args[:upload_rag_file_config] if args.key?(:upload_rag_file_config)
36025
+ end
36026
+ end
36027
+
36028
+ # Response message for VertexRagDataService.UploadRagFile.
36029
+ class GoogleCloudAiplatformV1UploadRagFileResponse
36030
+ include Google::Apis::Core::Hashable
36031
+
36032
+ # The `Status` type defines a logical error model that is suitable for different
36033
+ # programming environments, including REST APIs and RPC APIs. It is used by [
36034
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
36035
+ # data: error code, error message, and error details. You can find out more
36036
+ # about this error model and how to work with it in the [API Design Guide](https:
36037
+ # //cloud.google.com/apis/design/errors).
36038
+ # Corresponds to the JSON property `error`
36039
+ # @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
36040
+ attr_accessor :error
36041
+
36042
+ # A RagFile contains user data for chunking, embedding and indexing.
36043
+ # Corresponds to the JSON property `ragFile`
36044
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile]
36045
+ attr_accessor :rag_file
36046
+
36047
+ def initialize(**args)
36048
+ update!(**args)
36049
+ end
36050
+
36051
+ # Update properties of this object
36052
+ def update!(**args)
36053
+ @error = args[:error] if args.key?(:error)
36054
+ @rag_file = args[:rag_file] if args.key?(:rag_file)
36055
+ end
36056
+ end
36057
+
33975
36058
  # Request message for IndexService.UpsertDatapoints
33976
36059
  class GoogleCloudAiplatformV1UpsertDatapointsRequest
33977
36060
  include Google::Apis::Core::Hashable
@@ -34107,11 +36190,6 @@ module Google
34107
36190
  class GoogleCloudAiplatformV1VertexRagStore
34108
36191
  include Google::Apis::Core::Hashable
34109
36192
 
34110
- # Optional. Deprecated. Please use rag_resources instead.
34111
- # Corresponds to the JSON property `ragCorpora`
34112
- # @return [Array<String>]
34113
- attr_accessor :rag_corpora
34114
-
34115
36193
  # Optional. The representation of the rag source. It can be used to specify
34116
36194
  # corpus only or ragfiles. Currently only support one corpus or multiple files
34117
36195
  # from one corpus. In the future we may open up multiple corpora support.
@@ -34119,6 +36197,11 @@ module Google
34119
36197
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStoreRagResource>]
34120
36198
  attr_accessor :rag_resources
34121
36199
 
36200
+ # Specifies the context retrieval config.
36201
+ # Corresponds to the JSON property `ragRetrievalConfig`
36202
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig]
36203
+ attr_accessor :rag_retrieval_config
36204
+
34122
36205
  # Optional. Number of top k results to return from the selected corpora.
34123
36206
  # Corresponds to the JSON property `similarityTopK`
34124
36207
  # @return [Fixnum]
@@ -34135,8 +36218,8 @@ module Google
34135
36218
 
34136
36219
  # Update properties of this object
34137
36220
  def update!(**args)
34138
- @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
34139
36221
  @rag_resources = args[:rag_resources] if args.key?(:rag_resources)
36222
+ @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config)
34140
36223
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
34141
36224
  @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
34142
36225
  end