google-apis-aiplatform_v1beta1 0.51.0 → 0.52.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.
@@ -3059,7 +3059,8 @@ module Google
3059
3059
 
3060
3060
  # Optional. Display name of the blob. Used to provide a label or filename to
3061
3061
  # distinguish blobs. This field is only returned in PromptMessage for prompt
3062
- # management. It is not currently used in the Gemini GenerateContent calls.
3062
+ # management. It is currently used in the Gemini GenerateContent calls only when
3063
+ # server side tools (code_execution, google_search, and url_context) are enabled.
3063
3064
  # Corresponds to the JSON property `displayName`
3064
3065
  # @return [String]
3065
3066
  attr_accessor :display_name
@@ -13715,8 +13716,9 @@ module Google
13715
13716
 
13716
13717
  # Optional. Display name of the file data. Used to provide a label or filename
13717
13718
  # to distinguish file datas. This field is only returned in PromptMessage for
13718
- # prompt management. It is not currently used in the Gemini GenerateContent
13719
- # calls.
13719
+ # prompt management. It is currently used in the Gemini GenerateContent calls
13720
+ # only when server side tools (code_execution, google_search, and url_context)
13721
+ # are enabled.
13720
13722
  # Corresponds to the JSON property `displayName`
13721
13723
  # @return [String]
13722
13724
  attr_accessor :display_name
@@ -14936,6 +14938,132 @@ module Google
14936
14938
  end
14937
14939
  end
14938
14940
 
14941
+ # Request message for MemoryBankService.GenerateMemories.
14942
+ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequest
14943
+ include Google::Apis::Core::Hashable
14944
+
14945
+ # Defines a direct source of content from which to generate the memories.
14946
+ # Corresponds to the JSON property `directContentsSource`
14947
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSource]
14948
+ attr_accessor :direct_contents_source
14949
+
14950
+ # Optional. If true, generated memories will not be consolidated with existing
14951
+ # memories; all generated memories will be added as new memories regardless of
14952
+ # whether they are duplicates of or contradictory to existing memories. By
14953
+ # default, memory consolidation is enabled.
14954
+ # Corresponds to the JSON property `disableConsolidation`
14955
+ # @return [Boolean]
14956
+ attr_accessor :disable_consolidation
14957
+ alias_method :disable_consolidation?, :disable_consolidation
14958
+
14959
+ # Optional. The scope of the memories that should be generated. Memories will be
14960
+ # consolidated across memories with the same scope. Must be provided unless the
14961
+ # scope is defined in the source content. If `scope` is provided, it will
14962
+ # override the scope defined in the source content. Scope values cannot contain
14963
+ # the wildcard character '*'.
14964
+ # Corresponds to the JSON property `scope`
14965
+ # @return [Hash<String,String>]
14966
+ attr_accessor :scope
14967
+
14968
+ # Defines an Agent Engine Session from which to generate the memories. If `scope`
14969
+ # is not provided, the scope will be extracted from the Session (i.e. `"user_id"
14970
+ # : sesison.user_id`).
14971
+ # Corresponds to the JSON property `vertexSessionSource`
14972
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestVertexSessionSource]
14973
+ attr_accessor :vertex_session_source
14974
+
14975
+ def initialize(**args)
14976
+ update!(**args)
14977
+ end
14978
+
14979
+ # Update properties of this object
14980
+ def update!(**args)
14981
+ @direct_contents_source = args[:direct_contents_source] if args.key?(:direct_contents_source)
14982
+ @disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation)
14983
+ @scope = args[:scope] if args.key?(:scope)
14984
+ @vertex_session_source = args[:vertex_session_source] if args.key?(:vertex_session_source)
14985
+ end
14986
+ end
14987
+
14988
+ # Defines a direct source of content from which to generate the memories.
14989
+ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSource
14990
+ include Google::Apis::Core::Hashable
14991
+
14992
+ # Required. The source content (i.e. chat history) to generate memories from.
14993
+ # Corresponds to the JSON property `events`
14994
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSourceEvent>]
14995
+ attr_accessor :events
14996
+
14997
+ def initialize(**args)
14998
+ update!(**args)
14999
+ end
15000
+
15001
+ # Update properties of this object
15002
+ def update!(**args)
15003
+ @events = args[:events] if args.key?(:events)
15004
+ end
15005
+ end
15006
+
15007
+ # A single piece of conversation from which to generate memories.
15008
+ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSourceEvent
15009
+ include Google::Apis::Core::Hashable
15010
+
15011
+ # The base structured datatype containing multi-part content of a message. A `
15012
+ # Content` includes a `role` field designating the producer of the `Content` and
15013
+ # a `parts` field containing multi-part data that contains the content of the
15014
+ # message turn.
15015
+ # Corresponds to the JSON property `content`
15016
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
15017
+ attr_accessor :content
15018
+
15019
+ def initialize(**args)
15020
+ update!(**args)
15021
+ end
15022
+
15023
+ # Update properties of this object
15024
+ def update!(**args)
15025
+ @content = args[:content] if args.key?(:content)
15026
+ end
15027
+ end
15028
+
15029
+ # Defines an Agent Engine Session from which to generate the memories. If `scope`
15030
+ # is not provided, the scope will be extracted from the Session (i.e. `"user_id"
15031
+ # : sesison.user_id`).
15032
+ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestVertexSessionSource
15033
+ include Google::Apis::Core::Hashable
15034
+
15035
+ # Optional. End time (exclusive) of the time range. If not set, the end time is
15036
+ # unbounded.
15037
+ # Corresponds to the JSON property `endTime`
15038
+ # @return [String]
15039
+ attr_accessor :end_time
15040
+
15041
+ # Required. The resource name of the Session to generate memories for. Format: `
15042
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
15043
+ # sessions/`session``
15044
+ # Corresponds to the JSON property `session`
15045
+ # @return [String]
15046
+ attr_accessor :session
15047
+
15048
+ # Optional. Time range to define which session events should be used to generate
15049
+ # memories. Start time (inclusive) of the time range. If not set, the start time
15050
+ # is unbounded.
15051
+ # Corresponds to the JSON property `startTime`
15052
+ # @return [String]
15053
+ attr_accessor :start_time
15054
+
15055
+ def initialize(**args)
15056
+ update!(**args)
15057
+ end
15058
+
15059
+ # Update properties of this object
15060
+ def update!(**args)
15061
+ @end_time = args[:end_time] if args.key?(:end_time)
15062
+ @session = args[:session] if args.key?(:session)
15063
+ @start_time = args[:start_time] if args.key?(:start_time)
15064
+ end
15065
+ end
15066
+
14939
15067
  # Generate video response.
14940
15068
  class GoogleCloudAiplatformV1beta1GenerateVideoResponse
14941
15069
  include Google::Apis::Core::Hashable
@@ -16444,6 +16572,11 @@ module Google
16444
16572
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
16445
16573
  attr_accessor :rag_file_chunking_config
16446
16574
 
16575
+ # Metadata config for RagFile.
16576
+ # Corresponds to the JSON property `ragFileMetadataConfig`
16577
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileMetadataConfig]
16578
+ attr_accessor :rag_file_metadata_config
16579
+
16447
16580
  # Specifies the parsing config for RagFiles.
16448
16581
  # Corresponds to the JSON property `ragFileParsingConfig`
16449
16582
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfig]
@@ -16490,6 +16623,7 @@ module Google
16490
16623
  @partial_failure_bigquery_sink = args[:partial_failure_bigquery_sink] if args.key?(:partial_failure_bigquery_sink)
16491
16624
  @partial_failure_gcs_sink = args[:partial_failure_gcs_sink] if args.key?(:partial_failure_gcs_sink)
16492
16625
  @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
16626
+ @rag_file_metadata_config = args[:rag_file_metadata_config] if args.key?(:rag_file_metadata_config)
16493
16627
  @rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
16494
16628
  @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
16495
16629
  @rebuild_ann_index = args[:rebuild_ann_index] if args.key?(:rebuild_ann_index)
@@ -18103,6 +18237,32 @@ module Google
18103
18237
  end
18104
18238
  end
18105
18239
 
18240
+ # Response message for MemoryBankService.ListMemories.
18241
+ class GoogleCloudAiplatformV1beta1ListMemoriesResponse
18242
+ include Google::Apis::Core::Hashable
18243
+
18244
+ # List of Memories in the requested page.
18245
+ # Corresponds to the JSON property `memories`
18246
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory>]
18247
+ attr_accessor :memories
18248
+
18249
+ # A token to retrieve the next page of results. Pass to ListMemoriesRequest.
18250
+ # page_token to obtain that page.
18251
+ # Corresponds to the JSON property `nextPageToken`
18252
+ # @return [String]
18253
+ attr_accessor :next_page_token
18254
+
18255
+ def initialize(**args)
18256
+ update!(**args)
18257
+ end
18258
+
18259
+ # Update properties of this object
18260
+ def update!(**args)
18261
+ @memories = args[:memories] if args.key?(:memories)
18262
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
18263
+ end
18264
+ end
18265
+
18106
18266
  # Response message for MetadataService.ListMetadataSchemas.
18107
18267
  class GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse
18108
18268
  include Google::Apis::Core::Hashable
@@ -19238,6 +19398,64 @@ module Google
19238
19398
  end
19239
19399
  end
19240
19400
 
19401
+ # A memory.
19402
+ class GoogleCloudAiplatformV1beta1Memory
19403
+ include Google::Apis::Core::Hashable
19404
+
19405
+ # Output only. Timestamp when this Memory was created.
19406
+ # Corresponds to the JSON property `createTime`
19407
+ # @return [String]
19408
+ attr_accessor :create_time
19409
+
19410
+ # Optional. Description of the Memory.
19411
+ # Corresponds to the JSON property `description`
19412
+ # @return [String]
19413
+ attr_accessor :description
19414
+
19415
+ # Optional. Display name of the Memory.
19416
+ # Corresponds to the JSON property `displayName`
19417
+ # @return [String]
19418
+ attr_accessor :display_name
19419
+
19420
+ # Required. Semantic knowledge extracted from the source content.
19421
+ # Corresponds to the JSON property `fact`
19422
+ # @return [String]
19423
+ attr_accessor :fact
19424
+
19425
+ # Identifier. The resource name of the Memory. Format: `projects/`project`/
19426
+ # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory``
19427
+ # Corresponds to the JSON property `name`
19428
+ # @return [String]
19429
+ attr_accessor :name
19430
+
19431
+ # Required. Immutable. The scope of the Memory. Memories are isolated within
19432
+ # their scope. The scope is defined when creating or generating memories. Scope
19433
+ # values cannot contain the wildcard character '*'.
19434
+ # Corresponds to the JSON property `scope`
19435
+ # @return [Hash<String,String>]
19436
+ attr_accessor :scope
19437
+
19438
+ # Output only. Timestamp when this Memory was most recently updated.
19439
+ # Corresponds to the JSON property `updateTime`
19440
+ # @return [String]
19441
+ attr_accessor :update_time
19442
+
19443
+ def initialize(**args)
19444
+ update!(**args)
19445
+ end
19446
+
19447
+ # Update properties of this object
19448
+ def update!(**args)
19449
+ @create_time = args[:create_time] if args.key?(:create_time)
19450
+ @description = args[:description] if args.key?(:description)
19451
+ @display_name = args[:display_name] if args.key?(:display_name)
19452
+ @fact = args[:fact] if args.key?(:fact)
19453
+ @name = args[:name] if args.key?(:name)
19454
+ @scope = args[:scope] if args.key?(:scope)
19455
+ @update_time = args[:update_time] if args.key?(:update_time)
19456
+ end
19457
+ end
19458
+
19241
19459
  # Request message for ModelService.MergeVersionAliases.
19242
19460
  class GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest
19243
19461
  include Google::Apis::Core::Hashable
@@ -29209,6 +29427,12 @@ module Google
29209
29427
  # @return [String]
29210
29428
  attr_accessor :update_time
29211
29429
 
29430
+ # Output only. The metadata for metadata search. The user_metadata Needs to be
29431
+ # in JSON format.
29432
+ # Corresponds to the JSON property `userMetadata`
29433
+ # @return [String]
29434
+ attr_accessor :user_metadata
29435
+
29212
29436
  def initialize(**args)
29213
29437
  update!(**args)
29214
29438
  end
@@ -29229,6 +29453,7 @@ module Google
29229
29453
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
29230
29454
  @slack_source = args[:slack_source] if args.key?(:slack_source)
29231
29455
  @update_time = args[:update_time] if args.key?(:update_time)
29456
+ @user_metadata = args[:user_metadata] if args.key?(:user_metadata)
29232
29457
  end
29233
29458
  end
29234
29459
 
@@ -29288,6 +29513,55 @@ module Google
29288
29513
  end
29289
29514
  end
29290
29515
 
29516
+ # Metadata config for RagFile.
29517
+ class GoogleCloudAiplatformV1beta1RagFileMetadataConfig
29518
+ include Google::Apis::Core::Hashable
29519
+
29520
+ # The Google Cloud Storage location for the input content.
29521
+ # Corresponds to the JSON property `gcsMetadataSchemaSource`
29522
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
29523
+ attr_accessor :gcs_metadata_schema_source
29524
+
29525
+ # The Google Cloud Storage location for the input content.
29526
+ # Corresponds to the JSON property `gcsMetadataSource`
29527
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
29528
+ attr_accessor :gcs_metadata_source
29529
+
29530
+ # The Google Drive location for the input content.
29531
+ # Corresponds to the JSON property `googleDriveMetadataSchemaSource`
29532
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
29533
+ attr_accessor :google_drive_metadata_schema_source
29534
+
29535
+ # The Google Drive location for the input content.
29536
+ # Corresponds to the JSON property `googleDriveMetadataSource`
29537
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
29538
+ attr_accessor :google_drive_metadata_source
29539
+
29540
+ # Inline metadata schema source. Must be a JSON string.
29541
+ # Corresponds to the JSON property `inlineMetadataSchemaSource`
29542
+ # @return [String]
29543
+ attr_accessor :inline_metadata_schema_source
29544
+
29545
+ # Inline metadata source. Must be a JSON string.
29546
+ # Corresponds to the JSON property `inlineMetadataSource`
29547
+ # @return [String]
29548
+ attr_accessor :inline_metadata_source
29549
+
29550
+ def initialize(**args)
29551
+ update!(**args)
29552
+ end
29553
+
29554
+ # Update properties of this object
29555
+ def update!(**args)
29556
+ @gcs_metadata_schema_source = args[:gcs_metadata_schema_source] if args.key?(:gcs_metadata_schema_source)
29557
+ @gcs_metadata_source = args[:gcs_metadata_source] if args.key?(:gcs_metadata_source)
29558
+ @google_drive_metadata_schema_source = args[:google_drive_metadata_schema_source] if args.key?(:google_drive_metadata_schema_source)
29559
+ @google_drive_metadata_source = args[:google_drive_metadata_source] if args.key?(:google_drive_metadata_source)
29560
+ @inline_metadata_schema_source = args[:inline_metadata_schema_source] if args.key?(:inline_metadata_schema_source)
29561
+ @inline_metadata_source = args[:inline_metadata_source] if args.key?(:inline_metadata_source)
29562
+ end
29563
+ end
29564
+
29291
29565
  # Specifies the parsing config for RagFiles.
29292
29566
  class GoogleCloudAiplatformV1beta1RagFileParsingConfig
29293
29567
  include Google::Apis::Core::Hashable
@@ -29459,19 +29733,34 @@ module Google
29459
29733
 
29460
29734
  # Basic tier is a cost-effective and low compute tier suitable for the following
29461
29735
  # cases: * Experimenting with RagManagedDb. * Small data size. * Latency
29462
- # insensitive workload. * Only using RAG Engine with external vector DBs.
29736
+ # insensitive workload. * Only using RAG Engine with external vector DBs. NOTE:
29737
+ # This is the default tier if not explicitly chosen.
29463
29738
  # Corresponds to the JSON property `basic`
29464
29739
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic]
29465
29740
  attr_accessor :basic
29466
29741
 
29467
29742
  # Enterprise tier offers production grade performance along with autoscaling
29468
29743
  # functionality. It is suitable for customers with large amounts of data or
29469
- # performance sensitive workloads. NOTE: This is the default tier if not
29470
- # explicitly chosen.
29744
+ # performance sensitive workloads.
29471
29745
  # Corresponds to the JSON property `enterprise`
29472
29746
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise]
29473
29747
  attr_accessor :enterprise
29474
29748
 
29749
+ # Scaled tier offers production grade performance along with autoscaling
29750
+ # functionality. It is suitable for customers with large amounts of data or
29751
+ # performance sensitive workloads.
29752
+ # Corresponds to the JSON property `scaled`
29753
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigScaled]
29754
+ attr_accessor :scaled
29755
+
29756
+ # Disables the RAG Engine service and deletes all your data held within this
29757
+ # service. This will halt the billing of the service. NOTE: Once deleted the
29758
+ # data cannot be recovered. To start using RAG Engine again, you will need to
29759
+ # update the tier by calling the UpdateRagEngineConfig API.
29760
+ # Corresponds to the JSON property `unprovisioned`
29761
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagManagedDbConfigUnprovisioned]
29762
+ attr_accessor :unprovisioned
29763
+
29475
29764
  def initialize(**args)
29476
29765
  update!(**args)
29477
29766
  end
@@ -29480,12 +29769,15 @@ module Google
29480
29769
  def update!(**args)
29481
29770
  @basic = args[:basic] if args.key?(:basic)
29482
29771
  @enterprise = args[:enterprise] if args.key?(:enterprise)
29772
+ @scaled = args[:scaled] if args.key?(:scaled)
29773
+ @unprovisioned = args[:unprovisioned] if args.key?(:unprovisioned)
29483
29774
  end
29484
29775
  end
29485
29776
 
29486
29777
  # Basic tier is a cost-effective and low compute tier suitable for the following
29487
29778
  # cases: * Experimenting with RagManagedDb. * Small data size. * Latency
29488
- # insensitive workload. * Only using RAG Engine with external vector DBs.
29779
+ # insensitive workload. * Only using RAG Engine with external vector DBs. NOTE:
29780
+ # This is the default tier if not explicitly chosen.
29489
29781
  class GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic
29490
29782
  include Google::Apis::Core::Hashable
29491
29783
 
@@ -29500,8 +29792,7 @@ module Google
29500
29792
 
29501
29793
  # Enterprise tier offers production grade performance along with autoscaling
29502
29794
  # functionality. It is suitable for customers with large amounts of data or
29503
- # performance sensitive workloads. NOTE: This is the default tier if not
29504
- # explicitly chosen.
29795
+ # performance sensitive workloads.
29505
29796
  class GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise
29506
29797
  include Google::Apis::Core::Hashable
29507
29798
 
@@ -29514,6 +29805,37 @@ module Google
29514
29805
  end
29515
29806
  end
29516
29807
 
29808
+ # Scaled tier offers production grade performance along with autoscaling
29809
+ # functionality. It is suitable for customers with large amounts of data or
29810
+ # performance sensitive workloads.
29811
+ class GoogleCloudAiplatformV1beta1RagManagedDbConfigScaled
29812
+ include Google::Apis::Core::Hashable
29813
+
29814
+ def initialize(**args)
29815
+ update!(**args)
29816
+ end
29817
+
29818
+ # Update properties of this object
29819
+ def update!(**args)
29820
+ end
29821
+ end
29822
+
29823
+ # Disables the RAG Engine service and deletes all your data held within this
29824
+ # service. This will halt the billing of the service. NOTE: Once deleted the
29825
+ # data cannot be recovered. To start using RAG Engine again, you will need to
29826
+ # update the tier by calling the UpdateRagEngineConfig API.
29827
+ class GoogleCloudAiplatformV1beta1RagManagedDbConfigUnprovisioned
29828
+ include Google::Apis::Core::Hashable
29829
+
29830
+ def initialize(**args)
29831
+ update!(**args)
29832
+ end
29833
+
29834
+ # Update properties of this object
29835
+ def update!(**args)
29836
+ end
29837
+ end
29838
+
29517
29839
  # A query to retrieve relevant contexts.
29518
29840
  class GoogleCloudAiplatformV1beta1RagQuery
29519
29841
  include Google::Apis::Core::Hashable
@@ -30434,6 +30756,11 @@ module Google
30434
30756
  class GoogleCloudAiplatformV1beta1ReasoningEngine
30435
30757
  include Google::Apis::Core::Hashable
30436
30758
 
30759
+ # Configuration for how Agent Engine sub-resources should manage context.
30760
+ # Corresponds to the JSON property `contextSpec`
30761
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpec]
30762
+ attr_accessor :context_spec
30763
+
30437
30764
  # Output only. Timestamp when this ReasoningEngine was created.
30438
30765
  # Corresponds to the JSON property `createTime`
30439
30766
  # @return [String]
@@ -30477,6 +30804,7 @@ module Google
30477
30804
 
30478
30805
  # Update properties of this object
30479
30806
  def update!(**args)
30807
+ @context_spec = args[:context_spec] if args.key?(:context_spec)
30480
30808
  @create_time = args[:create_time] if args.key?(:create_time)
30481
30809
  @description = args[:description] if args.key?(:description)
30482
30810
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -30487,6 +30815,92 @@ module Google
30487
30815
  end
30488
30816
  end
30489
30817
 
30818
+ # Configuration for how Agent Engine sub-resources should manage context.
30819
+ class GoogleCloudAiplatformV1beta1ReasoningEngineContextSpec
30820
+ include Google::Apis::Core::Hashable
30821
+
30822
+ # Specification for a Memory Bank.
30823
+ # Corresponds to the JSON property `memoryBankConfig`
30824
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfig]
30825
+ attr_accessor :memory_bank_config
30826
+
30827
+ def initialize(**args)
30828
+ update!(**args)
30829
+ end
30830
+
30831
+ # Update properties of this object
30832
+ def update!(**args)
30833
+ @memory_bank_config = args[:memory_bank_config] if args.key?(:memory_bank_config)
30834
+ end
30835
+ end
30836
+
30837
+ # Specification for a Memory Bank.
30838
+ class GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfig
30839
+ include Google::Apis::Core::Hashable
30840
+
30841
+ # Configuration for how to generate memories.
30842
+ # Corresponds to the JSON property `generationConfig`
30843
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig]
30844
+ attr_accessor :generation_config
30845
+
30846
+ # Configuration for how to perform similarity search on memories.
30847
+ # Corresponds to the JSON property `similaritySearchConfig`
30848
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfig]
30849
+ attr_accessor :similarity_search_config
30850
+
30851
+ def initialize(**args)
30852
+ update!(**args)
30853
+ end
30854
+
30855
+ # Update properties of this object
30856
+ def update!(**args)
30857
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
30858
+ @similarity_search_config = args[:similarity_search_config] if args.key?(:similarity_search_config)
30859
+ end
30860
+ end
30861
+
30862
+ # Configuration for how to generate memories.
30863
+ class GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig
30864
+ include Google::Apis::Core::Hashable
30865
+
30866
+ # Required. The model used to generate memories. Format: `projects/`project`/
30867
+ # locations/`location`/publishers/google/models/`model`` or `projects/`project`/
30868
+ # locations/`location`/endpoints/`endpoint``.
30869
+ # Corresponds to the JSON property `model`
30870
+ # @return [String]
30871
+ attr_accessor :model
30872
+
30873
+ def initialize(**args)
30874
+ update!(**args)
30875
+ end
30876
+
30877
+ # Update properties of this object
30878
+ def update!(**args)
30879
+ @model = args[:model] if args.key?(:model)
30880
+ end
30881
+ end
30882
+
30883
+ # Configuration for how to perform similarity search on memories.
30884
+ class GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigSimilaritySearchConfig
30885
+ include Google::Apis::Core::Hashable
30886
+
30887
+ # Required. The model used to generate embeddings to lookup similar memories.
30888
+ # Format: `projects/`project`/locations/`location`/publishers/google/models/`
30889
+ # model`` or `projects/`project`/locations/`location`/endpoints/`endpoint``.
30890
+ # Corresponds to the JSON property `embeddingModel`
30891
+ # @return [String]
30892
+ attr_accessor :embedding_model
30893
+
30894
+ def initialize(**args)
30895
+ update!(**args)
30896
+ end
30897
+
30898
+ # Update properties of this object
30899
+ def update!(**args)
30900
+ @embedding_model = args[:embedding_model] if args.key?(:embedding_model)
30901
+ end
30902
+ end
30903
+
30490
30904
  # ReasoningEngine configurations
30491
30905
  class GoogleCloudAiplatformV1beta1ReasoningEngineSpec
30492
30906
  include Google::Apis::Core::Hashable
@@ -31350,6 +31764,150 @@ module Google
31350
31764
  end
31351
31765
  end
31352
31766
 
31767
+ # Request message for MemoryBankService.RetrieveMemories.
31768
+ class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest
31769
+ include Google::Apis::Core::Hashable
31770
+
31771
+ # Required. The scope of the memories to retrieve. A memory must have exactly
31772
+ # the same scope (`Memory.scope`) as the scope provided here to be retrieved (
31773
+ # same keys and values). Order does not matter, but it is case-sensitive.
31774
+ # Corresponds to the JSON property `scope`
31775
+ # @return [Hash<String,String>]
31776
+ attr_accessor :scope
31777
+
31778
+ # Parameters for semantic similarity search based retrieval.
31779
+ # Corresponds to the JSON property `similaritySearchParams`
31780
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams]
31781
+ attr_accessor :similarity_search_params
31782
+
31783
+ # Parameters for simple (non-similarity search) retrieval.
31784
+ # Corresponds to the JSON property `simpleRetrievalParams`
31785
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimpleRetrievalParams]
31786
+ attr_accessor :simple_retrieval_params
31787
+
31788
+ def initialize(**args)
31789
+ update!(**args)
31790
+ end
31791
+
31792
+ # Update properties of this object
31793
+ def update!(**args)
31794
+ @scope = args[:scope] if args.key?(:scope)
31795
+ @similarity_search_params = args[:similarity_search_params] if args.key?(:similarity_search_params)
31796
+ @simple_retrieval_params = args[:simple_retrieval_params] if args.key?(:simple_retrieval_params)
31797
+ end
31798
+ end
31799
+
31800
+ # Parameters for semantic similarity search based retrieval.
31801
+ class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams
31802
+ include Google::Apis::Core::Hashable
31803
+
31804
+ # Required. Query to use for similarity search retrieval. If provided, then the
31805
+ # parent ReasoningEngine must have ReasoningEngineContextSpec.MemoryBankConfig.
31806
+ # SimilaritySearchConfig set.
31807
+ # Corresponds to the JSON property `searchQuery`
31808
+ # @return [String]
31809
+ attr_accessor :search_query
31810
+
31811
+ # Optional. The maximum number of memories to return. The service may return
31812
+ # fewer than this value. If unspecified, at most 3 memories will be returned.
31813
+ # The maximum value is 100; values above 100 will be coerced to 100.
31814
+ # Corresponds to the JSON property `topK`
31815
+ # @return [Fixnum]
31816
+ attr_accessor :top_k
31817
+
31818
+ def initialize(**args)
31819
+ update!(**args)
31820
+ end
31821
+
31822
+ # Update properties of this object
31823
+ def update!(**args)
31824
+ @search_query = args[:search_query] if args.key?(:search_query)
31825
+ @top_k = args[:top_k] if args.key?(:top_k)
31826
+ end
31827
+ end
31828
+
31829
+ # Parameters for simple (non-similarity search) retrieval.
31830
+ class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimpleRetrievalParams
31831
+ include Google::Apis::Core::Hashable
31832
+
31833
+ # Optional. The maximum number of memories to return. The service may return
31834
+ # fewer than this value. If unspecified, at most 3 memories will be returned.
31835
+ # The maximum value is 100; values above 100 will be coerced to 100.
31836
+ # Corresponds to the JSON property `pageSize`
31837
+ # @return [Fixnum]
31838
+ attr_accessor :page_size
31839
+
31840
+ # Optional. A page token, received from a previous `RetrieveMemories` call.
31841
+ # Provide this to retrieve the subsequent page.
31842
+ # Corresponds to the JSON property `pageToken`
31843
+ # @return [String]
31844
+ attr_accessor :page_token
31845
+
31846
+ def initialize(**args)
31847
+ update!(**args)
31848
+ end
31849
+
31850
+ # Update properties of this object
31851
+ def update!(**args)
31852
+ @page_size = args[:page_size] if args.key?(:page_size)
31853
+ @page_token = args[:page_token] if args.key?(:page_token)
31854
+ end
31855
+ end
31856
+
31857
+ # Response message for MemoryBankService.RetrieveMemories.
31858
+ class GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse
31859
+ include Google::Apis::Core::Hashable
31860
+
31861
+ # A token that can be sent as `page_token` to retrieve the next page. If this
31862
+ # field is omitted, there are no subsequent pages. This token is not set if
31863
+ # similarity search was used for retrieval.
31864
+ # Corresponds to the JSON property `nextPageToken`
31865
+ # @return [String]
31866
+ attr_accessor :next_page_token
31867
+
31868
+ # The retrieved memories.
31869
+ # Corresponds to the JSON property `retrievedMemories`
31870
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponseRetrievedMemory>]
31871
+ attr_accessor :retrieved_memories
31872
+
31873
+ def initialize(**args)
31874
+ update!(**args)
31875
+ end
31876
+
31877
+ # Update properties of this object
31878
+ def update!(**args)
31879
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
31880
+ @retrieved_memories = args[:retrieved_memories] if args.key?(:retrieved_memories)
31881
+ end
31882
+ end
31883
+
31884
+ # A retrieved memory.
31885
+ class GoogleCloudAiplatformV1beta1RetrieveMemoriesResponseRetrievedMemory
31886
+ include Google::Apis::Core::Hashable
31887
+
31888
+ # The distance between the query and the retrieved Memory. Smaller values
31889
+ # indicate more similar memories. This is only set if similarity search was used
31890
+ # for retrieval.
31891
+ # Corresponds to the JSON property `distance`
31892
+ # @return [Float]
31893
+ attr_accessor :distance
31894
+
31895
+ # A memory.
31896
+ # Corresponds to the JSON property `memory`
31897
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory]
31898
+ attr_accessor :memory
31899
+
31900
+ def initialize(**args)
31901
+ update!(**args)
31902
+ end
31903
+
31904
+ # Update properties of this object
31905
+ def update!(**args)
31906
+ @distance = args[:distance] if args.key?(:distance)
31907
+ @memory = args[:memory] if args.key?(:memory)
31908
+ end
31909
+ end
31910
+
31353
31911
  # Configuration for rolling deployments.
31354
31912
  class GoogleCloudAiplatformV1beta1RolloutOptions
31355
31913
  include Google::Apis::Core::Hashable
@@ -31850,6 +32408,13 @@ module Google
31850
32408
  # @return [String]
31851
32409
  attr_accessor :category
31852
32410
 
32411
+ # Output only. The overwritten threshold for the safety category of Gemini 2.0
32412
+ # image out. If minors are detected in the output image, the threshold of each
32413
+ # safety category will be overwritten if user sets a lower threshold.
32414
+ # Corresponds to the JSON property `overwrittenThreshold`
32415
+ # @return [String]
32416
+ attr_accessor :overwritten_threshold
32417
+
31853
32418
  # Output only. Harm probability levels in the content.
31854
32419
  # Corresponds to the JSON property `probability`
31855
32420
  # @return [String]
@@ -31878,6 +32443,7 @@ module Google
31878
32443
  def update!(**args)
31879
32444
  @blocked = args[:blocked] if args.key?(:blocked)
31880
32445
  @category = args[:category] if args.key?(:category)
32446
+ @overwritten_threshold = args[:overwritten_threshold] if args.key?(:overwritten_threshold)
31881
32447
  @probability = args[:probability] if args.key?(:probability)
31882
32448
  @probability_score = args[:probability_score] if args.key?(:probability_score)
31883
32449
  @severity = args[:severity] if args.key?(:severity)
@@ -42344,7 +42910,8 @@ module Google
42344
42910
  # @return [Fixnum]
42345
42911
  attr_accessor :epoch_count
42346
42912
 
42347
- # Optional. Multiplier for adjusting the default learning rate.
42913
+ # Optional. Multiplier for adjusting the default learning rate. Mutually
42914
+ # exclusive with `learning_rate`.
42348
42915
  # Corresponds to the JSON property `learningRateMultiplier`
42349
42916
  # @return [Float]
42350
42917
  attr_accessor :learning_rate_multiplier
@@ -45932,6 +46499,16 @@ module Google
45932
46499
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
45933
46500
  attr_accessor :rag_file_chunking_config
45934
46501
 
46502
+ # Metadata config for RagFile.
46503
+ # Corresponds to the JSON property `ragFileMetadataConfig`
46504
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileMetadataConfig]
46505
+ attr_accessor :rag_file_metadata_config
46506
+
46507
+ # Specifies the parsing config for RagFiles.
46508
+ # Corresponds to the JSON property `ragFileParsingConfig`
46509
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfig]
46510
+ attr_accessor :rag_file_parsing_config
46511
+
45935
46512
  # Specifies the transformation config for RagFiles.
45936
46513
  # Corresponds to the JSON property `ragFileTransformationConfig`
45937
46514
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileTransformationConfig]
@@ -45944,6 +46521,8 @@ module Google
45944
46521
  # Update properties of this object
45945
46522
  def update!(**args)
45946
46523
  @rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
46524
+ @rag_file_metadata_config = args[:rag_file_metadata_config] if args.key?(:rag_file_metadata_config)
46525
+ @rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
45947
46526
  @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
45948
46527
  end
45949
46528
  end