@maxim_mazurok/gapi.client.aiplatform-v1beta1 0.1.20250820 → 0.2.20250820

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.
Files changed (2) hide show
  1. package/index.d.ts +1116 -70
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -197,6 +197,26 @@ declare namespace gapi.client {
197
197
  /** Required. The measurement to be added to a Trial. */
198
198
  measurement?: GoogleCloudAiplatformV1beta1Measurement;
199
199
  }
200
+ interface GoogleCloudAiplatformV1beta1AggregationOutput {
201
+ /** One AggregationResult per metric. */
202
+ aggregationResults?: GoogleCloudAiplatformV1beta1AggregationResult[];
203
+ /** The dataset used for evaluation & aggregation. */
204
+ dataset?: GoogleCloudAiplatformV1beta1EvaluationDataset;
205
+ }
206
+ interface GoogleCloudAiplatformV1beta1AggregationResult {
207
+ /** Aggregation metric. */
208
+ aggregationMetric?: string;
209
+ /** Results for bleu metric. */
210
+ bleuMetricValue?: GoogleCloudAiplatformV1beta1BleuMetricValue;
211
+ /** Results for exact match metric. */
212
+ exactMatchMetricValue?: GoogleCloudAiplatformV1beta1ExactMatchMetricValue;
213
+ /** Result for pairwise metric. */
214
+ pairwiseMetricResult?: GoogleCloudAiplatformV1beta1PairwiseMetricResult;
215
+ /** Result for pointwise metric. */
216
+ pointwiseMetricResult?: GoogleCloudAiplatformV1beta1PointwiseMetricResult;
217
+ /** Results for rouge metric. */
218
+ rougeMetricValue?: GoogleCloudAiplatformV1beta1RougeMetricValue;
219
+ }
200
220
  interface GoogleCloudAiplatformV1beta1Annotation {
201
221
  /** Output only. The source of the Annotation. */
202
222
  annotationSource?: GoogleCloudAiplatformV1beta1UserActionReference;
@@ -663,6 +683,26 @@ declare namespace gapi.client {
663
683
  /** Required. BigQuery URI to a project or table, up to 2000 characters long. When only the project is specified, the Dataset and Table is created. When the full table reference is specified, the Dataset must exist and table must not exist. Accepted forms: * BigQuery path. For example: `bq://projectId` or `bq://projectId.bqDatasetId` or `bq://projectId.bqDatasetId.bqTableId`. */
664
684
  outputUri?: string;
665
685
  }
686
+ interface GoogleCloudAiplatformV1beta1BigQueryRequestSet {
687
+ /** Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format. */
688
+ candidateResponseColumns?: {[P in string]: string};
689
+ /** Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format. */
690
+ promptColumn?: string;
691
+ /** Optional. The name of the column that contains the rubrics. This will be in evaluation_rubric.RubricGroup format (cl/762595858). */
692
+ rubricsColumn?: string;
693
+ /** Optional. The sampling config for the bigquery resource. */
694
+ samplingConfig?: GoogleCloudAiplatformV1beta1BigQueryRequestSetSamplingConfig;
695
+ /** Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId */
696
+ uri?: string;
697
+ }
698
+ interface GoogleCloudAiplatformV1beta1BigQueryRequestSetSamplingConfig {
699
+ /** Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100. */
700
+ samplingCount?: number;
701
+ /** Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0. */
702
+ samplingDuration?: string;
703
+ /** Optional. The sampling method to use. */
704
+ samplingMethod?: string;
705
+ }
666
706
  interface GoogleCloudAiplatformV1beta1BigQuerySource {
667
707
  /** Required. BigQuery URI to a table, up to 2000 characters long. Accepted forms: * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. */
668
708
  inputUri?: string;
@@ -756,6 +796,7 @@ declare namespace gapi.client {
756
796
  interface GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest {}
757
797
  interface GoogleCloudAiplatformV1beta1CancelCustomJobRequest {}
758
798
  interface GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest {}
799
+ interface GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest {}
759
800
  interface GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest {}
760
801
  interface GoogleCloudAiplatformV1beta1CancelNasJobRequest {}
761
802
  interface GoogleCloudAiplatformV1beta1CancelPipelineJobRequest {}
@@ -783,6 +824,28 @@ declare namespace gapi.client {
783
824
  /** Output only. Metadata related to url context retrieval tool. */
784
825
  urlContextMetadata?: GoogleCloudAiplatformV1beta1UrlContextMetadata;
785
826
  }
827
+ interface GoogleCloudAiplatformV1beta1CandidateResponse {
828
+ /** Required. The name of the candidate that produced the response. */
829
+ candidate?: string;
830
+ /** Text response. */
831
+ text?: string;
832
+ /** Fields and values that can be used to populate the response template. */
833
+ value?: any;
834
+ }
835
+ interface GoogleCloudAiplatformV1beta1CandidateResult {
836
+ /** Optional. Additional results for the metric. */
837
+ additionalResults?: any;
838
+ /** Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest. */
839
+ candidate?: string;
840
+ /** Optional. The explanation for the metric. */
841
+ explanation?: string;
842
+ /** Required. The metric that was evaluated. */
843
+ metric?: string;
844
+ /** Optional. The rubric verdicts for the metric. */
845
+ rubricVerdicts?: GoogleCloudAiplatformV1beta1RubricVerdict[];
846
+ /** Optional. The score for the metric. */
847
+ score?: number;
848
+ }
786
849
  interface GoogleCloudAiplatformV1beta1Checkpoint {
787
850
  /** The ID of the checkpoint. */
788
851
  checkpointId?: string;
@@ -1973,11 +2036,19 @@ declare namespace gapi.client {
1973
2036
  /** Required. Config for evaluation output. */
1974
2037
  outputConfig?: GoogleCloudAiplatformV1beta1OutputConfig;
1975
2038
  }
2039
+ interface GoogleCloudAiplatformV1beta1EvaluateDatasetResponse {
2040
+ /** Output only. Aggregation statistics derived from results of EvaluationService.EvaluateDataset. */
2041
+ aggregationOutput?: GoogleCloudAiplatformV1beta1AggregationOutput;
2042
+ /** Output only. Output info for EvaluationService.EvaluateDataset. */
2043
+ outputInfo?: GoogleCloudAiplatformV1beta1OutputInfo;
2044
+ }
1976
2045
  interface GoogleCloudAiplatformV1beta1EvaluateDatasetRun {
1977
2046
  /** Output only. The checkpoint id used in the evaluation run. Only populated when evaluating checkpoints. */
1978
2047
  checkpointId?: string;
1979
2048
  /** Output only. The error of the evaluation run if any. */
1980
2049
  error?: GoogleRpcStatus;
2050
+ /** Output only. Results for EvaluationService.EvaluateDataset. */
2051
+ evaluateDatasetResponse?: GoogleCloudAiplatformV1beta1EvaluateDatasetResponse;
1981
2052
  /** Output only. The operation ID of the evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation_id}`. */
1982
2053
  operationName?: string;
1983
2054
  }
@@ -1998,6 +2069,10 @@ declare namespace gapi.client {
1998
2069
  fulfillmentInput?: GoogleCloudAiplatformV1beta1FulfillmentInput;
1999
2070
  /** Input for groundedness metric. */
2000
2071
  groundednessInput?: GoogleCloudAiplatformV1beta1GroundednessInput;
2072
+ /** The instance to be evaluated. */
2073
+ instance?: GoogleCloudAiplatformV1beta1EvaluationInstance;
2074
+ /** The metrics used for evaluation. Currently, we only support evaluating a single metric. If multiple metrics are provided, only the first one will be evaluated. */
2075
+ metrics?: GoogleCloudAiplatformV1beta1Metric[];
2001
2076
  /** Input for Metricx metric. */
2002
2077
  metricxInput?: GoogleCloudAiplatformV1beta1MetricxInput;
2003
2078
  /** Input for pairwise metric. */
@@ -2064,6 +2139,8 @@ declare namespace gapi.client {
2064
2139
  fulfillmentResult?: GoogleCloudAiplatformV1beta1FulfillmentResult;
2065
2140
  /** Result for groundedness metric. */
2066
2141
  groundednessResult?: GoogleCloudAiplatformV1beta1GroundednessResult;
2142
+ /** Metric results for each instance. The order of the metric results is guaranteed to be the same as the order of the instances in the request. */
2143
+ metricResults?: GoogleCloudAiplatformV1beta1MetricResult[];
2067
2144
  /** Result for Metricx metric. */
2068
2145
  metricxResult?: GoogleCloudAiplatformV1beta1MetricxResult;
2069
2146
  /** Result for pairwise metric. */
@@ -2129,6 +2206,250 @@ declare namespace gapi.client {
2129
2206
  /** Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported. */
2130
2207
  gcsSource?: GoogleCloudAiplatformV1beta1GcsSource;
2131
2208
  }
2209
+ interface GoogleCloudAiplatformV1beta1EvaluationInstance {
2210
+ /** Optional. Other data used to populate placeholders based on their key. */
2211
+ otherData?: GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance;
2212
+ /** Optional. Data used to populate placeholder `prompt` in a metric prompt template. */
2213
+ prompt?: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData;
2214
+ /** Optional. Data used to populate placeholder `reference` in a metric prompt template. */
2215
+ reference?: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData;
2216
+ /** Required. Data used to populate placeholder `response` in a metric prompt template. */
2217
+ response?: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData;
2218
+ /** Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc. */
2219
+ rubricGroups?: {[P in string]: GoogleCloudAiplatformV1beta1RubricGroup};
2220
+ }
2221
+ interface GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData {
2222
+ /** List of Gemini content data. */
2223
+ contents?: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceDataContents;
2224
+ /** Text data. */
2225
+ text?: string;
2226
+ }
2227
+ interface GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceDataContents {
2228
+ /** Optional. Repeated contents. */
2229
+ contents?: GoogleCloudAiplatformV1beta1Content[];
2230
+ }
2231
+ interface GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance {
2232
+ /** Optional. Map of instance data. */
2233
+ mapInstance?: {
2234
+ [P in string]: GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData;
2235
+ };
2236
+ }
2237
+ interface GoogleCloudAiplatformV1beta1EvaluationItem {
2238
+ /** Output only. Timestamp when this item was created. */
2239
+ createTime?: string;
2240
+ /** Required. The display name of the EvaluationItem. */
2241
+ displayName?: string;
2242
+ /** Output only. Error for the evaluation item. */
2243
+ error?: GoogleRpcStatus;
2244
+ /** Required. The type of the EvaluationItem. */
2245
+ evaluationItemType?: string;
2246
+ /** The request to evaluate. */
2247
+ evaluationRequest?: GoogleCloudAiplatformV1beta1EvaluationRequest;
2248
+ /** Output only. The response from evaluation. */
2249
+ evaluationResponse?: GoogleCloudAiplatformV1beta1EvaluationResult;
2250
+ /** The GCS object where the request or response is stored. */
2251
+ gcsUri?: string;
2252
+ /** Optional. Labels for the EvaluationItem. */
2253
+ labels?: {[P in string]: string};
2254
+ /** Optional. Metadata for the EvaluationItem. */
2255
+ metadata?: any;
2256
+ /** Identifier. The resource name of the EvaluationItem. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */
2257
+ name?: string;
2258
+ }
2259
+ interface GoogleCloudAiplatformV1beta1EvaluationPrompt {
2260
+ /** Prompt template data. */
2261
+ promptTemplateData?: GoogleCloudAiplatformV1beta1EvaluationPromptPromptTemplateData;
2262
+ /** Text prompt. */
2263
+ text?: string;
2264
+ /** Fields and values that can be used to populate the prompt template. */
2265
+ value?: any;
2266
+ }
2267
+ interface GoogleCloudAiplatformV1beta1EvaluationPromptPromptTemplateData {
2268
+ /** The values for fields in the prompt template. */
2269
+ values?: {[P in string]: GoogleCloudAiplatformV1beta1Content};
2270
+ }
2271
+ interface GoogleCloudAiplatformV1beta1EvaluationRequest {
2272
+ /** Optional. Responses from model under test and other baseline models for comparison. */
2273
+ candidateResponses?: GoogleCloudAiplatformV1beta1CandidateResponse[];
2274
+ /** Optional. The Ideal response or ground truth. */
2275
+ goldenResponse?: GoogleCloudAiplatformV1beta1CandidateResponse;
2276
+ /** Required. The request/prompt to evaluate. */
2277
+ prompt?: GoogleCloudAiplatformV1beta1EvaluationPrompt;
2278
+ /** Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group. */
2279
+ rubrics?: {[P in string]: GoogleCloudAiplatformV1beta1RubricGroup};
2280
+ }
2281
+ interface GoogleCloudAiplatformV1beta1EvaluationResult {
2282
+ /** Optional. The results for the metric. */
2283
+ candidateResults?: GoogleCloudAiplatformV1beta1CandidateResult[];
2284
+ /** Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item} */
2285
+ evaluationRequest?: string;
2286
+ /** Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run} */
2287
+ evaluationRun?: string;
2288
+ /** Optional. Metadata about the evaluation result. */
2289
+ metadata?: any;
2290
+ /** Required. The metric that was evaluated. */
2291
+ metric?: string;
2292
+ /** Required. The request that was evaluated. */
2293
+ request?: GoogleCloudAiplatformV1beta1EvaluationRequest;
2294
+ }
2295
+ interface GoogleCloudAiplatformV1beta1EvaluationResults {
2296
+ /** The evaluation set where item level results are stored. */
2297
+ evaluationSet?: string;
2298
+ /** Optional. The summary metrics for the evaluation run. */
2299
+ summaryMetrics?: GoogleCloudAiplatformV1beta1SummaryMetrics;
2300
+ }
2301
+ interface GoogleCloudAiplatformV1beta1EvaluationRun {
2302
+ /** Output only. Time when the evaluation run was completed. */
2303
+ completionTime?: string;
2304
+ /** Output only. Time when the evaluation run was created. */
2305
+ createTime?: string;
2306
+ /** Required. The data source for the evaluation run. */
2307
+ dataSource?: GoogleCloudAiplatformV1beta1EvaluationRunDataSource;
2308
+ /** Required. The display name of the Evaluation Run. */
2309
+ displayName?: string;
2310
+ /** Output only. Only populated when the evaluation run's state is FAILED or CANCELLED. */
2311
+ error?: GoogleRpcStatus;
2312
+ /** Required. The configuration used for the evaluation. */
2313
+ evaluationConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfig;
2314
+ /** Output only. The results of the evaluation run. Only populated when the evaluation run's state is SUCCEEDED. */
2315
+ evaluationResults?: GoogleCloudAiplatformV1beta1EvaluationResults;
2316
+ /** Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it's the sampled BigQuery dataset. */
2317
+ evaluationSetSnapshot?: string;
2318
+ /** Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters. */
2319
+ inferenceConfigs?: {
2320
+ [P in string]: GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig;
2321
+ };
2322
+ /** Optional. Labels for the evaluation run. */
2323
+ labels?: {[P in string]: string};
2324
+ /** Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run. */
2325
+ metadata?: any;
2326
+ /** Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */
2327
+ name?: string;
2328
+ /** Output only. The state of the evaluation run. */
2329
+ state?: string;
2330
+ }
2331
+ interface GoogleCloudAiplatformV1beta1EvaluationRunDataSource {
2332
+ /** Evaluation data in bigquery. */
2333
+ bigqueryRequestSet?: GoogleCloudAiplatformV1beta1BigQueryRequestSet;
2334
+ /** The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
2335
+ evaluationSet?: string;
2336
+ }
2337
+ interface GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfig {
2338
+ /** Optional. The autorater config for the evaluation run. */
2339
+ autoraterConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig;
2340
+ /** Required. The metrics to be calculated in the evaluation run. */
2341
+ metrics?: GoogleCloudAiplatformV1beta1EvaluationRunMetric[];
2342
+ /** Optional. The output config for the evaluation run. */
2343
+ outputConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigOutputConfig;
2344
+ /** The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values. */
2345
+ promptTemplate?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate;
2346
+ }
2347
+ interface GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig {
2348
+ /** Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
2349
+ autoraterModel?: string;
2350
+ /** Optional. Configuration options for model generation and outputs. */
2351
+ generationConfig?: GoogleCloudAiplatformV1beta1GenerationConfig;
2352
+ /** Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32. */
2353
+ sampleCount?: number;
2354
+ }
2355
+ interface GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigOutputConfig {
2356
+ /** BigQuery destination for evaluation output. */
2357
+ bigqueryDestination?: GoogleCloudAiplatformV1beta1BigQueryDestination;
2358
+ /** Cloud Storage destination for evaluation output. */
2359
+ gcsDestination?: GoogleCloudAiplatformV1beta1GcsDestination;
2360
+ }
2361
+ interface GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate {
2362
+ /** Prompt template stored in Cloud Storage. Format: "gs://my-bucket/file-name.txt". */
2363
+ gcsUri?: string;
2364
+ /** Inline prompt template. Template variables should be in the format "{var_name}". Example: "Translate the following from {source_lang} to {target_lang}: {text}" */
2365
+ promptTemplate?: string;
2366
+ }
2367
+ interface GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig {
2368
+ /** Optional. Generation config. */
2369
+ generationConfig?: GoogleCloudAiplatformV1beta1GenerationConfig;
2370
+ /** Required. The fully qualified name of the publisher model or endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*‍/models/*` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */
2371
+ model?: string;
2372
+ }
2373
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetric {
2374
+ /** Spec for a computation based metric. */
2375
+ computationBasedMetricSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec;
2376
+ /** Spec for an LLM based metric. */
2377
+ llmBasedMetricSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricLLMBasedMetricSpec;
2378
+ /** Required. The name of the metric. */
2379
+ metric?: string;
2380
+ /** Spec for a pre-defined metric. */
2381
+ predefinedMetricSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec;
2382
+ /** Spec for rubric based metric. */
2383
+ rubricBasedMetricSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec;
2384
+ }
2385
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec {
2386
+ /** Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. */
2387
+ parameters?: {[P in string]: any};
2388
+ /** Required. The type of the computation based metric. */
2389
+ type?: string;
2390
+ }
2391
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricLLMBasedMetricSpec {
2392
+ /** Optional. Optional additional configuration for the metric. */
2393
+ additionalConfig?: {[P in string]: any};
2394
+ /** Optional. Optional configuration for the judge LLM (Autorater). */
2395
+ judgeAutoraterConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig;
2396
+ /** Required. Template for the prompt sent to the judge model. */
2397
+ metricPromptTemplate?: string;
2398
+ /** Dynamically generate rubrics using a predefined spec. */
2399
+ predefinedRubricGenerationSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec;
2400
+ /** Dynamically generate rubrics using this specification. */
2401
+ rubricGenerationSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec;
2402
+ /** Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance. */
2403
+ rubricGroupKey?: string;
2404
+ /** Optional. System instructions for the judge model. */
2405
+ systemInstruction?: string;
2406
+ }
2407
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec {
2408
+ /** Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1". */
2409
+ metricSpecName?: string;
2410
+ /** Optional. The parameters needed to run the pre-defined metric. */
2411
+ parameters?: {[P in string]: any};
2412
+ }
2413
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec {
2414
+ /** Use rubrics provided directly in the spec. */
2415
+ inlineRubrics?: GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics;
2416
+ /** Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided. */
2417
+ judgeAutoraterConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig;
2418
+ /** Optional. Template for the prompt used by the judge model to evaluate against rubrics. */
2419
+ metricPromptTemplate?: string;
2420
+ /** Dynamically generate rubrics for evaluation using this specification. */
2421
+ rubricGenerationSpec?: GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec;
2422
+ /** Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`. */
2423
+ rubricGroupKey?: string;
2424
+ }
2425
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics {
2426
+ /** The list of rubrics. */
2427
+ rubrics?: GoogleCloudAiplatformV1beta1Rubric[];
2428
+ }
2429
+ interface GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec {
2430
+ /** Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation. */
2431
+ modelConfig?: GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig;
2432
+ /** Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements. */
2433
+ promptTemplate?: string;
2434
+ /** Optional. The type of rubric content to be generated. */
2435
+ rubricContentType?: string;
2436
+ /** Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology. */
2437
+ rubricTypeOntology?: string[];
2438
+ }
2439
+ interface GoogleCloudAiplatformV1beta1EvaluationSet {
2440
+ /** Output only. Timestamp when this item was created. */
2441
+ createTime?: string;
2442
+ /** Required. The display name of the EvaluationSet. */
2443
+ displayName?: string;
2444
+ /** Required. The EvaluationItems that are part of this dataset. */
2445
+ evaluationItems?: string[];
2446
+ /** Optional. Metadata for the EvaluationSet. */
2447
+ metadata?: any;
2448
+ /** Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
2449
+ name?: string;
2450
+ /** Output only. Timestamp when this item was last updated. */
2451
+ updateTime?: string;
2452
+ }
2132
2453
  interface GoogleCloudAiplatformV1beta1Event {
2133
2454
  /** Required. The relative resource name of the Artifact in the Event. */
2134
2455
  artifact?: string;
@@ -3542,6 +3863,18 @@ declare namespace gapi.client {
3542
3863
  /** Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota. */
3543
3864
  trafficType?: string;
3544
3865
  }
3866
+ interface GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest {
3867
+ /** Required. The prompt to generate rubrics from. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. */
3868
+ contents?: GoogleCloudAiplatformV1beta1Content[];
3869
+ /** Optional. Specification for using the rubric generation configs of a pre-defined metric, e.g. "generic_quality_v1" and "instruction_following_v1". Some of the configs may be only used in rubric generation and not supporting evaluation, e.g. "fully_customized_generic_quality_v1". If this field is set, the `rubric_generation_spec` field will be ignored. */
3870
+ predefinedRubricGenerationSpec?: GoogleCloudAiplatformV1beta1PredefinedMetricSpec;
3871
+ /** Optional. Specification for how the rubrics should be generated. */
3872
+ rubricGenerationSpec?: GoogleCloudAiplatformV1beta1RubricGenerationSpec;
3873
+ }
3874
+ interface GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse {
3875
+ /** Output only. A list of generated rubrics. */
3876
+ generatedRubrics?: GoogleCloudAiplatformV1beta1Rubric[];
3877
+ }
3545
3878
  interface GoogleCloudAiplatformV1beta1GenerateMemoriesRequest {
3546
3879
  /** Defines a direct source of content as the source content from which to generate memories. */
3547
3880
  directContentsSource?: GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectContentsSource;
@@ -4301,6 +4634,24 @@ declare namespace gapi.client {
4301
4634
  /** A token, which can be sent as ListEntityTypesRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
4302
4635
  nextPageToken?: string;
4303
4636
  }
4637
+ interface GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse {
4638
+ /** List of EvaluationItems in the requested page. */
4639
+ evaluationItems?: GoogleCloudAiplatformV1beta1EvaluationItem[];
4640
+ /** A token to retrieve the next page of results. */
4641
+ nextPageToken?: string;
4642
+ }
4643
+ interface GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse {
4644
+ /** List of EvaluationRuns in the requested page. */
4645
+ evaluationRuns?: GoogleCloudAiplatformV1beta1EvaluationRun[];
4646
+ /** A token to retrieve the next page of results. */
4647
+ nextPageToken?: string;
4648
+ }
4649
+ interface GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse {
4650
+ /** List of EvaluationSets in the requested page. */
4651
+ evaluationSets?: GoogleCloudAiplatformV1beta1EvaluationSet[];
4652
+ /** A token to retrieve the next page of results. */
4653
+ nextPageToken?: string;
4654
+ }
4304
4655
  interface GoogleCloudAiplatformV1beta1ListEventsResponse {
4305
4656
  /** A token, which can be sent as ListEventsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages. */
4306
4657
  nextPageToken?: string;
@@ -4632,6 +4983,8 @@ declare namespace gapi.client {
4632
4983
  acceleratorCount?: number;
4633
4984
  /** Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count. */
4634
4985
  acceleratorType?: string;
4986
+ /** Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1. */
4987
+ gpuPartitionSize?: string;
4635
4988
  /** Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required. */
4636
4989
  machineType?: string;
4637
4990
  /** Optional. Immutable. The number of nodes per replica for multihost GPU deployments. */
@@ -4778,9 +5131,19 @@ declare namespace gapi.client {
4778
5131
  pairwiseMetricSpec?: GoogleCloudAiplatformV1beta1PairwiseMetricSpec;
4779
5132
  /** Spec for pointwise metric. */
4780
5133
  pointwiseMetricSpec?: GoogleCloudAiplatformV1beta1PointwiseMetricSpec;
5134
+ /** The spec for a pre-defined metric. */
5135
+ predefinedMetricSpec?: GoogleCloudAiplatformV1beta1PredefinedMetricSpec;
4781
5136
  /** Spec for rouge metric. */
4782
5137
  rougeSpec?: GoogleCloudAiplatformV1beta1RougeSpec;
4783
5138
  }
5139
+ interface GoogleCloudAiplatformV1beta1MetricResult {
5140
+ /** The explanation for the metric result. */
5141
+ explanation?: string;
5142
+ /** For rubric-based metrics, the verdicts for each rubric. */
5143
+ rubricVerdicts?: GoogleCloudAiplatformV1beta1RubricVerdict[];
5144
+ /** The score for the metric. Please refer to each metric's documentation for the meaning of the score. */
5145
+ score?: number;
5146
+ }
4784
5147
  interface GoogleCloudAiplatformV1beta1MetricxInput {
4785
5148
  /** Required. Metricx instance. */
4786
5149
  instance?: GoogleCloudAiplatformV1beta1MetricxInstance;
@@ -6072,6 +6435,10 @@ declare namespace gapi.client {
6072
6435
  /** Optional. Optional, but recommended. Additional guidance specific to this field to provide targeted instructions for the LLM to generate the content of a single output field. While the LLM can sometimes infer content from the field name, providing explicit guidance is preferred. */
6073
6436
  guidance?: string;
6074
6437
  }
6438
+ interface GoogleCloudAiplatformV1beta1OutputInfo {
6439
+ /** Output only. The full path of the Cloud Storage directory created, into which the evaluation results and aggregation results are written. */
6440
+ gcsOutputDirectory?: string;
6441
+ }
6075
6442
  interface GoogleCloudAiplatformV1beta1PairwiseMetricInput {
6076
6443
  /** Required. Pairwise metric instance. */
6077
6444
  instance?: GoogleCloudAiplatformV1beta1PairwiseMetricInstance;
@@ -6474,6 +6841,12 @@ declare namespace gapi.client {
6474
6841
  /** The name of the preset voice to use. */
6475
6842
  voiceName?: string;
6476
6843
  }
6844
+ interface GoogleCloudAiplatformV1beta1PredefinedMetricSpec {
6845
+ /** Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1". */
6846
+ metricSpecName?: string;
6847
+ /** Optional. The parameters needed to run the pre-defined metric. */
6848
+ metricSpecParameters?: {[P in string]: any};
6849
+ }
6477
6850
  interface GoogleCloudAiplatformV1beta1PredefinedSplit {
6478
6851
  /** Required. The key is a name of one of the Dataset's data columns. The value of the key (either the label's value or value in the column) must be one of {`training`, `validation`, `test`}, and it defines to which set the given piece of data is assigned. If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline. */
6479
6852
  key?: string;
@@ -7530,7 +7903,7 @@ declare namespace gapi.client {
7530
7903
  createTtl?: string;
7531
7904
  /** Optional. The TTL duration for memories newly generated via GenerateMemories (GenerateMemoriesResponse.GeneratedMemory.Action.CREATED). */
7532
7905
  generateCreatedTtl?: string;
7533
- /** Optional. The TTL duration for memories updated via GenerateMemories (GenerateMemoriesResponse.GeneratedMemory.Action.CREATED). In the case of an UPDATE action, the `expire_time` of the existing memory will be updated to the new value (now + TTL). */
7906
+ /** Optional. The TTL duration for memories updated via GenerateMemories (GenerateMemoriesResponse.GeneratedMemory.Action.UPDATED). In the case of an UPDATE action, the `expire_time` of the existing memory will be updated to the new value (now + TTL). */
7534
7907
  generateUpdatedTtl?: string;
7535
7908
  }
7536
7909
  interface GoogleCloudAiplatformV1beta1ReasoningEngineSpec {
@@ -7546,6 +7919,8 @@ declare namespace gapi.client {
7546
7919
  serviceAccount?: string;
7547
7920
  }
7548
7921
  interface GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec {
7922
+ /** The agent server mode. */
7923
+ agentServerMode?: string;
7549
7924
  /** Optional. Concurrency for each container and agent server. Recommended value: 2 * cpu + 1. Defaults to 9. */
7550
7925
  containerConcurrency?: number;
7551
7926
  /** Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API. */
@@ -7834,6 +8209,16 @@ declare namespace gapi.client {
7834
8209
  /** Optional. Whether to use stemmer to compute rouge score. */
7835
8210
  useStemmer?: boolean;
7836
8211
  }
8212
+ interface GoogleCloudAiplatformV1beta1Rubric {
8213
+ /** Required. The actual testable criteria for the rubric. */
8214
+ content?: GoogleCloudAiplatformV1beta1RubricContent;
8215
+ /** Optional. The relative importance of this rubric. */
8216
+ importance?: string;
8217
+ /** Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict. */
8218
+ rubricId?: string;
8219
+ /** Optional. A type designator for the rubric, which can inform how it's evaluated or interpreted by systems or users. It's recommended to use consistent, well-defined, upper snake_case strings. Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT", "INSTRUCTION_ADHERENCE". */
8220
+ type?: string;
8221
+ }
7837
8222
  interface GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInput {
7838
8223
  /** Required. Instance for RubricBasedInstructionFollowing metric. */
7839
8224
  instance?: GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance;
@@ -7851,12 +8236,46 @@ declare namespace gapi.client {
7851
8236
  score?: number;
7852
8237
  }
7853
8238
  interface GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingSpec {}
8239
+ interface GoogleCloudAiplatformV1beta1RubricContent {
8240
+ /** Evaluation criteria based on a specific property. */
8241
+ property?: GoogleCloudAiplatformV1beta1RubricContentProperty;
8242
+ }
8243
+ interface GoogleCloudAiplatformV1beta1RubricContentProperty {
8244
+ /** Description of the property being evaluated. Example: "The model's response is grammatically correct." */
8245
+ description?: string;
8246
+ }
7854
8247
  interface GoogleCloudAiplatformV1beta1RubricCritiqueResult {
7855
8248
  /** Output only. Rubric to be evaluated. */
7856
8249
  rubric?: string;
7857
8250
  /** Output only. Verdict for the rubric - true if the rubric is met, false otherwise. */
7858
8251
  verdict?: boolean;
7859
8252
  }
8253
+ interface GoogleCloudAiplatformV1beta1RubricGenerationSpec {
8254
+ /** Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation. */
8255
+ modelConfig?: GoogleCloudAiplatformV1beta1AutoraterConfig;
8256
+ /** Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements. */
8257
+ promptTemplate?: string;
8258
+ /** The type of rubric content to be generated. */
8259
+ rubricContentType?: string;
8260
+ /** Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology. */
8261
+ rubricTypeOntology?: string[];
8262
+ }
8263
+ interface GoogleCloudAiplatformV1beta1RubricGroup {
8264
+ /** Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: "Instruction Following V1", "Content Quality - Summarization Task". */
8265
+ displayName?: string;
8266
+ /** Unique identifier for the group. */
8267
+ groupId?: string;
8268
+ /** Rubrics that are part of this group. */
8269
+ rubrics?: GoogleCloudAiplatformV1beta1Rubric[];
8270
+ }
8271
+ interface GoogleCloudAiplatformV1beta1RubricVerdict {
8272
+ /** Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated. */
8273
+ evaluatedRubric?: GoogleCloudAiplatformV1beta1Rubric;
8274
+ /** Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict. */
8275
+ reasoning?: string;
8276
+ /** Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a "Pass", `false` indicates a "Fail". */
8277
+ verdict?: boolean;
8278
+ }
7860
8279
  interface GoogleCloudAiplatformV1beta1RuntimeArtifact {
7861
8280
  /** The custom properties of the artifact. Deprecated. Use RuntimeArtifact.metadata instead. */
7862
8281
  customProperties?: {[P in string]: GoogleCloudAiplatformV1beta1Value};
@@ -10260,6 +10679,14 @@ declare namespace gapi.client {
10260
10679
  /** Optional. Which version to use for evaluation. */
10261
10680
  version?: number;
10262
10681
  }
10682
+ interface GoogleCloudAiplatformV1beta1SummaryMetrics {
10683
+ /** Optional. The number of items that failed to be evaluated. */
10684
+ failedItems?: number;
10685
+ /** Optional. Map of metric name to metric value. */
10686
+ metrics?: {[P in string]: any};
10687
+ /** Optional. The total number of items that were evaluated. */
10688
+ totalItems?: number;
10689
+ }
10263
10690
  interface GoogleCloudAiplatformV1beta1SupervisedHyperParameters {
10264
10691
  /** Optional. Adapter size for tuning. */
10265
10692
  adapterSize?: string;
@@ -17758,11 +18185,8 @@ declare namespace gapi.client {
17758
18185
  }): Request<GoogleLongrunningOperation>;
17759
18186
  }
17760
18187
  interface EvaluationItemsResource {
17761
- operations: OperationsResource;
17762
- }
17763
- interface OperationsResource {
17764
- /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
17765
- delete(request?: {
18188
+ /** Creates an Evaluation Item. */
18189
+ create(request: {
17766
18190
  /** V1 error format. */
17767
18191
  '$.xgafv'?: string;
17768
18192
  /** OAuth access token. */
@@ -17775,10 +18199,10 @@ declare namespace gapi.client {
17775
18199
  fields?: string;
17776
18200
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
17777
18201
  key?: string;
17778
- /** The name of the operation resource to be deleted. */
17779
- name: string;
17780
18202
  /** OAuth 2.0 token for the current user. */
17781
18203
  oauth_token?: string;
18204
+ /** Required. The resource name of the Location to create the Evaluation Item in. Format: `projects/{project}/locations/{location}` */
18205
+ parent: string;
17782
18206
  /** Returns response with indentations and line breaks. */
17783
18207
  prettyPrint?: boolean;
17784
18208
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -17787,9 +18211,40 @@ declare namespace gapi.client {
17787
18211
  upload_protocol?: string;
17788
18212
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17789
18213
  uploadType?: string;
17790
- }): Request<{}>;
17791
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
17792
- get(request?: {
18214
+ /** Request body */
18215
+ resource: GoogleCloudAiplatformV1beta1EvaluationItem;
18216
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationItem>;
18217
+ create(
18218
+ request: {
18219
+ /** V1 error format. */
18220
+ '$.xgafv'?: string;
18221
+ /** OAuth access token. */
18222
+ access_token?: string;
18223
+ /** Data format for response. */
18224
+ alt?: string;
18225
+ /** JSONP */
18226
+ callback?: string;
18227
+ /** Selector specifying which fields to include in a partial response. */
18228
+ fields?: string;
18229
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18230
+ key?: string;
18231
+ /** OAuth 2.0 token for the current user. */
18232
+ oauth_token?: string;
18233
+ /** Required. The resource name of the Location to create the Evaluation Item in. Format: `projects/{project}/locations/{location}` */
18234
+ parent: string;
18235
+ /** Returns response with indentations and line breaks. */
18236
+ prettyPrint?: boolean;
18237
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18238
+ quotaUser?: string;
18239
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18240
+ upload_protocol?: string;
18241
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18242
+ uploadType?: string;
18243
+ },
18244
+ body: GoogleCloudAiplatformV1beta1EvaluationItem,
18245
+ ): Request<GoogleCloudAiplatformV1beta1EvaluationItem>;
18246
+ /** Deletes an Evaluation Item. */
18247
+ delete(request?: {
17793
18248
  /** V1 error format. */
17794
18249
  '$.xgafv'?: string;
17795
18250
  /** OAuth access token. */
@@ -17802,7 +18257,7 @@ declare namespace gapi.client {
17802
18257
  fields?: string;
17803
18258
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
17804
18259
  key?: string;
17805
- /** The name of the operation resource. */
18260
+ /** Required. The name of the EvaluationItem resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */
17806
18261
  name: string;
17807
18262
  /** OAuth 2.0 token for the current user. */
17808
18263
  oauth_token?: string;
@@ -17815,8 +18270,8 @@ declare namespace gapi.client {
17815
18270
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17816
18271
  uploadType?: string;
17817
18272
  }): Request<GoogleLongrunningOperation>;
17818
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
17819
- list(request?: {
18273
+ /** Gets an Evaluation Item. */
18274
+ get(request?: {
17820
18275
  /** V1 error format. */
17821
18276
  '$.xgafv'?: string;
17822
18277
  /** OAuth access token. */
@@ -17827,18 +18282,12 @@ declare namespace gapi.client {
17827
18282
  callback?: string;
17828
18283
  /** Selector specifying which fields to include in a partial response. */
17829
18284
  fields?: string;
17830
- /** The standard list filter. */
17831
- filter?: string;
17832
18285
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
17833
18286
  key?: string;
17834
- /** The name of the operation's parent resource. */
18287
+ /** Required. The name of the EvaluationItem resource. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */
17835
18288
  name: string;
17836
18289
  /** OAuth 2.0 token for the current user. */
17837
18290
  oauth_token?: string;
17838
- /** The standard list page size. */
17839
- pageSize?: number;
17840
- /** The standard list page token. */
17841
- pageToken?: string;
17842
18291
  /** Returns response with indentations and line breaks. */
17843
18292
  prettyPrint?: boolean;
17844
18293
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -17847,9 +18296,9 @@ declare namespace gapi.client {
17847
18296
  upload_protocol?: string;
17848
18297
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17849
18298
  uploadType?: string;
17850
- }): Request<GoogleLongrunningListOperationsResponse>;
17851
- /** Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. */
17852
- wait(request?: {
18299
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationItem>;
18300
+ /** Lists Evaluation Items. */
18301
+ list(request?: {
17853
18302
  /** V1 error format. */
17854
18303
  '$.xgafv'?: string;
17855
18304
  /** OAuth access token. */
@@ -17860,25 +18309,29 @@ declare namespace gapi.client {
17860
18309
  callback?: string;
17861
18310
  /** Selector specifying which fields to include in a partial response. */
17862
18311
  fields?: string;
18312
+ /** Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160). */
18313
+ filter?: string;
17863
18314
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
17864
18315
  key?: string;
17865
- /** The name of the operation resource to wait on. */
17866
- name: string;
17867
18316
  /** OAuth 2.0 token for the current user. */
17868
18317
  oauth_token?: string;
18318
+ /** Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending. */
18319
+ orderBy?: string;
18320
+ /** Optional. The maximum number of Evaluation Items to return. */
18321
+ pageSize?: number;
18322
+ /** Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to retrieve the subsequent page. */
18323
+ pageToken?: string;
18324
+ /** Required. The resource name of the Location from which to list the Evaluation Items. Format: `projects/{project}/locations/{location}` */
18325
+ parent: string;
17869
18326
  /** Returns response with indentations and line breaks. */
17870
18327
  prettyPrint?: boolean;
17871
18328
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
17872
18329
  quotaUser?: string;
17873
- /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */
17874
- timeout?: string;
17875
18330
  /** Upload protocol for media (e.g. "raw", "multipart"). */
17876
18331
  upload_protocol?: string;
17877
18332
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17878
18333
  uploadType?: string;
17879
- }): Request<GoogleLongrunningOperation>;
17880
- }
17881
- interface EvaluationRunsResource {
18334
+ }): Request<GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse>;
17882
18335
  operations: OperationsResource;
17883
18336
  }
17884
18337
  interface OperationsResource {
@@ -17999,12 +18452,9 @@ declare namespace gapi.client {
17999
18452
  uploadType?: string;
18000
18453
  }): Request<GoogleLongrunningOperation>;
18001
18454
  }
18002
- interface EvaluationSetsResource {
18003
- operations: OperationsResource;
18004
- }
18005
- interface OperationsResource {
18006
- /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
18007
- delete(request?: {
18455
+ interface EvaluationRunsResource {
18456
+ /** Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun. */
18457
+ cancel(request: {
18008
18458
  /** V1 error format. */
18009
18459
  '$.xgafv'?: string;
18010
18460
  /** OAuth access token. */
@@ -18017,7 +18467,7 @@ declare namespace gapi.client {
18017
18467
  fields?: string;
18018
18468
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18019
18469
  key?: string;
18020
- /** The name of the operation resource to be deleted. */
18470
+ /** Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */
18021
18471
  name: string;
18022
18472
  /** OAuth 2.0 token for the current user. */
18023
18473
  oauth_token?: string;
@@ -18029,9 +18479,40 @@ declare namespace gapi.client {
18029
18479
  upload_protocol?: string;
18030
18480
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18031
18481
  uploadType?: string;
18482
+ /** Request body */
18483
+ resource: GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest;
18032
18484
  }): Request<{}>;
18033
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
18034
- get(request?: {
18485
+ cancel(
18486
+ request: {
18487
+ /** V1 error format. */
18488
+ '$.xgafv'?: string;
18489
+ /** OAuth access token. */
18490
+ access_token?: string;
18491
+ /** Data format for response. */
18492
+ alt?: string;
18493
+ /** JSONP */
18494
+ callback?: string;
18495
+ /** Selector specifying which fields to include in a partial response. */
18496
+ fields?: string;
18497
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18498
+ key?: string;
18499
+ /** Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */
18500
+ name: string;
18501
+ /** OAuth 2.0 token for the current user. */
18502
+ oauth_token?: string;
18503
+ /** Returns response with indentations and line breaks. */
18504
+ prettyPrint?: boolean;
18505
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18506
+ quotaUser?: string;
18507
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18508
+ upload_protocol?: string;
18509
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18510
+ uploadType?: string;
18511
+ },
18512
+ body: GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest,
18513
+ ): Request<{}>;
18514
+ /** Creates an Evaluation Run. */
18515
+ create(request: {
18035
18516
  /** V1 error format. */
18036
18517
  '$.xgafv'?: string;
18037
18518
  /** OAuth access token. */
@@ -18044,10 +18525,10 @@ declare namespace gapi.client {
18044
18525
  fields?: string;
18045
18526
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18046
18527
  key?: string;
18047
- /** The name of the operation resource. */
18048
- name: string;
18049
18528
  /** OAuth 2.0 token for the current user. */
18050
18529
  oauth_token?: string;
18530
+ /** Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}` */
18531
+ parent: string;
18051
18532
  /** Returns response with indentations and line breaks. */
18052
18533
  prettyPrint?: boolean;
18053
18534
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -18056,9 +18537,40 @@ declare namespace gapi.client {
18056
18537
  upload_protocol?: string;
18057
18538
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18058
18539
  uploadType?: string;
18059
- }): Request<GoogleLongrunningOperation>;
18060
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
18061
- list(request?: {
18540
+ /** Request body */
18541
+ resource: GoogleCloudAiplatformV1beta1EvaluationRun;
18542
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationRun>;
18543
+ create(
18544
+ request: {
18545
+ /** V1 error format. */
18546
+ '$.xgafv'?: string;
18547
+ /** OAuth access token. */
18548
+ access_token?: string;
18549
+ /** Data format for response. */
18550
+ alt?: string;
18551
+ /** JSONP */
18552
+ callback?: string;
18553
+ /** Selector specifying which fields to include in a partial response. */
18554
+ fields?: string;
18555
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18556
+ key?: string;
18557
+ /** OAuth 2.0 token for the current user. */
18558
+ oauth_token?: string;
18559
+ /** Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}` */
18560
+ parent: string;
18561
+ /** Returns response with indentations and line breaks. */
18562
+ prettyPrint?: boolean;
18563
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18564
+ quotaUser?: string;
18565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18566
+ upload_protocol?: string;
18567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18568
+ uploadType?: string;
18569
+ },
18570
+ body: GoogleCloudAiplatformV1beta1EvaluationRun,
18571
+ ): Request<GoogleCloudAiplatformV1beta1EvaluationRun>;
18572
+ /** Deletes an Evaluation Run. */
18573
+ delete(request?: {
18062
18574
  /** V1 error format. */
18063
18575
  '$.xgafv'?: string;
18064
18576
  /** OAuth access token. */
@@ -18069,18 +18581,12 @@ declare namespace gapi.client {
18069
18581
  callback?: string;
18070
18582
  /** Selector specifying which fields to include in a partial response. */
18071
18583
  fields?: string;
18072
- /** The standard list filter. */
18073
- filter?: string;
18074
18584
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18075
18585
  key?: string;
18076
- /** The name of the operation's parent resource. */
18586
+ /** Required. The name of the EvaluationRun resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */
18077
18587
  name: string;
18078
18588
  /** OAuth 2.0 token for the current user. */
18079
18589
  oauth_token?: string;
18080
- /** The standard list page size. */
18081
- pageSize?: number;
18082
- /** The standard list page token. */
18083
- pageToken?: string;
18084
18590
  /** Returns response with indentations and line breaks. */
18085
18591
  prettyPrint?: boolean;
18086
18592
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -18089,9 +18595,9 @@ declare namespace gapi.client {
18089
18595
  upload_protocol?: string;
18090
18596
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18091
18597
  uploadType?: string;
18092
- }): Request<GoogleLongrunningListOperationsResponse>;
18093
- /** Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. */
18094
- wait(request?: {
18598
+ }): Request<GoogleLongrunningOperation>;
18599
+ /** Gets an Evaluation Run. */
18600
+ get(request?: {
18095
18601
  /** V1 error format. */
18096
18602
  '$.xgafv'?: string;
18097
18603
  /** OAuth access token. */
@@ -18104,7 +18610,7 @@ declare namespace gapi.client {
18104
18610
  fields?: string;
18105
18611
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18106
18612
  key?: string;
18107
- /** The name of the operation resource to wait on. */
18613
+ /** Required. The name of the EvaluationRun resource. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */
18108
18614
  name: string;
18109
18615
  /** OAuth 2.0 token for the current user. */
18110
18616
  oauth_token?: string;
@@ -18112,20 +18618,13 @@ declare namespace gapi.client {
18112
18618
  prettyPrint?: boolean;
18113
18619
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18114
18620
  quotaUser?: string;
18115
- /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */
18116
- timeout?: string;
18117
18621
  /** Upload protocol for media (e.g. "raw", "multipart"). */
18118
18622
  upload_protocol?: string;
18119
18623
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18120
18624
  uploadType?: string;
18121
- }): Request<GoogleLongrunningOperation>;
18122
- }
18123
- interface EvaluationTasksResource {
18124
- operations: OperationsResource;
18125
- }
18126
- interface OperationsResource {
18127
- /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
18128
- cancel(request?: {
18625
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationRun>;
18626
+ /** Lists Evaluation Runs. */
18627
+ list(request?: {
18129
18628
  /** V1 error format. */
18130
18629
  '$.xgafv'?: string;
18131
18630
  /** OAuth access token. */
@@ -18136,12 +18635,20 @@ declare namespace gapi.client {
18136
18635
  callback?: string;
18137
18636
  /** Selector specifying which fields to include in a partial response. */
18138
18637
  fields?: string;
18638
+ /** Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160). */
18639
+ filter?: string;
18139
18640
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18140
18641
  key?: string;
18141
- /** The name of the operation resource to be cancelled. */
18142
- name: string;
18143
18642
  /** OAuth 2.0 token for the current user. */
18144
18643
  oauth_token?: string;
18644
+ /** Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending. */
18645
+ orderBy?: string;
18646
+ /** Optional. The maximum number of Evaluation Runs to return. */
18647
+ pageSize?: number;
18648
+ /** Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to retrieve the subsequent page. */
18649
+ pageToken?: string;
18650
+ /** Required. The resource name of the Location from which to list the Evaluation Runs. Format: `projects/{project}/locations/{location}` */
18651
+ parent: string;
18145
18652
  /** Returns response with indentations and line breaks. */
18146
18653
  prettyPrint?: boolean;
18147
18654
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -18150,7 +18657,488 @@ declare namespace gapi.client {
18150
18657
  upload_protocol?: string;
18151
18658
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18152
18659
  uploadType?: string;
18153
- }): Request<{}>;
18660
+ }): Request<GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse>;
18661
+ operations: OperationsResource;
18662
+ }
18663
+ interface OperationsResource {
18664
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
18665
+ delete(request?: {
18666
+ /** V1 error format. */
18667
+ '$.xgafv'?: string;
18668
+ /** OAuth access token. */
18669
+ access_token?: string;
18670
+ /** Data format for response. */
18671
+ alt?: string;
18672
+ /** JSONP */
18673
+ callback?: string;
18674
+ /** Selector specifying which fields to include in a partial response. */
18675
+ fields?: string;
18676
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18677
+ key?: string;
18678
+ /** The name of the operation resource to be deleted. */
18679
+ name: string;
18680
+ /** OAuth 2.0 token for the current user. */
18681
+ oauth_token?: string;
18682
+ /** Returns response with indentations and line breaks. */
18683
+ prettyPrint?: boolean;
18684
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18685
+ quotaUser?: string;
18686
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18687
+ upload_protocol?: string;
18688
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18689
+ uploadType?: string;
18690
+ }): Request<{}>;
18691
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
18692
+ get(request?: {
18693
+ /** V1 error format. */
18694
+ '$.xgafv'?: string;
18695
+ /** OAuth access token. */
18696
+ access_token?: string;
18697
+ /** Data format for response. */
18698
+ alt?: string;
18699
+ /** JSONP */
18700
+ callback?: string;
18701
+ /** Selector specifying which fields to include in a partial response. */
18702
+ fields?: string;
18703
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18704
+ key?: string;
18705
+ /** The name of the operation resource. */
18706
+ name: string;
18707
+ /** OAuth 2.0 token for the current user. */
18708
+ oauth_token?: string;
18709
+ /** Returns response with indentations and line breaks. */
18710
+ prettyPrint?: boolean;
18711
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18712
+ quotaUser?: string;
18713
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18714
+ upload_protocol?: string;
18715
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18716
+ uploadType?: string;
18717
+ }): Request<GoogleLongrunningOperation>;
18718
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
18719
+ list(request?: {
18720
+ /** V1 error format. */
18721
+ '$.xgafv'?: string;
18722
+ /** OAuth access token. */
18723
+ access_token?: string;
18724
+ /** Data format for response. */
18725
+ alt?: string;
18726
+ /** JSONP */
18727
+ callback?: string;
18728
+ /** Selector specifying which fields to include in a partial response. */
18729
+ fields?: string;
18730
+ /** The standard list filter. */
18731
+ filter?: string;
18732
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18733
+ key?: string;
18734
+ /** The name of the operation's parent resource. */
18735
+ name: string;
18736
+ /** OAuth 2.0 token for the current user. */
18737
+ oauth_token?: string;
18738
+ /** The standard list page size. */
18739
+ pageSize?: number;
18740
+ /** The standard list page token. */
18741
+ pageToken?: string;
18742
+ /** Returns response with indentations and line breaks. */
18743
+ prettyPrint?: boolean;
18744
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18745
+ quotaUser?: string;
18746
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18747
+ upload_protocol?: string;
18748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18749
+ uploadType?: string;
18750
+ }): Request<GoogleLongrunningListOperationsResponse>;
18751
+ /** Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. */
18752
+ wait(request?: {
18753
+ /** V1 error format. */
18754
+ '$.xgafv'?: string;
18755
+ /** OAuth access token. */
18756
+ access_token?: string;
18757
+ /** Data format for response. */
18758
+ alt?: string;
18759
+ /** JSONP */
18760
+ callback?: string;
18761
+ /** Selector specifying which fields to include in a partial response. */
18762
+ fields?: string;
18763
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18764
+ key?: string;
18765
+ /** The name of the operation resource to wait on. */
18766
+ name: string;
18767
+ /** OAuth 2.0 token for the current user. */
18768
+ oauth_token?: string;
18769
+ /** Returns response with indentations and line breaks. */
18770
+ prettyPrint?: boolean;
18771
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18772
+ quotaUser?: string;
18773
+ /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */
18774
+ timeout?: string;
18775
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18776
+ upload_protocol?: string;
18777
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18778
+ uploadType?: string;
18779
+ }): Request<GoogleLongrunningOperation>;
18780
+ }
18781
+ interface EvaluationSetsResource {
18782
+ /** Creates an Evaluation Set. */
18783
+ create(request: {
18784
+ /** V1 error format. */
18785
+ '$.xgafv'?: string;
18786
+ /** OAuth access token. */
18787
+ access_token?: string;
18788
+ /** Data format for response. */
18789
+ alt?: string;
18790
+ /** JSONP */
18791
+ callback?: string;
18792
+ /** Selector specifying which fields to include in a partial response. */
18793
+ fields?: string;
18794
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18795
+ key?: string;
18796
+ /** OAuth 2.0 token for the current user. */
18797
+ oauth_token?: string;
18798
+ /** Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}` */
18799
+ parent: string;
18800
+ /** Returns response with indentations and line breaks. */
18801
+ prettyPrint?: boolean;
18802
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18803
+ quotaUser?: string;
18804
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18805
+ upload_protocol?: string;
18806
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18807
+ uploadType?: string;
18808
+ /** Request body */
18809
+ resource: GoogleCloudAiplatformV1beta1EvaluationSet;
18810
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationSet>;
18811
+ create(
18812
+ request: {
18813
+ /** V1 error format. */
18814
+ '$.xgafv'?: string;
18815
+ /** OAuth access token. */
18816
+ access_token?: string;
18817
+ /** Data format for response. */
18818
+ alt?: string;
18819
+ /** JSONP */
18820
+ callback?: string;
18821
+ /** Selector specifying which fields to include in a partial response. */
18822
+ fields?: string;
18823
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18824
+ key?: string;
18825
+ /** OAuth 2.0 token for the current user. */
18826
+ oauth_token?: string;
18827
+ /** Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}` */
18828
+ parent: string;
18829
+ /** Returns response with indentations and line breaks. */
18830
+ prettyPrint?: boolean;
18831
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18832
+ quotaUser?: string;
18833
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18834
+ upload_protocol?: string;
18835
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18836
+ uploadType?: string;
18837
+ },
18838
+ body: GoogleCloudAiplatformV1beta1EvaluationSet,
18839
+ ): Request<GoogleCloudAiplatformV1beta1EvaluationSet>;
18840
+ /** Deletes an Evaluation Set. */
18841
+ delete(request?: {
18842
+ /** V1 error format. */
18843
+ '$.xgafv'?: string;
18844
+ /** OAuth access token. */
18845
+ access_token?: string;
18846
+ /** Data format for response. */
18847
+ alt?: string;
18848
+ /** JSONP */
18849
+ callback?: string;
18850
+ /** Selector specifying which fields to include in a partial response. */
18851
+ fields?: string;
18852
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18853
+ key?: string;
18854
+ /** Required. The name of the EvaluationSet resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
18855
+ name: string;
18856
+ /** OAuth 2.0 token for the current user. */
18857
+ oauth_token?: string;
18858
+ /** Returns response with indentations and line breaks. */
18859
+ prettyPrint?: boolean;
18860
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18861
+ quotaUser?: string;
18862
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18863
+ upload_protocol?: string;
18864
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18865
+ uploadType?: string;
18866
+ }): Request<GoogleLongrunningOperation>;
18867
+ /** Gets an Evaluation Set. */
18868
+ get(request?: {
18869
+ /** V1 error format. */
18870
+ '$.xgafv'?: string;
18871
+ /** OAuth access token. */
18872
+ access_token?: string;
18873
+ /** Data format for response. */
18874
+ alt?: string;
18875
+ /** JSONP */
18876
+ callback?: string;
18877
+ /** Selector specifying which fields to include in a partial response. */
18878
+ fields?: string;
18879
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18880
+ key?: string;
18881
+ /** Required. The name of the EvaluationSet resource. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
18882
+ name: string;
18883
+ /** OAuth 2.0 token for the current user. */
18884
+ oauth_token?: string;
18885
+ /** Returns response with indentations and line breaks. */
18886
+ prettyPrint?: boolean;
18887
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18888
+ quotaUser?: string;
18889
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18890
+ upload_protocol?: string;
18891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18892
+ uploadType?: string;
18893
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationSet>;
18894
+ /** Lists Evaluation Sets. */
18895
+ list(request?: {
18896
+ /** V1 error format. */
18897
+ '$.xgafv'?: string;
18898
+ /** OAuth access token. */
18899
+ access_token?: string;
18900
+ /** Data format for response. */
18901
+ alt?: string;
18902
+ /** JSONP */
18903
+ callback?: string;
18904
+ /** Selector specifying which fields to include in a partial response. */
18905
+ fields?: string;
18906
+ /** Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160). */
18907
+ filter?: string;
18908
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18909
+ key?: string;
18910
+ /** OAuth 2.0 token for the current user. */
18911
+ oauth_token?: string;
18912
+ /** Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending. */
18913
+ orderBy?: string;
18914
+ /** Optional. The maximum number of Evaluation Sets to return. */
18915
+ pageSize?: number;
18916
+ /** Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to retrieve the subsequent page. */
18917
+ pageToken?: string;
18918
+ /** Required. The resource name of the Location from which to list the Evaluation Sets. Format: `projects/{project}/locations/{location}` */
18919
+ parent: string;
18920
+ /** Returns response with indentations and line breaks. */
18921
+ prettyPrint?: boolean;
18922
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18923
+ quotaUser?: string;
18924
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18925
+ upload_protocol?: string;
18926
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18927
+ uploadType?: string;
18928
+ }): Request<GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse>;
18929
+ /** Updates an Evaluation Set. */
18930
+ patch(request: {
18931
+ /** V1 error format. */
18932
+ '$.xgafv'?: string;
18933
+ /** OAuth access token. */
18934
+ access_token?: string;
18935
+ /** Data format for response. */
18936
+ alt?: string;
18937
+ /** JSONP */
18938
+ callback?: string;
18939
+ /** Selector specifying which fields to include in a partial response. */
18940
+ fields?: string;
18941
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18942
+ key?: string;
18943
+ /** Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
18944
+ name: string;
18945
+ /** OAuth 2.0 token for the current user. */
18946
+ oauth_token?: string;
18947
+ /** Returns response with indentations and line breaks. */
18948
+ prettyPrint?: boolean;
18949
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18950
+ quotaUser?: string;
18951
+ /** Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. */
18952
+ updateMask?: string;
18953
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18954
+ upload_protocol?: string;
18955
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18956
+ uploadType?: string;
18957
+ /** Request body */
18958
+ resource: GoogleCloudAiplatformV1beta1EvaluationSet;
18959
+ }): Request<GoogleCloudAiplatformV1beta1EvaluationSet>;
18960
+ patch(
18961
+ request: {
18962
+ /** V1 error format. */
18963
+ '$.xgafv'?: string;
18964
+ /** OAuth access token. */
18965
+ access_token?: string;
18966
+ /** Data format for response. */
18967
+ alt?: string;
18968
+ /** JSONP */
18969
+ callback?: string;
18970
+ /** Selector specifying which fields to include in a partial response. */
18971
+ fields?: string;
18972
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
18973
+ key?: string;
18974
+ /** Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */
18975
+ name: string;
18976
+ /** OAuth 2.0 token for the current user. */
18977
+ oauth_token?: string;
18978
+ /** Returns response with indentations and line breaks. */
18979
+ prettyPrint?: boolean;
18980
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
18981
+ quotaUser?: string;
18982
+ /** Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. */
18983
+ updateMask?: string;
18984
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18985
+ upload_protocol?: string;
18986
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18987
+ uploadType?: string;
18988
+ },
18989
+ body: GoogleCloudAiplatformV1beta1EvaluationSet,
18990
+ ): Request<GoogleCloudAiplatformV1beta1EvaluationSet>;
18991
+ operations: OperationsResource;
18992
+ }
18993
+ interface OperationsResource {
18994
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
18995
+ delete(request?: {
18996
+ /** V1 error format. */
18997
+ '$.xgafv'?: string;
18998
+ /** OAuth access token. */
18999
+ access_token?: string;
19000
+ /** Data format for response. */
19001
+ alt?: string;
19002
+ /** JSONP */
19003
+ callback?: string;
19004
+ /** Selector specifying which fields to include in a partial response. */
19005
+ fields?: string;
19006
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19007
+ key?: string;
19008
+ /** The name of the operation resource to be deleted. */
19009
+ name: string;
19010
+ /** OAuth 2.0 token for the current user. */
19011
+ oauth_token?: string;
19012
+ /** Returns response with indentations and line breaks. */
19013
+ prettyPrint?: boolean;
19014
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19015
+ quotaUser?: string;
19016
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19017
+ upload_protocol?: string;
19018
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19019
+ uploadType?: string;
19020
+ }): Request<{}>;
19021
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
19022
+ get(request?: {
19023
+ /** V1 error format. */
19024
+ '$.xgafv'?: string;
19025
+ /** OAuth access token. */
19026
+ access_token?: string;
19027
+ /** Data format for response. */
19028
+ alt?: string;
19029
+ /** JSONP */
19030
+ callback?: string;
19031
+ /** Selector specifying which fields to include in a partial response. */
19032
+ fields?: string;
19033
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19034
+ key?: string;
19035
+ /** The name of the operation resource. */
19036
+ name: string;
19037
+ /** OAuth 2.0 token for the current user. */
19038
+ oauth_token?: string;
19039
+ /** Returns response with indentations and line breaks. */
19040
+ prettyPrint?: boolean;
19041
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19042
+ quotaUser?: string;
19043
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19044
+ upload_protocol?: string;
19045
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19046
+ uploadType?: string;
19047
+ }): Request<GoogleLongrunningOperation>;
19048
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
19049
+ list(request?: {
19050
+ /** V1 error format. */
19051
+ '$.xgafv'?: string;
19052
+ /** OAuth access token. */
19053
+ access_token?: string;
19054
+ /** Data format for response. */
19055
+ alt?: string;
19056
+ /** JSONP */
19057
+ callback?: string;
19058
+ /** Selector specifying which fields to include in a partial response. */
19059
+ fields?: string;
19060
+ /** The standard list filter. */
19061
+ filter?: string;
19062
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19063
+ key?: string;
19064
+ /** The name of the operation's parent resource. */
19065
+ name: string;
19066
+ /** OAuth 2.0 token for the current user. */
19067
+ oauth_token?: string;
19068
+ /** The standard list page size. */
19069
+ pageSize?: number;
19070
+ /** The standard list page token. */
19071
+ pageToken?: string;
19072
+ /** Returns response with indentations and line breaks. */
19073
+ prettyPrint?: boolean;
19074
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19075
+ quotaUser?: string;
19076
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19077
+ upload_protocol?: string;
19078
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19079
+ uploadType?: string;
19080
+ }): Request<GoogleLongrunningListOperationsResponse>;
19081
+ /** Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. */
19082
+ wait(request?: {
19083
+ /** V1 error format. */
19084
+ '$.xgafv'?: string;
19085
+ /** OAuth access token. */
19086
+ access_token?: string;
19087
+ /** Data format for response. */
19088
+ alt?: string;
19089
+ /** JSONP */
19090
+ callback?: string;
19091
+ /** Selector specifying which fields to include in a partial response. */
19092
+ fields?: string;
19093
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19094
+ key?: string;
19095
+ /** The name of the operation resource to wait on. */
19096
+ name: string;
19097
+ /** OAuth 2.0 token for the current user. */
19098
+ oauth_token?: string;
19099
+ /** Returns response with indentations and line breaks. */
19100
+ prettyPrint?: boolean;
19101
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19102
+ quotaUser?: string;
19103
+ /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */
19104
+ timeout?: string;
19105
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19106
+ upload_protocol?: string;
19107
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19108
+ uploadType?: string;
19109
+ }): Request<GoogleLongrunningOperation>;
19110
+ }
19111
+ interface EvaluationTasksResource {
19112
+ operations: OperationsResource;
19113
+ }
19114
+ interface OperationsResource {
19115
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
19116
+ cancel(request?: {
19117
+ /** V1 error format. */
19118
+ '$.xgafv'?: string;
19119
+ /** OAuth access token. */
19120
+ access_token?: string;
19121
+ /** Data format for response. */
19122
+ alt?: string;
19123
+ /** JSONP */
19124
+ callback?: string;
19125
+ /** Selector specifying which fields to include in a partial response. */
19126
+ fields?: string;
19127
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
19128
+ key?: string;
19129
+ /** The name of the operation resource to be cancelled. */
19130
+ name: string;
19131
+ /** OAuth 2.0 token for the current user. */
19132
+ oauth_token?: string;
19133
+ /** Returns response with indentations and line breaks. */
19134
+ prettyPrint?: boolean;
19135
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
19136
+ quotaUser?: string;
19137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
19138
+ upload_protocol?: string;
19139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
19140
+ uploadType?: string;
19141
+ }): Request<{}>;
18154
19142
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
18155
19143
  delete(request?: {
18156
19144
  /** V1 error format. */
@@ -40724,6 +41712,64 @@ declare namespace gapi.client {
40724
41712
  },
40725
41713
  body: GoogleCloudAiplatformV1beta1EvaluateInstancesRequest,
40726
41714
  ): Request<GoogleCloudAiplatformV1beta1EvaluateInstancesResponse>;
41715
+ /** Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations. */
41716
+ generateInstanceRubrics(request: {
41717
+ /** V1 error format. */
41718
+ '$.xgafv'?: string;
41719
+ /** OAuth access token. */
41720
+ access_token?: string;
41721
+ /** Data format for response. */
41722
+ alt?: string;
41723
+ /** JSONP */
41724
+ callback?: string;
41725
+ /** Selector specifying which fields to include in a partial response. */
41726
+ fields?: string;
41727
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
41728
+ key?: string;
41729
+ /** Required. The resource name of the Location to generate rubrics from. Format: `projects/{project}/locations/{location}` */
41730
+ location: string;
41731
+ /** OAuth 2.0 token for the current user. */
41732
+ oauth_token?: string;
41733
+ /** Returns response with indentations and line breaks. */
41734
+ prettyPrint?: boolean;
41735
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
41736
+ quotaUser?: string;
41737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
41738
+ upload_protocol?: string;
41739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
41740
+ uploadType?: string;
41741
+ /** Request body */
41742
+ resource: GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest;
41743
+ }): Request<GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse>;
41744
+ generateInstanceRubrics(
41745
+ request: {
41746
+ /** V1 error format. */
41747
+ '$.xgafv'?: string;
41748
+ /** OAuth access token. */
41749
+ access_token?: string;
41750
+ /** Data format for response. */
41751
+ alt?: string;
41752
+ /** JSONP */
41753
+ callback?: string;
41754
+ /** Selector specifying which fields to include in a partial response. */
41755
+ fields?: string;
41756
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
41757
+ key?: string;
41758
+ /** Required. The resource name of the Location to generate rubrics from. Format: `projects/{project}/locations/{location}` */
41759
+ location: string;
41760
+ /** OAuth 2.0 token for the current user. */
41761
+ oauth_token?: string;
41762
+ /** Returns response with indentations and line breaks. */
41763
+ prettyPrint?: boolean;
41764
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
41765
+ quotaUser?: string;
41766
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
41767
+ upload_protocol?: string;
41768
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
41769
+ uploadType?: string;
41770
+ },
41771
+ body: GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest,
41772
+ ): Request<GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse>;
40727
41773
  /** Generates synthetic data based on the provided configuration. */
40728
41774
  generateSyntheticData(request: {
40729
41775
  /** V1 error format. */
@@ -40846,7 +41892,7 @@ declare namespace gapi.client {
40846
41892
  alt?: string;
40847
41893
  /** JSONP */
40848
41894
  callback?: string;
40849
- /** Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations. */
41895
+ /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
40850
41896
  extraLocationTypes?: string | string[];
40851
41897
  /** Selector specifying which fields to include in a partial response. */
40852
41898
  fields?: string;