google-apis-aiplatform_v1beta1 0.46.0 → 0.48.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.
@@ -934,6 +934,11 @@ module Google
934
934
  # @return [String]
935
935
  attr_accessor :api_key_secret_version
936
936
 
937
+ # The API key string. Either this or `api_key_secret_version` must be set.
938
+ # Corresponds to the JSON property `apiKeyString`
939
+ # @return [String]
940
+ attr_accessor :api_key_string
941
+
937
942
  def initialize(**args)
938
943
  update!(**args)
939
944
  end
@@ -941,6 +946,7 @@ module Google
941
946
  # Update properties of this object
942
947
  def update!(**args)
943
948
  @api_key_secret_version = args[:api_key_secret_version] if args.key?(:api_key_secret_version)
949
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
944
950
  end
945
951
  end
946
952
 
@@ -3717,8 +3723,9 @@ module Google
3717
3723
  end
3718
3724
  end
3719
3725
 
3720
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
3721
- # the [ExecutableCode].
3726
+ # Result of executing the [ExecutableCode]. Only generated when using the [
3727
+ # CodeExecution] tool, and always follows a `part` containing the [
3728
+ # ExecutableCode].
3722
3729
  class GoogleCloudAiplatformV1beta1CodeExecutionResult
3723
3730
  include Google::Apis::Core::Hashable
3724
3731
 
@@ -3838,6 +3845,34 @@ module Google
3838
3845
  end
3839
3846
  end
3840
3847
 
3848
+ # Colab image of the runtime.
3849
+ class GoogleCloudAiplatformV1beta1ColabImage
3850
+ include Google::Apis::Core::Hashable
3851
+
3852
+ # Output only. A human-readable description of the specified colab image release,
3853
+ # populated by the system. Example: "Python 3.10", "Latest - current Python 3.
3854
+ # 11"
3855
+ # Corresponds to the JSON property `description`
3856
+ # @return [String]
3857
+ attr_accessor :description
3858
+
3859
+ # Optional. The release name of the NotebookRuntime Colab image, e.g. "py310".
3860
+ # If not specified, detault to the latest release.
3861
+ # Corresponds to the JSON property `releaseName`
3862
+ # @return [String]
3863
+ attr_accessor :release_name
3864
+
3865
+ def initialize(**args)
3866
+ update!(**args)
3867
+ end
3868
+
3869
+ # Update properties of this object
3870
+ def update!(**args)
3871
+ @description = args[:description] if args.key?(:description)
3872
+ @release_name = args[:release_name] if args.key?(:release_name)
3873
+ end
3874
+ end
3875
+
3841
3876
  # Input for Comet metric.
3842
3877
  class GoogleCloudAiplatformV1beta1CometInput
3843
3878
  include Google::Apis::Core::Hashable
@@ -9412,8 +9447,9 @@ module Google
9412
9447
  end
9413
9448
 
9414
9449
  # Code generated by the model that is meant to be executed, and the result
9415
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
9416
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
9450
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
9451
+ # the code will be automatically executed, and a corresponding [
9452
+ # CodeExecutionResult] will also be generated.
9417
9453
  class GoogleCloudAiplatformV1beta1ExecutableCode
9418
9454
  include Google::Apis::Core::Hashable
9419
9455
 
@@ -10984,6 +11020,104 @@ module Google
10984
11020
  end
10985
11021
  end
10986
11022
 
11023
+ # Retrieve from data source powered by external API for grounding. The external
11024
+ # API is not owned by Google, but need to follow the pre-defined API spec.
11025
+ class GoogleCloudAiplatformV1beta1ExternalApi
11026
+ include Google::Apis::Core::Hashable
11027
+
11028
+ # The generic reusable api auth config. Deprecated. Please use AuthConfig (
11029
+ # google/cloud/aiplatform/master/auth.proto) instead.
11030
+ # Corresponds to the JSON property `apiAuth`
11031
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ApiAuth]
11032
+ attr_accessor :api_auth
11033
+
11034
+ # The API spec that the external API implements.
11035
+ # Corresponds to the JSON property `apiSpec`
11036
+ # @return [String]
11037
+ attr_accessor :api_spec
11038
+
11039
+ # Auth configuration to run the extension.
11040
+ # Corresponds to the JSON property `authConfig`
11041
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfig]
11042
+ attr_accessor :auth_config
11043
+
11044
+ # The search parameters to use for the ELASTIC_SEARCH spec.
11045
+ # Corresponds to the JSON property `elasticSearchParams`
11046
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams]
11047
+ attr_accessor :elastic_search_params
11048
+
11049
+ # The endpoint of the external API. The system will call the API at this
11050
+ # endpoint to retrieve the data for grounding. Example: https://acme.com:443/
11051
+ # search
11052
+ # Corresponds to the JSON property `endpoint`
11053
+ # @return [String]
11054
+ attr_accessor :endpoint
11055
+
11056
+ # The search parameters to use for SIMPLE_SEARCH spec.
11057
+ # Corresponds to the JSON property `simpleSearchParams`
11058
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExternalApiSimpleSearchParams]
11059
+ attr_accessor :simple_search_params
11060
+
11061
+ def initialize(**args)
11062
+ update!(**args)
11063
+ end
11064
+
11065
+ # Update properties of this object
11066
+ def update!(**args)
11067
+ @api_auth = args[:api_auth] if args.key?(:api_auth)
11068
+ @api_spec = args[:api_spec] if args.key?(:api_spec)
11069
+ @auth_config = args[:auth_config] if args.key?(:auth_config)
11070
+ @elastic_search_params = args[:elastic_search_params] if args.key?(:elastic_search_params)
11071
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
11072
+ @simple_search_params = args[:simple_search_params] if args.key?(:simple_search_params)
11073
+ end
11074
+ end
11075
+
11076
+ # The search parameters to use for the ELASTIC_SEARCH spec.
11077
+ class GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams
11078
+ include Google::Apis::Core::Hashable
11079
+
11080
+ # The ElasticSearch index to use.
11081
+ # Corresponds to the JSON property `index`
11082
+ # @return [String]
11083
+ attr_accessor :index
11084
+
11085
+ # Optional. Number of hits (chunks) to request. When specified, it is passed to
11086
+ # Elasticsearch as the `num_hits` param.
11087
+ # Corresponds to the JSON property `numHits`
11088
+ # @return [Fixnum]
11089
+ attr_accessor :num_hits
11090
+
11091
+ # The ElasticSearch search template to use.
11092
+ # Corresponds to the JSON property `searchTemplate`
11093
+ # @return [String]
11094
+ attr_accessor :search_template
11095
+
11096
+ def initialize(**args)
11097
+ update!(**args)
11098
+ end
11099
+
11100
+ # Update properties of this object
11101
+ def update!(**args)
11102
+ @index = args[:index] if args.key?(:index)
11103
+ @num_hits = args[:num_hits] if args.key?(:num_hits)
11104
+ @search_template = args[:search_template] if args.key?(:search_template)
11105
+ end
11106
+ end
11107
+
11108
+ # The search parameters to use for SIMPLE_SEARCH spec.
11109
+ class GoogleCloudAiplatformV1beta1ExternalApiSimpleSearchParams
11110
+ include Google::Apis::Core::Hashable
11111
+
11112
+ def initialize(**args)
11113
+ update!(**args)
11114
+ end
11115
+
11116
+ # Update properties of this object
11117
+ def update!(**args)
11118
+ end
11119
+ end
11120
+
10987
11121
  # The fact used in grounding.
10988
11122
  class GoogleCloudAiplatformV1beta1Fact
10989
11123
  include Google::Apis::Core::Hashable
@@ -11883,7 +12017,7 @@ module Google
11883
12017
 
11884
12018
  # Optional. Drift threshold. If calculated difference with baseline data larger
11885
12019
  # than threshold, it will be considered as the feature has drift. If not present,
11886
- # the threshold will be default to 0.3.
12020
+ # the threshold will be default to 0.3. Must be in range [0, 1).
11887
12021
  # Corresponds to the JSON property `driftThreshold`
11888
12022
  # @return [Float]
11889
12023
  attr_accessor :drift_threshold
@@ -14824,6 +14958,13 @@ module Google
14824
14958
  # @return [Fixnum]
14825
14959
  attr_accessor :candidate_count
14826
14960
 
14961
+ # Optional. If enabled, the model will detect emotions and adapt its responses
14962
+ # accordingly.
14963
+ # Corresponds to the JSON property `enableAffectiveDialog`
14964
+ # @return [Boolean]
14965
+ attr_accessor :enable_affective_dialog
14966
+ alias_method :enable_affective_dialog?, :enable_affective_dialog
14967
+
14827
14968
  # Optional. Frequency penalties.
14828
14969
  # Corresponds to the JSON property `frequencyPenalty`
14829
14970
  # @return [Float]
@@ -14929,6 +15070,7 @@ module Google
14929
15070
  def update!(**args)
14930
15071
  @audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
14931
15072
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
15073
+ @enable_affective_dialog = args[:enable_affective_dialog] if args.key?(:enable_affective_dialog)
14932
15074
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
14933
15075
  @logprobs = args[:logprobs] if args.key?(:logprobs)
14934
15076
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
@@ -15960,6 +16102,184 @@ module Google
15960
16102
  end
15961
16103
  end
15962
16104
 
16105
+ # Request message for IndexService.ImportIndex.
16106
+ class GoogleCloudAiplatformV1beta1ImportIndexRequest
16107
+ include Google::Apis::Core::Hashable
16108
+
16109
+ # Configuration for importing data from an external source.
16110
+ # Corresponds to the JSON property `config`
16111
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfig]
16112
+ attr_accessor :config
16113
+
16114
+ # Optional. If true, completely replace existing index data. Must be true for
16115
+ # streaming update indexes.
16116
+ # Corresponds to the JSON property `isCompleteOverwrite`
16117
+ # @return [Boolean]
16118
+ attr_accessor :is_complete_overwrite
16119
+ alias_method :is_complete_overwrite?, :is_complete_overwrite
16120
+
16121
+ def initialize(**args)
16122
+ update!(**args)
16123
+ end
16124
+
16125
+ # Update properties of this object
16126
+ def update!(**args)
16127
+ @config = args[:config] if args.key?(:config)
16128
+ @is_complete_overwrite = args[:is_complete_overwrite] if args.key?(:is_complete_overwrite)
16129
+ end
16130
+ end
16131
+
16132
+ # Configuration for importing data from an external source.
16133
+ class GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfig
16134
+ include Google::Apis::Core::Hashable
16135
+
16136
+ # Configuration for importing data from a BigQuery table.
16137
+ # Corresponds to the JSON property `bigQuerySourceConfig`
16138
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigBigQuerySourceConfig]
16139
+ attr_accessor :big_query_source_config
16140
+
16141
+ def initialize(**args)
16142
+ update!(**args)
16143
+ end
16144
+
16145
+ # Update properties of this object
16146
+ def update!(**args)
16147
+ @big_query_source_config = args[:big_query_source_config] if args.key?(:big_query_source_config)
16148
+ end
16149
+ end
16150
+
16151
+ # Configuration for importing data from a BigQuery table.
16152
+ class GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigBigQuerySourceConfig
16153
+ include Google::Apis::Core::Hashable
16154
+
16155
+ # Mapping of datapoint fields to column names for columnar data sources.
16156
+ # Corresponds to the JSON property `datapointFieldMapping`
16157
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMapping]
16158
+ attr_accessor :datapoint_field_mapping
16159
+
16160
+ # Required. The path to the BigQuery table containing the index data, in the
16161
+ # format of `bq://..`.
16162
+ # Corresponds to the JSON property `tablePath`
16163
+ # @return [String]
16164
+ attr_accessor :table_path
16165
+
16166
+ def initialize(**args)
16167
+ update!(**args)
16168
+ end
16169
+
16170
+ # Update properties of this object
16171
+ def update!(**args)
16172
+ @datapoint_field_mapping = args[:datapoint_field_mapping] if args.key?(:datapoint_field_mapping)
16173
+ @table_path = args[:table_path] if args.key?(:table_path)
16174
+ end
16175
+ end
16176
+
16177
+ # Mapping of datapoint fields to column names for columnar data sources.
16178
+ class GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMapping
16179
+ include Google::Apis::Core::Hashable
16180
+
16181
+ # Required. The column with the vector embeddings for each data point.
16182
+ # Corresponds to the JSON property `embeddingColumn`
16183
+ # @return [String]
16184
+ attr_accessor :embedding_column
16185
+
16186
+ # Required. The column with unique identifiers for each data point.
16187
+ # Corresponds to the JSON property `idColumn`
16188
+ # @return [String]
16189
+ attr_accessor :id_column
16190
+
16191
+ # Optional. List of columns containing metadata to be included in the index.
16192
+ # Corresponds to the JSON property `metadataColumns`
16193
+ # @return [Array<String>]
16194
+ attr_accessor :metadata_columns
16195
+
16196
+ # Optional. List of restricts for numeric values.
16197
+ # Corresponds to the JSON property `numericRestricts`
16198
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMappingNumericRestrict>]
16199
+ attr_accessor :numeric_restricts
16200
+
16201
+ # Optional. List of restricts for string values.
16202
+ # Corresponds to the JSON property `restricts`
16203
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMappingRestrict>]
16204
+ attr_accessor :restricts
16205
+
16206
+ def initialize(**args)
16207
+ update!(**args)
16208
+ end
16209
+
16210
+ # Update properties of this object
16211
+ def update!(**args)
16212
+ @embedding_column = args[:embedding_column] if args.key?(:embedding_column)
16213
+ @id_column = args[:id_column] if args.key?(:id_column)
16214
+ @metadata_columns = args[:metadata_columns] if args.key?(:metadata_columns)
16215
+ @numeric_restricts = args[:numeric_restricts] if args.key?(:numeric_restricts)
16216
+ @restricts = args[:restricts] if args.key?(:restricts)
16217
+ end
16218
+ end
16219
+
16220
+ # Restrictions on numeric values.
16221
+ class GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMappingNumericRestrict
16222
+ include Google::Apis::Core::Hashable
16223
+
16224
+ # Required. The namespace of the restrict.
16225
+ # Corresponds to the JSON property `namespace`
16226
+ # @return [String]
16227
+ attr_accessor :namespace
16228
+
16229
+ # Optional. The column containing the numeric value.
16230
+ # Corresponds to the JSON property `valueColumn`
16231
+ # @return [String]
16232
+ attr_accessor :value_column
16233
+
16234
+ # Required. Numeric type of the restrict. Must be consistent for all datapoints
16235
+ # within the namespace.
16236
+ # Corresponds to the JSON property `valueType`
16237
+ # @return [String]
16238
+ attr_accessor :value_type
16239
+
16240
+ def initialize(**args)
16241
+ update!(**args)
16242
+ end
16243
+
16244
+ # Update properties of this object
16245
+ def update!(**args)
16246
+ @namespace = args[:namespace] if args.key?(:namespace)
16247
+ @value_column = args[:value_column] if args.key?(:value_column)
16248
+ @value_type = args[:value_type] if args.key?(:value_type)
16249
+ end
16250
+ end
16251
+
16252
+ # Restrictions on string values.
16253
+ class GoogleCloudAiplatformV1beta1ImportIndexRequestConnectorConfigDatapointFieldMappingRestrict
16254
+ include Google::Apis::Core::Hashable
16255
+
16256
+ # Optional. The columns containing the allow values.
16257
+ # Corresponds to the JSON property `allowColumn`
16258
+ # @return [Array<String>]
16259
+ attr_accessor :allow_column
16260
+
16261
+ # Optional. The columns containing the deny values.
16262
+ # Corresponds to the JSON property `denyColumn`
16263
+ # @return [Array<String>]
16264
+ attr_accessor :deny_column
16265
+
16266
+ # Required. The namespace of the restrict in the index.
16267
+ # Corresponds to the JSON property `namespace`
16268
+ # @return [String]
16269
+ attr_accessor :namespace
16270
+
16271
+ def initialize(**args)
16272
+ update!(**args)
16273
+ end
16274
+
16275
+ # Update properties of this object
16276
+ def update!(**args)
16277
+ @allow_column = args[:allow_column] if args.key?(:allow_column)
16278
+ @deny_column = args[:deny_column] if args.key?(:deny_column)
16279
+ @namespace = args[:namespace] if args.key?(:namespace)
16280
+ end
16281
+ end
16282
+
15963
16283
  # Request message for ModelService.ImportModelEvaluation
15964
16284
  class GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest
15965
16285
  include Google::Apis::Core::Hashable
@@ -16052,6 +16372,16 @@ module Google
16052
16372
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileTransformationConfig]
16053
16373
  attr_accessor :rag_file_transformation_config
16054
16374
 
16375
+ # Rebuilds the ANN index to optimize for recall on the imported data. Only
16376
+ # applicable for RagCorpora running on RagManagedDb with `retrieval_strategy`
16377
+ # set to `ANN`. The rebuild will be performed using the existing ANN config set
16378
+ # on the RagCorpus. To change the ANN config, please use the UpdateRagCorpus API.
16379
+ # Default is false, i.e., index is not rebuilt.
16380
+ # Corresponds to the JSON property `rebuildAnnIndex`
16381
+ # @return [Boolean]
16382
+ attr_accessor :rebuild_ann_index
16383
+ alias_method :rebuild_ann_index?, :rebuild_ann_index
16384
+
16055
16385
  # The SharePointSources to pass to ImportRagFiles.
16056
16386
  # Corresponds to the JSON property `sharePointSources`
16057
16387
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SharePointSources]
@@ -16080,6 +16410,7 @@ module Google
16080
16410
  @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
16081
16411
  @rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
16082
16412
  @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
16413
+ @rebuild_ann_index = args[:rebuild_ann_index] if args.key?(:rebuild_ann_index)
16083
16414
  @share_point_sources = args[:share_point_sources] if args.key?(:share_point_sources)
16084
16415
  @slack_source = args[:slack_source] if args.key?(:slack_source)
16085
16416
  end
@@ -20928,6 +21259,12 @@ module Google
20928
21259
  # @return [String]
20929
21260
  attr_accessor :display_name
20930
21261
 
21262
+ # Represents a customer-managed encryption key spec that can be applied to a top-
21263
+ # level resource.
21264
+ # Corresponds to the JSON property `encryptionSpec`
21265
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EncryptionSpec]
21266
+ attr_accessor :encryption_spec
21267
+
20931
21268
  # Specification of Model explanation.
20932
21269
  # Corresponds to the JSON property `explanationSpec`
20933
21270
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
@@ -20997,6 +21334,7 @@ module Google
20997
21334
  def update!(**args)
20998
21335
  @create_time = args[:create_time] if args.key?(:create_time)
20999
21336
  @display_name = args[:display_name] if args.key?(:display_name)
21337
+ @encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
21000
21338
  @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
21001
21339
  @model_monitoring_schema = args[:model_monitoring_schema] if args.key?(:model_monitoring_schema)
21002
21340
  @model_monitoring_target = args[:model_monitoring_target] if args.key?(:model_monitoring_target)
@@ -24341,6 +24679,11 @@ module Google
24341
24679
  class GoogleCloudAiplatformV1beta1NotebookSoftwareConfig
24342
24680
  include Google::Apis::Core::Hashable
24343
24681
 
24682
+ # Colab image of the runtime.
24683
+ # Corresponds to the JSON property `colabImage`
24684
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ColabImage]
24685
+ attr_accessor :colab_image
24686
+
24344
24687
  # Optional. Environment variables to be passed to the container. Maximum limit
24345
24688
  # is 100.
24346
24689
  # Corresponds to the JSON property `env`
@@ -24358,6 +24701,7 @@ module Google
24358
24701
 
24359
24702
  # Update properties of this object
24360
24703
  def update!(**args)
24704
+ @colab_image = args[:colab_image] if args.key?(:colab_image)
24361
24705
  @env = args[:env] if args.key?(:env)
24362
24706
  @post_startup_script_config = args[:post_startup_script_config] if args.key?(:post_startup_script_config)
24363
24707
  end
@@ -24387,6 +24731,18 @@ module Google
24387
24731
  class GoogleCloudAiplatformV1beta1PscAutomationConfig
24388
24732
  include Google::Apis::Core::Hashable
24389
24733
 
24734
+ # Output only. Forwarding rule created by the PSC service automation. Note for
24735
+ # Vector search, use IndexPrivateEndpoint instead.
24736
+ # Corresponds to the JSON property `forwardingRule`
24737
+ # @return [String]
24738
+ attr_accessor :forwarding_rule
24739
+
24740
+ # Output only. IP address rule created by the PSC service automation. Note for
24741
+ # Vector search, use IndexPrivateEndpoint instead.
24742
+ # Corresponds to the JSON property `ipAddress`
24743
+ # @return [String]
24744
+ attr_accessor :ip_address
24745
+
24390
24746
  # Required. The full name of the Google Compute Engine [network](https://cloud.
24391
24747
  # google.com/compute/docs/networks-and-firewalls#networks). [Format](https://
24392
24748
  # cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/`
@@ -24407,6 +24763,8 @@ module Google
24407
24763
 
24408
24764
  # Update properties of this object
24409
24765
  def update!(**args)
24766
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
24767
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
24410
24768
  @network = args[:network] if args.key?(:network)
24411
24769
  @project_id = args[:project_id] if args.key?(:project_id)
24412
24770
  end
@@ -24799,15 +25157,17 @@ module Google
24799
25157
  class GoogleCloudAiplatformV1beta1Part
24800
25158
  include Google::Apis::Core::Hashable
24801
25159
 
24802
- # Result of executing the [ExecutableCode]. Always follows a `part` containing
24803
- # the [ExecutableCode].
25160
+ # Result of executing the [ExecutableCode]. Only generated when using the [
25161
+ # CodeExecution] tool, and always follows a `part` containing the [
25162
+ # ExecutableCode].
24804
25163
  # Corresponds to the JSON property `codeExecutionResult`
24805
25164
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CodeExecutionResult]
24806
25165
  attr_accessor :code_execution_result
24807
25166
 
24808
25167
  # Code generated by the model that is meant to be executed, and the result
24809
- # returned to the model. Generated when using the [FunctionDeclaration] tool and
24810
- # [FunctionCallingConfig] mode is set to [Mode.CODE].
25168
+ # returned to the model. Generated when using the [CodeExecution] tool, in which
25169
+ # the code will be automatically executed, and a corresponding [
25170
+ # CodeExecutionResult] will also be generated.
24811
25171
  # Corresponds to the JSON property `executableCode`
24812
25172
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecutableCode]
24813
25173
  attr_accessor :executable_code
@@ -28355,6 +28715,12 @@ module Google
28355
28715
  # @return [String]
28356
28716
  attr_accessor :display_name
28357
28717
 
28718
+ # Represents a customer-managed encryption key spec that can be applied to a top-
28719
+ # level resource.
28720
+ # Corresponds to the JSON property `encryptionSpec`
28721
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EncryptionSpec]
28722
+ attr_accessor :encryption_spec
28723
+
28358
28724
  # Output only. The resource name of the RagCorpus.
28359
28725
  # Corresponds to the JSON property `name`
28360
28726
  # @return [String]
@@ -28400,6 +28766,7 @@ module Google
28400
28766
  @create_time = args[:create_time] if args.key?(:create_time)
28401
28767
  @description = args[:description] if args.key?(:description)
28402
28768
  @display_name = args[:display_name] if args.key?(:display_name)
28769
+ @encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
28403
28770
  @name = args[:name] if args.key?(:name)
28404
28771
  @rag_embedding_model_config = args[:rag_embedding_model_config] if args.key?(:rag_embedding_model_config)
28405
28772
  @rag_files_count = args[:rag_files_count] if args.key?(:rag_files_count)
@@ -28745,7 +29112,7 @@ module Google
28745
29112
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser]
28746
29113
  attr_accessor :layout_parser
28747
29114
 
28748
- # Specifies the advanced parsing for RagFiles.
29115
+ # Specifies the LLM parsing for RagFiles.
28749
29116
  # Corresponds to the JSON property `llmParser`
28750
29117
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser]
28751
29118
  attr_accessor :llm_parser
@@ -28832,7 +29199,7 @@ module Google
28832
29199
  end
28833
29200
  end
28834
29201
 
28835
- # Specifies the advanced parsing for RagFiles.
29202
+ # Specifies the LLM parsing for RagFiles.
28836
29203
  class GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser
28837
29204
  include Google::Apis::Core::Hashable
28838
29205
 
@@ -29253,6 +29620,67 @@ module Google
29253
29620
  class GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb
29254
29621
  include Google::Apis::Core::Hashable
29255
29622
 
29623
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
29624
+ # data and facilitate faster searches. As a tradeoff, it requires longer
29625
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
29626
+ # and UpdateRagCorpus API.
29627
+ # Corresponds to the JSON property `ann`
29628
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDbAnn]
29629
+ attr_accessor :ann
29630
+
29631
+ # Config for KNN search.
29632
+ # Corresponds to the JSON property `knn`
29633
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDbKnn]
29634
+ attr_accessor :knn
29635
+
29636
+ def initialize(**args)
29637
+ update!(**args)
29638
+ end
29639
+
29640
+ # Update properties of this object
29641
+ def update!(**args)
29642
+ @ann = args[:ann] if args.key?(:ann)
29643
+ @knn = args[:knn] if args.key?(:knn)
29644
+ end
29645
+ end
29646
+
29647
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
29648
+ # data and facilitate faster searches. As a tradeoff, it requires longer
29649
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
29650
+ # and UpdateRagCorpus API.
29651
+ class GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDbAnn
29652
+ include Google::Apis::Core::Hashable
29653
+
29654
+ # Number of leaf nodes in the tree-based structure. Each leaf node contains
29655
+ # groups of closely related vectors along with their corresponding centroid.
29656
+ # Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default
29657
+ # value is 500.
29658
+ # Corresponds to the JSON property `leafCount`
29659
+ # @return [Fixnum]
29660
+ attr_accessor :leaf_count
29661
+
29662
+ # The depth of the tree-based structure. Only depth values of 2 and 3 are
29663
+ # supported. Recommended value is 2 if you have if you have O(10K) files in the
29664
+ # RagCorpus and set this to 3 if more than that. Default value is 2.
29665
+ # Corresponds to the JSON property `treeDepth`
29666
+ # @return [Fixnum]
29667
+ attr_accessor :tree_depth
29668
+
29669
+ def initialize(**args)
29670
+ update!(**args)
29671
+ end
29672
+
29673
+ # Update properties of this object
29674
+ def update!(**args)
29675
+ @leaf_count = args[:leaf_count] if args.key?(:leaf_count)
29676
+ @tree_depth = args[:tree_depth] if args.key?(:tree_depth)
29677
+ end
29678
+ end
29679
+
29680
+ # Config for KNN search.
29681
+ class GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDbKnn
29682
+ include Google::Apis::Core::Hashable
29683
+
29256
29684
  def initialize(**args)
29257
29685
  update!(**args)
29258
29686
  end
@@ -30546,6 +30974,12 @@ module Google
30546
30974
  attr_accessor :disable_attribution
30547
30975
  alias_method :disable_attribution?, :disable_attribution
30548
30976
 
30977
+ # Retrieve from data source powered by external API for grounding. The external
30978
+ # API is not owned by Google, but need to follow the pre-defined API spec.
30979
+ # Corresponds to the JSON property `externalApi`
30980
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExternalApi]
30981
+ attr_accessor :external_api
30982
+
30549
30983
  # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
30550
30984
  # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
30551
30985
  # builder
@@ -30565,6 +30999,7 @@ module Google
30565
30999
  # Update properties of this object
30566
31000
  def update!(**args)
30567
31001
  @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
31002
+ @external_api = args[:external_api] if args.key?(:external_api)
30568
31003
  @vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
30569
31004
  @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
30570
31005
  end
@@ -39356,9 +39791,8 @@ module Google
39356
39791
  # @return [String]
39357
39792
  attr_accessor :display_name
39358
39793
 
39359
- # Required. Identifier. The resource name of the session. Format: 'projects/`
39360
- # project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
39361
- # session`'.
39794
+ # Identifier. The resource name of the session. Format: 'projects/`project`/
39795
+ # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'.
39362
39796
  # Corresponds to the JSON property `name`
39363
39797
  # @return [String]
39364
39798
  attr_accessor :name
@@ -39436,9 +39870,9 @@ module Google
39436
39870
  # @return [String]
39437
39871
  attr_accessor :invocation_id
39438
39872
 
39439
- # Required. Identifier. The resource name of the event. Format:`projects/`
39440
- # project`/locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`
39441
- # session`/events/`event``.
39873
+ # Identifier. The resource name of the event. Format:`projects/`project`/
39874
+ # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`/
39875
+ # events/`event``.
39442
39876
  # Corresponds to the JSON property `name`
39443
39877
  # @return [String]
39444
39878
  attr_accessor :name
@@ -41942,14 +42376,16 @@ module Google
41942
42376
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SupervisedHyperParameters]
41943
42377
  attr_accessor :hyper_parameters
41944
42378
 
41945
- # Required. Cloud Storage path to file containing training dataset for tuning.
41946
- # The dataset must be formatted as a JSONL file.
42379
+ # Required. Training dataset used for tuning. The dataset can be specified as
42380
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
42381
+ # Vertex Multimodal Dataset.
41947
42382
  # Corresponds to the JSON property `trainingDatasetUri`
41948
42383
  # @return [String]
41949
42384
  attr_accessor :training_dataset_uri
41950
42385
 
41951
- # Optional. Cloud Storage path to file containing validation dataset for tuning.
41952
- # The dataset must be formatted as a JSONL file.
42386
+ # Optional. Validation dataset used for tuning. The dataset can be specified as
42387
+ # either a Cloud Storage path to a JSONL file or as the resource name of a
42388
+ # Vertex Multimodal Dataset.
41953
42389
  # Corresponds to the JSON property `validationDatasetUri`
41954
42390
  # @return [String]
41955
42391
  attr_accessor :validation_dataset_uri
@@ -45526,6 +45962,13 @@ module Google
45526
45962
  class GoogleCloudAiplatformV1beta1VertexAiSearch
45527
45963
  include Google::Apis::Core::Hashable
45528
45964
 
45965
+ # Specifications that define the specific DataStores to be searched, along with
45966
+ # configurations for those data stores. This is only considered for Engines with
45967
+ # multiple data stores. It should only be set if engine is used.
45968
+ # Corresponds to the JSON property `dataStoreSpecs`
45969
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexAiSearchDataStoreSpec>]
45970
+ attr_accessor :data_store_specs
45971
+
45529
45972
  # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `
45530
45973
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
45531
45974
  # dataStore``
@@ -45557,6 +46000,7 @@ module Google
45557
46000
 
45558
46001
  # Update properties of this object
45559
46002
  def update!(**args)
46003
+ @data_store_specs = args[:data_store_specs] if args.key?(:data_store_specs)
45560
46004
  @datastore = args[:datastore] if args.key?(:datastore)
45561
46005
  @engine = args[:engine] if args.key?(:engine)
45562
46006
  @filter = args[:filter] if args.key?(:filter)
@@ -45564,6 +46008,37 @@ module Google
45564
46008
  end
45565
46009
  end
45566
46010
 
46011
+ # Define data stores within engine to filter on in a search call and
46012
+ # configurations for those data stores. For more information, see https://cloud.
46013
+ # google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.
46014
+ # discoveryengine.v1#datastorespec
46015
+ class GoogleCloudAiplatformV1beta1VertexAiSearchDataStoreSpec
46016
+ include Google::Apis::Core::Hashable
46017
+
46018
+ # Full resource name of DataStore, such as Format: `projects/`project`/locations/
46019
+ # `location`/collections/`collection`/dataStores/`dataStore``
46020
+ # Corresponds to the JSON property `dataStore`
46021
+ # @return [String]
46022
+ attr_accessor :data_store
46023
+
46024
+ # Optional. Filter specification to filter documents in the data store specified
46025
+ # by data_store field. For more information on filtering, see [Filtering](https:/
46026
+ # /cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
46027
+ # Corresponds to the JSON property `filter`
46028
+ # @return [String]
46029
+ attr_accessor :filter
46030
+
46031
+ def initialize(**args)
46032
+ update!(**args)
46033
+ end
46034
+
46035
+ # Update properties of this object
46036
+ def update!(**args)
46037
+ @data_store = args[:data_store] if args.key?(:data_store)
46038
+ @filter = args[:filter] if args.key?(:filter)
46039
+ end
46040
+ end
46041
+
45567
46042
  # Config for the Vertex AI Search.
45568
46043
  class GoogleCloudAiplatformV1beta1VertexAiSearchConfig
45569
46044
  include Google::Apis::Core::Hashable