google-apis-aiplatform_v1beta1 0.34.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -442,7 +442,6 @@ module Google
442
442
 
443
443
  # Base 64 encoded video bytes.
444
444
  # Corresponds to the JSON property `encodedVideo`
445
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
446
445
  # @return [String]
447
446
  attr_accessor :encoded_video
448
447
 
@@ -1311,15 +1310,22 @@ module Google
1311
1310
  class GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig
1312
1311
  include Google::Apis::Core::Hashable
1313
1312
 
1314
- # Required. The name of the SecretManager secret version resource storing the
1313
+ # Optional. The name of the SecretManager secret version resource storing the
1315
1314
  # API key. Format: `projects/`project`/secrets/`secrete`/versions/`version`` -
1316
- # If specified, the `secretmanager.versions.access` permission should be granted
1317
- # to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/
1318
- # general/access-control#service-agents) on the specified resource.
1315
+ # If both `api_key_secret` and `api_key_string` are specified, this field takes
1316
+ # precedence over `api_key_string`. - If specified, the `secretmanager.versions.
1317
+ # access` permission should be granted to Vertex AI Extension Service Agent (
1318
+ # https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
1319
+ # on the specified resource.
1319
1320
  # Corresponds to the JSON property `apiKeySecret`
1320
1321
  # @return [String]
1321
1322
  attr_accessor :api_key_secret
1322
1323
 
1324
+ # Optional. The API key to be used in the request directly.
1325
+ # Corresponds to the JSON property `apiKeyString`
1326
+ # @return [String]
1327
+ attr_accessor :api_key_string
1328
+
1323
1329
  # Required. The location of the API key.
1324
1330
  # Corresponds to the JSON property `httpElementLocation`
1325
1331
  # @return [String]
@@ -1338,6 +1344,7 @@ module Google
1338
1344
  # Update properties of this object
1339
1345
  def update!(**args)
1340
1346
  @api_key_secret = args[:api_key_secret] if args.key?(:api_key_secret)
1347
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
1341
1348
  @http_element_location = args[:http_element_location] if args.key?(:http_element_location)
1342
1349
  @name = args[:name] if args.key?(:name)
1343
1350
  end
@@ -2739,7 +2746,7 @@ module Google
2739
2746
  end
2740
2747
  end
2741
2748
 
2742
- # Content blob. It's preferred to send as text directly rather than raw bytes.
2749
+ # Content blob.
2743
2750
  class GoogleCloudAiplatformV1beta1Blob
2744
2751
  include Google::Apis::Core::Hashable
2745
2752
 
@@ -5505,7 +5512,8 @@ module Google
5505
5512
  # @return [String]
5506
5513
  attr_accessor :model_reference
5507
5514
 
5508
- # Output only. Identifier. The resource name of the Dataset.
5515
+ # Output only. Identifier. The resource name of the Dataset. Format: `projects/`
5516
+ # project`/locations/`location`/datasets/`dataset``
5509
5517
  # Corresponds to the JSON property `name`
5510
5518
  # @return [String]
5511
5519
  attr_accessor :name
@@ -6249,6 +6257,63 @@ module Google
6249
6257
  end
6250
6258
  end
6251
6259
 
6260
+ # Request message for ModelGardenService.DeployPublisherModel.
6261
+ class GoogleCloudAiplatformV1beta1DeployPublisherModelRequest
6262
+ include Google::Apis::Core::Hashable
6263
+
6264
+ # Optional. Whether the user accepts the End User License Agreement (EULA) for
6265
+ # the model.
6266
+ # Corresponds to the JSON property `acceptEula`
6267
+ # @return [Boolean]
6268
+ attr_accessor :accept_eula
6269
+ alias_method :accept_eula?, :accept_eula
6270
+
6271
+ # A description of resources that are dedicated to a DeployedModel, and that
6272
+ # need a higher degree of manual configuration.
6273
+ # Corresponds to the JSON property `dedicatedResources`
6274
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DedicatedResources]
6275
+ attr_accessor :dedicated_resources
6276
+
6277
+ # Optional. The user-specified display name of the endpoint. If not set, a
6278
+ # default name will be used.
6279
+ # Corresponds to the JSON property `endpointDisplayName`
6280
+ # @return [String]
6281
+ attr_accessor :endpoint_display_name
6282
+
6283
+ # Optional. The Hugging Face read access token used to access the model
6284
+ # artifacts of gated models.
6285
+ # Corresponds to the JSON property `huggingFaceAccessToken`
6286
+ # @return [String]
6287
+ attr_accessor :hugging_face_access_token
6288
+
6289
+ # Required. The name of the PublisherModel resource. Format: `publishers/`
6290
+ # publisher`/models/`publisher_model`@`version_id``, or `publishers/hf-`hugging-
6291
+ # face-author`/models/`hugging-face-model-name`@001`
6292
+ # Corresponds to the JSON property `model`
6293
+ # @return [String]
6294
+ attr_accessor :model
6295
+
6296
+ # Optional. The user-specified display name of the uploaded model. If not set, a
6297
+ # default name will be used.
6298
+ # Corresponds to the JSON property `modelDisplayName`
6299
+ # @return [String]
6300
+ attr_accessor :model_display_name
6301
+
6302
+ def initialize(**args)
6303
+ update!(**args)
6304
+ end
6305
+
6306
+ # Update properties of this object
6307
+ def update!(**args)
6308
+ @accept_eula = args[:accept_eula] if args.key?(:accept_eula)
6309
+ @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
6310
+ @endpoint_display_name = args[:endpoint_display_name] if args.key?(:endpoint_display_name)
6311
+ @hugging_face_access_token = args[:hugging_face_access_token] if args.key?(:hugging_face_access_token)
6312
+ @model = args[:model] if args.key?(:model)
6313
+ @model_display_name = args[:model_display_name] if args.key?(:model_display_name)
6314
+ end
6315
+ end
6316
+
6252
6317
  # Runtime operation information for SolverService.DeploySolver.
6253
6318
  class GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata
6254
6319
  include Google::Apis::Core::Hashable
@@ -6991,19 +7056,20 @@ module Google
6991
7056
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DistillationHyperParameters]
6992
7057
  attr_accessor :hyper_parameters
6993
7058
 
6994
- # Required. A path in a Cloud Storage bucket, which will be treated as the root
6995
- # output directory of the distillation pipeline. It is used by the system to
6996
- # generate the paths of output artifacts.
7059
+ # Deprecated. A path in a Cloud Storage bucket, which will be treated as the
7060
+ # root output directory of the distillation pipeline. It is used by the system
7061
+ # to generate the paths of output artifacts.
6997
7062
  # Corresponds to the JSON property `pipelineRootDirectory`
6998
7063
  # @return [String]
6999
7064
  attr_accessor :pipeline_root_directory
7000
7065
 
7001
7066
  # The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
7067
+ # Deprecated. Use base_model instead.
7002
7068
  # Corresponds to the JSON property `studentModel`
7003
7069
  # @return [String]
7004
7070
  attr_accessor :student_model
7005
7071
 
7006
- # Required. Cloud Storage path to file containing training dataset for tuning.
7072
+ # Deprecated. Cloud Storage path to file containing training dataset for tuning.
7007
7073
  # The dataset must be formatted as a JSONL file.
7008
7074
  # Corresponds to the JSON property `trainingDatasetUri`
7009
7075
  # @return [String]
@@ -7617,6 +7683,36 @@ module Google
7617
7683
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchInput]
7618
7684
  attr_accessor :tool_parameter_kv_match_input
7619
7685
 
7686
+ # Instances and metric spec for TrajectoryAnyOrderMatch metric.
7687
+ # Corresponds to the JSON property `trajectoryAnyOrderMatchInput`
7688
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInput]
7689
+ attr_accessor :trajectory_any_order_match_input
7690
+
7691
+ # Instances and metric spec for TrajectoryExactMatch metric.
7692
+ # Corresponds to the JSON property `trajectoryExactMatchInput`
7693
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryExactMatchInput]
7694
+ attr_accessor :trajectory_exact_match_input
7695
+
7696
+ # Instances and metric spec for TrajectoryInOrderMatch metric.
7697
+ # Corresponds to the JSON property `trajectoryInOrderMatchInput`
7698
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInput]
7699
+ attr_accessor :trajectory_in_order_match_input
7700
+
7701
+ # Instances and metric spec for TrajectoryPrecision metric.
7702
+ # Corresponds to the JSON property `trajectoryPrecisionInput`
7703
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryPrecisionInput]
7704
+ attr_accessor :trajectory_precision_input
7705
+
7706
+ # Instances and metric spec for TrajectoryRecall metric.
7707
+ # Corresponds to the JSON property `trajectoryRecallInput`
7708
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryRecallInput]
7709
+ attr_accessor :trajectory_recall_input
7710
+
7711
+ # Instances and metric spec for TrajectorySingleToolUse metric.
7712
+ # Corresponds to the JSON property `trajectorySingleToolUseInput`
7713
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInput]
7714
+ attr_accessor :trajectory_single_tool_use_input
7715
+
7620
7716
  def initialize(**args)
7621
7717
  update!(**args)
7622
7718
  end
@@ -7648,6 +7744,12 @@ module Google
7648
7744
  @tool_name_match_input = args[:tool_name_match_input] if args.key?(:tool_name_match_input)
7649
7745
  @tool_parameter_key_match_input = args[:tool_parameter_key_match_input] if args.key?(:tool_parameter_key_match_input)
7650
7746
  @tool_parameter_kv_match_input = args[:tool_parameter_kv_match_input] if args.key?(:tool_parameter_kv_match_input)
7747
+ @trajectory_any_order_match_input = args[:trajectory_any_order_match_input] if args.key?(:trajectory_any_order_match_input)
7748
+ @trajectory_exact_match_input = args[:trajectory_exact_match_input] if args.key?(:trajectory_exact_match_input)
7749
+ @trajectory_in_order_match_input = args[:trajectory_in_order_match_input] if args.key?(:trajectory_in_order_match_input)
7750
+ @trajectory_precision_input = args[:trajectory_precision_input] if args.key?(:trajectory_precision_input)
7751
+ @trajectory_recall_input = args[:trajectory_recall_input] if args.key?(:trajectory_recall_input)
7752
+ @trajectory_single_tool_use_input = args[:trajectory_single_tool_use_input] if args.key?(:trajectory_single_tool_use_input)
7651
7753
  end
7652
7754
  end
7653
7755
 
@@ -7782,6 +7884,36 @@ module Google
7782
7884
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchResults]
7783
7885
  attr_accessor :tool_parameter_kv_match_results
7784
7886
 
7887
+ # Results for TrajectoryAnyOrderMatch metric.
7888
+ # Corresponds to the JSON property `trajectoryAnyOrderMatchResults`
7889
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchResults]
7890
+ attr_accessor :trajectory_any_order_match_results
7891
+
7892
+ # Results for TrajectoryExactMatch metric.
7893
+ # Corresponds to the JSON property `trajectoryExactMatchResults`
7894
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryExactMatchResults]
7895
+ attr_accessor :trajectory_exact_match_results
7896
+
7897
+ # Results for TrajectoryInOrderMatch metric.
7898
+ # Corresponds to the JSON property `trajectoryInOrderMatchResults`
7899
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchResults]
7900
+ attr_accessor :trajectory_in_order_match_results
7901
+
7902
+ # Results for TrajectoryPrecision metric.
7903
+ # Corresponds to the JSON property `trajectoryPrecisionResults`
7904
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryPrecisionResults]
7905
+ attr_accessor :trajectory_precision_results
7906
+
7907
+ # Results for TrajectoryRecall metric.
7908
+ # Corresponds to the JSON property `trajectoryRecallResults`
7909
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryRecallResults]
7910
+ attr_accessor :trajectory_recall_results
7911
+
7912
+ # Results for TrajectorySingleToolUse metric.
7913
+ # Corresponds to the JSON property `trajectorySingleToolUseResults`
7914
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectorySingleToolUseResults]
7915
+ attr_accessor :trajectory_single_tool_use_results
7916
+
7785
7917
  def initialize(**args)
7786
7918
  update!(**args)
7787
7919
  end
@@ -7813,6 +7945,12 @@ module Google
7813
7945
  @tool_name_match_results = args[:tool_name_match_results] if args.key?(:tool_name_match_results)
7814
7946
  @tool_parameter_key_match_results = args[:tool_parameter_key_match_results] if args.key?(:tool_parameter_key_match_results)
7815
7947
  @tool_parameter_kv_match_results = args[:tool_parameter_kv_match_results] if args.key?(:tool_parameter_kv_match_results)
7948
+ @trajectory_any_order_match_results = args[:trajectory_any_order_match_results] if args.key?(:trajectory_any_order_match_results)
7949
+ @trajectory_exact_match_results = args[:trajectory_exact_match_results] if args.key?(:trajectory_exact_match_results)
7950
+ @trajectory_in_order_match_results = args[:trajectory_in_order_match_results] if args.key?(:trajectory_in_order_match_results)
7951
+ @trajectory_precision_results = args[:trajectory_precision_results] if args.key?(:trajectory_precision_results)
7952
+ @trajectory_recall_results = args[:trajectory_recall_results] if args.key?(:trajectory_recall_results)
7953
+ @trajectory_single_tool_use_results = args[:trajectory_single_tool_use_results] if args.key?(:trajectory_single_tool_use_results)
7816
7954
  end
7817
7955
  end
7818
7956
 
@@ -9973,6 +10111,22 @@ module Google
9973
10111
  # @return [String]
9974
10112
  attr_accessor :name
9975
10113
 
10114
+ # Output only. A Service Account unique to this FeatureGroup. The role bigquery.
10115
+ # dataViewer should be granted to this service account to allow Vertex AI
10116
+ # Feature Store to access source data while running jobs under this FeatureGroup.
10117
+ # Corresponds to the JSON property `serviceAccountEmail`
10118
+ # @return [String]
10119
+ attr_accessor :service_account_email
10120
+
10121
+ # Optional. Service agent type used during jobs under a FeatureGroup. By default,
10122
+ # the Vertex AI Service Agent is used. When using an IAM Policy to isolate this
10123
+ # FeatureGroup within a project, a separate service account should be
10124
+ # provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This
10125
+ # will generate a separate service account to access the BigQuery source table.
10126
+ # Corresponds to the JSON property `serviceAgentType`
10127
+ # @return [String]
10128
+ attr_accessor :service_agent_type
10129
+
9976
10130
  # Output only. Timestamp when this FeatureGroup was last updated.
9977
10131
  # Corresponds to the JSON property `updateTime`
9978
10132
  # @return [String]
@@ -9990,6 +10144,8 @@ module Google
9990
10144
  @etag = args[:etag] if args.key?(:etag)
9991
10145
  @labels = args[:labels] if args.key?(:labels)
9992
10146
  @name = args[:name] if args.key?(:name)
10147
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
10148
+ @service_agent_type = args[:service_agent_type] if args.key?(:service_agent_type)
9993
10149
  @update_time = args[:update_time] if args.key?(:update_time)
9994
10150
  end
9995
10151
  end
@@ -13042,6 +13198,11 @@ module Google
13042
13198
  # @return [Fixnum]
13043
13199
  attr_accessor :max_output_tokens
13044
13200
 
13201
+ # Optional. If specified, the media resolution specified will be used.
13202
+ # Corresponds to the JSON property `mediaResolution`
13203
+ # @return [String]
13204
+ attr_accessor :media_resolution
13205
+
13045
13206
  # Optional. Positive penalties.
13046
13207
  # Corresponds to the JSON property `presencePenalty`
13047
13208
  # @return [Float]
@@ -13062,6 +13223,11 @@ module Google
13062
13223
  # @return [String]
13063
13224
  attr_accessor :response_mime_type
13064
13225
 
13226
+ # Optional. The modalities of the response.
13227
+ # Corresponds to the JSON property `responseModalities`
13228
+ # @return [Array<String>]
13229
+ attr_accessor :response_modalities
13230
+
13065
13231
  # Schema is used to define the format of input/output data. Represents a select
13066
13232
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
13067
13233
  # schema-object). More fields may be added in the future as needed.
@@ -13079,6 +13245,11 @@ module Google
13079
13245
  # @return [Fixnum]
13080
13246
  attr_accessor :seed
13081
13247
 
13248
+ # The speech generation config.
13249
+ # Corresponds to the JSON property `speechConfig`
13250
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeechConfig]
13251
+ attr_accessor :speech_config
13252
+
13082
13253
  # Optional. Stop sequences.
13083
13254
  # Corresponds to the JSON property `stopSequences`
13084
13255
  # @return [Array<String>]
@@ -13110,12 +13281,15 @@ module Google
13110
13281
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
13111
13282
  @logprobs = args[:logprobs] if args.key?(:logprobs)
13112
13283
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
13284
+ @media_resolution = args[:media_resolution] if args.key?(:media_resolution)
13113
13285
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
13114
13286
  @response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
13115
13287
  @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
13288
+ @response_modalities = args[:response_modalities] if args.key?(:response_modalities)
13116
13289
  @response_schema = args[:response_schema] if args.key?(:response_schema)
13117
13290
  @routing_config = args[:routing_config] if args.key?(:routing_config)
13118
13291
  @seed = args[:seed] if args.key?(:seed)
13292
+ @speech_config = args[:speech_config] if args.key?(:speech_config)
13119
13293
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
13120
13294
  @temperature = args[:temperature] if args.key?(:temperature)
13121
13295
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -17945,6 +18119,12 @@ module Google
17945
18119
  # @return [String]
17946
18120
  attr_accessor :image_uri
17947
18121
 
18122
+ # Probe describes a health check to be performed against a container to
18123
+ # determine whether it is alive or ready to receive traffic.
18124
+ # Corresponds to the JSON property `livenessProbe`
18125
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Probe]
18126
+ attr_accessor :liveness_probe
18127
+
17948
18128
  # Immutable. List of ports to expose from the container. Vertex AI sends any
17949
18129
  # prediction requests that it receives to the first port on this list. Vertex AI
17950
18130
  # also sends [liveness and health checks](https://cloud.google.com/vertex-ai/
@@ -18007,6 +18187,7 @@ module Google
18007
18187
  @health_probe = args[:health_probe] if args.key?(:health_probe)
18008
18188
  @health_route = args[:health_route] if args.key?(:health_route)
18009
18189
  @image_uri = args[:image_uri] if args.key?(:image_uri)
18190
+ @liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
18010
18191
  @ports = args[:ports] if args.key?(:ports)
18011
18192
  @predict_route = args[:predict_route] if args.key?(:predict_route)
18012
18193
  @shared_memory_size_mb = args[:shared_memory_size_mb] if args.key?(:shared_memory_size_mb)
@@ -21757,6 +21938,11 @@ module Google
21757
21938
  # @return [String]
21758
21939
  attr_accessor :create_time
21759
21940
 
21941
+ # Represents the spec of persistent disk options.
21942
+ # Corresponds to the JSON property `dataPersistentDiskSpec`
21943
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentDiskSpec]
21944
+ attr_accessor :data_persistent_disk_spec
21945
+
21760
21946
  # The description of the NotebookRuntime.
21761
21947
  # Corresponds to the JSON property `description`
21762
21948
  # @return [String]
@@ -21774,6 +21960,11 @@ module Google
21774
21960
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EncryptionSpec]
21775
21961
  attr_accessor :encryption_spec
21776
21962
 
21963
+ # The euc configuration of NotebookRuntimeTemplate.
21964
+ # Corresponds to the JSON property `eucConfig`
21965
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookEucConfig]
21966
+ attr_accessor :euc_config
21967
+
21777
21968
  # Output only. Timestamp when this NotebookRuntime will be expired: 1. System
21778
21969
  # Predefined NotebookRuntime: 24 hours after creation. After expiration, system
21779
21970
  # predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months
@@ -21817,11 +22008,21 @@ module Google
21817
22008
  # @return [Hash<String,String>]
21818
22009
  attr_accessor :labels
21819
22010
 
22011
+ # Specification of a single machine.
22012
+ # Corresponds to the JSON property `machineSpec`
22013
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec]
22014
+ attr_accessor :machine_spec
22015
+
21820
22016
  # Output only. The resource name of the NotebookRuntime.
21821
22017
  # Corresponds to the JSON property `name`
21822
22018
  # @return [String]
21823
22019
  attr_accessor :name
21824
22020
 
22021
+ # Network spec.
22022
+ # Corresponds to the JSON property `networkSpec`
22023
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NetworkSpec]
22024
+ attr_accessor :network_spec
22025
+
21825
22026
  # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
21826
22027
  # https://cloud.google.com/vpc/docs/add-remove-network-tags)).
21827
22028
  # Corresponds to the JSON property `networkTags`
@@ -21865,11 +22066,23 @@ module Google
21865
22066
  attr_accessor :satisfies_pzs
21866
22067
  alias_method :satisfies_pzs?, :satisfies_pzs
21867
22068
 
21868
- # Output only. The service account that the NotebookRuntime workload runs as.
22069
+ # Output only. Deprecated: This field is no longer used and the "Vertex AI
22070
+ # Notebook Service Account" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.
22071
+ # gserviceaccount.com) is used for the runtime workload identity. See https://
22072
+ # cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
22073
+ # for more details. The service account that the NotebookRuntime workload runs
22074
+ # as.
21869
22075
  # Corresponds to the JSON property `serviceAccount`
21870
22076
  # @return [String]
21871
22077
  attr_accessor :service_account
21872
22078
 
22079
+ # A set of Shielded Instance options. See [Images using supported Shielded VM
22080
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
22081
+ # vm).
22082
+ # Corresponds to the JSON property `shieldedVmConfig`
22083
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ShieldedVmConfig]
22084
+ attr_accessor :shielded_vm_config
22085
+
21873
22086
  # Output only. Timestamp when this NotebookRuntime was most recently updated.
21874
22087
  # Corresponds to the JSON property `updateTime`
21875
22088
  # @return [String]
@@ -21887,15 +22100,19 @@ module Google
21887
22100
  # Update properties of this object
21888
22101
  def update!(**args)
21889
22102
  @create_time = args[:create_time] if args.key?(:create_time)
22103
+ @data_persistent_disk_spec = args[:data_persistent_disk_spec] if args.key?(:data_persistent_disk_spec)
21890
22104
  @description = args[:description] if args.key?(:description)
21891
22105
  @display_name = args[:display_name] if args.key?(:display_name)
21892
22106
  @encryption_spec = args[:encryption_spec] if args.key?(:encryption_spec)
22107
+ @euc_config = args[:euc_config] if args.key?(:euc_config)
21893
22108
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
21894
22109
  @health_state = args[:health_state] if args.key?(:health_state)
21895
22110
  @idle_shutdown_config = args[:idle_shutdown_config] if args.key?(:idle_shutdown_config)
21896
22111
  @is_upgradable = args[:is_upgradable] if args.key?(:is_upgradable)
21897
22112
  @labels = args[:labels] if args.key?(:labels)
22113
+ @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
21898
22114
  @name = args[:name] if args.key?(:name)
22115
+ @network_spec = args[:network_spec] if args.key?(:network_spec)
21899
22116
  @network_tags = args[:network_tags] if args.key?(:network_tags)
21900
22117
  @notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
21901
22118
  @notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
@@ -21905,6 +22122,7 @@ module Google
21905
22122
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
21906
22123
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
21907
22124
  @service_account = args[:service_account] if args.key?(:service_account)
22125
+ @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
21908
22126
  @update_time = args[:update_time] if args.key?(:update_time)
21909
22127
  @version = args[:version] if args.key?(:version)
21910
22128
  end
@@ -21960,7 +22178,8 @@ module Google
21960
22178
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig]
21961
22179
  attr_accessor :idle_shutdown_config
21962
22180
 
21963
- # Output only. The default template to use if not specified.
22181
+ # Output only. Deprecated: This field has no behavior. Use notebook_runtime_type
22182
+ # = 'ONE_CLICK' instead. The default template to use if not specified.
21964
22183
  # Corresponds to the JSON property `isDefault`
21965
22184
  # @return [Boolean]
21966
22185
  attr_accessor :is_default
@@ -22001,7 +22220,12 @@ module Google
22001
22220
  # @return [String]
22002
22221
  attr_accessor :notebook_runtime_type
22003
22222
 
22004
- # The service account that the runtime workload runs as. You can use any service
22223
+ # Deprecated: This field is ignored and the "Vertex AI Notebook Service Account"
22224
+ # (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used
22225
+ # for the runtime workload identity. See https://cloud.google.com/iam/docs/
22226
+ # service-agents#vertex-ai-notebook-service-account for more details. For
22227
+ # NotebookExecutionJob, use NotebookExecutionJob.service_account instead. The
22228
+ # service account that the runtime workload runs as. You can use any service
22005
22229
  # account within the same project, but you must have the service account user
22006
22230
  # permission to use the instance. If not specified, the [Compute Engine default
22007
22231
  # service account](https://cloud.google.com/compute/docs/access/service-accounts#
@@ -22483,7 +22707,7 @@ module Google
22483
22707
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
22484
22708
  attr_accessor :function_response
22485
22709
 
22486
- # Content blob. It's preferred to send as text directly rather than raw bytes.
22710
+ # Content blob.
22487
22711
  # Corresponds to the JSON property `inlineData`
22488
22712
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
22489
22713
  attr_accessor :inline_data
@@ -22493,6 +22717,12 @@ module Google
22493
22717
  # @return [String]
22494
22718
  attr_accessor :text
22495
22719
 
22720
+ # Optional. Indicates if the part is thought from the model.
22721
+ # Corresponds to the JSON property `thought`
22722
+ # @return [Boolean]
22723
+ attr_accessor :thought
22724
+ alias_method :thought?, :thought
22725
+
22496
22726
  # Metadata describes the input video content.
22497
22727
  # Corresponds to the JSON property `videoMetadata`
22498
22728
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VideoMetadata]
@@ -22511,6 +22741,7 @@ module Google
22511
22741
  @function_response = args[:function_response] if args.key?(:function_response)
22512
22742
  @inline_data = args[:inline_data] if args.key?(:inline_data)
22513
22743
  @text = args[:text] if args.key?(:text)
22744
+ @thought = args[:thought] if args.key?(:thought)
22514
22745
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
22515
22746
  end
22516
22747
  end
@@ -23058,8 +23289,9 @@ module Google
23058
23289
  class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime
23059
23290
  include Google::Apis::Core::Hashable
23060
23291
 
23061
- # Persistent resource based runtime detail. For more information, refer to https:
23062
- # //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
23292
+ # Persistent resource based runtime detail. For more information about
23293
+ # persistent resource, refer to https://cloud.google.com/vertex-ai/docs/training/
23294
+ # persistent-resource-overview
23063
23295
  # Corresponds to the JSON property `persistentResourceRuntimeDetail`
23064
23296
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail]
23065
23297
  attr_accessor :persistent_resource_runtime_detail
@@ -23096,8 +23328,9 @@ module Google
23096
23328
  end
23097
23329
  end
23098
23330
 
23099
- # Persistent resource based runtime detail. For more information, refer to https:
23100
- # //cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
23331
+ # Persistent resource based runtime detail. For more information about
23332
+ # persistent resource, refer to https://cloud.google.com/vertex-ai/docs/training/
23333
+ # persistent-resource-overview
23101
23334
  class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail
23102
23335
  include Google::Apis::Core::Hashable
23103
23336
 
@@ -23605,6 +23838,25 @@ module Google
23605
23838
  end
23606
23839
  end
23607
23840
 
23841
+ # The configuration for the prebuilt speaker to use.
23842
+ class GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig
23843
+ include Google::Apis::Core::Hashable
23844
+
23845
+ # The name of the preset voice to use.
23846
+ # Corresponds to the JSON property `voiceName`
23847
+ # @return [String]
23848
+ attr_accessor :voice_name
23849
+
23850
+ def initialize(**args)
23851
+ update!(**args)
23852
+ end
23853
+
23854
+ # Update properties of this object
23855
+ def update!(**args)
23856
+ @voice_name = args[:voice_name] if args.key?(:voice_name)
23857
+ end
23858
+ end
23859
+
23608
23860
  # Assigns input data to training, validation, and test sets based on the value
23609
23861
  # of a provided key. Supported only for tabular Datasets.
23610
23862
  class GoogleCloudAiplatformV1beta1PredefinedSplit
@@ -23992,6 +24244,16 @@ module Google
23992
24244
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeExecAction]
23993
24245
  attr_accessor :exec
23994
24246
 
24247
+ # GrpcAction checks the health of a container using a gRPC service.
24248
+ # Corresponds to the JSON property `grpc`
24249
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeGrpcAction]
24250
+ attr_accessor :grpc
24251
+
24252
+ # HttpGetAction describes an action based on HTTP Get requests.
24253
+ # Corresponds to the JSON property `httpGet`
24254
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeHttpGetAction]
24255
+ attr_accessor :http_get
24256
+
23995
24257
  # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
23996
24258
  # value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
23997
24259
  # argument 'periodSeconds'.
@@ -23999,6 +24261,12 @@ module Google
23999
24261
  # @return [Fixnum]
24000
24262
  attr_accessor :period_seconds
24001
24263
 
24264
+ # TcpSocketAction probes the health of a container by opening a TCP socket
24265
+ # connection.
24266
+ # Corresponds to the JSON property `tcpSocket`
24267
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeTcpSocketAction]
24268
+ attr_accessor :tcp_socket
24269
+
24002
24270
  # Number of seconds after which the probe times out. Defaults to 1 second.
24003
24271
  # Minimum value is 1. Must be greater or equal to period_seconds. Maps to
24004
24272
  # Kubernetes probe argument 'timeoutSeconds'.
@@ -24013,7 +24281,10 @@ module Google
24013
24281
  # Update properties of this object
24014
24282
  def update!(**args)
24015
24283
  @exec = args[:exec] if args.key?(:exec)
24284
+ @grpc = args[:grpc] if args.key?(:grpc)
24285
+ @http_get = args[:http_get] if args.key?(:http_get)
24016
24286
  @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
24287
+ @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
24017
24288
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
24018
24289
  end
24019
24290
  end
@@ -24042,6 +24313,133 @@ module Google
24042
24313
  end
24043
24314
  end
24044
24315
 
24316
+ # GrpcAction checks the health of a container using a gRPC service.
24317
+ class GoogleCloudAiplatformV1beta1ProbeGrpcAction
24318
+ include Google::Apis::Core::Hashable
24319
+
24320
+ # Port number of the gRPC service. Number must be in the range 1 to 65535.
24321
+ # Corresponds to the JSON property `port`
24322
+ # @return [Fixnum]
24323
+ attr_accessor :port
24324
+
24325
+ # Service is the name of the service to place in the gRPC HealthCheckRequest (
24326
+ # see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this
24327
+ # is not specified, the default behavior is defined by gRPC.
24328
+ # Corresponds to the JSON property `service`
24329
+ # @return [String]
24330
+ attr_accessor :service
24331
+
24332
+ def initialize(**args)
24333
+ update!(**args)
24334
+ end
24335
+
24336
+ # Update properties of this object
24337
+ def update!(**args)
24338
+ @port = args[:port] if args.key?(:port)
24339
+ @service = args[:service] if args.key?(:service)
24340
+ end
24341
+ end
24342
+
24343
+ # HttpGetAction describes an action based on HTTP Get requests.
24344
+ class GoogleCloudAiplatformV1beta1ProbeHttpGetAction
24345
+ include Google::Apis::Core::Hashable
24346
+
24347
+ # Host name to connect to, defaults to the model serving container's IP. You
24348
+ # probably want to set "Host" in httpHeaders instead.
24349
+ # Corresponds to the JSON property `host`
24350
+ # @return [String]
24351
+ attr_accessor :host
24352
+
24353
+ # Custom headers to set in the request. HTTP allows repeated headers.
24354
+ # Corresponds to the JSON property `httpHeaders`
24355
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeHttpHeader>]
24356
+ attr_accessor :http_headers
24357
+
24358
+ # Path to access on the HTTP server.
24359
+ # Corresponds to the JSON property `path`
24360
+ # @return [String]
24361
+ attr_accessor :path
24362
+
24363
+ # Number of the port to access on the container. Number must be in the range 1
24364
+ # to 65535.
24365
+ # Corresponds to the JSON property `port`
24366
+ # @return [Fixnum]
24367
+ attr_accessor :port
24368
+
24369
+ # Scheme to use for connecting to the host. Defaults to HTTP. Acceptable values
24370
+ # are "HTTP" or "HTTPS".
24371
+ # Corresponds to the JSON property `scheme`
24372
+ # @return [String]
24373
+ attr_accessor :scheme
24374
+
24375
+ def initialize(**args)
24376
+ update!(**args)
24377
+ end
24378
+
24379
+ # Update properties of this object
24380
+ def update!(**args)
24381
+ @host = args[:host] if args.key?(:host)
24382
+ @http_headers = args[:http_headers] if args.key?(:http_headers)
24383
+ @path = args[:path] if args.key?(:path)
24384
+ @port = args[:port] if args.key?(:port)
24385
+ @scheme = args[:scheme] if args.key?(:scheme)
24386
+ end
24387
+ end
24388
+
24389
+ # HttpHeader describes a custom header to be used in HTTP probes
24390
+ class GoogleCloudAiplatformV1beta1ProbeHttpHeader
24391
+ include Google::Apis::Core::Hashable
24392
+
24393
+ # The header field name. This will be canonicalized upon output, so case-variant
24394
+ # names will be understood as the same header.
24395
+ # Corresponds to the JSON property `name`
24396
+ # @return [String]
24397
+ attr_accessor :name
24398
+
24399
+ # The header field value
24400
+ # Corresponds to the JSON property `value`
24401
+ # @return [String]
24402
+ attr_accessor :value
24403
+
24404
+ def initialize(**args)
24405
+ update!(**args)
24406
+ end
24407
+
24408
+ # Update properties of this object
24409
+ def update!(**args)
24410
+ @name = args[:name] if args.key?(:name)
24411
+ @value = args[:value] if args.key?(:value)
24412
+ end
24413
+ end
24414
+
24415
+ # TcpSocketAction probes the health of a container by opening a TCP socket
24416
+ # connection.
24417
+ class GoogleCloudAiplatformV1beta1ProbeTcpSocketAction
24418
+ include Google::Apis::Core::Hashable
24419
+
24420
+ # Optional: Host name to connect to, defaults to the model serving container's
24421
+ # IP.
24422
+ # Corresponds to the JSON property `host`
24423
+ # @return [String]
24424
+ attr_accessor :host
24425
+
24426
+ # Number of the port to access on the container. Number must be in the range 1
24427
+ # to 65535.
24428
+ # Corresponds to the JSON property `port`
24429
+ # @return [Fixnum]
24430
+ attr_accessor :port
24431
+
24432
+ def initialize(**args)
24433
+ update!(**args)
24434
+ end
24435
+
24436
+ # Update properties of this object
24437
+ def update!(**args)
24438
+ @host = args[:host] if args.key?(:host)
24439
+ @port = args[:port] if args.key?(:port)
24440
+ end
24441
+ end
24442
+
24045
24443
  # PscAutomatedEndpoints defines the output of the forwarding rule automatically
24046
24444
  # created by each PscAutomationConfig.
24047
24445
  class GoogleCloudAiplatformV1beta1PscAutomatedEndpoints
@@ -25986,6 +26384,11 @@ module Google
25986
26384
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser]
25987
26385
  attr_accessor :layout_parser
25988
26386
 
26387
+ # Specifies the advanced parsing for RagFiles.
26388
+ # Corresponds to the JSON property `llmParser`
26389
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser]
26390
+ attr_accessor :llm_parser
26391
+
25989
26392
  # Whether to use advanced PDF parsing.
25990
26393
  # Corresponds to the JSON property `useAdvancedPdfParsing`
25991
26394
  # @return [Boolean]
@@ -26000,6 +26403,7 @@ module Google
26000
26403
  def update!(**args)
26001
26404
  @advanced_parser = args[:advanced_parser] if args.key?(:advanced_parser)
26002
26405
  @layout_parser = args[:layout_parser] if args.key?(:layout_parser)
26406
+ @llm_parser = args[:llm_parser] if args.key?(:llm_parser)
26003
26407
  @use_advanced_pdf_parsing = args[:use_advanced_pdf_parsing] if args.key?(:use_advanced_pdf_parsing)
26004
26408
  end
26005
26409
  end
@@ -26057,6 +26461,40 @@ module Google
26057
26461
  end
26058
26462
  end
26059
26463
 
26464
+ # Specifies the advanced parsing for RagFiles.
26465
+ class GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser
26466
+ include Google::Apis::Core::Hashable
26467
+
26468
+ # The prompt to use for parsing. If not specified, a default prompt will be used.
26469
+ # Corresponds to the JSON property `customParsingPrompt`
26470
+ # @return [String]
26471
+ attr_accessor :custom_parsing_prompt
26472
+
26473
+ # The maximum number of requests the job is allowed to make to the LLM model per
26474
+ # minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
26475
+ # and your document size to set an appropriate value here. If unspecified, a
26476
+ # default value of 5000 QPM would be used.
26477
+ # Corresponds to the JSON property `maxParsingRequestsPerMin`
26478
+ # @return [Fixnum]
26479
+ attr_accessor :max_parsing_requests_per_min
26480
+
26481
+ # The name of a LLM model used for parsing. Format: `gemini-1.5-pro-002`
26482
+ # Corresponds to the JSON property `modelName`
26483
+ # @return [String]
26484
+ attr_accessor :model_name
26485
+
26486
+ def initialize(**args)
26487
+ update!(**args)
26488
+ end
26489
+
26490
+ # Update properties of this object
26491
+ def update!(**args)
26492
+ @custom_parsing_prompt = args[:custom_parsing_prompt] if args.key?(:custom_parsing_prompt)
26493
+ @max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
26494
+ @model_name = args[:model_name] if args.key?(:model_name)
26495
+ end
26496
+ end
26497
+
26060
26498
  # Specifies the transformation config for RagFiles.
26061
26499
  class GoogleCloudAiplatformV1beta1RagFileTransformationConfig
26062
26500
  include Google::Apis::Core::Hashable
@@ -36291,6 +36729,25 @@ module Google
36291
36729
  end
36292
36730
  end
36293
36731
 
36732
+ # The speech generation config.
36733
+ class GoogleCloudAiplatformV1beta1SpeechConfig
36734
+ include Google::Apis::Core::Hashable
36735
+
36736
+ # The configuration for the voice to use.
36737
+ # Corresponds to the JSON property `voiceConfig`
36738
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig]
36739
+ attr_accessor :voice_config
36740
+
36741
+ def initialize(**args)
36742
+ update!(**args)
36743
+ end
36744
+
36745
+ # Update properties of this object
36746
+ def update!(**args)
36747
+ @voice_config = args[:voice_config] if args.key?(:voice_config)
36748
+ end
36749
+ end
36750
+
36294
36751
  # Metadata information for NotebookService.StartNotebookRuntime.
36295
36752
  class GoogleCloudAiplatformV1beta1StartNotebookRuntimeOperationMetadata
36296
36753
  include Google::Apis::Core::Hashable
@@ -36405,6 +36862,33 @@ module Google
36405
36862
  end
36406
36863
  end
36407
36864
 
36865
+ # Request message for ReasoningEngineExecutionService.StreamQuery.
36866
+ class GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest
36867
+ include Google::Apis::Core::Hashable
36868
+
36869
+ # Optional. Class method to be used for the stream query. It is optional and
36870
+ # defaults to "stream_query" if unspecified.
36871
+ # Corresponds to the JSON property `classMethod`
36872
+ # @return [String]
36873
+ attr_accessor :class_method
36874
+
36875
+ # Optional. Input content provided by users in JSON object format. Examples
36876
+ # include text query, function calling parameters, media bytes, etc.
36877
+ # Corresponds to the JSON property `input`
36878
+ # @return [Hash<String,Object>]
36879
+ attr_accessor :input
36880
+
36881
+ def initialize(**args)
36882
+ update!(**args)
36883
+ end
36884
+
36885
+ # Update properties of this object
36886
+ def update!(**args)
36887
+ @class_method = args[:class_method] if args.key?(:class_method)
36888
+ @input = args[:input] if args.key?(:input)
36889
+ end
36890
+ end
36891
+
36408
36892
  # Request message for PredictionService.StreamRawPredict.
36409
36893
  class GoogleCloudAiplatformV1beta1StreamRawPredictRequest
36410
36894
  include Google::Apis::Core::Hashable
@@ -38971,6 +39455,12 @@ module Google
38971
39455
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
38972
39456
  attr_accessor :function_declarations
38973
39457
 
39458
+ # GoogleSearch tool type. Tool to support Google Search in Model. Powered by
39459
+ # Google.
39460
+ # Corresponds to the JSON property `googleSearch`
39461
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolGoogleSearch]
39462
+ attr_accessor :google_search
39463
+
38974
39464
  # Tool to retrieve public web data for grounding, powered by Google.
38975
39465
  # Corresponds to the JSON property `googleSearchRetrieval`
38976
39466
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
@@ -38989,11 +39479,37 @@ module Google
38989
39479
  def update!(**args)
38990
39480
  @code_execution = args[:code_execution] if args.key?(:code_execution)
38991
39481
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
39482
+ @google_search = args[:google_search] if args.key?(:google_search)
38992
39483
  @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
38993
39484
  @retrieval = args[:retrieval] if args.key?(:retrieval)
38994
39485
  end
38995
39486
  end
38996
39487
 
39488
+ # Spec for tool call.
39489
+ class GoogleCloudAiplatformV1beta1ToolCall
39490
+ include Google::Apis::Core::Hashable
39491
+
39492
+ # Optional. Spec for tool input
39493
+ # Corresponds to the JSON property `toolInput`
39494
+ # @return [String]
39495
+ attr_accessor :tool_input
39496
+
39497
+ # Required. Spec for tool name
39498
+ # Corresponds to the JSON property `toolName`
39499
+ # @return [String]
39500
+ attr_accessor :tool_name
39501
+
39502
+ def initialize(**args)
39503
+ update!(**args)
39504
+ end
39505
+
39506
+ # Update properties of this object
39507
+ def update!(**args)
39508
+ @tool_input = args[:tool_input] if args.key?(:tool_input)
39509
+ @tool_name = args[:tool_name] if args.key?(:tool_name)
39510
+ end
39511
+ end
39512
+
38997
39513
  # Input for tool call valid metric.
38998
39514
  class GoogleCloudAiplatformV1beta1ToolCallValidInput
38999
39515
  include Google::Apis::Core::Hashable
@@ -39129,6 +39645,20 @@ module Google
39129
39645
  end
39130
39646
  end
39131
39647
 
39648
+ # GoogleSearch tool type. Tool to support Google Search in Model. Powered by
39649
+ # Google.
39650
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearch
39651
+ include Google::Apis::Core::Hashable
39652
+
39653
+ def initialize(**args)
39654
+ update!(**args)
39655
+ end
39656
+
39657
+ # Update properties of this object
39658
+ def update!(**args)
39659
+ end
39660
+ end
39661
+
39132
39662
  # Input for tool name match metric.
39133
39663
  class GoogleCloudAiplatformV1beta1ToolNameMatchInput
39134
39664
  include Google::Apis::Core::Hashable
@@ -39688,6 +40218,645 @@ module Google
39688
40218
  end
39689
40219
  end
39690
40220
 
40221
+ # Spec for trajectory.
40222
+ class GoogleCloudAiplatformV1beta1Trajectory
40223
+ include Google::Apis::Core::Hashable
40224
+
40225
+ # Required. Tool calls in the trajectory.
40226
+ # Corresponds to the JSON property `toolCalls`
40227
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCall>]
40228
+ attr_accessor :tool_calls
40229
+
40230
+ def initialize(**args)
40231
+ update!(**args)
40232
+ end
40233
+
40234
+ # Update properties of this object
40235
+ def update!(**args)
40236
+ @tool_calls = args[:tool_calls] if args.key?(:tool_calls)
40237
+ end
40238
+ end
40239
+
40240
+ # Instances and metric spec for TrajectoryAnyOrderMatch metric.
40241
+ class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInput
40242
+ include Google::Apis::Core::Hashable
40243
+
40244
+ # Required. Repeated TrajectoryAnyOrderMatch instance.
40245
+ # Corresponds to the JSON property `instances`
40246
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInstance>]
40247
+ attr_accessor :instances
40248
+
40249
+ # Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
40250
+ # reference trajectory appear in the predicted trajectory in any order, else 0.
40251
+ # Corresponds to the JSON property `metricSpec`
40252
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchSpec]
40253
+ attr_accessor :metric_spec
40254
+
40255
+ def initialize(**args)
40256
+ update!(**args)
40257
+ end
40258
+
40259
+ # Update properties of this object
40260
+ def update!(**args)
40261
+ @instances = args[:instances] if args.key?(:instances)
40262
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40263
+ end
40264
+ end
40265
+
40266
+ # Spec for TrajectoryAnyOrderMatch instance.
40267
+ class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInstance
40268
+ include Google::Apis::Core::Hashable
40269
+
40270
+ # Spec for trajectory.
40271
+ # Corresponds to the JSON property `predictedTrajectory`
40272
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40273
+ attr_accessor :predicted_trajectory
40274
+
40275
+ # Spec for trajectory.
40276
+ # Corresponds to the JSON property `referenceTrajectory`
40277
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40278
+ attr_accessor :reference_trajectory
40279
+
40280
+ def initialize(**args)
40281
+ update!(**args)
40282
+ end
40283
+
40284
+ # Update properties of this object
40285
+ def update!(**args)
40286
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40287
+ @reference_trajectory = args[:reference_trajectory] if args.key?(:reference_trajectory)
40288
+ end
40289
+ end
40290
+
40291
+ # TrajectoryAnyOrderMatch metric value for an instance.
40292
+ class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchMetricValue
40293
+ include Google::Apis::Core::Hashable
40294
+
40295
+ # Output only. TrajectoryAnyOrderMatch score.
40296
+ # Corresponds to the JSON property `score`
40297
+ # @return [Float]
40298
+ attr_accessor :score
40299
+
40300
+ def initialize(**args)
40301
+ update!(**args)
40302
+ end
40303
+
40304
+ # Update properties of this object
40305
+ def update!(**args)
40306
+ @score = args[:score] if args.key?(:score)
40307
+ end
40308
+ end
40309
+
40310
+ # Results for TrajectoryAnyOrderMatch metric.
40311
+ class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchResults
40312
+ include Google::Apis::Core::Hashable
40313
+
40314
+ # Output only. TrajectoryAnyOrderMatch metric values.
40315
+ # Corresponds to the JSON property `trajectoryAnyOrderMatchMetricValues`
40316
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchMetricValue>]
40317
+ attr_accessor :trajectory_any_order_match_metric_values
40318
+
40319
+ def initialize(**args)
40320
+ update!(**args)
40321
+ end
40322
+
40323
+ # Update properties of this object
40324
+ def update!(**args)
40325
+ @trajectory_any_order_match_metric_values = args[:trajectory_any_order_match_metric_values] if args.key?(:trajectory_any_order_match_metric_values)
40326
+ end
40327
+ end
40328
+
40329
+ # Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
40330
+ # reference trajectory appear in the predicted trajectory in any order, else 0.
40331
+ class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchSpec
40332
+ include Google::Apis::Core::Hashable
40333
+
40334
+ def initialize(**args)
40335
+ update!(**args)
40336
+ end
40337
+
40338
+ # Update properties of this object
40339
+ def update!(**args)
40340
+ end
40341
+ end
40342
+
40343
+ # Instances and metric spec for TrajectoryExactMatch metric.
40344
+ class GoogleCloudAiplatformV1beta1TrajectoryExactMatchInput
40345
+ include Google::Apis::Core::Hashable
40346
+
40347
+ # Required. Repeated TrajectoryExactMatch instance.
40348
+ # Corresponds to the JSON property `instances`
40349
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryExactMatchInstance>]
40350
+ attr_accessor :instances
40351
+
40352
+ # Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
40353
+ # reference trajectory exactly match the predicted trajectory, else 0.
40354
+ # Corresponds to the JSON property `metricSpec`
40355
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryExactMatchSpec]
40356
+ attr_accessor :metric_spec
40357
+
40358
+ def initialize(**args)
40359
+ update!(**args)
40360
+ end
40361
+
40362
+ # Update properties of this object
40363
+ def update!(**args)
40364
+ @instances = args[:instances] if args.key?(:instances)
40365
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40366
+ end
40367
+ end
40368
+
40369
+ # Spec for TrajectoryExactMatch instance.
40370
+ class GoogleCloudAiplatformV1beta1TrajectoryExactMatchInstance
40371
+ include Google::Apis::Core::Hashable
40372
+
40373
+ # Spec for trajectory.
40374
+ # Corresponds to the JSON property `predictedTrajectory`
40375
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40376
+ attr_accessor :predicted_trajectory
40377
+
40378
+ # Spec for trajectory.
40379
+ # Corresponds to the JSON property `referenceTrajectory`
40380
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40381
+ attr_accessor :reference_trajectory
40382
+
40383
+ def initialize(**args)
40384
+ update!(**args)
40385
+ end
40386
+
40387
+ # Update properties of this object
40388
+ def update!(**args)
40389
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40390
+ @reference_trajectory = args[:reference_trajectory] if args.key?(:reference_trajectory)
40391
+ end
40392
+ end
40393
+
40394
+ # TrajectoryExactMatch metric value for an instance.
40395
+ class GoogleCloudAiplatformV1beta1TrajectoryExactMatchMetricValue
40396
+ include Google::Apis::Core::Hashable
40397
+
40398
+ # Output only. TrajectoryExactMatch score.
40399
+ # Corresponds to the JSON property `score`
40400
+ # @return [Float]
40401
+ attr_accessor :score
40402
+
40403
+ def initialize(**args)
40404
+ update!(**args)
40405
+ end
40406
+
40407
+ # Update properties of this object
40408
+ def update!(**args)
40409
+ @score = args[:score] if args.key?(:score)
40410
+ end
40411
+ end
40412
+
40413
+ # Results for TrajectoryExactMatch metric.
40414
+ class GoogleCloudAiplatformV1beta1TrajectoryExactMatchResults
40415
+ include Google::Apis::Core::Hashable
40416
+
40417
+ # Output only. TrajectoryExactMatch metric values.
40418
+ # Corresponds to the JSON property `trajectoryExactMatchMetricValues`
40419
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryExactMatchMetricValue>]
40420
+ attr_accessor :trajectory_exact_match_metric_values
40421
+
40422
+ def initialize(**args)
40423
+ update!(**args)
40424
+ end
40425
+
40426
+ # Update properties of this object
40427
+ def update!(**args)
40428
+ @trajectory_exact_match_metric_values = args[:trajectory_exact_match_metric_values] if args.key?(:trajectory_exact_match_metric_values)
40429
+ end
40430
+ end
40431
+
40432
+ # Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
40433
+ # reference trajectory exactly match the predicted trajectory, else 0.
40434
+ class GoogleCloudAiplatformV1beta1TrajectoryExactMatchSpec
40435
+ include Google::Apis::Core::Hashable
40436
+
40437
+ def initialize(**args)
40438
+ update!(**args)
40439
+ end
40440
+
40441
+ # Update properties of this object
40442
+ def update!(**args)
40443
+ end
40444
+ end
40445
+
40446
+ # Instances and metric spec for TrajectoryInOrderMatch metric.
40447
+ class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInput
40448
+ include Google::Apis::Core::Hashable
40449
+
40450
+ # Required. Repeated TrajectoryInOrderMatch instance.
40451
+ # Corresponds to the JSON property `instances`
40452
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInstance>]
40453
+ attr_accessor :instances
40454
+
40455
+ # Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
40456
+ # reference trajectory appear in the predicted trajectory in the same order,
40457
+ # else 0.
40458
+ # Corresponds to the JSON property `metricSpec`
40459
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchSpec]
40460
+ attr_accessor :metric_spec
40461
+
40462
+ def initialize(**args)
40463
+ update!(**args)
40464
+ end
40465
+
40466
+ # Update properties of this object
40467
+ def update!(**args)
40468
+ @instances = args[:instances] if args.key?(:instances)
40469
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40470
+ end
40471
+ end
40472
+
40473
+ # Spec for TrajectoryInOrderMatch instance.
40474
+ class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInstance
40475
+ include Google::Apis::Core::Hashable
40476
+
40477
+ # Spec for trajectory.
40478
+ # Corresponds to the JSON property `predictedTrajectory`
40479
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40480
+ attr_accessor :predicted_trajectory
40481
+
40482
+ # Spec for trajectory.
40483
+ # Corresponds to the JSON property `referenceTrajectory`
40484
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40485
+ attr_accessor :reference_trajectory
40486
+
40487
+ def initialize(**args)
40488
+ update!(**args)
40489
+ end
40490
+
40491
+ # Update properties of this object
40492
+ def update!(**args)
40493
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40494
+ @reference_trajectory = args[:reference_trajectory] if args.key?(:reference_trajectory)
40495
+ end
40496
+ end
40497
+
40498
+ # TrajectoryInOrderMatch metric value for an instance.
40499
+ class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchMetricValue
40500
+ include Google::Apis::Core::Hashable
40501
+
40502
+ # Output only. TrajectoryInOrderMatch score.
40503
+ # Corresponds to the JSON property `score`
40504
+ # @return [Float]
40505
+ attr_accessor :score
40506
+
40507
+ def initialize(**args)
40508
+ update!(**args)
40509
+ end
40510
+
40511
+ # Update properties of this object
40512
+ def update!(**args)
40513
+ @score = args[:score] if args.key?(:score)
40514
+ end
40515
+ end
40516
+
40517
+ # Results for TrajectoryInOrderMatch metric.
40518
+ class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchResults
40519
+ include Google::Apis::Core::Hashable
40520
+
40521
+ # Output only. TrajectoryInOrderMatch metric values.
40522
+ # Corresponds to the JSON property `trajectoryInOrderMatchMetricValues`
40523
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchMetricValue>]
40524
+ attr_accessor :trajectory_in_order_match_metric_values
40525
+
40526
+ def initialize(**args)
40527
+ update!(**args)
40528
+ end
40529
+
40530
+ # Update properties of this object
40531
+ def update!(**args)
40532
+ @trajectory_in_order_match_metric_values = args[:trajectory_in_order_match_metric_values] if args.key?(:trajectory_in_order_match_metric_values)
40533
+ end
40534
+ end
40535
+
40536
+ # Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
40537
+ # reference trajectory appear in the predicted trajectory in the same order,
40538
+ # else 0.
40539
+ class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchSpec
40540
+ include Google::Apis::Core::Hashable
40541
+
40542
+ def initialize(**args)
40543
+ update!(**args)
40544
+ end
40545
+
40546
+ # Update properties of this object
40547
+ def update!(**args)
40548
+ end
40549
+ end
40550
+
40551
+ # Instances and metric spec for TrajectoryPrecision metric.
40552
+ class GoogleCloudAiplatformV1beta1TrajectoryPrecisionInput
40553
+ include Google::Apis::Core::Hashable
40554
+
40555
+ # Required. Repeated TrajectoryPrecision instance.
40556
+ # Corresponds to the JSON property `instances`
40557
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryPrecisionInstance>]
40558
+ attr_accessor :instances
40559
+
40560
+ # Spec for TrajectoryPrecision metric - returns a float score based on average
40561
+ # precision of individual tool calls.
40562
+ # Corresponds to the JSON property `metricSpec`
40563
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryPrecisionSpec]
40564
+ attr_accessor :metric_spec
40565
+
40566
+ def initialize(**args)
40567
+ update!(**args)
40568
+ end
40569
+
40570
+ # Update properties of this object
40571
+ def update!(**args)
40572
+ @instances = args[:instances] if args.key?(:instances)
40573
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40574
+ end
40575
+ end
40576
+
40577
+ # Spec for TrajectoryPrecision instance.
40578
+ class GoogleCloudAiplatformV1beta1TrajectoryPrecisionInstance
40579
+ include Google::Apis::Core::Hashable
40580
+
40581
+ # Spec for trajectory.
40582
+ # Corresponds to the JSON property `predictedTrajectory`
40583
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40584
+ attr_accessor :predicted_trajectory
40585
+
40586
+ # Spec for trajectory.
40587
+ # Corresponds to the JSON property `referenceTrajectory`
40588
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40589
+ attr_accessor :reference_trajectory
40590
+
40591
+ def initialize(**args)
40592
+ update!(**args)
40593
+ end
40594
+
40595
+ # Update properties of this object
40596
+ def update!(**args)
40597
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40598
+ @reference_trajectory = args[:reference_trajectory] if args.key?(:reference_trajectory)
40599
+ end
40600
+ end
40601
+
40602
+ # TrajectoryPrecision metric value for an instance.
40603
+ class GoogleCloudAiplatformV1beta1TrajectoryPrecisionMetricValue
40604
+ include Google::Apis::Core::Hashable
40605
+
40606
+ # Output only. TrajectoryPrecision score.
40607
+ # Corresponds to the JSON property `score`
40608
+ # @return [Float]
40609
+ attr_accessor :score
40610
+
40611
+ def initialize(**args)
40612
+ update!(**args)
40613
+ end
40614
+
40615
+ # Update properties of this object
40616
+ def update!(**args)
40617
+ @score = args[:score] if args.key?(:score)
40618
+ end
40619
+ end
40620
+
40621
+ # Results for TrajectoryPrecision metric.
40622
+ class GoogleCloudAiplatformV1beta1TrajectoryPrecisionResults
40623
+ include Google::Apis::Core::Hashable
40624
+
40625
+ # Output only. TrajectoryPrecision metric values.
40626
+ # Corresponds to the JSON property `trajectoryPrecisionMetricValues`
40627
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryPrecisionMetricValue>]
40628
+ attr_accessor :trajectory_precision_metric_values
40629
+
40630
+ def initialize(**args)
40631
+ update!(**args)
40632
+ end
40633
+
40634
+ # Update properties of this object
40635
+ def update!(**args)
40636
+ @trajectory_precision_metric_values = args[:trajectory_precision_metric_values] if args.key?(:trajectory_precision_metric_values)
40637
+ end
40638
+ end
40639
+
40640
+ # Spec for TrajectoryPrecision metric - returns a float score based on average
40641
+ # precision of individual tool calls.
40642
+ class GoogleCloudAiplatformV1beta1TrajectoryPrecisionSpec
40643
+ include Google::Apis::Core::Hashable
40644
+
40645
+ def initialize(**args)
40646
+ update!(**args)
40647
+ end
40648
+
40649
+ # Update properties of this object
40650
+ def update!(**args)
40651
+ end
40652
+ end
40653
+
40654
+ # Instances and metric spec for TrajectoryRecall metric.
40655
+ class GoogleCloudAiplatformV1beta1TrajectoryRecallInput
40656
+ include Google::Apis::Core::Hashable
40657
+
40658
+ # Required. Repeated TrajectoryRecall instance.
40659
+ # Corresponds to the JSON property `instances`
40660
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryRecallInstance>]
40661
+ attr_accessor :instances
40662
+
40663
+ # Spec for TrajectoryRecall metric - returns a float score based on average
40664
+ # recall of individual tool calls.
40665
+ # Corresponds to the JSON property `metricSpec`
40666
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryRecallSpec]
40667
+ attr_accessor :metric_spec
40668
+
40669
+ def initialize(**args)
40670
+ update!(**args)
40671
+ end
40672
+
40673
+ # Update properties of this object
40674
+ def update!(**args)
40675
+ @instances = args[:instances] if args.key?(:instances)
40676
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40677
+ end
40678
+ end
40679
+
40680
+ # Spec for TrajectoryRecall instance.
40681
+ class GoogleCloudAiplatformV1beta1TrajectoryRecallInstance
40682
+ include Google::Apis::Core::Hashable
40683
+
40684
+ # Spec for trajectory.
40685
+ # Corresponds to the JSON property `predictedTrajectory`
40686
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40687
+ attr_accessor :predicted_trajectory
40688
+
40689
+ # Spec for trajectory.
40690
+ # Corresponds to the JSON property `referenceTrajectory`
40691
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40692
+ attr_accessor :reference_trajectory
40693
+
40694
+ def initialize(**args)
40695
+ update!(**args)
40696
+ end
40697
+
40698
+ # Update properties of this object
40699
+ def update!(**args)
40700
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40701
+ @reference_trajectory = args[:reference_trajectory] if args.key?(:reference_trajectory)
40702
+ end
40703
+ end
40704
+
40705
+ # TrajectoryRecall metric value for an instance.
40706
+ class GoogleCloudAiplatformV1beta1TrajectoryRecallMetricValue
40707
+ include Google::Apis::Core::Hashable
40708
+
40709
+ # Output only. TrajectoryRecall score.
40710
+ # Corresponds to the JSON property `score`
40711
+ # @return [Float]
40712
+ attr_accessor :score
40713
+
40714
+ def initialize(**args)
40715
+ update!(**args)
40716
+ end
40717
+
40718
+ # Update properties of this object
40719
+ def update!(**args)
40720
+ @score = args[:score] if args.key?(:score)
40721
+ end
40722
+ end
40723
+
40724
+ # Results for TrajectoryRecall metric.
40725
+ class GoogleCloudAiplatformV1beta1TrajectoryRecallResults
40726
+ include Google::Apis::Core::Hashable
40727
+
40728
+ # Output only. TrajectoryRecall metric values.
40729
+ # Corresponds to the JSON property `trajectoryRecallMetricValues`
40730
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectoryRecallMetricValue>]
40731
+ attr_accessor :trajectory_recall_metric_values
40732
+
40733
+ def initialize(**args)
40734
+ update!(**args)
40735
+ end
40736
+
40737
+ # Update properties of this object
40738
+ def update!(**args)
40739
+ @trajectory_recall_metric_values = args[:trajectory_recall_metric_values] if args.key?(:trajectory_recall_metric_values)
40740
+ end
40741
+ end
40742
+
40743
+ # Spec for TrajectoryRecall metric - returns a float score based on average
40744
+ # recall of individual tool calls.
40745
+ class GoogleCloudAiplatformV1beta1TrajectoryRecallSpec
40746
+ include Google::Apis::Core::Hashable
40747
+
40748
+ def initialize(**args)
40749
+ update!(**args)
40750
+ end
40751
+
40752
+ # Update properties of this object
40753
+ def update!(**args)
40754
+ end
40755
+ end
40756
+
40757
+ # Instances and metric spec for TrajectorySingleToolUse metric.
40758
+ class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInput
40759
+ include Google::Apis::Core::Hashable
40760
+
40761
+ # Required. Repeated TrajectorySingleToolUse instance.
40762
+ # Corresponds to the JSON property `instances`
40763
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInstance>]
40764
+ attr_accessor :instances
40765
+
40766
+ # Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
40767
+ # predicted trajectory, else 0.
40768
+ # Corresponds to the JSON property `metricSpec`
40769
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectorySingleToolUseSpec]
40770
+ attr_accessor :metric_spec
40771
+
40772
+ def initialize(**args)
40773
+ update!(**args)
40774
+ end
40775
+
40776
+ # Update properties of this object
40777
+ def update!(**args)
40778
+ @instances = args[:instances] if args.key?(:instances)
40779
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
40780
+ end
40781
+ end
40782
+
40783
+ # Spec for TrajectorySingleToolUse instance.
40784
+ class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInstance
40785
+ include Google::Apis::Core::Hashable
40786
+
40787
+ # Spec for trajectory.
40788
+ # Corresponds to the JSON property `predictedTrajectory`
40789
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trajectory]
40790
+ attr_accessor :predicted_trajectory
40791
+
40792
+ def initialize(**args)
40793
+ update!(**args)
40794
+ end
40795
+
40796
+ # Update properties of this object
40797
+ def update!(**args)
40798
+ @predicted_trajectory = args[:predicted_trajectory] if args.key?(:predicted_trajectory)
40799
+ end
40800
+ end
40801
+
40802
+ # TrajectorySingleToolUse metric value for an instance.
40803
+ class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseMetricValue
40804
+ include Google::Apis::Core::Hashable
40805
+
40806
+ # Output only. TrajectorySingleToolUse score.
40807
+ # Corresponds to the JSON property `score`
40808
+ # @return [Float]
40809
+ attr_accessor :score
40810
+
40811
+ def initialize(**args)
40812
+ update!(**args)
40813
+ end
40814
+
40815
+ # Update properties of this object
40816
+ def update!(**args)
40817
+ @score = args[:score] if args.key?(:score)
40818
+ end
40819
+ end
40820
+
40821
+ # Results for TrajectorySingleToolUse metric.
40822
+ class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseResults
40823
+ include Google::Apis::Core::Hashable
40824
+
40825
+ # Output only. TrajectorySingleToolUse metric values.
40826
+ # Corresponds to the JSON property `trajectorySingleToolUseMetricValues`
40827
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrajectorySingleToolUseMetricValue>]
40828
+ attr_accessor :trajectory_single_tool_use_metric_values
40829
+
40830
+ def initialize(**args)
40831
+ update!(**args)
40832
+ end
40833
+
40834
+ # Update properties of this object
40835
+ def update!(**args)
40836
+ @trajectory_single_tool_use_metric_values = args[:trajectory_single_tool_use_metric_values] if args.key?(:trajectory_single_tool_use_metric_values)
40837
+ end
40838
+ end
40839
+
40840
+ # Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
40841
+ # predicted trajectory, else 0.
40842
+ class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseSpec
40843
+ include Google::Apis::Core::Hashable
40844
+
40845
+ # Required. Spec for tool name to be checked for in the predicted trajectory.
40846
+ # Corresponds to the JSON property `toolName`
40847
+ # @return [String]
40848
+ attr_accessor :tool_name
40849
+
40850
+ def initialize(**args)
40851
+ update!(**args)
40852
+ end
40853
+
40854
+ # Update properties of this object
40855
+ def update!(**args)
40856
+ @tool_name = args[:tool_name] if args.key?(:tool_name)
40857
+ end
40858
+ end
40859
+
39691
40860
  # A message representing a Trial. A Trial contains a unique set of Parameters
39692
40861
  # that has been or will be evaluated, along with the objective metrics got by
39693
40862
  # running the Trial.
@@ -41048,6 +42217,25 @@ module Google
41048
42217
  end
41049
42218
  end
41050
42219
 
42220
+ # The configuration for the voice to use.
42221
+ class GoogleCloudAiplatformV1beta1VoiceConfig
42222
+ include Google::Apis::Core::Hashable
42223
+
42224
+ # The configuration for the prebuilt speaker to use.
42225
+ # Corresponds to the JSON property `prebuiltVoiceConfig`
42226
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig]
42227
+ attr_accessor :prebuilt_voice_config
42228
+
42229
+ def initialize(**args)
42230
+ update!(**args)
42231
+ end
42232
+
42233
+ # Update properties of this object
42234
+ def update!(**args)
42235
+ @prebuilt_voice_config = args[:prebuilt_voice_config] if args.key?(:prebuilt_voice_config)
42236
+ end
42237
+ end
42238
+
41051
42239
  # Represents the spec of a worker pool in a job.
41052
42240
  class GoogleCloudAiplatformV1beta1WorkerPoolSpec
41053
42241
  include Google::Apis::Core::Hashable