@google/genai 1.43.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,80 @@ export declare enum AdapterSize {
66
66
  ADAPTER_SIZE_THIRTY_TWO = "ADAPTER_SIZE_THIRTY_TWO"
67
67
  }
68
68
 
69
+ /** Aggregation metric. This enum is not supported in Gemini API. */
70
+ export declare enum AggregationMetric {
71
+ /**
72
+ * Unspecified aggregation metric.
73
+ */
74
+ AGGREGATION_METRIC_UNSPECIFIED = "AGGREGATION_METRIC_UNSPECIFIED",
75
+ /**
76
+ * Average aggregation metric. Not supported for Pairwise metric.
77
+ */
78
+ AVERAGE = "AVERAGE",
79
+ /**
80
+ * Mode aggregation metric.
81
+ */
82
+ MODE = "MODE",
83
+ /**
84
+ * Standard deviation aggregation metric. Not supported for pairwise metric.
85
+ */
86
+ STANDARD_DEVIATION = "STANDARD_DEVIATION",
87
+ /**
88
+ * Variance aggregation metric. Not supported for pairwise metric.
89
+ */
90
+ VARIANCE = "VARIANCE",
91
+ /**
92
+ * Minimum aggregation metric. Not supported for pairwise metric.
93
+ */
94
+ MINIMUM = "MINIMUM",
95
+ /**
96
+ * Maximum aggregation metric. Not supported for pairwise metric.
97
+ */
98
+ MAXIMUM = "MAXIMUM",
99
+ /**
100
+ * Median aggregation metric. Not supported for pairwise metric.
101
+ */
102
+ MEDIAN = "MEDIAN",
103
+ /**
104
+ * 90th percentile aggregation metric. Not supported for pairwise metric.
105
+ */
106
+ PERCENTILE_P90 = "PERCENTILE_P90",
107
+ /**
108
+ * 95th percentile aggregation metric. Not supported for pairwise metric.
109
+ */
110
+ PERCENTILE_P95 = "PERCENTILE_P95",
111
+ /**
112
+ * 99th percentile aggregation metric. Not supported for pairwise metric.
113
+ */
114
+ PERCENTILE_P99 = "PERCENTILE_P99"
115
+ }
116
+
117
+ /** The aggregation result for the entire dataset and all metrics. This data type is not supported in Gemini API. */
118
+ export declare interface AggregationOutput {
119
+ /** One AggregationResult per metric. */
120
+ aggregationResults?: AggregationResult[];
121
+ /** The dataset used for evaluation & aggregation. */
122
+ dataset?: EvaluationDataset;
123
+ }
124
+
125
+ /** The aggregation result for a single metric. This data type is not supported in Gemini API. */
126
+ export declare interface AggregationResult {
127
+ /** Aggregation metric. */
128
+ aggregationMetric?: AggregationMetric;
129
+ /** Results for bleu metric. */
130
+ bleuMetricValue?: BleuMetricValue;
131
+ /** Result for code execution metric. */
132
+ customCodeExecutionResult?: CustomCodeExecutionResult;
133
+ /** Results for exact match metric. */
134
+ exactMatchMetricValue?: ExactMatchMetricValue;
135
+ /** Result for pairwise metric. */
136
+ pairwiseMetricResult?: PairwiseMetricResult;
137
+ /** Result for pointwise metric. */
138
+ pointwiseMetricResult?: PointwiseMetricResult;
139
+ /** Results for rouge metric. */
140
+ rougeMetricValue?: RougeMetricValue;
141
+ }
142
+
69
143
  /**
70
144
  * The configuration for allowed tools.
71
145
  */
@@ -118,6 +192,9 @@ export declare interface ApiAuthApiKeyConfig {
118
192
  /**
119
193
  * The ApiClient class is used to send requests to the Gemini API or Vertex AI
120
194
  * endpoints.
195
+ *
196
+ * WARNING: This is an internal API and may change without notice. Direct usage
197
+ * is not supported and may break your application.
121
198
  */
122
199
  declare class ApiClient implements GeminiNextGenAPIClientAdapter {
123
200
  readonly clientOptions: ApiClientInitOptions;
@@ -440,8 +517,10 @@ declare interface Auth {
440
517
  addAuthHeaders(headers: Headers, url?: string): Promise<void>;
441
518
  }
442
519
 
443
- /** Auth configuration to run the extension. This data type is not supported in Gemini API. */
520
+ /** The authentication config to access the API. */
444
521
  export declare interface AuthConfig {
522
+ /** The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API. */
523
+ apiKey?: string;
445
524
  /** Config for API key auth. */
446
525
  apiKeyConfig?: ApiKeyConfig;
447
526
  /** Type of auth scheme. */
@@ -1057,12 +1136,24 @@ export declare enum Behavior {
1057
1136
  NON_BLOCKING = "NON_BLOCKING"
1058
1137
  }
1059
1138
 
1060
- /** Content blob. */
1139
+ /** The BigQuery location for the input content. This data type is not supported in Gemini API. */
1140
+ export declare interface BigQuerySource {
1141
+ /** Required. BigQuery URI to a table, up to 2000 characters long. Accepted forms: * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. */
1142
+ inputUri?: string;
1143
+ }
1144
+
1145
+ /** Bleu metric value for an instance. This data type is not supported in Gemini API. */
1146
+ export declare interface BleuMetricValue {
1147
+ /** Output only. Bleu score. */
1148
+ score?: number;
1149
+ }
1150
+
1151
+ /** A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. */
1061
1152
  declare interface Blob_2 {
1062
- /** Required. Raw bytes.
1153
+ /** Required. The raw bytes of the data.
1063
1154
  * @remarks Encoded as base64 string. */
1064
1155
  data?: string;
1065
- /** Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. */
1156
+ /** Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
1066
1157
  displayName?: string;
1067
1158
  /** Required. The IANA standard MIME type of the source data. */
1068
1159
  mimeType?: string;
@@ -1335,15 +1426,15 @@ export declare interface Candidate {
1335
1426
  contains the sources used to ground the generated content.
1336
1427
  */
1337
1428
  groundingMetadata?: GroundingMetadata;
1338
- /** Output only. Average log probability score of the candidate. */
1429
+ /** Output only. The average log probability of the tokens in this candidate. This is a length-normalized score that can be used to compare the quality of candidates of different lengths. A higher average log probability suggests a more confident and coherent response. */
1339
1430
  avgLogprobs?: number;
1340
- /** Output only. Index of the candidate. */
1431
+ /** Output only. The 0-based index of this candidate in the list of generated responses. This is useful for distinguishing between multiple candidates when `candidate_count` > 1. */
1341
1432
  index?: number;
1342
- /** Output only. Log-likelihood scores for the response tokens and top tokens */
1433
+ /** Output only. The detailed log probability information for the tokens in this candidate. This is useful for debugging, understanding model uncertainty, and identifying potential "hallucinations". */
1343
1434
  logprobsResult?: LogprobsResult;
1344
- /** Output only. List of ratings for the safety of a response candidate. There is at most one rating per category. */
1435
+ /** Output only. A list of ratings for the safety of a response candidate. There is at most one rating per category. */
1345
1436
  safetyRatings?: SafetyRating[];
1346
- /** Output only. Metadata related to url context retrieval tool. */
1437
+ /** Output only. Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL. */
1347
1438
  urlContextMetadata?: UrlContextMetadata;
1348
1439
  }
1349
1440
 
@@ -1485,19 +1576,19 @@ export declare interface ChunkingConfig {
1485
1576
  whiteSpaceConfig?: WhiteSpaceConfig;
1486
1577
  }
1487
1578
 
1488
- /** Source attributions for content. This data type is not supported in Gemini API. */
1579
+ /** A citation for a piece of generatedcontent. This data type is not supported in Gemini API. */
1489
1580
  export declare interface Citation {
1490
- /** Output only. End index into the content. */
1581
+ /** Output only. The end index of the citation in the content. */
1491
1582
  endIndex?: number;
1492
- /** Output only. License of the attribution. */
1583
+ /** Output only. The license of the source of the citation. */
1493
1584
  license?: string;
1494
- /** Output only. Publication date of the attribution. */
1585
+ /** Output only. The publication date of the source of the citation. */
1495
1586
  publicationDate?: GoogleTypeDate;
1496
- /** Output only. Start index into the content. */
1587
+ /** Output only. The start index of the citation in the content. */
1497
1588
  startIndex?: number;
1498
- /** Output only. Title of the attribution. */
1589
+ /** Output only. The title of the source of the citation. */
1499
1590
  title?: string;
1500
- /** Output only. Url reference of the attribution. */
1591
+ /** Output only. The URI of the source of the citation. */
1501
1592
  uri?: string;
1502
1593
  }
1503
1594
 
@@ -1609,6 +1700,10 @@ declare interface CodeExecutionCallContent {
1609
1700
  */
1610
1701
  arguments: CodeExecutionCallArguments;
1611
1702
  type: 'code_execution_call';
1703
+ /**
1704
+ * A signature hash for backend validation.
1705
+ */
1706
+ signature?: string;
1612
1707
  }
1613
1708
 
1614
1709
  /** Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and always follows a `part` containing the [ExecutableCode]. */
@@ -1717,7 +1812,7 @@ export declare interface Content {
1717
1812
  /** List of parts that constitute a single message. Each part may have
1718
1813
  a different IANA MIME type. */
1719
1814
  parts?: Part[];
1720
- /** Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. */
1815
+ /** Optional. The producer of the content. Must be either 'user' or 'model'. If not set, the service will default to 'user'. */
1721
1816
  role?: string;
1722
1817
  }
1723
1818
 
@@ -1801,6 +1896,10 @@ declare namespace ContentDelta {
1801
1896
  };
1802
1897
  name: string;
1803
1898
  type: 'function_call';
1899
+ /**
1900
+ * A signature hash for backend validation.
1901
+ */
1902
+ signature?: string;
1804
1903
  }
1805
1904
  interface FunctionResultDelta {
1806
1905
  /**
@@ -1814,6 +1913,10 @@ declare namespace ContentDelta {
1814
1913
  type: 'function_result';
1815
1914
  is_error?: boolean;
1816
1915
  name?: string;
1916
+ /**
1917
+ * A signature hash for backend validation.
1918
+ */
1919
+ signature?: string;
1817
1920
  }
1818
1921
  namespace FunctionResultDelta {
1819
1922
  interface Items {
@@ -1830,6 +1933,10 @@ declare namespace ContentDelta {
1830
1933
  */
1831
1934
  arguments: InteractionsAPI.CodeExecutionCallArguments;
1832
1935
  type: 'code_execution_call';
1936
+ /**
1937
+ * A signature hash for backend validation.
1938
+ */
1939
+ signature?: string;
1833
1940
  }
1834
1941
  interface CodeExecutionResultDelta {
1835
1942
  /**
@@ -1839,6 +1946,9 @@ declare namespace ContentDelta {
1839
1946
  result: string;
1840
1947
  type: 'code_execution_result';
1841
1948
  is_error?: boolean;
1949
+ /**
1950
+ * A signature hash for backend validation.
1951
+ */
1842
1952
  signature?: string;
1843
1953
  }
1844
1954
  interface URLContextCallDelta {
@@ -1851,6 +1961,10 @@ declare namespace ContentDelta {
1851
1961
  */
1852
1962
  arguments: InteractionsAPI.URLContextCallArguments;
1853
1963
  type: 'url_context_call';
1964
+ /**
1965
+ * A signature hash for backend validation.
1966
+ */
1967
+ signature?: string;
1854
1968
  }
1855
1969
  interface URLContextResultDelta {
1856
1970
  /**
@@ -1860,6 +1974,9 @@ declare namespace ContentDelta {
1860
1974
  result: Array<InteractionsAPI.URLContextResult>;
1861
1975
  type: 'url_context_result';
1862
1976
  is_error?: boolean;
1977
+ /**
1978
+ * A signature hash for backend validation.
1979
+ */
1863
1980
  signature?: string;
1864
1981
  }
1865
1982
  interface GoogleSearchCallDelta {
@@ -1872,6 +1989,10 @@ declare namespace ContentDelta {
1872
1989
  */
1873
1990
  arguments: InteractionsAPI.GoogleSearchCallArguments;
1874
1991
  type: 'google_search_call';
1992
+ /**
1993
+ * A signature hash for backend validation.
1994
+ */
1995
+ signature?: string;
1875
1996
  }
1876
1997
  interface GoogleSearchResultDelta {
1877
1998
  /**
@@ -1881,6 +2002,9 @@ declare namespace ContentDelta {
1881
2002
  result: Array<InteractionsAPI.GoogleSearchResult>;
1882
2003
  type: 'google_search_result';
1883
2004
  is_error?: boolean;
2005
+ /**
2006
+ * A signature hash for backend validation.
2007
+ */
1884
2008
  signature?: string;
1885
2009
  }
1886
2010
  interface MCPServerToolCallDelta {
@@ -1894,6 +2018,10 @@ declare namespace ContentDelta {
1894
2018
  name: string;
1895
2019
  server_name: string;
1896
2020
  type: 'mcp_server_tool_call';
2021
+ /**
2022
+ * A signature hash for backend validation.
2023
+ */
2024
+ signature?: string;
1897
2025
  }
1898
2026
  interface MCPServerToolResultDelta {
1899
2027
  /**
@@ -1907,6 +2035,10 @@ declare namespace ContentDelta {
1907
2035
  type: 'mcp_server_tool_result';
1908
2036
  name?: string;
1909
2037
  server_name?: string;
2038
+ /**
2039
+ * A signature hash for backend validation.
2040
+ */
2041
+ signature?: string;
1910
2042
  }
1911
2043
  namespace MCPServerToolResultDelta {
1912
2044
  interface Items {
@@ -1919,6 +2051,10 @@ declare namespace ContentDelta {
1919
2051
  */
1920
2052
  id: string;
1921
2053
  type: 'file_search_call';
2054
+ /**
2055
+ * A signature hash for backend validation.
2056
+ */
2057
+ signature?: string;
1922
2058
  }
1923
2059
  interface FileSearchResultDelta {
1924
2060
  type: 'file_search_result';
@@ -2501,6 +2637,12 @@ export declare interface CreateTuningJobParametersPrivate {
2501
2637
  */
2502
2638
  export declare function createUserContent(partOrString: PartListUnion | string): Content;
2503
2639
 
2640
+ /** Result for custom code execution metric. This data type is not supported in Gemini API. */
2641
+ export declare interface CustomCodeExecutionResult {
2642
+ /** Output only. Custom code execution score. */
2643
+ score?: number;
2644
+ }
2645
+
2504
2646
  /** User provided metadata stored as key-value pairs. This data type is not supported in Vertex AI. */
2505
2647
  export declare interface CustomMetadata {
2506
2648
  /** Required. The key of the metadata to store. */
@@ -2513,6 +2655,12 @@ export declare interface CustomMetadata {
2513
2655
  stringValue?: string;
2514
2656
  }
2515
2657
 
2658
+ /** Spec for custom output. This data type is not supported in Gemini API. */
2659
+ export declare interface CustomOutput {
2660
+ /** Output only. List of raw output strings. */
2661
+ rawOutputs?: RawOutput;
2662
+ }
2663
+
2516
2664
  /** Distribution computed over a tuning dataset. This data type is not supported in Gemini API. */
2517
2665
  export declare interface DatasetDistribution {
2518
2666
  /** Output only. Defines the histogram bucket. */
@@ -2545,6 +2693,10 @@ export declare interface DatasetDistributionDistributionBucket {
2545
2693
 
2546
2694
  /** Statistics computed over a tuning dataset. This data type is not supported in Gemini API. */
2547
2695
  export declare interface DatasetStats {
2696
+ /** Output only. A partial sample of the indices (starting from 1) of the dropped examples. */
2697
+ droppedExampleIndices?: string[];
2698
+ /** Output only. For each index in `dropped_example_indices`, the user-facing reason why the example was dropped. */
2699
+ droppedExampleReasons?: string[];
2548
2700
  /** Output only. Number of billable characters in the tuning dataset. */
2549
2701
  totalBillableCharacterCount?: string;
2550
2702
  /** Output only. Number of tuning characters in the tuning dataset. */
@@ -2740,7 +2892,7 @@ export declare interface DeleteResourceJob {
2740
2892
  error?: JobError;
2741
2893
  }
2742
2894
 
2743
- /** Statistics computed for datasets used for distillation. This data type is not supported in Gemini API. */
2895
+ /** Statistics for distillation prompt dataset. These statistics do not include the responses sampled from the teacher model. This data type is not supported in Gemini API. */
2744
2896
  export declare interface DistillationDataStats {
2745
2897
  /** Output only. Statistics computed for the training dataset. */
2746
2898
  trainingDatasetStats?: DatasetStats;
@@ -3132,9 +3284,9 @@ export declare interface EmbeddingsBatchJobSource {
3132
3284
  inlinedRequests?: EmbedContentBatch;
3133
3285
  }
3134
3286
 
3135
- /** Represents a customer-managed encryption key spec that can be applied to a top-level resource. This data type is not supported in Gemini API. */
3287
+ /** Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. This data type is not supported in Gemini API. */
3136
3288
  export declare interface EncryptionSpec {
3137
- /** Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created. */
3289
+ /** Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */
3138
3290
  kmsKeyName?: string;
3139
3291
  }
3140
3292
 
@@ -3164,10 +3316,10 @@ export declare enum EndSensitivity {
3164
3316
 
3165
3317
  /** Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. This data type is not supported in Gemini API. */
3166
3318
  export declare interface EnterpriseWebSearch {
3167
- /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. */
3168
- excludeDomains?: string[];
3169
3319
  /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. */
3170
3320
  blockingConfidence?: PhishBlockThreshold;
3321
+ /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. */
3322
+ excludeDomains?: string[];
3171
3323
  }
3172
3324
 
3173
3325
  /** An entity representing the segmented area. */
@@ -3236,6 +3388,42 @@ declare namespace Errors {
3236
3388
  }
3237
3389
  }
3238
3390
 
3391
+ /** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */
3392
+ export declare class EvaluateDatasetResponse {
3393
+ /** Output only. Aggregation statistics derived from results of EvaluationService. */
3394
+ aggregationOutput?: AggregationOutput;
3395
+ /** Output only. Output info for EvaluationService. */
3396
+ outputInfo?: OutputInfo;
3397
+ }
3398
+
3399
+ /** Evaluate Dataset Run Result for Tuning Job. This data type is not supported in Gemini API. */
3400
+ export declare interface EvaluateDatasetRun {
3401
+ /** Output only. The checkpoint id used in the evaluation run. Only populated when evaluating checkpoints. */
3402
+ checkpointId?: string;
3403
+ /** Output only. The error of the evaluation run if any. */
3404
+ error?: GoogleRpcStatus;
3405
+ /** Output only. Results for EvaluationService. */
3406
+ evaluateDatasetResponse?: EvaluateDatasetResponse;
3407
+ /** Output only. The resource name of the evaluation run. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run_id}`. */
3408
+ evaluationRun?: string;
3409
+ /** Output only. The operation ID of the evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation_id}`. */
3410
+ operationName?: string;
3411
+ }
3412
+
3413
+ /** The dataset used for evaluation. This data type is not supported in Gemini API. */
3414
+ export declare interface EvaluationDataset {
3415
+ /** BigQuery source holds the dataset. */
3416
+ bigquerySource?: BigQuerySource;
3417
+ /** Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported. */
3418
+ gcsSource?: GcsSource;
3419
+ }
3420
+
3421
+ /** Exact match metric value for an instance. This data type is not supported in Gemini API. */
3422
+ export declare interface ExactMatchMetricValue {
3423
+ /** Output only. Exact match score. */
3424
+ score?: number;
3425
+ }
3426
+
3239
3427
  /** Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the [CodeExecution] tool, in which the code will be automatically executed, and a corresponding [CodeExecutionResult] will also be generated. */
3240
3428
  export declare interface ExecutableCode {
3241
3429
  /** Required. The code to be executed. */
@@ -3346,11 +3534,11 @@ declare interface File_2 {
3346
3534
  }
3347
3535
  export { File_2 as File }
3348
3536
 
3349
- /** URI based data. */
3537
+ /** URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. */
3350
3538
  export declare interface FileData {
3351
- /** Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. */
3539
+ /** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
3352
3540
  displayName?: string;
3353
- /** Required. URI. */
3541
+ /** Required. The URI of the file in Google Cloud Storage. */
3354
3542
  fileUri?: string;
3355
3543
  /** Required. The IANA standard MIME type of the source data. */
3356
3544
  mimeType?: string;
@@ -3496,6 +3684,10 @@ declare interface FileSearchCallContent {
3496
3684
  */
3497
3685
  id: string;
3498
3686
  type: 'file_search_call';
3687
+ /**
3688
+ * A signature hash for backend validation.
3689
+ */
3690
+ signature?: string;
3499
3691
  }
3500
3692
 
3501
3693
  /**
@@ -3511,6 +3703,10 @@ declare interface FileSearchResultContent {
3511
3703
  * The results of the File Search.
3512
3704
  */
3513
3705
  result?: Array<FileSearchResultContent.Result>;
3706
+ /**
3707
+ * A signature hash for backend validation.
3708
+ */
3709
+ signature?: string;
3514
3710
  }
3515
3711
 
3516
3712
  declare namespace FileSearchResultContent {
@@ -3769,6 +3965,16 @@ export declare enum FinishReason {
3769
3965
  IMAGE_OTHER = "IMAGE_OTHER"
3770
3966
  }
3771
3967
 
3968
+ /** Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API. */
3969
+ export declare interface FullFineTuningSpec {
3970
+ /** Optional. Hyperparameters for Full Fine Tuning. */
3971
+ hyperParameters?: SupervisedHyperParameters;
3972
+ /** Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
3973
+ trainingDatasetUri?: string;
3974
+ /** Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */
3975
+ validationDatasetUri?: string;
3976
+ }
3977
+
3772
3978
  /**
3773
3979
  * A tool that can be used by the model.
3774
3980
  */
@@ -3822,6 +4028,10 @@ declare interface FunctionCallContent {
3822
4028
  */
3823
4029
  name: string;
3824
4030
  type: 'function_call';
4031
+ /**
4032
+ * A signature hash for backend validation.
4033
+ */
4034
+ signature?: string;
3825
4035
  }
3826
4036
 
3827
4037
  /** Function calling config. */
@@ -3862,7 +4072,7 @@ export declare enum FunctionCallingConfigMode {
3862
4072
  export declare interface FunctionDeclaration {
3863
4073
  /** Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. */
3864
4074
  description?: string;
3865
- /** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64. */
4075
+ /** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 64. */
3866
4076
  name?: string;
3867
4077
  /** Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1 */
3868
4078
  parameters?: Schema;
@@ -3976,6 +4186,10 @@ declare interface FunctionResultContent {
3976
4186
  * The name of the tool that was called.
3977
4187
  */
3978
4188
  name?: string;
4189
+ /**
4190
+ * A signature hash for backend validation.
4191
+ */
4192
+ signature?: string;
3979
4193
  }
3980
4194
 
3981
4195
  declare namespace FunctionResultContent {
@@ -3984,6 +4198,12 @@ declare namespace FunctionResultContent {
3984
4198
  }
3985
4199
  }
3986
4200
 
4201
+ /** The Google Cloud Storage location for the input content. This data type is not supported in Gemini API. */
4202
+ export declare interface GcsSource {
4203
+ /** Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards. */
4204
+ uris?: string[];
4205
+ }
4206
+
3987
4207
  /**
3988
4208
  * @license
3989
4209
  * Copyright 2025 Google LLC
@@ -4619,45 +4839,45 @@ export declare interface GenerationConfig {
4619
4839
  `response_schema` that accepts [JSON Schema](https://json-schema.org/).
4620
4840
  */
4621
4841
  responseJsonSchema?: unknown;
4622
- /** Optional. If enabled, audio timestamp will be included in the request to the model. This field is not supported in Gemini API. */
4842
+ /** Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response. This field is not supported in Gemini API. */
4623
4843
  audioTimestamp?: boolean;
4624
- /** Optional. Number of candidates to generate. */
4844
+ /** Optional. The number of candidate responses to generate. A higher `candidate_count` can provide more options to choose from, but it also consumes more resources. This can be useful for generating a variety of responses and selecting the best one. */
4625
4845
  candidateCount?: number;
4626
- /** Optional. If enabled, the model will detect emotions and adapt its responses accordingly. This field is not supported in Gemini API. */
4846
+ /** Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response. This field is not supported in Gemini API. */
4627
4847
  enableAffectiveDialog?: boolean;
4628
- /** Optional. Frequency penalties. */
4848
+ /** Optional. Penalizes tokens based on their frequency in the generated text. A positive value helps to reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0]. */
4629
4849
  frequencyPenalty?: number;
4630
- /** Optional. Logit probabilities. */
4850
+ /** Optional. The number of top log probabilities to return for each token. This can be used to see which other tokens were considered likely candidates for a given position. A higher value will return more options, but it will also increase the size of the response. */
4631
4851
  logprobs?: number;
4632
- /** Optional. The maximum number of output tokens to generate per message. */
4852
+ /** Optional. The maximum number of tokens to generate in the response. A token is approximately four characters. The default value varies by model. This parameter can be used to control the length of the generated text and prevent overly long responses. */
4633
4853
  maxOutputTokens?: number;
4634
- /** Optional. If specified, the media resolution specified will be used. */
4854
+ /** Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model. */
4635
4855
  mediaResolution?: MediaResolution;
4636
- /** Optional. Positive penalties. */
4856
+ /** Optional. Penalizes tokens that have already appeared in the generated text. A positive value encourages the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, 2.0]. */
4637
4857
  presencePenalty?: number;
4638
- /** Optional. If true, export the logprobs results in response. */
4858
+ /** Optional. If set to true, the log probabilities of the output tokens are returned. Log probabilities are the logarithm of the probability of a token appearing in the output. A higher log probability means the token is more likely to be generated. This can be useful for analyzing the model's confidence in its own output and for debugging. */
4639
4859
  responseLogprobs?: boolean;
4640
- /** Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
4860
+ /** Optional. The IANA standard MIME type of the response. The model will generate output that conforms to this MIME type. Supported values include 'text/plain' (default) and 'application/json'. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */
4641
4861
  responseMimeType?: string;
4642
- /** Optional. The modalities of the response. */
4862
+ /** Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image. */
4643
4863
  responseModalities?: Modality[];
4644
- /** Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response. */
4864
+ /** Optional. Lets you to specify a schema for the model's response, ensuring that the output conforms to a particular structure. This is useful for generating structured data such as JSON. The schema is a subset of the [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must also set the `response_mime_type` to `application/json`. */
4645
4865
  responseSchema?: Schema;
4646
4866
  /** Optional. Routing configuration. This field is not supported in Gemini API. */
4647
4867
  routingConfig?: GenerationConfigRoutingConfig;
4648
- /** Optional. Seed. */
4868
+ /** Optional. A seed for the random number generator. By setting a seed, you can make the model's output mostly deterministic. For a given prompt and parameters (like temperature, top_p, etc.), the model will produce the same response every time. However, it's not a guaranteed absolute deterministic behavior. This is different from parameters like `temperature`, which control the *level* of randomness. `seed` ensures that the "random" choices the model makes are the same on every run, making it essential for testing and ensuring reproducible results. */
4649
4869
  seed?: number;
4650
4870
  /** Optional. The speech generation config. */
4651
4871
  speechConfig?: SpeechConfig;
4652
- /** Optional. Stop sequences. */
4872
+ /** Optional. A list of character sequences that will stop the model from generating further tokens. If a stop sequence is generated, the output will end at that point. This is useful for controlling the length and structure of the output. For example, you can use ["\n", "###"] to stop generation at a new line or a specific marker. */
4653
4873
  stopSequences?: string[];
4654
- /** Optional. Controls the randomness of predictions. */
4874
+ /** Optional. Controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature makes the output more predictable and focused. The valid range is (0.0, 2.0]. */
4655
4875
  temperature?: number;
4656
- /** Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking. */
4876
+ /** Optional. Configuration for thinking features. An error will be returned if this field is set for models that don't support thinking. */
4657
4877
  thinkingConfig?: ThinkingConfig;
4658
- /** Optional. If specified, top-k sampling will be used. */
4878
+ /** Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words. */
4659
4879
  topK?: number;
4660
- /** Optional. If specified, nucleus sampling will be used. */
4880
+ /** Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It's recommended to adjust either temperature or `top_p`, but not both. */
4661
4881
  topP?: number;
4662
4882
  /** Optional. Enables enhanced civic answers. It may not be available for all models. This field is not supported in Vertex AI. */
4663
4883
  enableEnhancedCivicAnswers?: boolean;
@@ -4709,23 +4929,23 @@ declare interface GenerationConfig_2 {
4709
4929
  top_p?: number;
4710
4930
  }
4711
4931
 
4712
- /** The configuration for routing the request to a specific model. This data type is not supported in Gemini API. */
4932
+ /** The configuration for routing the request to a specific model. This can be used to control which model is used for the generation, either automatically or by specifying a model name. This data type is not supported in Gemini API. */
4713
4933
  export declare interface GenerationConfigRoutingConfig {
4714
- /** Automated routing. */
4934
+ /** In this mode, the model is selected automatically based on the content of the request. */
4715
4935
  autoMode?: GenerationConfigRoutingConfigAutoRoutingMode;
4716
- /** Manual routing. */
4936
+ /** In this mode, the model is specified manually. */
4717
4937
  manualMode?: GenerationConfigRoutingConfigManualRoutingMode;
4718
4938
  }
4719
4939
 
4720
- /** When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. This data type is not supported in Gemini API. */
4940
+ /** The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. This data type is not supported in Gemini API. */
4721
4941
  export declare interface GenerationConfigRoutingConfigAutoRoutingMode {
4722
4942
  /** The model routing preference. */
4723
4943
  modelRoutingPreference?: 'UNKNOWN' | 'PRIORITIZE_QUALITY' | 'BALANCED' | 'PRIORITIZE_COST';
4724
4944
  }
4725
4945
 
4726
- /** When manual routing is set, the specified model will be used directly. This data type is not supported in Gemini API. */
4946
+ /** The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. This data type is not supported in Gemini API. */
4727
4947
  export declare interface GenerationConfigRoutingConfigManualRoutingMode {
4728
- /** The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */
4948
+ /** The name of the model to use. Only public LLM models are accepted. */
4729
4949
  modelName?: string;
4730
4950
  }
4731
4951
 
@@ -5034,11 +5254,11 @@ export declare interface GoogleGenAIOptions {
5034
5254
  httpOptions?: HttpOptions;
5035
5255
  }
5036
5256
 
5037
- /** Tool to retrieve public maps data for grounding, powered by Google. */
5257
+ /** Tool to retrieve knowledge from Google Maps. */
5038
5258
  export declare interface GoogleMaps {
5039
5259
  /** The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API. */
5040
5260
  authConfig?: AuthConfig;
5041
- /** Optional. If true, include the widget context token in the response. */
5261
+ /** Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response. */
5042
5262
  enableWidget?: boolean;
5043
5263
  }
5044
5264
 
@@ -5056,10 +5276,10 @@ export declare interface GoogleRpcStatus {
5056
5276
  export declare interface GoogleSearch {
5057
5277
  /** Different types of search that can be enabled on the GoogleSearch tool. */
5058
5278
  searchTypes?: SearchTypes;
5059
- /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API. */
5060
- excludeDomains?: string[];
5061
5279
  /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
5062
5280
  blockingConfidence?: PhishBlockThreshold;
5281
+ /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API. */
5282
+ excludeDomains?: string[];
5063
5283
  /** Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa). This field is not supported in Vertex AI. */
5064
5284
  timeRangeFilter?: Interval;
5065
5285
  }
@@ -5091,6 +5311,10 @@ declare interface GoogleSearchCallContent {
5091
5311
  * The type of search grounding enabled.
5092
5312
  */
5093
5313
  search_type?: 'web_search' | 'image_search';
5314
+ /**
5315
+ * A signature hash for backend validation.
5316
+ */
5317
+ signature?: string;
5094
5318
  }
5095
5319
 
5096
5320
  /**
@@ -5129,7 +5353,7 @@ declare interface GoogleSearchResultContent {
5129
5353
  */
5130
5354
  is_error?: boolean;
5131
5355
  /**
5132
- * The signature of the Google Search result.
5356
+ * A signature hash for backend validation.
5133
5357
  */
5134
5358
  signature?: string;
5135
5359
  }
@@ -5160,11 +5384,15 @@ export declare interface GroundingChunk {
5160
5384
  message for details.
5161
5385
  */
5162
5386
  image?: GroundingChunkImage;
5163
- /** Grounding chunk from Google Maps. This field is not supported in Gemini API. */
5387
+ /** A `Maps` chunk is a piece of evidence that comes from Google Maps.
5388
+
5389
+ It contains information about a place, such as its name, address, and
5390
+ reviews. This is used to provide the user with rich, location-based
5391
+ information. */
5164
5392
  maps?: GroundingChunkMaps;
5165
- /** Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API. */
5393
+ /** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details. This field is not supported in Gemini API. */
5166
5394
  retrievedContext?: GroundingChunkRetrievedContext;
5167
- /** Grounding chunk from the web. */
5395
+ /** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
5168
5396
  web?: GroundingChunkWeb;
5169
5397
  }
5170
5398
 
@@ -5184,29 +5412,42 @@ export declare interface GroundingChunkImage {
5184
5412
  domain?: string;
5185
5413
  }
5186
5414
 
5187
- /** Chunk from Google Maps. This data type is not supported in Gemini API. */
5415
+ /** A `Maps` chunk is a piece of evidence that comes from Google Maps.
5416
+
5417
+ It contains information about a place, such as its name, address, and reviews.
5418
+ This is used to provide the user with rich, location-based information. */
5188
5419
  export declare interface GroundingChunkMaps {
5189
- /** Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content. */
5420
+ /** The sources that were used to generate the place answer.
5421
+
5422
+ This includes review snippets and photos that were used to generate the
5423
+ answer, as well as URIs to flag content. */
5190
5424
  placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;
5191
- /** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */
5425
+ /** This Place's resource name, in `places/{place_id}` format.
5426
+
5427
+ This can be used to look up the place in the Google Maps API. */
5192
5428
  placeId?: string;
5193
- /** Text of the place answer. */
5429
+ /** The text of the place answer. */
5194
5430
  text?: string;
5195
- /** Title of the place. */
5431
+ /** The title of the place. */
5196
5432
  title?: string;
5197
- /** URI reference of the place. */
5433
+ /** The URI of the place. */
5198
5434
  uri?: string;
5199
5435
  }
5200
5436
 
5201
- /** Sources used to generate the place answer. This data type is not supported in Gemini API. */
5437
+ /** The sources that were used to generate the place answer.
5438
+
5439
+ This includes review snippets and photos that were used to generate the
5440
+ answer, as well as URIs to flag content. */
5202
5441
  export declare interface GroundingChunkMapsPlaceAnswerSources {
5442
+ /** Snippets of reviews that were used to generate the answer. */
5443
+ reviewSnippet?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
5203
5444
  /** A link where users can flag a problem with the generated answer. */
5204
5445
  flagContentUri?: string;
5205
- /** Snippets of reviews that are used to generate the answer. */
5446
+ /** Snippets of reviews that were used to generate the answer. */
5206
5447
  reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
5207
5448
  }
5208
5449
 
5209
- /** Author attribution for a photo or review. This data type is not supported in Gemini API. */
5450
+ /** Author attribution for a photo or review. */
5210
5451
  export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
5211
5452
  /** Name of the author of the Photo or Review. */
5212
5453
  displayName?: string;
@@ -5216,7 +5457,7 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
5216
5457
  uri?: string;
5217
5458
  }
5218
5459
 
5219
- /** Encapsulates a review snippet. This data type is not supported in Gemini API. */
5460
+ /** Encapsulates a review snippet. */
5220
5461
  export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
5221
5462
  /** This review's author. */
5222
5463
  authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
@@ -5234,30 +5475,31 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
5234
5475
  title?: string;
5235
5476
  }
5236
5477
 
5237
- /** Chunk from context retrieved by the retrieval tools. This data type is not supported in Gemini API. */
5478
+ /** Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset. This data type is not supported in Gemini API. */
5238
5479
  export declare interface GroundingChunkRetrievedContext {
5239
- /** Output only. The full document name for the referenced Vertex AI Search document. */
5480
+ /** Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. */
5240
5481
  documentName?: string;
5241
- /** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */
5482
+ /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
5242
5483
  ragChunk?: RagChunk;
5243
- /** Text of the attribution. */
5484
+ /** The content of the retrieved data source. */
5244
5485
  text?: string;
5245
- /** Title of the attribution. */
5486
+ /** The title of the retrieved data source. */
5246
5487
  title?: string;
5247
- /** URI reference of the attribution. */
5488
+ /** The URI of the retrieved data source. */
5248
5489
  uri?: string;
5249
5490
  }
5250
5491
 
5251
- /** Chunk from the web. */
5492
+ /** A `Web` chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information. */
5252
5493
  export declare interface GroundingChunkWeb {
5253
- /** Domain of the (original) URI. This field is not supported in Gemini API. */
5494
+ /** The domain of the web page that contains the evidence. This can be used to filter out low-quality sources. This field is not supported in Gemini API. */
5254
5495
  domain?: string;
5255
- /** Title of the chunk. */
5496
+ /** The title of the web page that contains the evidence. */
5256
5497
  title?: string;
5257
- /** URI reference of the chunk. */
5498
+ /** The URI of the web page that contains the evidence. */
5258
5499
  uri?: string;
5259
5500
  }
5260
5501
 
5502
+ /** Information for various kinds of grounding. */
5261
5503
  export declare interface GroundingMetadata {
5262
5504
  /** Optional. The image search queries that were used to generate the
5263
5505
  content. This field is populated only when the grounding source is Google
@@ -5269,41 +5511,48 @@ export declare interface GroundingMetadata {
5269
5511
  Search, Vertex AI Search, or Google Maps.
5270
5512
  */
5271
5513
  groundingChunks?: GroundingChunk[];
5272
- /** Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. This field is not supported in Gemini API. */
5273
- googleMapsWidgetContextToken?: string;
5274
- /** Optional. List of grounding support. */
5514
+ /** List of grounding support. */
5275
5515
  groundingSupports?: GroundingSupport[];
5276
- /** Optional. Output only. Retrieval metadata. */
5516
+ /** Metadata related to retrieval in the grounding flow. */
5277
5517
  retrievalMetadata?: RetrievalMetadata;
5278
- /** Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API. */
5279
- retrievalQueries?: string[];
5280
- /** Optional. Google search entry for the following-up web searches. */
5518
+ /** Optional. Google search entry for the following-up web
5519
+ searches. */
5281
5520
  searchEntryPoint?: SearchEntryPoint;
5282
- /** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API. */
5283
- sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
5284
- /** Optional. Web search queries for the following-up web search. */
5521
+ /** Web search queries for the following-up web search. */
5285
5522
  webSearchQueries?: string[];
5523
+ /** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. This field is not supported in Gemini API. */
5524
+ googleMapsWidgetContextToken?: string;
5525
+ /** Optional. The queries that were executed by the retrieval tools. This field is populated only when the grounding source is a retrieval tool, such as Vertex AI Search. This field is not supported in Gemini API. */
5526
+ retrievalQueries?: string[];
5527
+ /** Optional. Output only. A list of URIs that can be used to flag a place or review for inappropriate content. This field is populated only when the grounding source is Google Maps. This field is not supported in Gemini API. */
5528
+ sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
5286
5529
  }
5287
5530
 
5288
- /** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. This data type is not supported in Gemini API. */
5531
+ /** A URI that can be used to flag a place or review for inappropriate content. This is populated only when the grounding source is Google Maps. This data type is not supported in Gemini API. */
5289
5532
  export declare interface GroundingMetadataSourceFlaggingUri {
5290
- /** A link where users can flag a problem with the source (place or review). */
5533
+ /** The URI that can be used to flag the content. */
5291
5534
  flagContentUri?: string;
5292
- /** Id of the place or review. */
5535
+ /** The ID of the place or review. */
5293
5536
  sourceId?: string;
5294
5537
  }
5295
5538
 
5296
5539
  /** Grounding support. */
5297
5540
  export declare interface GroundingSupport {
5298
- /** Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored. */
5541
+ /** Confidence score of the support references.
5542
+
5543
+ Ranges from 0 to 1. 1 is the most confident. This list must have the
5544
+ same size as the grounding_chunk_indices. */
5299
5545
  confidenceScores?: number[];
5300
- /** A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. */
5546
+ /** A list of indices (into 'grounding_chunk') specifying the
5547
+ citations associated with the claim. For instance [1,3,4] means that
5548
+ grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the
5549
+ retrieved content attributed to the claim. */
5301
5550
  groundingChunkIndices?: number[];
5302
5551
  /** Segment of the content this support belongs to. */
5303
5552
  segment?: Segment;
5304
5553
  }
5305
5554
 
5306
- /** Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This enum is not supported in Gemini API. */
5555
+ /** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
5307
5556
  export declare enum HarmBlockMethod {
5308
5557
  /**
5309
5558
  * The harm block method is unspecified.
@@ -5319,54 +5568,54 @@ export declare enum HarmBlockMethod {
5319
5568
  PROBABILITY = "PROBABILITY"
5320
5569
  }
5321
5570
 
5322
- /** The harm block threshold. */
5571
+ /** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
5323
5572
  export declare enum HarmBlockThreshold {
5324
5573
  /**
5325
- * Unspecified harm block threshold.
5574
+ * The harm block threshold is unspecified.
5326
5575
  */
5327
5576
  HARM_BLOCK_THRESHOLD_UNSPECIFIED = "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
5328
5577
  /**
5329
- * Block low threshold and above (i.e. block more).
5578
+ * Block content with a low harm probability or higher.
5330
5579
  */
5331
5580
  BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
5332
5581
  /**
5333
- * Block medium threshold and above.
5582
+ * Block content with a medium harm probability or higher.
5334
5583
  */
5335
5584
  BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
5336
5585
  /**
5337
- * Block only high threshold (i.e. block less).
5586
+ * Block content with a high harm probability.
5338
5587
  */
5339
5588
  BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH",
5340
5589
  /**
5341
- * Block none.
5590
+ * Do not block any content, regardless of its harm probability.
5342
5591
  */
5343
5592
  BLOCK_NONE = "BLOCK_NONE",
5344
5593
  /**
5345
- * Turn off the safety filter.
5594
+ * Turn off the safety filter entirely.
5346
5595
  */
5347
5596
  OFF = "OFF"
5348
5597
  }
5349
5598
 
5350
- /** Harm category. */
5599
+ /** The harm category to be blocked. */
5351
5600
  export declare enum HarmCategory {
5352
5601
  /**
5353
- * The harm category is unspecified.
5602
+ * Default value. This value is unused.
5354
5603
  */
5355
5604
  HARM_CATEGORY_UNSPECIFIED = "HARM_CATEGORY_UNSPECIFIED",
5356
5605
  /**
5357
- * The harm category is harassment.
5606
+ * Abusive, threatening, or content intended to bully, torment, or ridicule.
5358
5607
  */
5359
5608
  HARM_CATEGORY_HARASSMENT = "HARM_CATEGORY_HARASSMENT",
5360
5609
  /**
5361
- * The harm category is hate speech.
5610
+ * Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
5362
5611
  */
5363
5612
  HARM_CATEGORY_HATE_SPEECH = "HARM_CATEGORY_HATE_SPEECH",
5364
5613
  /**
5365
- * The harm category is sexually explicit content.
5614
+ * Content that contains sexually explicit material.
5366
5615
  */
5367
5616
  HARM_CATEGORY_SEXUALLY_EXPLICIT = "HARM_CATEGORY_SEXUALLY_EXPLICIT",
5368
5617
  /**
5369
- * The harm category is dangerous content.
5618
+ * Content that promotes, facilitates, or enables dangerous activities.
5370
5619
  */
5371
5620
  HARM_CATEGORY_DANGEROUS_CONTENT = "HARM_CATEGORY_DANGEROUS_CONTENT",
5372
5621
  /**
@@ -5374,71 +5623,71 @@ export declare enum HarmCategory {
5374
5623
  */
5375
5624
  HARM_CATEGORY_CIVIC_INTEGRITY = "HARM_CATEGORY_CIVIC_INTEGRITY",
5376
5625
  /**
5377
- * The harm category is image hate. This enum value is not supported in Gemini API.
5626
+ * Images that contain hate speech. This enum value is not supported in Gemini API.
5378
5627
  */
5379
5628
  HARM_CATEGORY_IMAGE_HATE = "HARM_CATEGORY_IMAGE_HATE",
5380
5629
  /**
5381
- * The harm category is image dangerous content. This enum value is not supported in Gemini API.
5630
+ * Images that contain dangerous content. This enum value is not supported in Gemini API.
5382
5631
  */
5383
5632
  HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",
5384
5633
  /**
5385
- * The harm category is image harassment. This enum value is not supported in Gemini API.
5634
+ * Images that contain harassment. This enum value is not supported in Gemini API.
5386
5635
  */
5387
5636
  HARM_CATEGORY_IMAGE_HARASSMENT = "HARM_CATEGORY_IMAGE_HARASSMENT",
5388
5637
  /**
5389
- * The harm category is image sexually explicit content. This enum value is not supported in Gemini API.
5638
+ * Images that contain sexually explicit content. This enum value is not supported in Gemini API.
5390
5639
  */
5391
5640
  HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",
5392
5641
  /**
5393
- * The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.
5642
+ * Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
5394
5643
  */
5395
5644
  HARM_CATEGORY_JAILBREAK = "HARM_CATEGORY_JAILBREAK"
5396
5645
  }
5397
5646
 
5398
- /** Output only. Harm probability levels in the content. */
5647
+ /** Output only. The probability of harm for this category. */
5399
5648
  export declare enum HarmProbability {
5400
5649
  /**
5401
- * Harm probability unspecified.
5650
+ * The harm probability is unspecified.
5402
5651
  */
5403
5652
  HARM_PROBABILITY_UNSPECIFIED = "HARM_PROBABILITY_UNSPECIFIED",
5404
5653
  /**
5405
- * Negligible level of harm.
5654
+ * The harm probability is negligible.
5406
5655
  */
5407
5656
  NEGLIGIBLE = "NEGLIGIBLE",
5408
5657
  /**
5409
- * Low level of harm.
5658
+ * The harm probability is low.
5410
5659
  */
5411
5660
  LOW = "LOW",
5412
5661
  /**
5413
- * Medium level of harm.
5662
+ * The harm probability is medium.
5414
5663
  */
5415
5664
  MEDIUM = "MEDIUM",
5416
5665
  /**
5417
- * High level of harm.
5666
+ * The harm probability is high.
5418
5667
  */
5419
5668
  HIGH = "HIGH"
5420
5669
  }
5421
5670
 
5422
- /** Output only. Harm severity levels in the content. This enum is not supported in Gemini API. */
5671
+ /** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
5423
5672
  export declare enum HarmSeverity {
5424
5673
  /**
5425
- * Harm severity unspecified.
5674
+ * The harm severity is unspecified.
5426
5675
  */
5427
5676
  HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED",
5428
5677
  /**
5429
- * Negligible level of harm severity.
5678
+ * The harm severity is negligible.
5430
5679
  */
5431
5680
  HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
5432
5681
  /**
5433
- * Low level of harm severity.
5682
+ * The harm severity is low.
5434
5683
  */
5435
5684
  HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
5436
5685
  /**
5437
- * Medium level of harm severity.
5686
+ * The harm severity is medium.
5438
5687
  */
5439
5688
  HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
5440
5689
  /**
5441
- * High level of harm severity.
5690
+ * The harm severity is high.
5442
5691
  */
5443
5692
  HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
5444
5693
  }
@@ -5606,6 +5855,8 @@ export declare interface ImageConfig {
5606
5855
  /** Compression quality of the generated image (for
5607
5856
  ``image/jpeg`` only). This field is not supported in Gemini API. */
5608
5857
  outputCompressionQuality?: number;
5858
+ /** Optional. The image output format for generated images. */
5859
+ imageOutputOptions?: ImageConfigImageOutputOptions;
5609
5860
  }
5610
5861
 
5611
5862
  /**
@@ -5616,6 +5867,14 @@ declare interface ImageConfig_2 {
5616
5867
  image_size?: '1K' | '2K' | '4K' | '512';
5617
5868
  }
5618
5869
 
5870
+ /** The image output format for generated images. This data type is not supported in Gemini API. */
5871
+ export declare interface ImageConfigImageOutputOptions {
5872
+ /** Optional. The compression quality of the output image. */
5873
+ compressionQuality?: number;
5874
+ /** Optional. The image format that the output should be saved as. */
5875
+ mimeType?: string;
5876
+ }
5877
+
5619
5878
  /**
5620
5879
  * An image content block.
5621
5880
  */
@@ -6333,9 +6592,9 @@ export declare interface ListTuningJobsParameters {
6333
6592
  export declare class ListTuningJobsResponse {
6334
6593
  /** Used to retain the full HTTP response. */
6335
6594
  sdkHttpResponse?: HttpResponse;
6336
- /** A token to retrieve the next page of results. Pass to ListTuningJobsRequest.page_token to obtain that page. */
6595
+ /** A token to retrieve the next page of results. Pass this token in a subsequent [GenAiTuningService.ListTuningJobs] call to retrieve the next page of results. */
6337
6596
  nextPageToken?: string;
6338
- /** List of TuningJobs in the requested page. */
6597
+ /** The tuning jobs that match the request. */
6339
6598
  tuningJobs?: TuningJob[];
6340
6599
  }
6341
6600
 
@@ -7121,27 +7380,27 @@ declare type Logger = {
7121
7380
 
7122
7381
  declare type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug';
7123
7382
 
7124
- /** Logprobs Result */
7383
+ /** The log probabilities of the tokens generated by the model. This is useful for understanding the model's confidence in its predictions and for debugging. For example, you can use log probabilities to identify when the model is making a less confident prediction or to explore alternative responses that the model considered. A low log probability can also indicate that the model is "hallucinating" or generating factually incorrect information. */
7125
7384
  export declare interface LogprobsResult {
7126
- /** Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. */
7385
+ /** A list of the chosen candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. Note that the chosen candidate might not be in `top_candidates`. */
7127
7386
  chosenCandidates?: LogprobsResultCandidate[];
7128
- /** Length = total number of decoding steps. */
7387
+ /** A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. */
7129
7388
  topCandidates?: LogprobsResultTopCandidates[];
7130
7389
  }
7131
7390
 
7132
- /** Candidate for the logprobs token and score. */
7391
+ /** A single token and its associated log probability. */
7133
7392
  export declare interface LogprobsResultCandidate {
7134
- /** The candidate's log probability. */
7393
+ /** The log probability of this token. A higher value indicates that the model was more confident in this token. The log probability can be used to assess the relative likelihood of different tokens and to identify when the model is uncertain. */
7135
7394
  logProbability?: number;
7136
- /** The candidate's token string value. */
7395
+ /** The token's string representation. */
7137
7396
  token?: string;
7138
- /** The candidate's token id value. */
7397
+ /** The token's numerical ID. While the `token` field provides the string representation of the token, the `token_id` is the numerical representation that the model uses internally. This can be useful for developers who want to build custom logic based on the model's vocabulary. */
7139
7398
  tokenId?: number;
7140
7399
  }
7141
7400
 
7142
- /** Candidates with top log probabilities at each decoding step. */
7401
+ /** A list of the top candidate tokens and their log probabilities at each decoding step. This can be used to see what other tokens the model considered. */
7143
7402
  export declare interface LogprobsResultTopCandidates {
7144
- /** Sorted by log probability in descending order. */
7403
+ /** The list of candidate tokens, sorted by log probability in descending order. */
7145
7404
  candidates?: LogprobsResultCandidate[];
7146
7405
  }
7147
7406
 
@@ -7220,6 +7479,10 @@ declare interface MCPServerToolCallContent {
7220
7479
  */
7221
7480
  server_name: string;
7222
7481
  type: 'mcp_server_tool_call';
7482
+ /**
7483
+ * A signature hash for backend validation.
7484
+ */
7485
+ signature?: string;
7223
7486
  }
7224
7487
 
7225
7488
  /**
@@ -7243,6 +7506,10 @@ declare interface MCPServerToolResultContent {
7243
7506
  * The name of the used MCP server.
7244
7507
  */
7245
7508
  server_name?: string;
7509
+ /**
7510
+ * A signature hash for backend validation.
7511
+ */
7512
+ signature?: string;
7246
7513
  }
7247
7514
 
7248
7515
  declare namespace MCPServerToolResultContent {
@@ -7343,7 +7610,7 @@ export declare enum Modality {
7343
7610
  export declare interface ModalityTokenCount {
7344
7611
  /** The modality associated with this token count. */
7345
7612
  modality?: MediaModality;
7346
- /** Number of tokens. */
7613
+ /** The number of tokens counted for this modality. */
7347
7614
  tokenCount?: number;
7348
7615
  }
7349
7616
 
@@ -7405,13 +7672,13 @@ export declare interface Model {
7405
7672
  /**
7406
7673
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
7407
7674
  */
7408
- declare type Model_2 = 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | (string & {});
7675
+ declare type Model_2 = 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
7409
7676
 
7410
- /** Configuration for Model Armor integrations of prompt and responses. This data type is not supported in Gemini API. */
7677
+ /** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
7411
7678
  export declare interface ModelArmorConfig {
7412
- /** Optional. The name of the Model Armor template to use for prompt sanitization. */
7679
+ /** Optional. The resource name of the Model Armor template to use for prompt screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the user's prompt for safety and security risks before it is sent to the model. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`. */
7413
7680
  promptTemplateName?: string;
7414
- /** Optional. The name of the Model Armor template to use for response sanitization. */
7681
+ /** Optional. The resource name of the Model Armor template to use for response screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the model's response for safety and security risks before it is returned to the user. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`. */
7415
7682
  responseTemplateName?: string;
7416
7683
  }
7417
7684
 
@@ -7958,6 +8225,12 @@ export declare enum Outcome {
7958
8225
  OUTCOME_DEADLINE_EXCEEDED = "OUTCOME_DEADLINE_EXCEEDED"
7959
8226
  }
7960
8227
 
8228
+ /** Describes the info for output of EvaluationService. This data type is not supported in Gemini API. */
8229
+ export declare interface OutputInfo {
8230
+ /** Output only. The full path of the Cloud Storage directory created, into which the evaluation results and aggregation results are written. */
8231
+ gcsOutputDirectory?: string;
8232
+ }
8233
+
7961
8234
  /**
7962
8235
  * Some environments overload the global fetch function, and Parameters<T> only gets the last signature.
7963
8236
  */
@@ -8105,6 +8378,36 @@ export declare class Pager<T> implements AsyncIterable<T> {
8105
8378
  hasNextPage(): boolean;
8106
8379
  }
8107
8380
 
8381
+ /** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
8382
+ export declare enum PairwiseChoice {
8383
+ /**
8384
+ * Unspecified prediction choice.
8385
+ */
8386
+ PAIRWISE_CHOICE_UNSPECIFIED = "PAIRWISE_CHOICE_UNSPECIFIED",
8387
+ /**
8388
+ * Baseline prediction wins
8389
+ */
8390
+ BASELINE = "BASELINE",
8391
+ /**
8392
+ * Candidate prediction wins
8393
+ */
8394
+ CANDIDATE = "CANDIDATE",
8395
+ /**
8396
+ * Winner cannot be determined
8397
+ */
8398
+ TIE = "TIE"
8399
+ }
8400
+
8401
+ /** Spec for pairwise metric result. This data type is not supported in Gemini API. */
8402
+ export declare interface PairwiseMetricResult {
8403
+ /** Output only. Spec for custom output. */
8404
+ customOutput?: CustomOutput;
8405
+ /** Output only. Explanation for pairwise metric score. */
8406
+ explanation?: string;
8407
+ /** Output only. Pairwise metric choice. */
8408
+ pairwiseChoice?: PairwiseChoice;
8409
+ }
8410
+
8108
8411
  /** A datatype containing media content.
8109
8412
 
8110
8413
  Exactly one field within a Part should be set, representing the specific type
@@ -8114,21 +8417,21 @@ export declare interface Part {
8114
8417
  /** Media resolution for the input media.
8115
8418
  */
8116
8419
  mediaResolution?: PartMediaResolution;
8117
- /** Optional. Result of executing the [ExecutableCode]. */
8420
+ /** Optional. The result of executing the ExecutableCode. */
8118
8421
  codeExecutionResult?: CodeExecutionResult;
8119
- /** Optional. Code generated by the model that is meant to be executed. */
8422
+ /** Optional. Code generated by the model that is intended to be executed. */
8120
8423
  executableCode?: ExecutableCode;
8121
- /** Optional. URI based data. */
8424
+ /** Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage. */
8122
8425
  fileData?: FileData;
8123
- /** Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values. */
8426
+ /** Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function. */
8124
8427
  functionCall?: FunctionCall;
8125
- /** Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model. */
8428
+ /** Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted. */
8126
8429
  functionResponse?: FunctionResponse;
8127
- /** Optional. Inlined bytes data. */
8430
+ /** Optional. The inline data content of the part. This can be used to include images, audio, or video in a request. */
8128
8431
  inlineData?: Blob_2;
8129
- /** Optional. Text part (can be code). */
8432
+ /** Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent. */
8130
8433
  text?: string;
8131
- /** Optional. Indicates if the part is thought from the model. */
8434
+ /** Optional. Indicates whether the `part` represents the model's thought process or reasoning. */
8132
8435
  thought?: boolean;
8133
8436
  /** Optional. An opaque signature for the thought so it can be reused in subsequent requests.
8134
8437
  * @remarks Encoded as base64 string. */
@@ -8139,16 +8442,16 @@ export declare interface Part {
8139
8442
 
8140
8443
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
8141
8444
  export declare interface PartialArg {
8445
+ /** Optional. Represents a boolean value. */
8446
+ boolValue?: boolean;
8447
+ /** Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data". */
8448
+ jsonPath?: string;
8142
8449
  /** Optional. Represents a null value. */
8143
8450
  nullValue?: 'NULL_VALUE';
8144
8451
  /** Optional. Represents a double value. */
8145
8452
  numberValue?: number;
8146
8453
  /** Optional. Represents a string value. */
8147
8454
  stringValue?: string;
8148
- /** Optional. Represents a boolean value. */
8149
- boolValue?: boolean;
8150
- /** Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data". */
8151
- jsonPath?: string;
8152
8455
  /** Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow. */
8153
8456
  willContinue?: boolean;
8154
8457
  }
@@ -8252,14 +8555,28 @@ export declare enum PhishBlockThreshold {
8252
8555
  BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH"
8253
8556
  }
8254
8557
 
8255
- /** The configuration for the prebuilt speaker to use. */
8558
+ /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
8559
+ export declare interface PointwiseMetricResult {
8560
+ /** Output only. Spec for custom output. */
8561
+ customOutput?: CustomOutput;
8562
+ /** Output only. Explanation for pointwise metric score. */
8563
+ explanation?: string;
8564
+ /** Output only. Pointwise metric score. */
8565
+ score?: number;
8566
+ }
8567
+
8568
+ /** Configuration for a prebuilt voice. */
8256
8569
  export declare interface PrebuiltVoiceConfig {
8257
- /** The name of the preset voice to use. */
8570
+ /** The name of the prebuilt voice to use. */
8258
8571
  voiceName?: string;
8259
8572
  }
8260
8573
 
8261
8574
  /** Statistics computed for datasets used for preference optimization. This data type is not supported in Gemini API. */
8262
8575
  export declare interface PreferenceOptimizationDataStats {
8576
+ /** Output only. A partial sample of the indices (starting from 1) of the dropped examples. */
8577
+ droppedExampleIndices?: string[];
8578
+ /** Output only. For each index in `dropped_example_indices`, the user-facing reason why the example was dropped. */
8579
+ droppedExampleReasons?: string[];
8263
8580
  /** Output only. Dataset distributions for scores variance per example. */
8264
8581
  scoreVariancePerExampleDistribution?: DatasetDistribution;
8265
8582
  /** Output only. Dataset distributions for scores. */
@@ -8416,6 +8733,12 @@ export declare interface RagRetrievalConfigRankingRankService {
8416
8733
  declare class RateLimitError extends APIError<429, Headers> {
8417
8734
  }
8418
8735
 
8736
+ /** Raw output. This data type is not supported in Gemini API. */
8737
+ export declare interface RawOutput {
8738
+ /** Output only. Raw output string. */
8739
+ rawOutput?: string[];
8740
+ }
8741
+
8419
8742
  /** A raw reference image.
8420
8743
 
8421
8744
  A raw reference image represents the base image to edit, provided by the user.
@@ -8717,12 +9040,23 @@ export declare interface RetrievalConfig {
8717
9040
  languageCode?: string;
8718
9041
  }
8719
9042
 
8720
- /** Metadata related to retrieval in the grounding flow. */
9043
+ /** Metadata returned to client when grounding is enabled. */
8721
9044
  export declare interface RetrievalMetadata {
8722
- /** Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search. */
9045
+ /** Optional. Score indicating how likely information from google
9046
+ search could help answer the prompt. The score is in the range [0, 1],
9047
+ where 0 is the least likely and 1 is the most likely. This score is only
9048
+ populated when google search grounding and dynamic retrieval is enabled.
9049
+ It will be compared to the threshold to determine whether to trigger
9050
+ Google search. */
8723
9051
  googleSearchDynamicRetrievalScore?: number;
8724
9052
  }
8725
9053
 
9054
+ /** Rouge metric value for an instance. This data type is not supported in Gemini API. */
9055
+ export declare interface RougeMetricValue {
9056
+ /** Output only. Rouge score. */
9057
+ score?: number;
9058
+ }
9059
+
8726
9060
  /** Safety attributes of a GeneratedImage or the user-provided prompt. */
8727
9061
  export declare interface SafetyAttributes {
8728
9062
  /** List of RAI categories. */
@@ -8741,31 +9075,31 @@ export declare enum SafetyFilterLevel {
8741
9075
  BLOCK_NONE = "BLOCK_NONE"
8742
9076
  }
8743
9077
 
8744
- /** Safety rating corresponding to the generated content. */
9078
+ /** A safety rating for a piece of content. The safety rating contains the harm category and the harm probability level. */
8745
9079
  export declare interface SafetyRating {
8746
- /** Output only. Indicates whether the content was filtered out because of this rating. */
9080
+ /** Output only. Indicates whether the content was blocked because of this rating. */
8747
9081
  blocked?: boolean;
8748
- /** Output only. Harm category. */
9082
+ /** Output only. The harm category of this rating. */
8749
9083
  category?: HarmCategory;
8750
9084
  /** Output only. The overwritten threshold for the safety category of Gemini 2.0 image out. If minors are detected in the output image, the threshold of each safety category will be overwritten if user sets a lower threshold. This field is not supported in Gemini API. */
8751
9085
  overwrittenThreshold?: HarmBlockThreshold;
8752
- /** Output only. Harm probability levels in the content. */
9086
+ /** Output only. The probability of harm for this category. */
8753
9087
  probability?: HarmProbability;
8754
- /** Output only. Harm probability score. This field is not supported in Gemini API. */
9088
+ /** Output only. The probability score of harm for this category. This field is not supported in Gemini API. */
8755
9089
  probabilityScore?: number;
8756
- /** Output only. Harm severity levels in the content. This field is not supported in Gemini API. */
9090
+ /** Output only. The severity of harm for this category. This field is not supported in Gemini API. */
8757
9091
  severity?: HarmSeverity;
8758
- /** Output only. Harm severity score. This field is not supported in Gemini API. */
9092
+ /** Output only. The severity score of harm for this category. This field is not supported in Gemini API. */
8759
9093
  severityScore?: number;
8760
9094
  }
8761
9095
 
8762
- /** Safety settings. */
9096
+ /** A safety setting that affects the safety-blocking behavior. A SafetySetting consists of a harm category and a threshold for that category. */
8763
9097
  export declare interface SafetySetting {
8764
- /** Required. Harm category. */
9098
+ /** Required. The harm category to be blocked. */
8765
9099
  category?: HarmCategory;
8766
- /** Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This field is not supported in Gemini API. */
9100
+ /** Optional. The method for blocking content. If not specified, the default behavior is to use the probability score. This field is not supported in Gemini API. */
8767
9101
  method?: HarmBlockMethod;
8768
- /** Required. The harm block threshold. */
9102
+ /** Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
8769
9103
  threshold?: HarmBlockThreshold;
8770
9104
  }
8771
9105
 
@@ -8831,49 +9165,49 @@ export declare enum Scale {
8831
9165
  object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
8832
9166
  be added in the future as needed. */
8833
9167
  export declare interface Schema {
8834
- /** Optional. The value should be validated against any (one or more) of the subschemas in the list. */
9168
+ /** Optional. The instance must be valid against any (one or more) of the subschemas listed in `any_of`. */
8835
9169
  anyOf?: Schema[];
8836
- /** Optional. Default value of the data. */
9170
+ /** Optional. Default value to use if the field is not specified. */
8837
9171
  default?: unknown;
8838
- /** Optional. The description of the data. */
9172
+ /** Optional. Description of the schema. */
8839
9173
  description?: string;
8840
- /** Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} */
9174
+ /** Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:["101", "201", "301"]}` */
8841
9175
  enum?: string[];
8842
- /** Optional. Example of the object. Will only populated when the object is the root. */
9176
+ /** Optional. Example of an instance of this schema. */
8843
9177
  example?: unknown;
8844
- /** Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc */
9178
+ /** Optional. The format of the data. For `NUMBER` type, format can be `float` or `double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` type, format can be `email`, `byte`, `date`, `date-time`, `password`, and other formats to further refine the data type. */
8845
9179
  format?: string;
8846
- /** Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY. */
9180
+ /** Optional. If type is `ARRAY`, `items` specifies the schema of elements in the array. */
8847
9181
  items?: Schema;
8848
- /** Optional. Maximum number of the elements for Type.ARRAY. */
9182
+ /** Optional. If type is `ARRAY`, `max_items` specifies the maximum number of items in an array. */
8849
9183
  maxItems?: string;
8850
- /** Optional. Maximum length of the Type.STRING */
9184
+ /** Optional. If type is `STRING`, `max_length` specifies the maximum length of the string. */
8851
9185
  maxLength?: string;
8852
- /** Optional. Maximum number of the properties for Type.OBJECT. */
9186
+ /** Optional. If type is `OBJECT`, `max_properties` specifies the maximum number of properties that can be provided. */
8853
9187
  maxProperties?: string;
8854
- /** Optional. Maximum value of the Type.INTEGER and Type.NUMBER */
9188
+ /** Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum allowed value. */
8855
9189
  maximum?: number;
8856
- /** Optional. Minimum number of the elements for Type.ARRAY. */
9190
+ /** Optional. If type is `ARRAY`, `min_items` specifies the minimum number of items in an array. */
8857
9191
  minItems?: string;
8858
- /** Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING */
9192
+ /** Optional. If type is `STRING`, `min_length` specifies the minimum length of the string. */
8859
9193
  minLength?: string;
8860
- /** Optional. Minimum number of the properties for Type.OBJECT. */
9194
+ /** Optional. If type is `OBJECT`, `min_properties` specifies the minimum number of properties that can be provided. */
8861
9195
  minProperties?: string;
8862
- /** Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER */
9196
+ /** Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum allowed value. */
8863
9197
  minimum?: number;
8864
- /** Optional. Indicates if the value may be null. */
9198
+ /** Optional. Indicates if the value of this field can be null. */
8865
9199
  nullable?: boolean;
8866
- /** Optional. Pattern of the Type.STRING to restrict a string to a regular expression. */
9200
+ /** Optional. If type is `STRING`, `pattern` specifies a regular expression that the string must match. */
8867
9201
  pattern?: string;
8868
- /** Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT. */
9202
+ /** Optional. If type is `OBJECT`, `properties` is a map of property names to schema definitions for each property of the object. */
8869
9203
  properties?: Record<string, Schema>;
8870
- /** Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties. */
9204
+ /** Optional. Order of properties displayed or used where order matters. This is not a standard field in OpenAPI specification, but can be used to control the order of properties. */
8871
9205
  propertyOrdering?: string[];
8872
- /** Optional. Required properties of Type.OBJECT. */
9206
+ /** Optional. If type is `OBJECT`, `required` lists the names of properties that must be present. */
8873
9207
  required?: string[];
8874
- /** Optional. The title of the Schema. */
9208
+ /** Optional. Title for the schema. */
8875
9209
  title?: string;
8876
- /** Optional. The type of the data. */
9210
+ /** Optional. Data type of the schema field. */
8877
9211
  type?: Type;
8878
9212
  }
8879
9213
 
@@ -8885,11 +9219,12 @@ export declare interface ScribbleImage {
8885
9219
  image?: Image_2;
8886
9220
  }
8887
9221
 
8888
- /** Google search entry point. */
9222
+ /** The entry point used to search for grounding sources. */
8889
9223
  export declare interface SearchEntryPoint {
8890
- /** Optional. Web content snippet that can be embedded in a web page or an app webview. */
9224
+ /** Optional. Web content snippet that can be embedded in a web page
9225
+ or an app webview. */
8891
9226
  renderedContent?: string;
8892
- /** Optional. Base64 encoded JSON representing array of tuple.
9227
+ /** Optional. JSON representing array of tuples.
8893
9228
  * @remarks Encoded as base64 string. */
8894
9229
  sdkBlob?: string;
8895
9230
  }
@@ -8903,15 +9238,21 @@ export declare interface SearchTypes {
8903
9238
  imageSearch?: ImageSearch;
8904
9239
  }
8905
9240
 
8906
- /** Segment of the content. */
9241
+ /** Segment of the content this support belongs to. */
8907
9242
  export declare interface Segment {
8908
- /** Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. */
9243
+ /** Output only. Start index in the given Part, measured in bytes.
9244
+
9245
+ Offset from the start of the Part, inclusive, starting at zero. */
9246
+ startIndex?: number;
9247
+ /** Output only. End index in the given Part, measured in bytes.
9248
+
9249
+ Offset from the start of the Part, exclusive, starting at zero. */
8909
9250
  endIndex?: number;
8910
- /** Output only. The index of a Part object within its parent Content object. */
9251
+ /** Output only. The index of a Part object within its parent
9252
+ Content object. */
8911
9253
  partIndex?: number;
8912
- /** Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. */
8913
- startIndex?: number;
8914
- /** Output only. The text corresponding to the segment from the response. */
9254
+ /** Output only. The text corresponding to the segment from the
9255
+ response. */
8915
9256
  text?: string;
8916
9257
  }
8917
9258
 
@@ -9187,7 +9528,7 @@ export declare interface SlidingWindow {
9187
9528
  targetTokens?: string;
9188
9529
  }
9189
9530
 
9190
- /** Configuration for a single speaker in a multi speaker setup. */
9531
+ /** Configuration for a single speaker in a multi-speaker setup. */
9191
9532
  export declare interface SpeakerVoiceConfig {
9192
9533
  /** Required. The name of the speaker. This should be the same as the speaker name used in the prompt. */
9193
9534
  speaker?: string;
@@ -9198,7 +9539,7 @@ export declare interface SpeakerVoiceConfig {
9198
9539
  export declare interface SpeechConfig {
9199
9540
  /** Configuration for the voice of the response. */
9200
9541
  voiceConfig?: VoiceConfig;
9201
- /** Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. */
9542
+ /** Optional. The language code (ISO 639-1) for the speech synthesis. */
9202
9543
  languageCode?: string;
9203
9544
  /** The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`. */
9204
9545
  multiSpeakerVoiceConfig?: MultiSpeakerVoiceConfig;
@@ -9640,16 +9981,19 @@ export declare interface Tool {
9640
9981
  fileSearch?: FileSearch;
9641
9982
  /** Enables the model to execute Google Search as part of generation. */
9642
9983
  googleSearch?: GoogleSearch;
9984
+ /** Optional. Tool that allows grounding the model's response with
9985
+ geospatial context related to the user's query. */
9986
+ googleMaps?: GoogleMaps;
9643
9987
  /** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */
9644
9988
  codeExecution?: ToolCodeExecution;
9645
9989
  /** Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. This field is not supported in Gemini API. */
9646
9990
  enterpriseWebSearch?: EnterpriseWebSearch;
9647
9991
  /** Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 512 function declarations can be provided. */
9648
9992
  functionDeclarations?: FunctionDeclaration[];
9649
- /** Optional. GoogleMaps tool type. Tool to support Google Maps in Model. */
9650
- googleMaps?: GoogleMaps;
9651
9993
  /** Optional. Specialized retrieval tool that is powered by Google Search. */
9652
9994
  googleSearchRetrieval?: GoogleSearchRetrieval;
9995
+ /** Optional. If specified, Vertex AI will use Parallel.ai to search for information to answer user queries. The search results will be grounded on Parallel.ai and presented to the model for response generation. This field is not supported in Gemini API. */
9996
+ parallelAiSearch?: ToolParallelAiSearch;
9653
9997
  /** Optional. Tool to support URL context retrieval. */
9654
9998
  urlContext?: UrlContext;
9655
9999
  /** Optional. MCP Servers to connect to. This field is not supported in Vertex AI. */
@@ -9771,6 +10115,14 @@ export declare interface ToolConfig {
9771
10115
 
9772
10116
  export declare type ToolListUnion = ToolUnion[];
9773
10117
 
10118
+ /** ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. This data type is not supported in Gemini API. */
10119
+ export declare interface ToolParallelAiSearch {
10120
+ /** Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details. */
10121
+ apiKey?: string;
10122
+ /** Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only `source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } } */
10123
+ customConfigs?: Record<string, unknown>;
10124
+ }
10125
+
9774
10126
  export declare type ToolUnion = Tool | CallableTool;
9775
10127
 
9776
10128
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -9783,6 +10135,14 @@ export declare enum TrafficType {
9783
10135
  * The request was processed using Pay-As-You-Go quota.
9784
10136
  */
9785
10137
  ON_DEMAND = "ON_DEMAND",
10138
+ /**
10139
+ * Type for Priority Pay-As-You-Go traffic.
10140
+ */
10141
+ ON_DEMAND_PRIORITY = "ON_DEMAND_PRIORITY",
10142
+ /**
10143
+ * Type for Flex traffic.
10144
+ */
10145
+ ON_DEMAND_FLEX = "ON_DEMAND_FLEX",
9786
10146
  /**
9787
10147
  * Type for Provisioned Throughput traffic.
9788
10148
  */
@@ -9857,7 +10217,7 @@ export declare interface TuningDataset {
9857
10217
 
9858
10218
  /** The tuning data statistic values for TuningJob. This data type is not supported in Gemini API. */
9859
10219
  export declare interface TuningDataStats {
9860
- /** Output only. Statistics for distillation. */
10220
+ /** Output only. Statistics for distillation prompt dataset. These statistics do not include the responses sampled from the teacher model. */
9861
10221
  distillationDataStats?: DistillationDataStats;
9862
10222
  /** Output only. Statistics for preference optimization. */
9863
10223
  preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;
@@ -9913,8 +10273,12 @@ export declare interface TuningJob {
9913
10273
  partnerModelTuningSpec?: PartnerModelTuningSpec;
9914
10274
  /** Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the base_model field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models. */
9915
10275
  customBaseModel?: string;
10276
+ /** Output only. Evaluation runs for the Tuning Job. */
10277
+ evaluateDatasetRuns?: EvaluateDatasetRun[];
9916
10278
  /** Output only. The Experiment associated with this TuningJob. */
9917
10279
  experiment?: string;
10280
+ /** Tuning Spec for Full Fine Tuning. */
10281
+ fullFineTuningSpec?: FullFineTuningSpec;
9918
10282
  /** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
9919
10283
  labels?: Record<string, string>;
9920
10284
  /** Optional. Cloud Storage path to the directory where tuning job outputs are written to. This field is only available and required for open source models. */
@@ -9925,10 +10289,40 @@ export declare interface TuningJob {
9925
10289
  serviceAccount?: string;
9926
10290
  /** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. For continuous tuning, tuned_model_display_name will by default use the same display name as the pre-tuned model. If a new display name is provided, the tuning job will create a new model instead of a new version. */
9927
10291
  tunedModelDisplayName?: string;
10292
+ /** Output only. The detail state of the tuning job (while the overall `JobState` is running). */
10293
+ tuningJobState?: TuningJobState;
9928
10294
  /** Tuning Spec for Veo Tuning. */
9929
10295
  veoTuningSpec?: VeoTuningSpec;
9930
10296
  }
9931
10297
 
10298
+ /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
10299
+ export declare enum TuningJobState {
10300
+ /**
10301
+ * Default tuning job state.
10302
+ */
10303
+ TUNING_JOB_STATE_UNSPECIFIED = "TUNING_JOB_STATE_UNSPECIFIED",
10304
+ /**
10305
+ * Tuning job is waiting for job quota.
10306
+ */
10307
+ TUNING_JOB_STATE_WAITING_FOR_QUOTA = "TUNING_JOB_STATE_WAITING_FOR_QUOTA",
10308
+ /**
10309
+ * Tuning job is validating the dataset.
10310
+ */
10311
+ TUNING_JOB_STATE_PROCESSING_DATASET = "TUNING_JOB_STATE_PROCESSING_DATASET",
10312
+ /**
10313
+ * Tuning job is waiting for hardware capacity.
10314
+ */
10315
+ TUNING_JOB_STATE_WAITING_FOR_CAPACITY = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY",
10316
+ /**
10317
+ * Tuning job is running.
10318
+ */
10319
+ TUNING_JOB_STATE_TUNING = "TUNING_JOB_STATE_TUNING",
10320
+ /**
10321
+ * Tuning job is doing some post processing steps.
10322
+ */
10323
+ TUNING_JOB_STATE_POST_PROCESSING = "TUNING_JOB_STATE_POST_PROCESSING"
10324
+ }
10325
+
9932
10326
  /** Enum representing the tuning method. */
9933
10327
  export declare enum TuningMethod {
9934
10328
  /**
@@ -10106,7 +10500,7 @@ export declare enum TurnCoverage {
10106
10500
  TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
10107
10501
  }
10108
10502
 
10109
- /** The type of the data. */
10503
+ /** Data type of the schema field. */
10110
10504
  export declare enum Type {
10111
10505
  /**
10112
10506
  * Not specified, should not be used.
@@ -10160,13 +10554,14 @@ declare namespace types {
10160
10554
  FunctionResponseScheduling,
10161
10555
  Type,
10162
10556
  PhishBlockThreshold,
10163
- ApiSpec,
10164
10557
  AuthType,
10165
10558
  HttpElementLocation,
10559
+ ApiSpec,
10166
10560
  Behavior,
10167
10561
  DynamicRetrievalConfigMode,
10168
10562
  FunctionCallingConfigMode,
10169
10563
  ThinkingLevel,
10564
+ PersonGeneration,
10170
10565
  HarmCategory,
10171
10566
  HarmBlockMethod,
10172
10567
  HarmBlockThreshold,
@@ -10181,6 +10576,9 @@ declare namespace types {
10181
10576
  TuningMode,
10182
10577
  AdapterSize,
10183
10578
  JobState,
10579
+ TuningJobState,
10580
+ AggregationMetric,
10581
+ PairwiseChoice,
10184
10582
  TuningTask,
10185
10583
  PartMediaResolutionLevel,
10186
10584
  ResourceScope,
@@ -10189,7 +10587,6 @@ declare namespace types {
10189
10587
  ProminentPeople,
10190
10588
  EmbeddingApiType,
10191
10589
  SafetyFilterLevel,
10192
- PersonGeneration,
10193
10590
  ImagePromptLanguage,
10194
10591
  MaskReferenceMode,
10195
10592
  ControlReferenceType,
@@ -10239,14 +10636,15 @@ declare namespace types {
10239
10636
  SearchTypes,
10240
10637
  Interval,
10241
10638
  GoogleSearch,
10242
- ApiAuthApiKeyConfig,
10243
- ApiAuth,
10244
10639
  ApiKeyConfig,
10245
10640
  AuthConfigGoogleServiceAccountConfig,
10246
10641
  AuthConfigHttpBasicAuthConfig,
10247
10642
  AuthConfigOauthConfig,
10248
10643
  AuthConfigOidcConfig,
10249
10644
  AuthConfig,
10645
+ GoogleMaps,
10646
+ ApiAuthApiKeyConfig,
10647
+ ApiAuth,
10250
10648
  ExternalApiElasticSearchParams,
10251
10649
  ExternalApiSimpleSearchParams,
10252
10650
  ExternalApi,
@@ -10264,9 +10662,9 @@ declare namespace types {
10264
10662
  ToolCodeExecution,
10265
10663
  EnterpriseWebSearch,
10266
10664
  FunctionDeclaration,
10267
- GoogleMaps,
10268
10665
  DynamicRetrievalConfig,
10269
10666
  GoogleSearchRetrieval,
10667
+ ToolParallelAiSearch,
10270
10668
  UrlContext,
10271
10669
  StreamableHttpTransport,
10272
10670
  McpServer,
@@ -10283,6 +10681,7 @@ declare namespace types {
10283
10681
  SpeechConfig,
10284
10682
  AutomaticFunctionCallingConfig,
10285
10683
  ThinkingConfig,
10684
+ ImageConfigImageOutputOptions,
10286
10685
  ImageConfig,
10287
10686
  GenerationConfigRoutingConfigAutoRoutingMode,
10288
10687
  GenerationConfigRoutingConfigManualRoutingMode,
@@ -10413,6 +10812,23 @@ declare namespace types {
10413
10812
  TuningDataStats,
10414
10813
  EncryptionSpec,
10415
10814
  PartnerModelTuningSpec,
10815
+ BleuMetricValue,
10816
+ CustomCodeExecutionResult,
10817
+ ExactMatchMetricValue,
10818
+ RawOutput,
10819
+ CustomOutput,
10820
+ PairwiseMetricResult,
10821
+ PointwiseMetricResult,
10822
+ RougeMetricValue,
10823
+ AggregationResult,
10824
+ BigQuerySource,
10825
+ GcsSource,
10826
+ EvaluationDataset,
10827
+ AggregationOutput,
10828
+ OutputInfo,
10829
+ EvaluateDatasetResponse,
10830
+ EvaluateDatasetRun,
10831
+ FullFineTuningSpec,
10416
10832
  VeoHyperParameters,
10417
10833
  VeoTuningSpec,
10418
10834
  TuningJob,
@@ -10916,11 +11332,15 @@ declare interface URLContextCallContent {
10916
11332
  */
10917
11333
  arguments: URLContextCallArguments;
10918
11334
  type: 'url_context_call';
11335
+ /**
11336
+ * A signature hash for backend validation.
11337
+ */
11338
+ signature?: string;
10919
11339
  }
10920
11340
 
10921
- /** Metadata related to url context retrieval tool. */
11341
+ /** Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL. */
10922
11342
  export declare interface UrlContextMetadata {
10923
- /** Output only. List of url context. */
11343
+ /** Output only. A list of URL metadata, with one entry for each URL retrieved by the tool. */
10924
11344
  urlMetadata?: UrlMetadata[];
10925
11345
  }
10926
11346
 
@@ -10956,31 +11376,31 @@ declare interface URLContextResultContent {
10956
11376
  */
10957
11377
  is_error?: boolean;
10958
11378
  /**
10959
- * The signature of the URL context result.
11379
+ * A signature hash for backend validation.
10960
11380
  */
10961
11381
  signature?: string;
10962
11382
  }
10963
11383
 
10964
- /** Context of the a single url retrieval. */
11384
+ /** The metadata for a single URL retrieval. */
10965
11385
  export declare interface UrlMetadata {
10966
- /** Retrieved url by the tool. */
11386
+ /** The URL retrieved by the tool. */
10967
11387
  retrievedUrl?: string;
10968
- /** Status of the url retrieval. */
11388
+ /** The status of the URL retrieval. */
10969
11389
  urlRetrievalStatus?: UrlRetrievalStatus;
10970
11390
  }
10971
11391
 
10972
- /** Status of the url retrieval. */
11392
+ /** The status of the URL retrieval. */
10973
11393
  export declare enum UrlRetrievalStatus {
10974
11394
  /**
10975
11395
  * Default value. This value is unused.
10976
11396
  */
10977
11397
  URL_RETRIEVAL_STATUS_UNSPECIFIED = "URL_RETRIEVAL_STATUS_UNSPECIFIED",
10978
11398
  /**
10979
- * Url retrieval is successful.
11399
+ * The URL was retrieved successfully.
10980
11400
  */
10981
11401
  URL_RETRIEVAL_STATUS_SUCCESS = "URL_RETRIEVAL_STATUS_SUCCESS",
10982
11402
  /**
10983
- * Url retrieval is failed due to error.
11403
+ * The URL retrieval failed.
10984
11404
  */
10985
11405
  URL_RETRIEVAL_STATUS_ERROR = "URL_RETRIEVAL_STATUS_ERROR",
10986
11406
  /**
@@ -11146,6 +11566,8 @@ export declare interface VeoHyperParameters {
11146
11566
  learningRateMultiplier?: number;
11147
11567
  /** Optional. The tuning task. Either I2V or T2V. */
11148
11568
  tuningTask?: TuningTask;
11569
+ /** Optional. The ratio of Google internal dataset to use in the training mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal dataset and 80% of user dataset will be used for training. If not set, the default value is 0.1. */
11570
+ veoDataMixtureRatio?: number;
11149
11571
  }
11150
11572
 
11151
11573
  /** Tuning Spec for Veo Model Tuning. This data type is not supported in Gemini API. */
@@ -11313,11 +11735,11 @@ export declare enum VideoGenerationReferenceType {
11313
11735
  STYLE = "STYLE"
11314
11736
  }
11315
11737
 
11316
- /** Metadata describes the input video content. */
11738
+ /** Provides metadata for a video, including the start and end offsets for clipping and the frame rate. */
11317
11739
  export declare interface VideoMetadata {
11318
11740
  /** Optional. The end offset of the video. */
11319
11741
  endOffset?: string;
11320
- /** Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]. */
11742
+ /** Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0]. */
11321
11743
  fps?: number;
11322
11744
  /** Optional. The start offset of the video. */
11323
11745
  startOffset?: string;
@@ -11353,7 +11775,7 @@ export declare enum VoiceActivityType {
11353
11775
  export declare interface VoiceConfig {
11354
11776
  /** If true, the model will use a replicated voice for the response. */
11355
11777
  replicatedVoiceConfig?: ReplicatedVoiceConfig;
11356
- /** The configuration for the prebuilt voice to use. */
11778
+ /** The configuration for a prebuilt voice. */
11357
11779
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
11358
11780
  }
11359
11781