google-apis-aiplatform_v1beta1 0.63.0 → 0.65.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.
@@ -3661,6 +3661,12 @@ module Google
3661
3661
  # @return [String]
3662
3662
  attr_accessor :candidate
3663
3663
 
3664
+ # Optional. Intermediate events (such as tool calls and responses) that led to
3665
+ # the final response.
3666
+ # Corresponds to the JSON property `events`
3667
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
3668
+ attr_accessor :events
3669
+
3664
3670
  # Text response.
3665
3671
  # Corresponds to the JSON property `text`
3666
3672
  # @return [String]
@@ -3678,6 +3684,7 @@ module Google
3678
3684
  # Update properties of this object
3679
3685
  def update!(**args)
3680
3686
  @candidate = args[:candidate] if args.key?(:candidate)
3687
+ @events = args[:events] if args.key?(:events)
3681
3688
  @text = args[:text] if args.key?(:text)
3682
3689
  @value = args[:value] if args.key?(:value)
3683
3690
  end
@@ -6756,7 +6763,7 @@ module Google
6756
6763
  class GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec
6757
6764
  include Google::Apis::Core::Hashable
6758
6765
 
6759
- # Optional. Duration of no traffic before scaling to zero. [MinValue=3600] (5
6766
+ # Optional. Duration of no traffic before scaling to zero. [MinValue=300] (5
6760
6767
  # minutes) [MaxValue=28800] (8 hours)
6761
6768
  # Corresponds to the JSON property `idleScaledownPeriod`
6762
6769
  # @return [String]
@@ -8409,6 +8416,107 @@ module Google
8409
8416
  end
8410
8417
  end
8411
8418
 
8419
+ # Request message for PredictionService.EmbedContent.
8420
+ class GoogleCloudAiplatformV1beta1EmbedContentRequest
8421
+ include Google::Apis::Core::Hashable
8422
+
8423
+ # Optional. Whether to silently truncate the input content if it's longer than
8424
+ # the maximum sequence length.
8425
+ # Corresponds to the JSON property `autoTruncate`
8426
+ # @return [Boolean]
8427
+ attr_accessor :auto_truncate
8428
+ alias_method :auto_truncate?, :auto_truncate
8429
+
8430
+ # The base structured datatype containing multi-part content of a message. A `
8431
+ # Content` includes a `role` field designating the producer of the `Content` and
8432
+ # a `parts` field containing multi-part data that contains the content of the
8433
+ # message turn.
8434
+ # Corresponds to the JSON property `content`
8435
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
8436
+ attr_accessor :content
8437
+
8438
+ # Optional. Optional reduced dimension for the output embedding. If set,
8439
+ # excessive values in the output embedding are truncated from the end.
8440
+ # Corresponds to the JSON property `outputDimensionality`
8441
+ # @return [Fixnum]
8442
+ attr_accessor :output_dimensionality
8443
+
8444
+ # Optional. The task type of the embedding.
8445
+ # Corresponds to the JSON property `taskType`
8446
+ # @return [String]
8447
+ attr_accessor :task_type
8448
+
8449
+ # Optional. An optional title for the text.
8450
+ # Corresponds to the JSON property `title`
8451
+ # @return [String]
8452
+ attr_accessor :title
8453
+
8454
+ def initialize(**args)
8455
+ update!(**args)
8456
+ end
8457
+
8458
+ # Update properties of this object
8459
+ def update!(**args)
8460
+ @auto_truncate = args[:auto_truncate] if args.key?(:auto_truncate)
8461
+ @content = args[:content] if args.key?(:content)
8462
+ @output_dimensionality = args[:output_dimensionality] if args.key?(:output_dimensionality)
8463
+ @task_type = args[:task_type] if args.key?(:task_type)
8464
+ @title = args[:title] if args.key?(:title)
8465
+ end
8466
+ end
8467
+
8468
+ # Response message for PredictionService.EmbedContent.
8469
+ class GoogleCloudAiplatformV1beta1EmbedContentResponse
8470
+ include Google::Apis::Core::Hashable
8471
+
8472
+ # A list of floats representing an embedding.
8473
+ # Corresponds to the JSON property `embedding`
8474
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding]
8475
+ attr_accessor :embedding
8476
+
8477
+ # Whether the input content was truncated before generating the embedding.
8478
+ # Corresponds to the JSON property `truncated`
8479
+ # @return [Boolean]
8480
+ attr_accessor :truncated
8481
+ alias_method :truncated?, :truncated
8482
+
8483
+ # Usage metadata about the content generation request and response. This message
8484
+ # provides a detailed breakdown of token usage and other relevant metrics.
8485
+ # Corresponds to the JSON property `usageMetadata`
8486
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UsageMetadata]
8487
+ attr_accessor :usage_metadata
8488
+
8489
+ def initialize(**args)
8490
+ update!(**args)
8491
+ end
8492
+
8493
+ # Update properties of this object
8494
+ def update!(**args)
8495
+ @embedding = args[:embedding] if args.key?(:embedding)
8496
+ @truncated = args[:truncated] if args.key?(:truncated)
8497
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
8498
+ end
8499
+ end
8500
+
8501
+ # A list of floats representing an embedding.
8502
+ class GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding
8503
+ include Google::Apis::Core::Hashable
8504
+
8505
+ # Embedding vector values.
8506
+ # Corresponds to the JSON property `values`
8507
+ # @return [Array<Float>]
8508
+ attr_accessor :values
8509
+
8510
+ def initialize(**args)
8511
+ update!(**args)
8512
+ end
8513
+
8514
+ # Update properties of this object
8515
+ def update!(**args)
8516
+ @values = args[:values] if args.key?(:values)
8517
+ end
8518
+ end
8519
+
8412
8520
  # Request message for ModelGardenService.EnableModel.
8413
8521
  class GoogleCloudAiplatformV1beta1EnableModelRequest
8414
8522
  include Google::Apis::Core::Hashable
@@ -9620,6 +9728,11 @@ module Google
9620
9728
  class GoogleCloudAiplatformV1beta1EvaluationInstance
9621
9729
  include Google::Apis::Core::Hashable
9622
9730
 
9731
+ # Contains data specific to agent evaluations.
9732
+ # Corresponds to the JSON property `agentData`
9733
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData]
9734
+ attr_accessor :agent_data
9735
+
9623
9736
  # Instance data specified as a map.
9624
9737
  # Corresponds to the JSON property `otherData`
9625
9738
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance]
@@ -9653,6 +9766,7 @@ module Google
9653
9766
 
9654
9767
  # Update properties of this object
9655
9768
  def update!(**args)
9769
+ @agent_data = args[:agent_data] if args.key?(:agent_data)
9656
9770
  @other_data = args[:other_data] if args.key?(:other_data)
9657
9771
  @prompt = args[:prompt] if args.key?(:prompt)
9658
9772
  @reference = args[:reference] if args.key?(:reference)
@@ -9661,6 +9775,150 @@ module Google
9661
9775
  end
9662
9776
  end
9663
9777
 
9778
+ # Configuration for an Agent.
9779
+ class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig
9780
+ include Google::Apis::Core::Hashable
9781
+
9782
+ # Instance data used to populate placeholders in a metric prompt template.
9783
+ # Corresponds to the JSON property `developerInstruction`
9784
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData]
9785
+ attr_accessor :developer_instruction
9786
+
9787
+ # Represents a list of tools for an agent.
9788
+ # Corresponds to the JSON property `tools`
9789
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools]
9790
+ attr_accessor :tools
9791
+
9792
+ # A JSON string containing a list of tools available to an agent with info such
9793
+ # as name, description, parameters and required parameters.
9794
+ # Corresponds to the JSON property `toolsText`
9795
+ # @return [String]
9796
+ attr_accessor :tools_text
9797
+
9798
+ def initialize(**args)
9799
+ update!(**args)
9800
+ end
9801
+
9802
+ # Update properties of this object
9803
+ def update!(**args)
9804
+ @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction)
9805
+ @tools = args[:tools] if args.key?(:tools)
9806
+ @tools_text = args[:tools_text] if args.key?(:tools_text)
9807
+ end
9808
+ end
9809
+
9810
+ # Represents a list of tools for an agent.
9811
+ class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools
9812
+ include Google::Apis::Core::Hashable
9813
+
9814
+ # Optional. List of tools: each tool can have multiple function declarations.
9815
+ # Corresponds to the JSON property `tool`
9816
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
9817
+ attr_accessor :tool
9818
+
9819
+ def initialize(**args)
9820
+ update!(**args)
9821
+ end
9822
+
9823
+ # Update properties of this object
9824
+ def update!(**args)
9825
+ @tool = args[:tool] if args.key?(:tool)
9826
+ end
9827
+ end
9828
+
9829
+ # Contains data specific to agent evaluations.
9830
+ class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData
9831
+ include Google::Apis::Core::Hashable
9832
+
9833
+ # Configuration for an Agent.
9834
+ # Corresponds to the JSON property `agentConfig`
9835
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig]
9836
+ attr_accessor :agent_config
9837
+
9838
+ # Instance data used to populate placeholders in a metric prompt template.
9839
+ # Corresponds to the JSON property `developerInstruction`
9840
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData]
9841
+ attr_accessor :developer_instruction
9842
+
9843
+ # Represents a list of events for an agent.
9844
+ # Corresponds to the JSON property `events`
9845
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents]
9846
+ attr_accessor :events
9847
+
9848
+ # A JSON string containing a sequence of events.
9849
+ # Corresponds to the JSON property `eventsText`
9850
+ # @return [String]
9851
+ attr_accessor :events_text
9852
+
9853
+ # Represents a list of tools for an agent.
9854
+ # Corresponds to the JSON property `tools`
9855
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools]
9856
+ attr_accessor :tools
9857
+
9858
+ # A JSON string containing a list of tools available to an agent with info such
9859
+ # as name, description, parameters and required parameters. Example: [ ` "name":
9860
+ # "search_actors", "description": "Search for actors in a movie. Returns a list
9861
+ # of actors, their roles, their birthdate, and their place of birth.", "
9862
+ # parameters": [ ` "name": "movie_name", "description": "The name of the movie."
9863
+ # `, ` "name": "character_name", "description": "The name of the character." ` ],
9864
+ # "required": ["movie_name", "character_name"] ` ]
9865
+ # Corresponds to the JSON property `toolsText`
9866
+ # @return [String]
9867
+ attr_accessor :tools_text
9868
+
9869
+ def initialize(**args)
9870
+ update!(**args)
9871
+ end
9872
+
9873
+ # Update properties of this object
9874
+ def update!(**args)
9875
+ @agent_config = args[:agent_config] if args.key?(:agent_config)
9876
+ @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction)
9877
+ @events = args[:events] if args.key?(:events)
9878
+ @events_text = args[:events_text] if args.key?(:events_text)
9879
+ @tools = args[:tools] if args.key?(:tools)
9880
+ @tools_text = args[:tools_text] if args.key?(:tools_text)
9881
+ end
9882
+ end
9883
+
9884
+ # Represents a list of events for an agent.
9885
+ class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents
9886
+ include Google::Apis::Core::Hashable
9887
+
9888
+ # Optional. A list of events.
9889
+ # Corresponds to the JSON property `event`
9890
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
9891
+ attr_accessor :event
9892
+
9893
+ def initialize(**args)
9894
+ update!(**args)
9895
+ end
9896
+
9897
+ # Update properties of this object
9898
+ def update!(**args)
9899
+ @event = args[:event] if args.key?(:event)
9900
+ end
9901
+ end
9902
+
9903
+ # Represents a list of tools for an agent.
9904
+ class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools
9905
+ include Google::Apis::Core::Hashable
9906
+
9907
+ # Optional. List of tools: each tool can have multiple function declarations.
9908
+ # Corresponds to the JSON property `tool`
9909
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
9910
+ attr_accessor :tool
9911
+
9912
+ def initialize(**args)
9913
+ update!(**args)
9914
+ end
9915
+
9916
+ # Update properties of this object
9917
+ def update!(**args)
9918
+ @tool = args[:tool] if args.key?(:tool)
9919
+ end
9920
+ end
9921
+
9664
9922
  # Instance data used to populate placeholders in a metric prompt template.
9665
9923
  class GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData
9666
9924
  include Google::Apis::Core::Hashable
@@ -10278,6 +10536,11 @@ module Google
10278
10536
  class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig
10279
10537
  include Google::Apis::Core::Hashable
10280
10538
 
10539
+ # Configuration that describes an agent.
10540
+ # Corresponds to the JSON property `agentConfig`
10541
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig]
10542
+ attr_accessor :agent_config
10543
+
10281
10544
  # Generation config.
10282
10545
  # Corresponds to the JSON property `generationConfig`
10283
10546
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig]
@@ -10297,11 +10560,40 @@ module Google
10297
10560
 
10298
10561
  # Update properties of this object
10299
10562
  def update!(**args)
10563
+ @agent_config = args[:agent_config] if args.key?(:agent_config)
10300
10564
  @generation_config = args[:generation_config] if args.key?(:generation_config)
10301
10565
  @model = args[:model] if args.key?(:model)
10302
10566
  end
10303
10567
  end
10304
10568
 
10569
+ # Configuration that describes an agent.
10570
+ class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig
10571
+ include Google::Apis::Core::Hashable
10572
+
10573
+ # The base structured datatype containing multi-part content of a message. A `
10574
+ # Content` includes a `role` field designating the producer of the `Content` and
10575
+ # a `parts` field containing multi-part data that contains the content of the
10576
+ # message turn.
10577
+ # Corresponds to the JSON property `developerInstruction`
10578
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
10579
+ attr_accessor :developer_instruction
10580
+
10581
+ # Optional. The tools available to the agent.
10582
+ # Corresponds to the JSON property `tools`
10583
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
10584
+ attr_accessor :tools
10585
+
10586
+ def initialize(**args)
10587
+ update!(**args)
10588
+ end
10589
+
10590
+ # Update properties of this object
10591
+ def update!(**args)
10592
+ @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction)
10593
+ @tools = args[:tools] if args.key?(:tools)
10594
+ end
10595
+ end
10596
+
10305
10597
  # The metric used for evaluation runs.
10306
10598
  class GoogleCloudAiplatformV1beta1EvaluationRunMetric
10307
10599
  include Google::Apis::Core::Hashable
@@ -10316,6 +10608,11 @@ module Google
10316
10608
  # @return [String]
10317
10609
  attr_accessor :metric
10318
10610
 
10611
+ # The metric used for running evaluations.
10612
+ # Corresponds to the JSON property `metricConfig`
10613
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric]
10614
+ attr_accessor :metric_config
10615
+
10319
10616
  # Specification for a pre-defined metric.
10320
10617
  # Corresponds to the JSON property `predefinedMetricSpec`
10321
10618
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec]
@@ -10334,6 +10631,7 @@ module Google
10334
10631
  def update!(**args)
10335
10632
  @llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec)
10336
10633
  @metric = args[:metric] if args.key?(:metric)
10634
+ @metric_config = args[:metric_config] if args.key?(:metric_config)
10337
10635
  @predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec)
10338
10636
  @rubric_based_metric_spec = args[:rubric_based_metric_spec] if args.key?(:rubric_based_metric_spec)
10339
10637
  end
@@ -10667,12 +10965,6 @@ module Google
10667
10965
  # @return [String]
10668
10966
  attr_accessor :transfer_agent
10669
10967
 
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
10968
  def initialize(**args)
10677
10969
  update!(**args)
10678
10970
  end
@@ -10685,7 +10977,6 @@ module Google
10685
10977
  @skip_summarization = args[:skip_summarization] if args.key?(:skip_summarization)
10686
10978
  @state_delta = args[:state_delta] if args.key?(:state_delta)
10687
10979
  @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
10980
  end
10690
10981
  end
10691
10982
 
@@ -16218,6 +16509,12 @@ module Google
16218
16509
  # @return [String]
16219
16510
  attr_accessor :name
16220
16511
 
16512
+ # Optional. Ordered `Parts` that constitute a function response. Parts may have
16513
+ # different IANA MIME types.
16514
+ # Corresponds to the JSON property `parts`
16515
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponsePart>]
16516
+ attr_accessor :parts
16517
+
16221
16518
  # Required. The function response in JSON object format. Use "output" key to
16222
16519
  # specify function output and "error" key to specify error details (if any). If "
16223
16520
  # output" and "error" keys are not specified, then whole "response" is treated
@@ -16234,10 +16531,113 @@ module Google
16234
16531
  def update!(**args)
16235
16532
  @id = args[:id] if args.key?(:id)
16236
16533
  @name = args[:name] if args.key?(:name)
16534
+ @parts = args[:parts] if args.key?(:parts)
16237
16535
  @response = args[:response] if args.key?(:response)
16238
16536
  end
16239
16537
  end
16240
16538
 
16539
+ # Raw media bytes for function response. Text should not be sent as raw bytes,
16540
+ # use the 'text' field.
16541
+ class GoogleCloudAiplatformV1beta1FunctionResponseBlob
16542
+ include Google::Apis::Core::Hashable
16543
+
16544
+ # Required. Raw bytes.
16545
+ # Corresponds to the JSON property `data`
16546
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
16547
+ # @return [String]
16548
+ attr_accessor :data
16549
+
16550
+ # Optional. Display name of the blob. Used to provide a label or filename to
16551
+ # distinguish blobs. This field is only returned in PromptMessage for prompt
16552
+ # management. It is currently used in the Gemini GenerateContent calls only when
16553
+ # server side tools (code_execution, google_search, and url_context) are enabled.
16554
+ # Corresponds to the JSON property `displayName`
16555
+ # @return [String]
16556
+ attr_accessor :display_name
16557
+
16558
+ # Required. The IANA standard MIME type of the source data.
16559
+ # Corresponds to the JSON property `mimeType`
16560
+ # @return [String]
16561
+ attr_accessor :mime_type
16562
+
16563
+ def initialize(**args)
16564
+ update!(**args)
16565
+ end
16566
+
16567
+ # Update properties of this object
16568
+ def update!(**args)
16569
+ @data = args[:data] if args.key?(:data)
16570
+ @display_name = args[:display_name] if args.key?(:display_name)
16571
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
16572
+ end
16573
+ end
16574
+
16575
+ # URI based data for function response.
16576
+ class GoogleCloudAiplatformV1beta1FunctionResponseFileData
16577
+ include Google::Apis::Core::Hashable
16578
+
16579
+ # Optional. Display name of the file data. Used to provide a label or filename
16580
+ # to distinguish file datas. This field is only returned in PromptMessage for
16581
+ # prompt management. It is currently used in the Gemini GenerateContent calls
16582
+ # only when server side tools (code_execution, google_search, and url_context)
16583
+ # are enabled.
16584
+ # Corresponds to the JSON property `displayName`
16585
+ # @return [String]
16586
+ attr_accessor :display_name
16587
+
16588
+ # Required. URI.
16589
+ # Corresponds to the JSON property `fileUri`
16590
+ # @return [String]
16591
+ attr_accessor :file_uri
16592
+
16593
+ # Required. The IANA standard MIME type of the source data.
16594
+ # Corresponds to the JSON property `mimeType`
16595
+ # @return [String]
16596
+ attr_accessor :mime_type
16597
+
16598
+ def initialize(**args)
16599
+ update!(**args)
16600
+ end
16601
+
16602
+ # Update properties of this object
16603
+ def update!(**args)
16604
+ @display_name = args[:display_name] if args.key?(:display_name)
16605
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
16606
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
16607
+ end
16608
+ end
16609
+
16610
+ # A datatype containing media that is part of a `FunctionResponse` message. A `
16611
+ # FunctionResponsePart` consists of data which has an associated datatype. A `
16612
+ # FunctionResponsePart` can only contain one of the accepted types in `
16613
+ # FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA
16614
+ # MIME type identifying the type and subtype of the media if the `inline_data`
16615
+ # field is filled with raw bytes.
16616
+ class GoogleCloudAiplatformV1beta1FunctionResponsePart
16617
+ include Google::Apis::Core::Hashable
16618
+
16619
+ # URI based data for function response.
16620
+ # Corresponds to the JSON property `fileData`
16621
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponseFileData]
16622
+ attr_accessor :file_data
16623
+
16624
+ # Raw media bytes for function response. Text should not be sent as raw bytes,
16625
+ # use the 'text' field.
16626
+ # Corresponds to the JSON property `inlineData`
16627
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponseBlob]
16628
+ attr_accessor :inline_data
16629
+
16630
+ def initialize(**args)
16631
+ update!(**args)
16632
+ end
16633
+
16634
+ # Update properties of this object
16635
+ def update!(**args)
16636
+ @file_data = args[:file_data] if args.key?(:file_data)
16637
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
16638
+ end
16639
+ end
16640
+
16241
16641
  # The Google Cloud Storage location where the output is to be written to.
16242
16642
  class GoogleCloudAiplatformV1beta1GcsDestination
16243
16643
  include Google::Apis::Core::Hashable
@@ -16896,6 +17296,11 @@ module Google
16896
17296
  class GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest
16897
17297
  include Google::Apis::Core::Hashable
16898
17298
 
17299
+ # Configuration for an Agent.
17300
+ # Corresponds to the JSON property `agentConfig`
17301
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig]
17302
+ attr_accessor :agent_config
17303
+
16899
17304
  # Required. The prompt to generate rubrics from. For single-turn queries, this
16900
17305
  # is a single instance. For multi-turn queries, this is a repeated field that
16901
17306
  # contains conversation history + latest request.
@@ -16919,6 +17324,7 @@ module Google
16919
17324
 
16920
17325
  # Update properties of this object
16921
17326
  def update!(**args)
17327
+ @agent_config = args[:agent_config] if args.key?(:agent_config)
16922
17328
  @contents = args[:contents] if args.key?(:contents)
16923
17329
  @predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec)
16924
17330
  @rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec)
@@ -16968,6 +17374,29 @@ module Google
16968
17374
  attr_accessor :disable_consolidation
16969
17375
  alias_method :disable_consolidation?, :disable_consolidation
16970
17376
 
17377
+ # Optional. If true, no revisions will be created for this request.
17378
+ # Corresponds to the JSON property `disableMemoryRevisions`
17379
+ # @return [Boolean]
17380
+ attr_accessor :disable_memory_revisions
17381
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
17382
+
17383
+ # Optional. Timestamp of when the revision is considered expired. If not set,
17384
+ # the memory revision will be kept until manually deleted.
17385
+ # Corresponds to the JSON property `revisionExpireTime`
17386
+ # @return [String]
17387
+ attr_accessor :revision_expire_time
17388
+
17389
+ # Optional. Labels to be applied to the generated memory revisions. For example,
17390
+ # you can use this to label a revision with its data source.
17391
+ # Corresponds to the JSON property `revisionLabels`
17392
+ # @return [Hash<String,String>]
17393
+ attr_accessor :revision_labels
17394
+
17395
+ # Optional. The TTL for the revision. The expiration time is computed: now + TTL.
17396
+ # Corresponds to the JSON property `revisionTtl`
17397
+ # @return [String]
17398
+ attr_accessor :revision_ttl
17399
+
16971
17400
  # Optional. The scope of the memories that should be generated. Memories will be
16972
17401
  # consolidated across memories with the same scope. Must be provided unless the
16973
17402
  # scope is defined in the source content. If `scope` is provided, it will
@@ -16993,6 +17422,10 @@ module Google
16993
17422
  @direct_contents_source = args[:direct_contents_source] if args.key?(:direct_contents_source)
16994
17423
  @direct_memories_source = args[:direct_memories_source] if args.key?(:direct_memories_source)
16995
17424
  @disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation)
17425
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
17426
+ @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
17427
+ @revision_labels = args[:revision_labels] if args.key?(:revision_labels)
17428
+ @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
16996
17429
  @scope = args[:scope] if args.key?(:scope)
16997
17430
  @vertex_session_source = args[:vertex_session_source] if args.key?(:vertex_session_source)
16998
17431
  end
@@ -17069,6 +17502,11 @@ module Google
17069
17502
  # @return [String]
17070
17503
  attr_accessor :fact
17071
17504
 
17505
+ # Optional. The topics that the consolidated memories should be associated with.
17506
+ # Corresponds to the JSON property `topics`
17507
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId>]
17508
+ attr_accessor :topics
17509
+
17072
17510
  def initialize(**args)
17073
17511
  update!(**args)
17074
17512
  end
@@ -17076,6 +17514,7 @@ module Google
17076
17514
  # Update properties of this object
17077
17515
  def update!(**args)
17078
17516
  @fact = args[:fact] if args.key?(:fact)
17517
+ @topics = args[:topics] if args.key?(:topics)
17079
17518
  end
17080
17519
  end
17081
17520
 
@@ -18269,6 +18708,16 @@ module Google
18269
18708
  # @return [String]
18270
18709
  attr_accessor :aspect_ratio
18271
18710
 
18711
+ # The image output format for generated images.
18712
+ # Corresponds to the JSON property `imageOutputOptions`
18713
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions]
18714
+ attr_accessor :image_output_options
18715
+
18716
+ # Optional. Controls whether the model can generate people.
18717
+ # Corresponds to the JSON property `personGeneration`
18718
+ # @return [String]
18719
+ attr_accessor :person_generation
18720
+
18272
18721
  def initialize(**args)
18273
18722
  update!(**args)
18274
18723
  end
@@ -18276,6 +18725,33 @@ module Google
18276
18725
  # Update properties of this object
18277
18726
  def update!(**args)
18278
18727
  @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
18728
+ @image_output_options = args[:image_output_options] if args.key?(:image_output_options)
18729
+ @person_generation = args[:person_generation] if args.key?(:person_generation)
18730
+ end
18731
+ end
18732
+
18733
+ # The image output format for generated images.
18734
+ class GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions
18735
+ include Google::Apis::Core::Hashable
18736
+
18737
+ # Optional. The compression quality of the output image.
18738
+ # Corresponds to the JSON property `compressionQuality`
18739
+ # @return [Fixnum]
18740
+ attr_accessor :compression_quality
18741
+
18742
+ # Optional. The image format that the output should be saved as.
18743
+ # Corresponds to the JSON property `mimeType`
18744
+ # @return [String]
18745
+ attr_accessor :mime_type
18746
+
18747
+ def initialize(**args)
18748
+ update!(**args)
18749
+ end
18750
+
18751
+ # Update properties of this object
18752
+ def update!(**args)
18753
+ @compression_quality = args[:compression_quality] if args.key?(:compression_quality)
18754
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
18279
18755
  end
18280
18756
  end
18281
18757
 
@@ -19677,6 +20153,25 @@ module Google
19677
20153
  end
19678
20154
  end
19679
20155
 
20156
+ # An extracted memory that is the intermediate result before consolidation.
20157
+ class GoogleCloudAiplatformV1beta1IntermediateExtractedMemory
20158
+ include Google::Apis::Core::Hashable
20159
+
20160
+ # Output only. The fact of the extracted memory.
20161
+ # Corresponds to the JSON property `fact`
20162
+ # @return [String]
20163
+ attr_accessor :fact
20164
+
20165
+ def initialize(**args)
20166
+ update!(**args)
20167
+ end
20168
+
20169
+ # Update properties of this object
20170
+ def update!(**args)
20171
+ @fact = args[:fact] if args.key?(:fact)
20172
+ end
20173
+ end
20174
+
19680
20175
  # Request message for [InternalOsServiceStateInstance].
19681
20176
  class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance
19682
20177
  include Google::Apis::Core::Hashable
@@ -20746,6 +21241,32 @@ module Google
20746
21241
  end
20747
21242
  end
20748
21243
 
21244
+ # Response message for MemoryBankService.ListMemoryRevisions.
21245
+ class GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse
21246
+ include Google::Apis::Core::Hashable
21247
+
21248
+ # The list of Memory Revisions in the request page.
21249
+ # Corresponds to the JSON property `memoryRevisions`
21250
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision>]
21251
+ attr_accessor :memory_revisions
21252
+
21253
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
21254
+ # field is omitted, there are no subsequent pages.
21255
+ # Corresponds to the JSON property `nextPageToken`
21256
+ # @return [String]
21257
+ attr_accessor :next_page_token
21258
+
21259
+ def initialize(**args)
21260
+ update!(**args)
21261
+ end
21262
+
21263
+ # Update properties of this object
21264
+ def update!(**args)
21265
+ @memory_revisions = args[:memory_revisions] if args.key?(:memory_revisions)
21266
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
21267
+ end
21268
+ end
21269
+
20749
21270
  # Response message for MetadataService.ListMetadataSchemas.
20750
21271
  class GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse
20751
21272
  include Google::Apis::Core::Hashable
@@ -21974,6 +22495,12 @@ module Google
21974
22495
  # @return [String]
21975
22496
  attr_accessor :description
21976
22497
 
22498
+ # Optional. Input only. If true, no revision will be created for this request.
22499
+ # Corresponds to the JSON property `disableMemoryRevisions`
22500
+ # @return [Boolean]
22501
+ attr_accessor :disable_memory_revisions
22502
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
22503
+
21977
22504
  # Optional. Display name of the Memory.
21978
22505
  # Corresponds to the JSON property `displayName`
21979
22506
  # @return [String]
@@ -21997,6 +22524,18 @@ module Google
21997
22524
  # @return [String]
21998
22525
  attr_accessor :name
21999
22526
 
22527
+ # Optional. Input only. Timestamp of when the revision is considered expired. If
22528
+ # not set, the memory revision will be kept until manually deleted.
22529
+ # Corresponds to the JSON property `revisionExpireTime`
22530
+ # @return [String]
22531
+ attr_accessor :revision_expire_time
22532
+
22533
+ # Optional. Input only. The TTL for the revision. The expiration time is
22534
+ # computed: now + TTL.
22535
+ # Corresponds to the JSON property `revisionTtl`
22536
+ # @return [String]
22537
+ attr_accessor :revision_ttl
22538
+
22000
22539
  # Required. Immutable. The scope of the Memory. Memories are isolated within
22001
22540
  # their scope. The scope is defined when creating or generating memories. Scope
22002
22541
  # values cannot contain the wildcard character '*'.
@@ -22004,6 +22543,11 @@ module Google
22004
22543
  # @return [Hash<String,String>]
22005
22544
  attr_accessor :scope
22006
22545
 
22546
+ # Optional. The Topics of the Memory.
22547
+ # Corresponds to the JSON property `topics`
22548
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId>]
22549
+ attr_accessor :topics
22550
+
22007
22551
  # Optional. Input only. The TTL for this resource. The expiration time is
22008
22552
  # computed: now + TTL.
22009
22553
  # Corresponds to the JSON property `ttl`
@@ -22023,11 +22567,15 @@ module Google
22023
22567
  def update!(**args)
22024
22568
  @create_time = args[:create_time] if args.key?(:create_time)
22025
22569
  @description = args[:description] if args.key?(:description)
22570
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
22026
22571
  @display_name = args[:display_name] if args.key?(:display_name)
22027
22572
  @expire_time = args[:expire_time] if args.key?(:expire_time)
22028
22573
  @fact = args[:fact] if args.key?(:fact)
22029
22574
  @name = args[:name] if args.key?(:name)
22575
+ @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time)
22576
+ @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl)
22030
22577
  @scope = args[:scope] if args.key?(:scope)
22578
+ @topics = args[:topics] if args.key?(:topics)
22031
22579
  @ttl = args[:ttl] if args.key?(:ttl)
22032
22580
  @update_time = args[:update_time] if args.key?(:update_time)
22033
22581
  end
@@ -22238,6 +22786,62 @@ module Google
22238
22786
  end
22239
22787
  end
22240
22788
 
22789
+ # A revision of a Memory.
22790
+ class GoogleCloudAiplatformV1beta1MemoryRevision
22791
+ include Google::Apis::Core::Hashable
22792
+
22793
+ # Output only. Timestamp when this Memory Revision was created.
22794
+ # Corresponds to the JSON property `createTime`
22795
+ # @return [String]
22796
+ attr_accessor :create_time
22797
+
22798
+ # Output only. Timestamp of when this resource is considered expired.
22799
+ # Corresponds to the JSON property `expireTime`
22800
+ # @return [String]
22801
+ attr_accessor :expire_time
22802
+
22803
+ # Output only. The extracted memories from the source content before
22804
+ # consolidation when the memory was updated via GenerateMemories. This
22805
+ # information was used to modify an existing Memory via Consolidation.
22806
+ # Corresponds to the JSON property `extractedMemories`
22807
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IntermediateExtractedMemory>]
22808
+ attr_accessor :extracted_memories
22809
+
22810
+ # Output only. The fact of the Memory Revision. This corresponds to the `fact`
22811
+ # field of the parent Memory at the time of revision creation.
22812
+ # Corresponds to the JSON property `fact`
22813
+ # @return [String]
22814
+ attr_accessor :fact
22815
+
22816
+ # Output only. The labels of the Memory Revision. These labels are applied to
22817
+ # the MemoryRevision when it is created based on `GenerateMemoriesRequest.
22818
+ # revision_labels`.
22819
+ # Corresponds to the JSON property `labels`
22820
+ # @return [Hash<String,String>]
22821
+ attr_accessor :labels
22822
+
22823
+ # Identifier. The resource name of the Memory Revision. Format: `projects/`
22824
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/`
22825
+ # memory`/revisions/`memory_revision``
22826
+ # Corresponds to the JSON property `name`
22827
+ # @return [String]
22828
+ attr_accessor :name
22829
+
22830
+ def initialize(**args)
22831
+ update!(**args)
22832
+ end
22833
+
22834
+ # Update properties of this object
22835
+ def update!(**args)
22836
+ @create_time = args[:create_time] if args.key?(:create_time)
22837
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
22838
+ @extracted_memories = args[:extracted_memories] if args.key?(:extracted_memories)
22839
+ @fact = args[:fact] if args.key?(:fact)
22840
+ @labels = args[:labels] if args.key?(:labels)
22841
+ @name = args[:name] if args.key?(:name)
22842
+ end
22843
+ end
22844
+
22241
22845
  # A memory topic identifier. This will be used to label a Memory and to restrict
22242
22846
  # which topics are eligible for generation or retrieval.
22243
22847
  class GoogleCloudAiplatformV1beta1MemoryTopicId
@@ -27962,6 +28566,11 @@ module Google
27962
28566
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
27963
28567
  attr_accessor :content
27964
28568
 
28569
+ # Optional. The target model to optimize the prompt for.
28570
+ # Corresponds to the JSON property `optimizationTarget`
28571
+ # @return [String]
28572
+ attr_accessor :optimization_target
28573
+
27965
28574
  def initialize(**args)
27966
28575
  update!(**args)
27967
28576
  end
@@ -27969,6 +28578,7 @@ module Google
27969
28578
  # Update properties of this object
27970
28579
  def update!(**args)
27971
28580
  @content = args[:content] if args.key?(:content)
28581
+ @optimization_target = args[:optimization_target] if args.key?(:optimization_target)
27972
28582
  end
27973
28583
  end
27974
28584
 
@@ -29931,6 +30541,12 @@ module Google
29931
30541
  # @return [Array<Object>]
29932
30542
  attr_accessor :instances
29933
30543
 
30544
+ # Optional. The user labels for Imagen billing usage only. Only Imagen supports
30545
+ # labels. For other use cases, it will be ignored.
30546
+ # Corresponds to the JSON property `labels`
30547
+ # @return [Hash<String,String>]
30548
+ attr_accessor :labels
30549
+
29934
30550
  # The parameters that govern the prediction. The schema of the parameters may be
29935
30551
  # specified via Endpoint's DeployedModels' Model's PredictSchemata's
29936
30552
  # parameters_schema_uri.
@@ -29945,6 +30561,7 @@ module Google
29945
30561
  # Update properties of this object
29946
30562
  def update!(**args)
29947
30563
  @instances = args[:instances] if args.key?(:instances)
30564
+ @labels = args[:labels] if args.key?(:labels)
29948
30565
  @parameters = args[:parameters] if args.key?(:parameters)
29949
30566
  end
29950
30567
  end
@@ -30226,11 +30843,6 @@ module Google
30226
30843
  class GoogleCloudAiplatformV1beta1PreferenceOptimizationSpec
30227
30844
  include Google::Apis::Core::Hashable
30228
30845
 
30229
- # Evaluation Config for Tuning Job.
30230
- # Corresponds to the JSON property `evaluationConfig`
30231
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig]
30232
- attr_accessor :evaluation_config
30233
-
30234
30846
  # Optional. If set to true, disable intermediate checkpoints for Preference
30235
30847
  # Optimization and only the last checkpoint will be exported. Otherwise, enable
30236
30848
  # intermediate checkpoints for Preference Optimization. Default is false.
@@ -30262,7 +30874,6 @@ module Google
30262
30874
 
30263
30875
  # Update properties of this object
30264
30876
  def update!(**args)
30265
- @evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config)
30266
30877
  @export_last_checkpoint_only = args[:export_last_checkpoint_only] if args.key?(:export_last_checkpoint_only)
30267
30878
  @hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
30268
30879
  @training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
@@ -34136,6 +34747,13 @@ module Google
34136
34747
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryBankCustomizationConfig>]
34137
34748
  attr_accessor :customization_configs
34138
34749
 
34750
+ # If true, no memory revisions will be created for any requests to the Memory
34751
+ # Bank.
34752
+ # Corresponds to the JSON property `disableMemoryRevisions`
34753
+ # @return [Boolean]
34754
+ attr_accessor :disable_memory_revisions
34755
+ alias_method :disable_memory_revisions?, :disable_memory_revisions
34756
+
34139
34757
  # Configuration for how to generate memories.
34140
34758
  # Corresponds to the JSON property `generationConfig`
34141
34759
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig]
@@ -34159,6 +34777,7 @@ module Google
34159
34777
  # Update properties of this object
34160
34778
  def update!(**args)
34161
34779
  @customization_configs = args[:customization_configs] if args.key?(:customization_configs)
34780
+ @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions)
34162
34781
  @generation_config = args[:generation_config] if args.key?(:generation_config)
34163
34782
  @similarity_search_config = args[:similarity_search_config] if args.key?(:similarity_search_config)
34164
34783
  @ttl_config = args[:ttl_config] if args.key?(:ttl_config)
@@ -34223,6 +34842,13 @@ module Google
34223
34842
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineContextSpecMemoryBankConfigTtlConfigGranularTtlConfig]
34224
34843
  attr_accessor :granular_ttl_config
34225
34844
 
34845
+ # Optional. The default TTL duration of the memory revisions in the Memory Bank.
34846
+ # This applies to all operations that create a memory revision. If not set, a
34847
+ # default TTL of 365 days will be used.
34848
+ # Corresponds to the JSON property `memoryRevisionDefaultTtl`
34849
+ # @return [String]
34850
+ attr_accessor :memory_revision_default_ttl
34851
+
34226
34852
  def initialize(**args)
34227
34853
  update!(**args)
34228
34854
  end
@@ -34231,6 +34857,7 @@ module Google
34231
34857
  def update!(**args)
34232
34858
  @default_ttl = args[:default_ttl] if args.key?(:default_ttl)
34233
34859
  @granular_ttl_config = args[:granular_ttl_config] if args.key?(:granular_ttl_config)
34860
+ @memory_revision_default_ttl = args[:memory_revision_default_ttl] if args.key?(:memory_revision_default_ttl)
34234
34861
  end
34235
34862
  end
34236
34863
 
@@ -34307,6 +34934,11 @@ module Google
34307
34934
  # @return [String]
34308
34935
  attr_accessor :service_account
34309
34936
 
34937
+ # Specification for deploying from source code.
34938
+ # Corresponds to the JSON property `sourceCodeSpec`
34939
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec]
34940
+ attr_accessor :source_code_spec
34941
+
34310
34942
  def initialize(**args)
34311
34943
  update!(**args)
34312
34944
  end
@@ -34318,6 +34950,7 @@ module Google
34318
34950
  @deployment_spec = args[:deployment_spec] if args.key?(:deployment_spec)
34319
34951
  @package_spec = args[:package_spec] if args.key?(:package_spec)
34320
34952
  @service_account = args[:service_account] if args.key?(:service_account)
34953
+ @source_code_spec = args[:source_code_spec] if args.key?(:source_code_spec)
34321
34954
  end
34322
34955
  end
34323
34956
 
@@ -34435,6 +35068,95 @@ module Google
34435
35068
  end
34436
35069
  end
34437
35070
 
35071
+ # Specification for deploying from source code.
35072
+ class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec
35073
+ include Google::Apis::Core::Hashable
35074
+
35075
+ # Specifies source code provided as a byte stream.
35076
+ # Corresponds to the JSON property `inlineSource`
35077
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource]
35078
+ attr_accessor :inline_source
35079
+
35080
+ # Specification for running a Python application from source.
35081
+ # Corresponds to the JSON property `pythonSpec`
35082
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec]
35083
+ attr_accessor :python_spec
35084
+
35085
+ def initialize(**args)
35086
+ update!(**args)
35087
+ end
35088
+
35089
+ # Update properties of this object
35090
+ def update!(**args)
35091
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
35092
+ @python_spec = args[:python_spec] if args.key?(:python_spec)
35093
+ end
35094
+ end
35095
+
35096
+ # Specifies source code provided as a byte stream.
35097
+ class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource
35098
+ include Google::Apis::Core::Hashable
35099
+
35100
+ # Required. Input only. The application source code archive, provided as a
35101
+ # compressed tarball (.tar.gz) file.
35102
+ # Corresponds to the JSON property `sourceArchive`
35103
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
35104
+ # @return [String]
35105
+ attr_accessor :source_archive
35106
+
35107
+ def initialize(**args)
35108
+ update!(**args)
35109
+ end
35110
+
35111
+ # Update properties of this object
35112
+ def update!(**args)
35113
+ @source_archive = args[:source_archive] if args.key?(:source_archive)
35114
+ end
35115
+ end
35116
+
35117
+ # Specification for running a Python application from source.
35118
+ class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec
35119
+ include Google::Apis::Core::Hashable
35120
+
35121
+ # Optional. The Python module to load as the entrypoint, specified as a fully
35122
+ # qualified module name. For example: path.to.agent. If not specified, defaults
35123
+ # to "agent". The project root will be added to Python sys.path, allowing
35124
+ # imports to be specified relative to the root.
35125
+ # Corresponds to the JSON property `entrypointModule`
35126
+ # @return [String]
35127
+ attr_accessor :entrypoint_module
35128
+
35129
+ # Optional. The name of the callable object within the `entrypoint_module` to
35130
+ # use as the application If not specified, defaults to "root_agent".
35131
+ # Corresponds to the JSON property `entrypointObject`
35132
+ # @return [String]
35133
+ attr_accessor :entrypoint_object
35134
+
35135
+ # Optional. The path to the requirements file, relative to the source root. If
35136
+ # not specified, defaults to "requirements.txt".
35137
+ # Corresponds to the JSON property `requirementsFile`
35138
+ # @return [String]
35139
+ attr_accessor :requirements_file
35140
+
35141
+ # Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.
35142
+ # 11, 3.12, 3.13. If not specified, default value is 3.10.
35143
+ # Corresponds to the JSON property `version`
35144
+ # @return [String]
35145
+ attr_accessor :version
35146
+
35147
+ def initialize(**args)
35148
+ update!(**args)
35149
+ end
35150
+
35151
+ # Update properties of this object
35152
+ def update!(**args)
35153
+ @entrypoint_module = args[:entrypoint_module] if args.key?(:entrypoint_module)
35154
+ @entrypoint_object = args[:entrypoint_object] if args.key?(:entrypoint_object)
35155
+ @requirements_file = args[:requirements_file] if args.key?(:requirements_file)
35156
+ @version = args[:version] if args.key?(:version)
35157
+ end
35158
+ end
35159
+
34438
35160
  # Request message for GenAiTuningService.RebaseTunedModel.
34439
35161
  class GoogleCloudAiplatformV1beta1RebaseTunedModelRequest
34440
35162
  include Google::Apis::Core::Hashable
@@ -35325,6 +36047,13 @@ module Google
35325
36047
  class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest
35326
36048
  include Google::Apis::Core::Hashable
35327
36049
 
36050
+ # Optional. The standard list filter that will be applied to the retrieved
36051
+ # memories. More detail in [AIP-160](https://google.aip.dev/160). Supported
36052
+ # fields: * `fact` * `create_time` * `update_time`
36053
+ # Corresponds to the JSON property `filter`
36054
+ # @return [String]
36055
+ attr_accessor :filter
36056
+
35328
36057
  # Required. The scope of the memories to retrieve. A memory must have exactly
35329
36058
  # the same scope (`Memory.scope`) as the scope provided here to be retrieved (
35330
36059
  # same keys and values). Order does not matter, but it is case-sensitive.
@@ -35348,6 +36077,7 @@ module Google
35348
36077
 
35349
36078
  # Update properties of this object
35350
36079
  def update!(**args)
36080
+ @filter = args[:filter] if args.key?(:filter)
35351
36081
  @scope = args[:scope] if args.key?(:scope)
35352
36082
  @similarity_search_params = args[:similarity_search_params] if args.key?(:similarity_search_params)
35353
36083
  @simple_retrieval_params = args[:simple_retrieval_params] if args.key?(:simple_retrieval_params)
@@ -35465,6 +36195,25 @@ module Google
35465
36195
  end
35466
36196
  end
35467
36197
 
36198
+ # Request message for MemoryBankService.RollbackMemory.
36199
+ class GoogleCloudAiplatformV1beta1RollbackMemoryRequest
36200
+ include Google::Apis::Core::Hashable
36201
+
36202
+ # Required. The ID of the revision to rollback to.
36203
+ # Corresponds to the JSON property `targetRevisionId`
36204
+ # @return [Fixnum]
36205
+ attr_accessor :target_revision_id
36206
+
36207
+ def initialize(**args)
36208
+ update!(**args)
36209
+ end
36210
+
36211
+ # Update properties of this object
36212
+ def update!(**args)
36213
+ @target_revision_id = args[:target_revision_id] if args.key?(:target_revision_id)
36214
+ end
36215
+ end
36216
+
35468
36217
  # Configuration for rolling deployments.
35469
36218
  class GoogleCloudAiplatformV1beta1RolloutOptions
35470
36219
  include Google::Apis::Core::Hashable
@@ -48030,6 +48779,11 @@ module Google
48030
48779
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCodeExecution]
48031
48780
  attr_accessor :code_execution
48032
48781
 
48782
+ # Tool to support computer use.
48783
+ # Corresponds to the JSON property `computerUse`
48784
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolComputerUse]
48785
+ attr_accessor :computer_use
48786
+
48033
48787
  # Tool to search public web data, powered by Vertex AI Search and Sec4
48034
48788
  # compliance.
48035
48789
  # Corresponds to the JSON property `enterpriseWebSearch`
@@ -48079,6 +48833,7 @@ module Google
48079
48833
  # Update properties of this object
48080
48834
  def update!(**args)
48081
48835
  @code_execution = args[:code_execution] if args.key?(:code_execution)
48836
+ @computer_use = args[:computer_use] if args.key?(:computer_use)
48082
48837
  @enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
48083
48838
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
48084
48839
  @google_maps = args[:google_maps] if args.key?(:google_maps)
@@ -48230,6 +48985,36 @@ module Google
48230
48985
  end
48231
48986
  end
48232
48987
 
48988
+ # Tool to support computer use.
48989
+ class GoogleCloudAiplatformV1beta1ToolComputerUse
48990
+ include Google::Apis::Core::Hashable
48991
+
48992
+ # Required. The environment being operated.
48993
+ # Corresponds to the JSON property `environment`
48994
+ # @return [String]
48995
+ attr_accessor :environment
48996
+
48997
+ # Optional. By default, [predefined functions](https://cloud.google.com/vertex-
48998
+ # ai/generative-ai/docs/computer-use#supported-actions) are included in the
48999
+ # final model call. Some of them can be explicitly excluded from being
49000
+ # automatically included. This can serve two purposes: 1. Using a more
49001
+ # restricted / different action space. 2. Improving the definitions /
49002
+ # instructions of predefined functions.
49003
+ # Corresponds to the JSON property `excludedPredefinedFunctions`
49004
+ # @return [Array<String>]
49005
+ attr_accessor :excluded_predefined_functions
49006
+
49007
+ def initialize(**args)
49008
+ update!(**args)
49009
+ end
49010
+
49011
+ # Update properties of this object
49012
+ def update!(**args)
49013
+ @environment = args[:environment] if args.key?(:environment)
49014
+ @excluded_predefined_functions = args[:excluded_predefined_functions] if args.key?(:excluded_predefined_functions)
49015
+ end
49016
+ end
49017
+
48233
49018
  # Tool config. This config is shared for all tools provided in the request.
48234
49019
  class GoogleCloudAiplatformV1beta1ToolConfig
48235
49020
  include Google::Apis::Core::Hashable
@@ -50910,6 +51695,97 @@ module Google
50910
51695
  end
50911
51696
  end
50912
51697
 
51698
+ # Usage metadata about the content generation request and response. This message
51699
+ # provides a detailed breakdown of token usage and other relevant metrics.
51700
+ class GoogleCloudAiplatformV1beta1UsageMetadata
51701
+ include Google::Apis::Core::Hashable
51702
+
51703
+ # Output only. A detailed breakdown of the token count for each modality in the
51704
+ # cached content.
51705
+ # Corresponds to the JSON property `cacheTokensDetails`
51706
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51707
+ attr_accessor :cache_tokens_details
51708
+
51709
+ # Output only. The number of tokens in the cached content that was used for this
51710
+ # request.
51711
+ # Corresponds to the JSON property `cachedContentTokenCount`
51712
+ # @return [Fixnum]
51713
+ attr_accessor :cached_content_token_count
51714
+
51715
+ # The total number of tokens in the generated candidates.
51716
+ # Corresponds to the JSON property `candidatesTokenCount`
51717
+ # @return [Fixnum]
51718
+ attr_accessor :candidates_token_count
51719
+
51720
+ # Output only. A detailed breakdown of the token count for each modality in the
51721
+ # generated candidates.
51722
+ # Corresponds to the JSON property `candidatesTokensDetails`
51723
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51724
+ attr_accessor :candidates_tokens_details
51725
+
51726
+ # The total number of tokens in the prompt. This includes any text, images, or
51727
+ # other media provided in the request. When `cached_content` is set, this also
51728
+ # includes the number of tokens in the cached content.
51729
+ # Corresponds to the JSON property `promptTokenCount`
51730
+ # @return [Fixnum]
51731
+ attr_accessor :prompt_token_count
51732
+
51733
+ # Output only. A detailed breakdown of the token count for each modality in the
51734
+ # prompt.
51735
+ # Corresponds to the JSON property `promptTokensDetails`
51736
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51737
+ attr_accessor :prompt_tokens_details
51738
+
51739
+ # Output only. The number of tokens that were part of the model's generated "
51740
+ # thoughts" output, if applicable.
51741
+ # Corresponds to the JSON property `thoughtsTokenCount`
51742
+ # @return [Fixnum]
51743
+ attr_accessor :thoughts_token_count
51744
+
51745
+ # Output only. The number of tokens in the results from tool executions, which
51746
+ # are provided back to the model as input, if applicable.
51747
+ # Corresponds to the JSON property `toolUsePromptTokenCount`
51748
+ # @return [Fixnum]
51749
+ attr_accessor :tool_use_prompt_token_count
51750
+
51751
+ # Output only. A detailed breakdown by modality of the token counts from the
51752
+ # results of tool executions, which are provided back to the model as input.
51753
+ # Corresponds to the JSON property `toolUsePromptTokensDetails`
51754
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
51755
+ attr_accessor :tool_use_prompt_tokens_details
51756
+
51757
+ # The total number of tokens for the entire request. This is the sum of `
51758
+ # prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`,
51759
+ # and `thoughts_token_count`.
51760
+ # Corresponds to the JSON property `totalTokenCount`
51761
+ # @return [Fixnum]
51762
+ attr_accessor :total_token_count
51763
+
51764
+ # Output only. The traffic type for this request.
51765
+ # Corresponds to the JSON property `trafficType`
51766
+ # @return [String]
51767
+ attr_accessor :traffic_type
51768
+
51769
+ def initialize(**args)
51770
+ update!(**args)
51771
+ end
51772
+
51773
+ # Update properties of this object
51774
+ def update!(**args)
51775
+ @cache_tokens_details = args[:cache_tokens_details] if args.key?(:cache_tokens_details)
51776
+ @cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
51777
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
51778
+ @candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
51779
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
51780
+ @prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
51781
+ @thoughts_token_count = args[:thoughts_token_count] if args.key?(:thoughts_token_count)
51782
+ @tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
51783
+ @tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
51784
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
51785
+ @traffic_type = args[:traffic_type] if args.key?(:traffic_type)
51786
+ end
51787
+ end
51788
+
50913
51789
  # References an API call. It contains more information about long running
50914
51790
  # operation and Jobs that are triggered by the API call.
50915
51791
  class GoogleCloudAiplatformV1beta1UserActionReference