google-apis-aiplatform_v1beta1 0.63.0 → 0.64.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.
@@ -8409,6 +8409,107 @@ module Google
8409
8409
  end
8410
8410
  end
8411
8411
 
8412
+ # Request message for PredictionService.EmbedContent.
8413
+ class GoogleCloudAiplatformV1beta1EmbedContentRequest
8414
+ include Google::Apis::Core::Hashable
8415
+
8416
+ # Optional. Whether to silently truncate the input content if it's longer than
8417
+ # the maximum sequence length.
8418
+ # Corresponds to the JSON property `autoTruncate`
8419
+ # @return [Boolean]
8420
+ attr_accessor :auto_truncate
8421
+ alias_method :auto_truncate?, :auto_truncate
8422
+
8423
+ # The base structured datatype containing multi-part content of a message. A `
8424
+ # Content` includes a `role` field designating the producer of the `Content` and
8425
+ # a `parts` field containing multi-part data that contains the content of the
8426
+ # message turn.
8427
+ # Corresponds to the JSON property `content`
8428
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
8429
+ attr_accessor :content
8430
+
8431
+ # Optional. Optional reduced dimension for the output embedding. If set,
8432
+ # excessive values in the output embedding are truncated from the end.
8433
+ # Corresponds to the JSON property `outputDimensionality`
8434
+ # @return [Fixnum]
8435
+ attr_accessor :output_dimensionality
8436
+
8437
+ # Optional. The task type of the embedding.
8438
+ # Corresponds to the JSON property `taskType`
8439
+ # @return [String]
8440
+ attr_accessor :task_type
8441
+
8442
+ # Optional. An optional title for the text.
8443
+ # Corresponds to the JSON property `title`
8444
+ # @return [String]
8445
+ attr_accessor :title
8446
+
8447
+ def initialize(**args)
8448
+ update!(**args)
8449
+ end
8450
+
8451
+ # Update properties of this object
8452
+ def update!(**args)
8453
+ @auto_truncate = args[:auto_truncate] if args.key?(:auto_truncate)
8454
+ @content = args[:content] if args.key?(:content)
8455
+ @output_dimensionality = args[:output_dimensionality] if args.key?(:output_dimensionality)
8456
+ @task_type = args[:task_type] if args.key?(:task_type)
8457
+ @title = args[:title] if args.key?(:title)
8458
+ end
8459
+ end
8460
+
8461
+ # Response message for PredictionService.EmbedContent.
8462
+ class GoogleCloudAiplatformV1beta1EmbedContentResponse
8463
+ include Google::Apis::Core::Hashable
8464
+
8465
+ # A list of floats representing an embedding.
8466
+ # Corresponds to the JSON property `embedding`
8467
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding]
8468
+ attr_accessor :embedding
8469
+
8470
+ # Whether the input content was truncated before generating the embedding.
8471
+ # Corresponds to the JSON property `truncated`
8472
+ # @return [Boolean]
8473
+ attr_accessor :truncated
8474
+ alias_method :truncated?, :truncated
8475
+
8476
+ # Usage metadata about the content generation request and response. This message
8477
+ # provides a detailed breakdown of token usage and other relevant metrics.
8478
+ # Corresponds to the JSON property `usageMetadata`
8479
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UsageMetadata]
8480
+ attr_accessor :usage_metadata
8481
+
8482
+ def initialize(**args)
8483
+ update!(**args)
8484
+ end
8485
+
8486
+ # Update properties of this object
8487
+ def update!(**args)
8488
+ @embedding = args[:embedding] if args.key?(:embedding)
8489
+ @truncated = args[:truncated] if args.key?(:truncated)
8490
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
8491
+ end
8492
+ end
8493
+
8494
+ # A list of floats representing an embedding.
8495
+ class GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding
8496
+ include Google::Apis::Core::Hashable
8497
+
8498
+ # Embedding vector values.
8499
+ # Corresponds to the JSON property `values`
8500
+ # @return [Array<Float>]
8501
+ attr_accessor :values
8502
+
8503
+ def initialize(**args)
8504
+ update!(**args)
8505
+ end
8506
+
8507
+ # Update properties of this object
8508
+ def update!(**args)
8509
+ @values = args[:values] if args.key?(:values)
8510
+ end
8511
+ end
8512
+
8412
8513
  # Request message for ModelGardenService.EnableModel.
8413
8514
  class GoogleCloudAiplatformV1beta1EnableModelRequest
8414
8515
  include Google::Apis::Core::Hashable
@@ -10667,12 +10768,6 @@ module Google
10667
10768
  # @return [String]
10668
10769
  attr_accessor :transfer_agent
10669
10770
 
10670
- # Deprecated. If set, the event transfers to the specified agent.
10671
- # Corresponds to the JSON property `transferToAgent`
10672
- # @return [Boolean]
10673
- attr_accessor :transfer_to_agent
10674
- alias_method :transfer_to_agent?, :transfer_to_agent
10675
-
10676
10771
  def initialize(**args)
10677
10772
  update!(**args)
10678
10773
  end
@@ -10685,7 +10780,6 @@ module Google
10685
10780
  @skip_summarization = args[:skip_summarization] if args.key?(:skip_summarization)
10686
10781
  @state_delta = args[:state_delta] if args.key?(:state_delta)
10687
10782
  @transfer_agent = args[:transfer_agent] if args.key?(:transfer_agent)
10688
- @transfer_to_agent = args[:transfer_to_agent] if args.key?(:transfer_to_agent)
10689
10783
  end
10690
10784
  end
10691
10785
 
@@ -16218,6 +16312,12 @@ module Google
16218
16312
  # @return [String]
16219
16313
  attr_accessor :name
16220
16314
 
16315
+ # Optional. Ordered `Parts` that constitute a function response. Parts may have
16316
+ # different IANA MIME types.
16317
+ # Corresponds to the JSON property `parts`
16318
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponsePart>]
16319
+ attr_accessor :parts
16320
+
16221
16321
  # Required. The function response in JSON object format. Use "output" key to
16222
16322
  # specify function output and "error" key to specify error details (if any). If "
16223
16323
  # output" and "error" keys are not specified, then whole "response" is treated
@@ -16234,10 +16334,113 @@ module Google
16234
16334
  def update!(**args)
16235
16335
  @id = args[:id] if args.key?(:id)
16236
16336
  @name = args[:name] if args.key?(:name)
16337
+ @parts = args[:parts] if args.key?(:parts)
16237
16338
  @response = args[:response] if args.key?(:response)
16238
16339
  end
16239
16340
  end
16240
16341
 
16342
+ # Raw media bytes for function response. Text should not be sent as raw bytes,
16343
+ # use the 'text' field.
16344
+ class GoogleCloudAiplatformV1beta1FunctionResponseBlob
16345
+ include Google::Apis::Core::Hashable
16346
+
16347
+ # Required. Raw bytes.
16348
+ # Corresponds to the JSON property `data`
16349
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
16350
+ # @return [String]
16351
+ attr_accessor :data
16352
+
16353
+ # Optional. Display name of the blob. Used to provide a label or filename to
16354
+ # distinguish blobs. This field is only returned in PromptMessage for prompt
16355
+ # management. It is currently used in the Gemini GenerateContent calls only when
16356
+ # server side tools (code_execution, google_search, and url_context) are enabled.
16357
+ # Corresponds to the JSON property `displayName`
16358
+ # @return [String]
16359
+ attr_accessor :display_name
16360
+
16361
+ # Required. The IANA standard MIME type of the source data.
16362
+ # Corresponds to the JSON property `mimeType`
16363
+ # @return [String]
16364
+ attr_accessor :mime_type
16365
+
16366
+ def initialize(**args)
16367
+ update!(**args)
16368
+ end
16369
+
16370
+ # Update properties of this object
16371
+ def update!(**args)
16372
+ @data = args[:data] if args.key?(:data)
16373
+ @display_name = args[:display_name] if args.key?(:display_name)
16374
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
16375
+ end
16376
+ end
16377
+
16378
+ # URI based data for function response.
16379
+ class GoogleCloudAiplatformV1beta1FunctionResponseFileData
16380
+ include Google::Apis::Core::Hashable
16381
+
16382
+ # Optional. Display name of the file data. Used to provide a label or filename
16383
+ # to distinguish file datas. This field is only returned in PromptMessage for
16384
+ # prompt management. It is currently used in the Gemini GenerateContent calls
16385
+ # only when server side tools (code_execution, google_search, and url_context)
16386
+ # are enabled.
16387
+ # Corresponds to the JSON property `displayName`
16388
+ # @return [String]
16389
+ attr_accessor :display_name
16390
+
16391
+ # Required. URI.
16392
+ # Corresponds to the JSON property `fileUri`
16393
+ # @return [String]
16394
+ attr_accessor :file_uri
16395
+
16396
+ # Required. The IANA standard MIME type of the source data.
16397
+ # Corresponds to the JSON property `mimeType`
16398
+ # @return [String]
16399
+ attr_accessor :mime_type
16400
+
16401
+ def initialize(**args)
16402
+ update!(**args)
16403
+ end
16404
+
16405
+ # Update properties of this object
16406
+ def update!(**args)
16407
+ @display_name = args[:display_name] if args.key?(:display_name)
16408
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
16409
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
16410
+ end
16411
+ end
16412
+
16413
+ # A datatype containing media that is part of a `FunctionResponse` message. A `
16414
+ # FunctionResponsePart` consists of data which has an associated datatype. A `
16415
+ # FunctionResponsePart` can only contain one of the accepted types in `
16416
+ # FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA
16417
+ # MIME type identifying the type and subtype of the media if the `inline_data`
16418
+ # field is filled with raw bytes.
16419
+ class GoogleCloudAiplatformV1beta1FunctionResponsePart
16420
+ include Google::Apis::Core::Hashable
16421
+
16422
+ # URI based data for function response.
16423
+ # Corresponds to the JSON property `fileData`
16424
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponseFileData]
16425
+ attr_accessor :file_data
16426
+
16427
+ # Raw media bytes for function response. Text should not be sent as raw bytes,
16428
+ # use the 'text' field.
16429
+ # Corresponds to the JSON property `inlineData`
16430
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponseBlob]
16431
+ attr_accessor :inline_data
16432
+
16433
+ def initialize(**args)
16434
+ update!(**args)
16435
+ end
16436
+
16437
+ # Update properties of this object
16438
+ def update!(**args)
16439
+ @file_data = args[:file_data] if args.key?(:file_data)
16440
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
16441
+ end
16442
+ end
16443
+
16241
16444
  # The Google Cloud Storage location where the output is to be written to.
16242
16445
  class GoogleCloudAiplatformV1beta1GcsDestination
16243
16446
  include Google::Apis::Core::Hashable
@@ -16968,6 +17171,29 @@ module Google
16968
17171
  attr_accessor :disable_consolidation
16969
17172
  alias_method :disable_consolidation?, :disable_consolidation
16970
17173
 
17174
+ # Optional. If true, no revisions will be created for this request.
17175
+ # Corresponds to the JSON property `disableMemoryRevisions`
17176
+ # @return [Boolean]
17177
+ attr_accessor :disable_memory_revisions
17178
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
17179
+
17180
+ # Optional. Timestamp of when the revision is considered expired. If not set,
17181
+ # the memory revision will be kept until manually deleted.
17182
+ # Corresponds to the JSON property `revisionExpireTime`
17183
+ # @return [String]
17184
+ attr_accessor :revision_expire_time
17185
+
17186
+ # Optional. Labels to be applied to the generated memory revisions. For example,
17187
+ # you can use this to label a revision with its data source.
17188
+ # Corresponds to the JSON property `revisionLabels`
17189
+ # @return [Hash<String,String>]
17190
+ attr_accessor :revision_labels
17191
+
17192
+ # Optional. The TTL for the revision. The expiration time is computed: now + TTL.
17193
+ # Corresponds to the JSON property `revisionTtl`
17194
+ # @return [String]
17195
+ attr_accessor :revision_ttl
17196
+
16971
17197
  # Optional. The scope of the memories that should be generated. Memories will be
16972
17198
  # consolidated across memories with the same scope. Must be provided unless the
16973
17199
  # scope is defined in the source content. If `scope` is provided, it will
@@ -16993,6 +17219,10 @@ module Google
16993
17219
  @direct_contents_source = args[:direct_contents_source] if args.key?(:direct_contents_source)
16994
17220
  @direct_memories_source = args[:direct_memories_source] if args.key?(:direct_memories_source)
16995
17221
  @disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation)
17222
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
17223
+ @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
17224
+ @revision_labels = args[:revision_labels] if args.key?(:revision_labels)
17225
+ @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
16996
17226
  @scope = args[:scope] if args.key?(:scope)
16997
17227
  @vertex_session_source = args[:vertex_session_source] if args.key?(:vertex_session_source)
16998
17228
  end
@@ -20746,6 +20976,32 @@ module Google
20746
20976
  end
20747
20977
  end
20748
20978
 
20979
+ # Response message for MemoryBankService.ListMemoryRevisions.
20980
+ class GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse
20981
+ include Google::Apis::Core::Hashable
20982
+
20983
+ # The list of Memory Revisions in the request page.
20984
+ # Corresponds to the JSON property `memoryRevisions`
20985
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision>]
20986
+ attr_accessor :memory_revisions
20987
+
20988
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
20989
+ # field is omitted, there are no subsequent pages.
20990
+ # Corresponds to the JSON property `nextPageToken`
20991
+ # @return [String]
20992
+ attr_accessor :next_page_token
20993
+
20994
+ def initialize(**args)
20995
+ update!(**args)
20996
+ end
20997
+
20998
+ # Update properties of this object
20999
+ def update!(**args)
21000
+ @memory_revisions = args[:memory_revisions] if args.key?(:memory_revisions)
21001
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
21002
+ end
21003
+ end
21004
+
20749
21005
  # Response message for MetadataService.ListMetadataSchemas.
20750
21006
  class GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse
20751
21007
  include Google::Apis::Core::Hashable
@@ -21974,6 +22230,12 @@ module Google
21974
22230
  # @return [String]
21975
22231
  attr_accessor :description
21976
22232
 
22233
+ # Optional. Input only. If true, no revision will be created for this request.
22234
+ # Corresponds to the JSON property `disableMemoryRevisions`
22235
+ # @return [Boolean]
22236
+ attr_accessor :disable_memory_revisions
22237
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
22238
+
21977
22239
  # Optional. Display name of the Memory.
21978
22240
  # Corresponds to the JSON property `displayName`
21979
22241
  # @return [String]
@@ -21997,6 +22259,18 @@ module Google
21997
22259
  # @return [String]
21998
22260
  attr_accessor :name
21999
22261
 
22262
+ # Optional. Input only. Timestamp of when the revision is considered expired. If
22263
+ # not set, the memory revision will be kept until manually deleted.
22264
+ # Corresponds to the JSON property `revisionExpireTime`
22265
+ # @return [String]
22266
+ attr_accessor :revision_expire_time
22267
+
22268
+ # Optional. Input only. The TTL for the revision. The expiration time is
22269
+ # computed: now + TTL.
22270
+ # Corresponds to the JSON property `revisionTtl`
22271
+ # @return [String]
22272
+ attr_accessor :revision_ttl
22273
+
22000
22274
  # Required. Immutable. The scope of the Memory. Memories are isolated within
22001
22275
  # their scope. The scope is defined when creating or generating memories. Scope
22002
22276
  # values cannot contain the wildcard character '*'.
@@ -22023,10 +22297,13 @@ module Google
22023
22297
  def update!(**args)
22024
22298
  @create_time = args[:create_time] if args.key?(:create_time)
22025
22299
  @description = args[:description] if args.key?(:description)
22300
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
22026
22301
  @display_name = args[:display_name] if args.key?(:display_name)
22027
22302
  @expire_time = args[:expire_time] if args.key?(:expire_time)
22028
22303
  @fact = args[:fact] if args.key?(:fact)
22029
22304
  @name = args[:name] if args.key?(:name)
22305
+ @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
22306
+ @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
22030
22307
  @scope = args[:scope] if args.key?(:scope)
22031
22308
  @ttl = args[:ttl] if args.key?(:ttl)
22032
22309
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -22238,6 +22515,54 @@ module Google
22238
22515
  end
22239
22516
  end
22240
22517
 
22518
+ # A revision of a Memory.
22519
+ class GoogleCloudAiplatformV1beta1MemoryRevision
22520
+ include Google::Apis::Core::Hashable
22521
+
22522
+ # Output only. Timestamp when this Memory Revision was created.
22523
+ # Corresponds to the JSON property `createTime`
22524
+ # @return [String]
22525
+ attr_accessor :create_time
22526
+
22527
+ # Output only. Timestamp of when this resource is considered expired.
22528
+ # Corresponds to the JSON property `expireTime`
22529
+ # @return [String]
22530
+ attr_accessor :expire_time
22531
+
22532
+ # Output only. The fact of the Memory Revision. This corresponds to the `fact`
22533
+ # field of the parent Memory at the time of revision creation.
22534
+ # Corresponds to the JSON property `fact`
22535
+ # @return [String]
22536
+ attr_accessor :fact
22537
+
22538
+ # Output only. The labels of the Memory Revision. These labels are applied to
22539
+ # the MemoryRevision when it is created based on `GenerateMemoriesRequest.
22540
+ # revision_labels`.
22541
+ # Corresponds to the JSON property `labels`
22542
+ # @return [Hash<String,String>]
22543
+ attr_accessor :labels
22544
+
22545
+ # Identifier. The resource name of the Memory Revision. Format: `projects/`
22546
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/`
22547
+ # memory`/revisions/`memory_revision``
22548
+ # Corresponds to the JSON property `name`
22549
+ # @return [String]
22550
+ attr_accessor :name
22551
+
22552
+ def initialize(**args)
22553
+ update!(**args)
22554
+ end
22555
+
22556
+ # Update properties of this object
22557
+ def update!(**args)
22558
+ @create_time = args[:create_time] if args.key?(:create_time)
22559
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
22560
+ @fact = args[:fact] if args.key?(:fact)
22561
+ @labels = args[:labels] if args.key?(:labels)
22562
+ @name = args[:name] if args.key?(:name)
22563
+ end
22564
+ end
22565
+
22241
22566
  # A memory topic identifier. This will be used to label a Memory and to restrict
22242
22567
  # which topics are eligible for generation or retrieval.
22243
22568
  class GoogleCloudAiplatformV1beta1MemoryTopicId
@@ -29931,6 +30256,12 @@ module Google
29931
30256
  # @return [Array<Object>]
29932
30257
  attr_accessor :instances
29933
30258
 
30259
+ # Optional. The user labels for Imagen billing usage only. Only Imagen supports
30260
+ # labels. For other use cases, it will be ignored.
30261
+ # Corresponds to the JSON property `labels`
30262
+ # @return [Hash<String,String>]
30263
+ attr_accessor :labels
30264
+
29934
30265
  # The parameters that govern the prediction. The schema of the parameters may be
29935
30266
  # specified via Endpoint's DeployedModels' Model's PredictSchemata's
29936
30267
  # parameters_schema_uri.
@@ -29945,6 +30276,7 @@ module Google
29945
30276
  # Update properties of this object
29946
30277
  def update!(**args)
29947
30278
  @instances = args[:instances] if args.key?(:instances)
30279
+ @labels = args[:labels] if args.key?(:labels)
29948
30280
  @parameters = args[:parameters] if args.key?(:parameters)
29949
30281
  end
29950
30282
  end
@@ -34136,6 +34468,13 @@ module Google
34136
34468
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryBankCustomizationConfig>]
34137
34469
  attr_accessor :customization_configs
34138
34470
 
34471
+ # If true, no memory revisions will be created for any requests to the Memory
34472
+ # Bank.
34473
+ # Corresponds to the JSON property `disableMemoryRevisions`
34474
+ # @return [Boolean]
34475
+ attr_accessor :disable_memory_revisions
34476
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
34477
+
34139
34478
  # Configuration for how to generate memories.
34140
34479
  # Corresponds to the JSON property `generationConfig`
34141
34480
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig]
@@ -34159,6 +34498,7 @@ module Google
34159
34498
  # Update properties of this object
34160
34499
  def update!(**args)
34161
34500
  @customization_configs = args[:customization_configs] if args.key?(:customization_configs)
34501
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
34162
34502
  @generation_config = args[:generation_config] if args.key?(:generation_config)
34163
34503
  @similarity_search_config = args[:similarity_search_config] if args.key?(:similarity_search_config)
34164
34504
  @ttl_config = args[:ttl_config] if args.key?(:ttl_config)
@@ -34223,6 +34563,13 @@ module Google
34223
34563
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigTtlConfigGranularTtlConfig]
34224
34564
  attr_accessor :granular_ttl_config
34225
34565
 
34566
+ # Optional. The default TTL duration of the memory revisions in the Memory Bank.
34567
+ # This applies to all operations that create a memory revision. If not set, a
34568
+ # default TTL of 365 days will be used.
34569
+ # Corresponds to the JSON property `memoryRevisionDefaultTtl`
34570
+ # @return [String]
34571
+ attr_accessor :memory_revision_default_ttl
34572
+
34226
34573
  def initialize(**args)
34227
34574
  update!(**args)
34228
34575
  end
@@ -34231,6 +34578,7 @@ module Google
34231
34578
  def update!(**args)
34232
34579
  @default_ttl = args[:default_ttl] if args.key?(:default_ttl)
34233
34580
  @granular_ttl_config = args[:granular_ttl_config] if args.key?(:granular_ttl_config)
34581
+ @memory_revision_default_ttl = args[:memory_revision_default_ttl] if args.key?(:memory_revision_default_ttl)
34234
34582
  end
34235
34583
  end
34236
34584
 
@@ -35465,6 +35813,25 @@ module Google
35465
35813
  end
35466
35814
  end
35467
35815
 
35816
+ # Request message for MemoryBankService.RollbackMemory.
35817
+ class GoogleCloudAiplatformV1beta1RollbackMemoryRequest
35818
+ include Google::Apis::Core::Hashable
35819
+
35820
+ # Required. The ID of the revision to rollback to.
35821
+ # Corresponds to the JSON property `targetRevisionId`
35822
+ # @return [Fixnum]
35823
+ attr_accessor :target_revision_id
35824
+
35825
+ def initialize(**args)
35826
+ update!(**args)
35827
+ end
35828
+
35829
+ # Update properties of this object
35830
+ def update!(**args)
35831
+ @target_revision_id = args[:target_revision_id] if args.key?(:target_revision_id)
35832
+ end
35833
+ end
35834
+
35468
35835
  # Configuration for rolling deployments.
35469
35836
  class GoogleCloudAiplatformV1beta1RolloutOptions
35470
35837
  include Google::Apis::Core::Hashable
@@ -48030,6 +48397,11 @@ module Google
48030
48397
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCodeExecution]
48031
48398
  attr_accessor :code_execution
48032
48399
 
48400
+ # Tool to support computer use.
48401
+ # Corresponds to the JSON property `computerUse`
48402
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolComputerUse]
48403
+ attr_accessor :computer_use
48404
+
48033
48405
  # Tool to search public web data, powered by Vertex AI Search and Sec4
48034
48406
  # compliance.
48035
48407
  # Corresponds to the JSON property `enterpriseWebSearch`
@@ -48079,6 +48451,7 @@ module Google
48079
48451
  # Update properties of this object
48080
48452
  def update!(**args)
48081
48453
  @code_execution = args[:code_execution] if args.key?(:code_execution)
48454
+ @computer_use = args[:computer_use] if args.key?(:computer_use)
48082
48455
  @enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
48083
48456
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
48084
48457
  @google_maps = args[:google_maps] if args.key?(:google_maps)
@@ -48230,6 +48603,35 @@ module Google
48230
48603
  end
48231
48604
  end
48232
48605
 
48606
+ # Tool to support computer use.
48607
+ class GoogleCloudAiplatformV1beta1ToolComputerUse
48608
+ include Google::Apis::Core::Hashable
48609
+
48610
+ # Required. The environment being operated.
48611
+ # Corresponds to the JSON property `environment`
48612
+ # @return [String]
48613
+ attr_accessor :environment
48614
+
48615
+ # Optional. By default, predefined functions are included in the final model
48616
+ # call. Some of them can be explicitly excluded from being automatically
48617
+ # included. This can serve two purposes: 1. Using a more restricted / different
48618
+ # action space. 2. Improving the definitions / instructions of predefined
48619
+ # functions.
48620
+ # Corresponds to the JSON property `excludedPredefinedFunctions`
48621
+ # @return [Array<String>]
48622
+ attr_accessor :excluded_predefined_functions
48623
+
48624
+ def initialize(**args)
48625
+ update!(**args)
48626
+ end
48627
+
48628
+ # Update properties of this object
48629
+ def update!(**args)
48630
+ @environment = args[:environment] if args.key?(:environment)
48631
+ @excluded_predefined_functions = args[:excluded_predefined_functions] if args.key?(:excluded_predefined_functions)
48632
+ end
48633
+ end
48634
+
48233
48635
  # Tool config. This config is shared for all tools provided in the request.
48234
48636
  class GoogleCloudAiplatformV1beta1ToolConfig
48235
48637
  include Google::Apis::Core::Hashable
@@ -50910,6 +51312,97 @@ module Google
50910
51312
  end
50911
51313
  end
50912
51314
 
51315
+ # Usage metadata about the content generation request and response. This message
51316
+ # provides a detailed breakdown of token usage and other relevant metrics.
51317
+ class GoogleCloudAiplatformV1beta1UsageMetadata
51318
+ include Google::Apis::Core::Hashable
51319
+
51320
+ # Output only. A detailed breakdown of the token count for each modality in the
51321
+ # cached content.
51322
+ # Corresponds to the JSON property `cacheTokensDetails`
51323
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51324
+ attr_accessor :cache_tokens_details
51325
+
51326
+ # Output only. The number of tokens in the cached content that was used for this
51327
+ # request.
51328
+ # Corresponds to the JSON property `cachedContentTokenCount`
51329
+ # @return [Fixnum]
51330
+ attr_accessor :cached_content_token_count
51331
+
51332
+ # The total number of tokens in the generated candidates.
51333
+ # Corresponds to the JSON property `candidatesTokenCount`
51334
+ # @return [Fixnum]
51335
+ attr_accessor :candidates_token_count
51336
+
51337
+ # Output only. A detailed breakdown of the token count for each modality in the
51338
+ # generated candidates.
51339
+ # Corresponds to the JSON property `candidatesTokensDetails`
51340
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51341
+ attr_accessor :candidates_tokens_details
51342
+
51343
+ # The total number of tokens in the prompt. This includes any text, images, or
51344
+ # other media provided in the request. When `cached_content` is set, this also
51345
+ # includes the number of tokens in the cached content.
51346
+ # Corresponds to the JSON property `promptTokenCount`
51347
+ # @return [Fixnum]
51348
+ attr_accessor :prompt_token_count
51349
+
51350
+ # Output only. A detailed breakdown of the token count for each modality in the
51351
+ # prompt.
51352
+ # Corresponds to the JSON property `promptTokensDetails`
51353
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51354
+ attr_accessor :prompt_tokens_details
51355
+
51356
+ # Output only. The number of tokens that were part of the model's generated "
51357
+ # thoughts" output, if applicable.
51358
+ # Corresponds to the JSON property `thoughtsTokenCount`
51359
+ # @return [Fixnum]
51360
+ attr_accessor :thoughts_token_count
51361
+
51362
+ # Output only. The number of tokens in the results from tool executions, which
51363
+ # are provided back to the model as input, if applicable.
51364
+ # Corresponds to the JSON property `toolUsePromptTokenCount`
51365
+ # @return [Fixnum]
51366
+ attr_accessor :tool_use_prompt_token_count
51367
+
51368
+ # Output only. A detailed breakdown by modality of the token counts from the
51369
+ # results of tool executions, which are provided back to the model as input.
51370
+ # Corresponds to the JSON property `toolUsePromptTokensDetails`
51371
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51372
+ attr_accessor :tool_use_prompt_tokens_details
51373
+
51374
+ # The total number of tokens for the entire request. This is the sum of `
51375
+ # prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
51376
+ # and `thoughts_token_count`.
51377
+ # Corresponds to the JSON property `totalTokenCount`
51378
+ # @return [Fixnum]
51379
+ attr_accessor :total_token_count
51380
+
51381
+ # Output only. The traffic type for this request.
51382
+ # Corresponds to the JSON property `trafficType`
51383
+ # @return [String]
51384
+ attr_accessor :traffic_type
51385
+
51386
+ def initialize(**args)
51387
+ update!(**args)
51388
+ end
51389
+
51390
+ # Update properties of this object
51391
+ def update!(**args)
51392
+ @cache_tokens_details = args[:cache_tokens_details] if args.key?(:cache_tokens_details)
51393
+ @cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
51394
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
51395
+ @candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
51396
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
51397
+ @prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
51398
+ @thoughts_token_count = args[:thoughts_token_count] if args.key?(:thoughts_token_count)
51399
+ @tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
51400
+ @tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
51401
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
51402
+ @traffic_type = args[:traffic_type] if args.key?(:traffic_type)
51403
+ end
51404
+ end
51405
+
50913
51406
  # References an API call. It contains more information about long running
50914
51407
  # operation and Jobs that are triggered by the API call.
50915
51408
  class GoogleCloudAiplatformV1beta1UserActionReference
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1beta1
18
18
  # Version of the google-apis-aiplatform_v1beta1 gem
19
- GEM_VERSION = "0.63.0"
19
+ GEM_VERSION = "0.64.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251003"
25
+ REVISION = "20251010"
26
26
  end
27
27
  end
28
28
  end