@google/genai 1.45.0 → 1.47.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.
@@ -833,12 +833,16 @@ declare interface CitationMetadata {
833
833
  citations?: Citation[];
834
834
  }
835
835
 
836
- /** Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and always follows a `part` containing the [ExecutableCode]. */
836
+ /** Result of executing the `ExecutableCode`.
837
+
838
+ Generated only when the `CodeExecution` tool is used. */
837
839
  declare interface CodeExecutionResult {
838
840
  /** Required. Outcome of the code execution. */
839
841
  outcome?: Outcome;
840
842
  /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
841
843
  output?: string;
844
+ /** The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. */
845
+ id?: string;
842
846
  }
843
847
 
844
848
  /** Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API. */
@@ -1368,7 +1372,7 @@ declare interface CreateTuningJobConfig {
1368
1372
  preTunedModelCheckpointId?: string;
1369
1373
  /** Adapter size for tuning. */
1370
1374
  adapterSize?: AdapterSize;
1371
- /** Tuning mode for SFT tuning. */
1375
+ /** Tuning mode for tuning. */
1372
1376
  tuningMode?: TuningMode;
1373
1377
  /** Custom base model for tuning. This is only supported for OSS models in Vertex. */
1374
1378
  customBaseModel?: string;
@@ -1669,7 +1673,7 @@ declare interface DistillationDataStats {
1669
1673
  trainingDatasetStats?: DatasetStats;
1670
1674
  }
1671
1675
 
1672
- /** Hyperparameters for Distillation. This data type is not supported in Gemini API. */
1676
+ /** Hyperparameters for distillation. */
1673
1677
  declare interface DistillationHyperParameters {
1674
1678
  /** Optional. Adapter size for distillation. */
1675
1679
  adapterSize?: AdapterSize;
@@ -1677,6 +1681,21 @@ declare interface DistillationHyperParameters {
1677
1681
  epochCount?: string;
1678
1682
  /** Optional. Multiplier for adjusting the default learning rate. */
1679
1683
  learningRateMultiplier?: number;
1684
+ /** The batch size hyperparameter for tuning.
1685
+ This is only supported for OSS models in Vertex. */
1686
+ batchSize?: number;
1687
+ /** The learning rate for tuning. OSS models only. */
1688
+ learningRate?: number;
1689
+ }
1690
+
1691
+ /** Spec for creating a distilled dataset in Vertex Dataset. This data type is not supported in Gemini API. */
1692
+ declare interface DistillationSamplingSpec {
1693
+ /** Optional. The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
1694
+ baseTeacherModel?: string;
1695
+ /** Optional. The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
1696
+ tunedTeacherModelSource?: string;
1697
+ /** Optional. Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file. */
1698
+ validationDatasetUri?: string;
1680
1699
  }
1681
1700
 
1682
1701
  /** Distillation tuning spec for tuning. */
@@ -1697,20 +1716,21 @@ declare interface DistillationSpec {
1697
1716
  tunedTeacherModelSource?: string;
1698
1717
  /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
1699
1718
  validationDatasetUri?: string;
1719
+ /** Tuning mode for tuning. */
1720
+ tuningMode?: TuningMode;
1700
1721
  }
1701
1722
 
1702
1723
  /** A Document is a collection of Chunks. */
1703
1724
  declare interface Document_2 {
1704
- /** The resource name of the Document.
1705
- Example: fileSearchStores/file-search-store-foo/documents/documents-bar */
1725
+ /** Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` */
1706
1726
  name?: string;
1707
- /** The human-readable display name for the Document. */
1727
+ /** Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation". */
1708
1728
  displayName?: string;
1709
- /** The current state of the Document. */
1729
+ /** Output only. Current state of the `Document`. */
1710
1730
  state?: DocumentState;
1711
- /** The size of the Document in bytes. */
1731
+ /** Output only. The size of raw bytes ingested into the Document. */
1712
1732
  sizeBytes?: string;
1713
- /** The MIME type of the Document. */
1733
+ /** Output only. The mime type of the Document. */
1714
1734
  mimeType?: string;
1715
1735
  /** Output only. The Timestamp of when the `Document` was created. */
1716
1736
  createTime?: string;
@@ -1720,11 +1740,23 @@ declare interface Document_2 {
1720
1740
  updateTime?: string;
1721
1741
  }
1722
1742
 
1723
- /** State for the lifecycle of a Document. */
1743
+ /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
1724
1744
  declare enum DocumentState {
1745
+ /**
1746
+ * The default value. This value is used if the state is omitted.
1747
+ */
1725
1748
  STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
1749
+ /**
1750
+ * Some `Chunks` of the `Document` are being processed (embedding and vector storage).
1751
+ */
1726
1752
  STATE_PENDING = "STATE_PENDING",
1753
+ /**
1754
+ * All `Chunks` of the `Document` is processed and available for querying.
1755
+ */
1727
1756
  STATE_ACTIVE = "STATE_ACTIVE",
1757
+ /**
1758
+ * Some `Chunks` of the `Document` failed processing.
1759
+ */
1728
1760
  STATE_FAILED = "STATE_FAILED"
1729
1761
  }
1730
1762
 
@@ -2066,7 +2098,7 @@ declare interface EvaluateDatasetRun {
2066
2098
  evaluateDatasetResponse?: EvaluateDatasetResponse;
2067
2099
  /** Output only. The resource name of the evaluation run. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run_id}`. */
2068
2100
  evaluationRun?: string;
2069
- /** Output only. The operation ID of the evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation_id}`. */
2101
+ /** Output only. Deprecated: The updated architecture uses evaluation_run instead. */
2070
2102
  operationName?: string;
2071
2103
  }
2072
2104
 
@@ -2084,12 +2116,18 @@ declare interface ExactMatchMetricValue {
2084
2116
  score?: number;
2085
2117
  }
2086
2118
 
2087
- /** 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. */
2119
+ /** Model-generated code executed server-side, results returned to the model.
2120
+
2121
+ Only generated when using the `CodeExecution` tool, in which the code will
2122
+ be automatically executed, and a corresponding `CodeExecutionResult` will
2123
+ also be generated. */
2088
2124
  declare interface ExecutableCode {
2089
2125
  /** Required. The code to be executed. */
2090
2126
  code?: string;
2091
2127
  /** Required. Programming language of the `code`. */
2092
2128
  language?: Language;
2129
+ /** Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. */
2130
+ id?: string;
2093
2131
  }
2094
2132
 
2095
2133
  /** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. This data type is not supported in Gemini API. */
@@ -2193,14 +2231,13 @@ declare interface FileData {
2193
2231
  mimeType?: string;
2194
2232
  }
2195
2233
 
2196
- /** Tool to retrieve knowledge from the File Search Stores. */
2234
+ /** The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. This data type is not supported in Vertex AI. */
2197
2235
  declare interface FileSearch {
2198
- /** The names of the file_search_stores to retrieve from.
2199
- Example: `fileSearchStores/my-file-search-store-123` */
2236
+ /** Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` */
2200
2237
  fileSearchStoreNames?: string[];
2201
- /** The number of file search retrieval chunks to retrieve. */
2238
+ /** Optional. The number of semantic retrieval chunks to retrieve. */
2202
2239
  topK?: number;
2203
- /** Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression. */
2240
+ /** Optional. Metadata filter to apply to the semantic retrieval documents and chunks. */
2204
2241
  metadataFilter?: string;
2205
2242
  }
2206
2243
 
@@ -2693,6 +2730,8 @@ declare interface GenerateContentConfig {
2693
2730
  service. If supplied, safety_settings must not be supplied.
2694
2731
  */
2695
2732
  modelArmorConfig?: ModelArmorConfig;
2733
+ /** The service tier to use for the request. For example, SERVICE_TIER_FLEX. */
2734
+ serviceTier?: ServiceTier;
2696
2735
  }
2697
2736
 
2698
2737
  /** Config for models.generate_content parameters. */
@@ -2729,6 +2768,8 @@ declare class GenerateContentResponse {
2729
2768
  responseId?: string;
2730
2769
  /** Usage metadata about the response(s). */
2731
2770
  usageMetadata?: GenerateContentResponseUsageMetadata;
2771
+ /** Output only. The current model status of this model. This field is not supported in Vertex AI. */
2772
+ modelStatus?: ModelStatus;
2732
2773
  /**
2733
2774
  * Returns the concatenation of all text parts from the first candidate in the response.
2734
2775
  *
@@ -3058,6 +3099,8 @@ declare interface GenerateVideosConfig {
3058
3099
  mask?: VideoGenerationMask;
3059
3100
  /** Compression quality of the generated videos. */
3060
3101
  compressionQuality?: VideoCompressionQuality;
3102
+ /** User specified labels to track billing usage. */
3103
+ labels?: Record<string, string>;
3061
3104
  }
3062
3105
 
3063
3106
  /** A video generation operation. */
@@ -3074,7 +3117,6 @@ declare class GenerateVideosOperation implements Operation<GenerateVideosRespons
3074
3117
  response?: GenerateVideosResponse;
3075
3118
  /**
3076
3119
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
3077
- * @internal
3078
3120
  */
3079
3121
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
3080
3122
  /** The full HTTP response. */
@@ -3394,9 +3436,9 @@ declare interface GoogleRpcStatus {
3394
3436
  message?: string;
3395
3437
  }
3396
3438
 
3397
- /** Tool to support web search. */
3439
+ /** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
3398
3440
  declare interface GoogleSearch {
3399
- /** Different types of search that can be enabled on the GoogleSearch tool. */
3441
+ /** Optional. The set of search types to enable. If not set, web search is enabled by default. */
3400
3442
  searchTypes?: SearchTypes;
3401
3443
  /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
3402
3444
  blockingConfidence?: PhishBlockThreshold;
@@ -3428,9 +3470,7 @@ declare interface GoogleTypeDate {
3428
3470
  is enabled, the model returns a `GroundingChunk` that contains a reference to
3429
3471
  the source of the information. */
3430
3472
  declare interface GroundingChunk {
3431
- /** A grounding chunk from an image search result. See the `Image`
3432
- message for details.
3433
- */
3473
+ /** A grounding chunk from an image search result. See the `Image` message for details. */
3434
3474
  image?: GroundingChunkImage;
3435
3475
  /** A `Maps` chunk is a piece of evidence that comes from Google Maps.
3436
3476
 
@@ -3438,17 +3478,25 @@ declare interface GroundingChunk {
3438
3478
  reviews. This is used to provide the user with rich, location-based
3439
3479
  information. */
3440
3480
  maps?: GroundingChunkMaps;
3441
- /** 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. */
3481
+ /** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
3442
3482
  retrievedContext?: GroundingChunkRetrievedContext;
3443
3483
  /** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
3444
3484
  web?: GroundingChunkWeb;
3445
3485
  }
3446
3486
 
3447
- /** A piece of evidence that comes from an image search result.
3487
+ /** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
3488
+ declare interface GroundingChunkCustomMetadata {
3489
+ /** The key of the metadata. */
3490
+ key?: string;
3491
+ /** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
3492
+ numericValue?: number;
3493
+ /** Optional. A list of string values for the metadata. */
3494
+ stringListValue?: GroundingChunkStringList;
3495
+ /** Optional. The string value of the metadata. */
3496
+ stringValue?: string;
3497
+ }
3448
3498
 
3449
- It contains the URI of the image search result and the URI of the image.
3450
- This is used to provide the user with a link to the source of the
3451
- information. */
3499
+ /** An `Image` chunk is a piece of evidence that comes from an image search result. It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information. */
3452
3500
  declare interface GroundingChunkImage {
3453
3501
  /** The URI of the image search result page. */
3454
3502
  sourceUri?: string;
@@ -3480,6 +3528,8 @@ declare interface GroundingChunkMaps {
3480
3528
  title?: string;
3481
3529
  /** The URI of the place. */
3482
3530
  uri?: string;
3531
+ /** Output only. Route information. */
3532
+ route?: GroundingChunkMapsRoute;
3483
3533
  }
3484
3534
 
3485
3535
  /** The sources that were used to generate the place answer.
@@ -3523,11 +3573,21 @@ declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
3523
3573
  title?: string;
3524
3574
  }
3525
3575
 
3526
- /** 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. */
3576
+ /** Route information from Google Maps. This data type is not supported in Gemini API. */
3577
+ declare interface GroundingChunkMapsRoute {
3578
+ /** The total distance of the route, in meters. */
3579
+ distanceMeters?: number;
3580
+ /** The total duration of the route. */
3581
+ duration?: string;
3582
+ /** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
3583
+ encodedPolyline?: string;
3584
+ }
3585
+
3586
+ /** 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. */
3527
3587
  declare interface GroundingChunkRetrievedContext {
3528
- /** 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}`. */
3588
+ /** 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}`. This field is not supported in Gemini API. */
3529
3589
  documentName?: string;
3530
- /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
3590
+ /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. This field is not supported in Gemini API. */
3531
3591
  ragChunk?: RagChunk;
3532
3592
  /** The content of the retrieved data source. */
3533
3593
  text?: string;
@@ -3535,6 +3595,16 @@ declare interface GroundingChunkRetrievedContext {
3535
3595
  title?: string;
3536
3596
  /** The URI of the retrieved data source. */
3537
3597
  uri?: string;
3598
+ /** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
3599
+ customMetadata?: GroundingChunkCustomMetadata[];
3600
+ /** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
3601
+ fileSearchStore?: string;
3602
+ }
3603
+
3604
+ /** A list of string values. This data type is not supported in Vertex AI. */
3605
+ declare interface GroundingChunkStringList {
3606
+ /** The string values of the list. */
3607
+ values?: string[];
3538
3608
  }
3539
3609
 
3540
3610
  /** 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. */
@@ -3549,10 +3619,7 @@ declare interface GroundingChunkWeb {
3549
3619
 
3550
3620
  /** Information for various kinds of grounding. */
3551
3621
  declare interface GroundingMetadata {
3552
- /** Optional. The image search queries that were used to generate the
3553
- content. This field is populated only when the grounding source is Google
3554
- Search with the Image Search search_type enabled.
3555
- */
3622
+ /** Optional. The image search queries that were used to generate the content. This field is populated only when the grounding source is Google Search with the Image Search search_type enabled. */
3556
3623
  imageSearchQueries?: string[];
3557
3624
  /** A list of supporting references retrieved from the grounding
3558
3625
  source. This field is populated when the grounding source is Google
@@ -3568,7 +3635,7 @@ declare interface GroundingMetadata {
3568
3635
  searchEntryPoint?: SearchEntryPoint;
3569
3636
  /** Web search queries for the following-up web search. */
3570
3637
  webSearchQueries?: string[];
3571
- /** 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. */
3638
+ /** 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. */
3572
3639
  googleMapsWidgetContextToken?: string;
3573
3640
  /** 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. */
3574
3641
  retrievalQueries?: string[];
@@ -3598,6 +3665,8 @@ declare interface GroundingSupport {
3598
3665
  groundingChunkIndices?: number[];
3599
3666
  /** Segment of the content this support belongs to. */
3600
3667
  segment?: Segment;
3668
+ /** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
3669
+ renderedParts?: number[];
3601
3670
  }
3602
3671
 
3603
3672
  /** 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. */
@@ -3879,11 +3948,7 @@ declare interface ImageConfig {
3879
3948
  /** Controls the generation of people. Supported values are:
3880
3949
  ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
3881
3950
  personGeneration?: string;
3882
- /** Controls whether prominent people (celebrities)
3883
- generation is allowed. If used with personGeneration, personGeneration
3884
- enum would take precedence. For instance, if ALLOW_NONE is set, all person
3885
- generation would be blocked. If this field is unspecified, the default
3886
- behavior is to allow prominent people. */
3951
+ /** Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API. */
3887
3952
  prominentPeople?: ProminentPeople;
3888
3953
  /** MIME type of the generated image. This field is not
3889
3954
  supported in Gemini API. */
@@ -3891,7 +3956,7 @@ declare interface ImageConfig {
3891
3956
  /** Compression quality of the generated image (for
3892
3957
  ``image/jpeg`` only). This field is not supported in Gemini API. */
3893
3958
  outputCompressionQuality?: number;
3894
- /** Optional. The image output format for generated images. */
3959
+ /** Optional. The image output format for generated images. This field is not supported in Gemini API. */
3895
3960
  imageOutputOptions?: ImageConfigImageOutputOptions;
3896
3961
  }
3897
3962
 
@@ -3974,7 +4039,6 @@ declare class ImportFileOperation implements Operation<ImportFileResponse> {
3974
4039
  response?: ImportFileResponse;
3975
4040
  /**
3976
4041
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
3977
- * @internal
3978
4042
  */
3979
4043
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
3980
4044
  /** The full HTTP response. */
@@ -4003,12 +4067,12 @@ declare class ImportFileResponse {
4003
4067
 
4004
4068
  /** Config for `inlined_embedding_responses` parameter. */
4005
4069
  declare class InlinedEmbedContentResponse {
4006
- /** The response to the request.
4007
- */
4070
+ /** Output only. The response to the request. */
4008
4071
  response?: SingleEmbedContentResponse;
4009
- /** The error encountered while processing the request.
4010
- */
4072
+ /** Output only. The error encountered while processing the request. */
4011
4073
  error?: JobError;
4074
+ /** Output only. The metadata associated with the request. */
4075
+ metadata?: Record<string, unknown>;
4012
4076
  }
4013
4077
 
4014
4078
  /** Config for inlined request. */
@@ -4272,6 +4336,7 @@ declare interface ListFileSearchStoresParameters {
4272
4336
  declare class ListFileSearchStoresResponse {
4273
4337
  /** Used to retain the full HTTP response. */
4274
4338
  sdkHttpResponse?: HttpResponse;
4339
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */
4275
4340
  nextPageToken?: string;
4276
4341
  /** The returned file search stores. */
4277
4342
  fileSearchStores?: FileSearchStore[];
@@ -4958,6 +5023,8 @@ declare interface LogprobsResult {
4958
5023
  chosenCandidates?: LogprobsResultCandidate[];
4959
5024
  /** 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. */
4960
5025
  topCandidates?: LogprobsResultTopCandidates[];
5026
+ /** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
5027
+ logProbabilitySum?: number;
4961
5028
  }
4962
5029
 
4963
5030
  /** A single token and its associated log probability. */
@@ -5173,6 +5240,52 @@ declare interface ModelSelectionConfig {
5173
5240
  featureSelectionPreference?: FeatureSelectionPreference;
5174
5241
  }
5175
5242
 
5243
+ /** The stage of the underlying model. This enum is not supported in Vertex AI. */
5244
+ declare enum ModelStage {
5245
+ /**
5246
+ * Unspecified model stage.
5247
+ */
5248
+ MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
5249
+ /**
5250
+ * The underlying model is subject to lots of tunings.
5251
+ */
5252
+ UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
5253
+ /**
5254
+ * Models in this stage are for experimental purposes only.
5255
+ */
5256
+ EXPERIMENTAL = "EXPERIMENTAL",
5257
+ /**
5258
+ * Models in this stage are more mature than experimental models.
5259
+ */
5260
+ PREVIEW = "PREVIEW",
5261
+ /**
5262
+ * Models in this stage are considered stable and ready for production use.
5263
+ */
5264
+ STABLE = "STABLE",
5265
+ /**
5266
+ * If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.
5267
+ */
5268
+ LEGACY = "LEGACY",
5269
+ /**
5270
+ * Models in this stage are deprecated. These models cannot be used.
5271
+ */
5272
+ DEPRECATED = "DEPRECATED",
5273
+ /**
5274
+ * Models in this stage are retired. These models cannot be used.
5275
+ */
5276
+ RETIRED = "RETIRED"
5277
+ }
5278
+
5279
+ /** The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. This data type is not supported in Vertex AI. */
5280
+ declare interface ModelStatus {
5281
+ /** A message explaining the model status. */
5282
+ message?: string;
5283
+ /** The stage of the underlying model. */
5284
+ modelStage?: ModelStage;
5285
+ /** The time at which the model will be retired. */
5286
+ retirementTime?: string;
5287
+ }
5288
+
5176
5289
  /**
5177
5290
  * Moves values from source paths to destination paths.
5178
5291
  *
@@ -5243,8 +5356,8 @@ export declare class NodeDownloader implements Downloader {
5243
5356
 
5244
5357
  export declare class NodeUploader implements Uploader {
5245
5358
  stat(file: string | Blob): Promise<FileStat>;
5246
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
5247
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
5359
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
5360
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
5248
5361
  /**
5249
5362
  * Infers the MIME type of a file based on its extension.
5250
5363
  *
@@ -5271,7 +5384,6 @@ declare interface Operation<T> {
5271
5384
  response?: T;
5272
5385
  /**
5273
5386
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
5274
- * @internal
5275
5387
  */
5276
5388
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
5277
5389
  }
@@ -5378,6 +5490,12 @@ declare interface Part {
5378
5490
  thoughtSignature?: string;
5379
5491
  /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
5380
5492
  videoMetadata?: VideoMetadata;
5493
+ /** Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API. */
5494
+ toolCall?: ToolCall;
5495
+ /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
5496
+ toolResponse?: ToolResponse;
5497
+ /** Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. This field is not supported in Vertex AI. */
5498
+ partMetadata?: Record<string, unknown>;
5381
5499
  }
5382
5500
 
5383
5501
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -5580,7 +5698,7 @@ declare interface ProductImage {
5580
5698
  productImage?: Image_2;
5581
5699
  }
5582
5700
 
5583
- /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
5701
+ /** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */
5584
5702
  declare enum ProminentPeople {
5585
5703
  /**
5586
5704
  * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
@@ -5845,12 +5963,14 @@ declare class ReplayResponse {
5845
5963
  sdkResponseSegments?: Record<string, unknown>[];
5846
5964
  }
5847
5965
 
5848
- /** ReplicatedVoiceConfig is used to configure replicated voice. */
5966
+ /** The configuration for the replicated voice to use. */
5849
5967
  declare interface ReplicatedVoiceConfig {
5850
- /** The mime type of the replicated voice.
5968
+ /** The mimetype of the voice sample. The only currently supported
5969
+ value is `audio/wav`. This represents 16-bit signed little-endian wav
5970
+ data, with a 24kHz sampling rate.
5851
5971
  */
5852
5972
  mimeType?: string;
5853
- /** The sample audio of the replicated voice.
5973
+ /** The sample of the custom voice.
5854
5974
 
5855
5975
  * @remarks Encoded as base64 string. */
5856
5976
  voiceSampleAudio?: string;
@@ -6018,7 +6138,7 @@ declare interface Schema {
6018
6138
  anyOf?: Schema[];
6019
6139
  /** Optional. Default value to use if the field is not specified. */
6020
6140
  default?: unknown;
6021
- /** Optional. Description of the schema. */
6141
+ /** Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt. */
6022
6142
  description?: string;
6023
6143
  /** 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"]}` */
6024
6144
  enum?: string[];
@@ -6078,12 +6198,11 @@ declare interface SearchEntryPoint {
6078
6198
  sdkBlob?: string;
6079
6199
  }
6080
6200
 
6081
- /** Tool to support computer use. */
6201
+ /** Different types of search that can be enabled on the GoogleSearch tool. */
6082
6202
  declare interface SearchTypes {
6083
- /** Setting this field enables web search. Only text results are
6084
- returned. */
6203
+ /** Optional. Setting this field enables web search. Only text results are returned. */
6085
6204
  webSearch?: WebSearch;
6086
- /** Setting this field enables image search. Image bytes are returned. */
6205
+ /** Optional. Setting this field enables image search. Image bytes are returned. */
6087
6206
  imageSearch?: ImageSearch;
6088
6207
  }
6089
6208
 
@@ -6196,6 +6315,26 @@ declare interface SendMessageParameters {
6196
6315
  config?: GenerateContentConfig;
6197
6316
  }
6198
6317
 
6318
+ /** Pricing and performance service tier. */
6319
+ declare enum ServiceTier {
6320
+ /**
6321
+ * Default service tier, which is standard.
6322
+ */
6323
+ SERVICE_TIER_UNSPECIFIED = "SERVICE_TIER_UNSPECIFIED",
6324
+ /**
6325
+ * Flex service tier.
6326
+ */
6327
+ SERVICE_TIER_FLEX = "SERVICE_TIER_FLEX",
6328
+ /**
6329
+ * Standard service tier.
6330
+ */
6331
+ SERVICE_TIER_STANDARD = "SERVICE_TIER_STANDARD",
6332
+ /**
6333
+ * Priority service tier.
6334
+ */
6335
+ SERVICE_TIER_PRIORITY = "SERVICE_TIER_PRIORITY"
6336
+ }
6337
+
6199
6338
  /** Configuration of session resumption mechanism.
6200
6339
 
6201
6340
  Included in `LiveConnectConfig.session_resumption`. If included server
@@ -6240,8 +6379,9 @@ declare interface SpeakerVoiceConfig {
6240
6379
  voiceConfig?: VoiceConfig;
6241
6380
  }
6242
6381
 
6382
+ /** Config for speech generation and transcription. */
6243
6383
  declare interface SpeechConfig {
6244
- /** Configuration for the voice of the response. */
6384
+ /** The configuration in case of single-voice output. */
6245
6385
  voiceConfig?: VoiceConfig;
6246
6386
  /** Optional. The language code (ISO 639-1) for the speech synthesis. */
6247
6387
  languageCode?: string;
@@ -6480,6 +6620,10 @@ declare enum ThinkingLevel {
6480
6620
  * Unspecified thinking level.
6481
6621
  */
6482
6622
  THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
6623
+ /**
6624
+ * MINIMAL thinking level.
6625
+ */
6626
+ MINIMAL = "MINIMAL",
6483
6627
  /**
6484
6628
  * Low thinking level.
6485
6629
  */
@@ -6491,11 +6635,7 @@ declare enum ThinkingLevel {
6491
6635
  /**
6492
6636
  * High thinking level.
6493
6637
  */
6494
- HIGH = "HIGH",
6495
- /**
6496
- * MINIMAL thinking level.
6497
- */
6498
- MINIMAL = "MINIMAL"
6638
+ HIGH = "HIGH"
6499
6639
  }
6500
6640
 
6501
6641
  /** Tokens info with a list of tokens and the corresponding list of token ids. */
@@ -6517,9 +6657,9 @@ declare interface Tool {
6517
6657
  computer. If enabled, it automatically populates computer-use specific
6518
6658
  Function Declarations. */
6519
6659
  computerUse?: ComputerUse;
6520
- /** Optional. Tool to retrieve knowledge from the File Search Stores. */
6660
+ /** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
6521
6661
  fileSearch?: FileSearch;
6522
- /** Enables the model to execute Google Search as part of generation. */
6662
+ /** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
6523
6663
  googleSearch?: GoogleSearch;
6524
6664
  /** Optional. Tool that allows grounding the model's response with
6525
6665
  geospatial context related to the user's query. */
@@ -6540,6 +6680,21 @@ declare interface Tool {
6540
6680
  mcpServers?: McpServer[];
6541
6681
  }
6542
6682
 
6683
+ /** A predicted server-side `ToolCall` returned from the model.
6684
+
6685
+ This message contains information about a tool that the model wants to invoke.
6686
+ The client is NOT expected to execute this `ToolCall`. Instead, the
6687
+ client should pass this `ToolCall` back to the API in a subsequent turn
6688
+ within a `Content` message, along with the corresponding `ToolResponse`. */
6689
+ declare interface ToolCall {
6690
+ /** Unique identifier of the tool call. The server returns the tool response with the matching `id`. */
6691
+ id?: string;
6692
+ /** The type of tool that was called. */
6693
+ toolType?: ToolType;
6694
+ /** The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}. */
6695
+ args?: Record<string, unknown>;
6696
+ }
6697
+
6543
6698
  /** Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool. This data type is not supported in Gemini API. */
6544
6699
  declare interface ToolCodeExecution {
6545
6700
  }
@@ -6552,6 +6707,8 @@ declare interface ToolConfig {
6552
6707
  retrievalConfig?: RetrievalConfig;
6553
6708
  /** Optional. Function calling config. */
6554
6709
  functionCallingConfig?: FunctionCallingConfig;
6710
+ /** If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool invocations. */
6711
+ includeServerSideToolInvocations?: boolean;
6555
6712
  }
6556
6713
 
6557
6714
  declare type ToolListUnion = ToolUnion[];
@@ -6564,6 +6721,49 @@ declare interface ToolParallelAiSearch {
6564
6721
  customConfigs?: Record<string, unknown>;
6565
6722
  }
6566
6723
 
6724
+ /** The output from a server-side `ToolCall` execution.
6725
+
6726
+ This message contains the results of a tool invocation that was initiated by a
6727
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
6728
+ the API in a subsequent turn within a `Content` message, along with the
6729
+ corresponding `ToolCall`. */
6730
+ declare class ToolResponse {
6731
+ /** The identifier of the tool call this response is for. */
6732
+ id?: string;
6733
+ /** The type of tool that was called, matching the tool_type in the corresponding ToolCall. */
6734
+ toolType?: ToolType;
6735
+ /** The tool response. */
6736
+ response?: Record<string, unknown>;
6737
+ }
6738
+
6739
+ /** The type of tool in the function call. */
6740
+ declare enum ToolType {
6741
+ /**
6742
+ * Unspecified tool type.
6743
+ */
6744
+ TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
6745
+ /**
6746
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
6747
+ */
6748
+ GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
6749
+ /**
6750
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
6751
+ */
6752
+ GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
6753
+ /**
6754
+ * URL context tool, maps to Tool.url_context.
6755
+ */
6756
+ URL_CONTEXT = "URL_CONTEXT",
6757
+ /**
6758
+ * Google maps tool, maps to Tool.google_maps.
6759
+ */
6760
+ GOOGLE_MAPS = "GOOGLE_MAPS",
6761
+ /**
6762
+ * File search tool, maps to Tool.file_search.
6763
+ */
6764
+ FILE_SEARCH = "FILE_SEARCH"
6765
+ }
6766
+
6567
6767
  declare type ToolUnion = Tool | CallableTool;
6568
6768
 
6569
6769
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -6592,11 +6792,9 @@ declare enum TrafficType {
6592
6792
 
6593
6793
  /** Audio transcription in Server Conent. */
6594
6794
  declare interface Transcription {
6595
- /** Transcription text.
6596
- */
6795
+ /** Optional. Transcription text. */
6597
6796
  text?: string;
6598
- /** The bool indicates the end of the transcription.
6599
- */
6797
+ /** Optional. The bool indicates the end of the transcription. */
6600
6798
  finished?: boolean;
6601
6799
  }
6602
6800
 
@@ -6734,6 +6932,18 @@ declare interface TuningJob {
6734
6932
  tuningJobState?: TuningJobState;
6735
6933
  /** Tuning Spec for Veo Tuning. */
6736
6934
  veoTuningSpec?: VeoTuningSpec;
6935
+ /** Optional. Spec for creating a distillation dataset. */
6936
+ distillationSamplingSpec?: DistillationSamplingSpec;
6937
+ /** Output only. Tuning Job metadata. */
6938
+ tuningJobMetadata?: TuningJobMetadata;
6939
+ }
6940
+
6941
+ /** Tuning job metadata. This data type is not supported in Gemini API. */
6942
+ declare interface TuningJobMetadata {
6943
+ /** Output only. The number of epochs that have been completed. */
6944
+ completedEpochCount?: string;
6945
+ /** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
6946
+ completedStepCount?: string;
6737
6947
  }
6738
6948
 
6739
6949
  /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
@@ -6870,7 +7080,11 @@ declare enum TurnCoverage {
6870
7080
  /**
6871
7081
  * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
6872
7082
  */
6873
- TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
7083
+ TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
7084
+ /**
7085
+ * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
7086
+ */
7087
+ TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
6874
7088
  }
6875
7089
 
6876
7090
  /** Data type of the schema field. */
@@ -6922,19 +7136,21 @@ declare namespace types {
6922
7136
  createPartFromExecutableCode,
6923
7137
  createUserContent,
6924
7138
  createModelContent,
6925
- Outcome,
6926
7139
  Language,
7140
+ Outcome,
6927
7141
  FunctionResponseScheduling,
6928
7142
  Type,
6929
- PhishBlockThreshold,
7143
+ Environment,
6930
7144
  AuthType,
6931
7145
  HttpElementLocation,
6932
7146
  ApiSpec,
7147
+ PhishBlockThreshold,
6933
7148
  Behavior,
6934
7149
  DynamicRetrievalConfigMode,
6935
7150
  FunctionCallingConfigMode,
6936
7151
  ThinkingLevel,
6937
7152
  PersonGeneration,
7153
+ ProminentPeople,
6938
7154
  HarmCategory,
6939
7155
  HarmBlockMethod,
6940
7156
  HarmBlockThreshold,
@@ -6945,6 +7161,7 @@ declare namespace types {
6945
7161
  BlockedReason,
6946
7162
  TrafficType,
6947
7163
  Modality,
7164
+ ModelStage,
6948
7165
  MediaResolution,
6949
7166
  TuningMode,
6950
7167
  AdapterSize,
@@ -6953,11 +7170,12 @@ declare namespace types {
6953
7170
  AggregationMetric,
6954
7171
  PairwiseChoice,
6955
7172
  TuningTask,
7173
+ DocumentState,
6956
7174
  PartMediaResolutionLevel,
7175
+ ToolType,
6957
7176
  ResourceScope,
7177
+ ServiceTier,
6958
7178
  FeatureSelectionPreference,
6959
- Environment,
6960
- ProminentPeople,
6961
7179
  EmbeddingApiType,
6962
7180
  SafetyFilterLevel,
6963
7181
  ImagePromptLanguage,
@@ -6970,7 +7188,6 @@ declare namespace types {
6970
7188
  VideoGenerationMaskMode,
6971
7189
  VideoCompressionQuality,
6972
7190
  TuningMethod,
6973
- DocumentState,
6974
7191
  FileState,
6975
7192
  FileSource,
6976
7193
  TurnCompleteReason,
@@ -6984,9 +7201,11 @@ declare namespace types {
6984
7201
  Scale,
6985
7202
  MusicGenerationMode,
6986
7203
  LiveMusicPlaybackControl,
6987
- PartMediaResolution,
6988
- CodeExecutionResult,
6989
7204
  ExecutableCode,
7205
+ CodeExecutionResult,
7206
+ PartMediaResolution,
7207
+ ToolCall,
7208
+ ToolResponse,
6990
7209
  FileData,
6991
7210
  PartialArg,
6992
7211
  FunctionCall,
@@ -7003,12 +7222,6 @@ declare namespace types {
7003
7222
  Schema,
7004
7223
  ModelSelectionConfig,
7005
7224
  ComputerUse,
7006
- FileSearch,
7007
- WebSearch,
7008
- ImageSearch,
7009
- SearchTypes,
7010
- Interval,
7011
- GoogleSearch,
7012
7225
  ApiKeyConfig,
7013
7226
  AuthConfigGoogleServiceAccountConfig,
7014
7227
  AuthConfigHttpBasicAuthConfig,
@@ -7032,6 +7245,12 @@ declare namespace types {
7032
7245
  RagRetrievalConfig,
7033
7246
  VertexRagStore,
7034
7247
  Retrieval,
7248
+ FileSearch,
7249
+ WebSearch,
7250
+ ImageSearch,
7251
+ SearchTypes,
7252
+ Interval,
7253
+ GoogleSearch,
7035
7254
  ToolCodeExecution,
7036
7255
  EnterpriseWebSearch,
7037
7256
  FunctionDeclaration,
@@ -7068,13 +7287,16 @@ declare namespace types {
7068
7287
  GoogleTypeDate,
7069
7288
  Citation,
7070
7289
  CitationMetadata,
7071
- GroundingChunkImage,
7072
7290
  GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
7073
7291
  GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
7074
7292
  GroundingChunkMapsPlaceAnswerSources,
7293
+ GroundingChunkMapsRoute,
7075
7294
  GroundingChunkMaps,
7295
+ GroundingChunkImage,
7076
7296
  RagChunkPageSpan,
7077
7297
  RagChunk,
7298
+ GroundingChunkStringList,
7299
+ GroundingChunkCustomMetadata,
7078
7300
  GroundingChunkRetrievedContext,
7079
7301
  GroundingChunkWeb,
7080
7302
  GroundingChunk,
@@ -7094,6 +7316,7 @@ declare namespace types {
7094
7316
  GenerateContentResponsePromptFeedback,
7095
7317
  ModalityTokenCount,
7096
7318
  GenerateContentResponseUsageMetadata,
7319
+ ModelStatus,
7097
7320
  GenerateContentResponse,
7098
7321
  ReferenceImage,
7099
7322
  EditImageParameters,
@@ -7204,6 +7427,8 @@ declare namespace types {
7204
7427
  FullFineTuningSpec,
7205
7428
  VeoHyperParameters,
7206
7429
  VeoTuningSpec,
7430
+ DistillationSamplingSpec,
7431
+ TuningJobMetadata,
7207
7432
  TuningJob,
7208
7433
  ListTuningJobsConfig,
7209
7434
  ListTuningJobsParameters,
@@ -7460,7 +7685,7 @@ export declare interface Uploader {
7460
7685
  * @param apiClient The ApiClient to use for uploading.
7461
7686
  * @return A Promise that resolves to types.File.
7462
7687
  */
7463
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
7688
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
7464
7689
  /**
7465
7690
  * Uploads a file to file search store via the given upload url.
7466
7691
  *
@@ -7469,9 +7694,10 @@ export declare interface Uploader {
7469
7694
  * uploaded to. The uploadUrl must be a url that was returned by the
7470
7695
  * https://generativelanguage.googleapis.com/upload/v1beta/{file_search_store_name}:uploadToFileSearchStore endpoint
7471
7696
  * @param apiClient The ApiClient to use for uploading.
7697
+ * @param httpOptions Optional HTTP options to merge.
7472
7698
  * @return A Promise that resolves to types.UploadToFileSearchStoreOperation.
7473
7699
  */
7474
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
7700
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
7475
7701
  /**
7476
7702
  * Returns the file's mimeType and the size of a given file. If the file is a
7477
7703
  * string path, the file type is determined by the file extension. If the
@@ -7545,7 +7771,6 @@ declare class UploadToFileSearchStoreOperation implements Operation<UploadToFile
7545
7771
  response?: UploadToFileSearchStoreResponse;
7546
7772
  /**
7547
7773
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
7548
- * @internal
7549
7774
  */
7550
7775
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
7551
7776
  /** The full HTTP response. */
@@ -7923,16 +8148,17 @@ declare enum VoiceActivityType {
7923
8148
  ACTIVITY_END = "ACTIVITY_END"
7924
8149
  }
7925
8150
 
8151
+ /** The configuration for the voice to use. */
7926
8152
  declare interface VoiceConfig {
7927
- /** If true, the model will use a replicated voice for the response. */
8153
+ /** The configuration for a replicated voice, which is a clone of a
8154
+ user's voice that can be used for speech synthesis. If this is unset, a
8155
+ default voice is used. */
7928
8156
  replicatedVoiceConfig?: ReplicatedVoiceConfig;
7929
8157
  /** The configuration for a prebuilt voice. */
7930
8158
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
7931
8159
  }
7932
8160
 
7933
- /** Standard web search for grounding and related configurations.
7934
-
7935
- Only text results are returned. */
8161
+ /** Standard web search for grounding and related configurations. Only text results are returned. */
7936
8162
  declare interface WebSearch {
7937
8163
  }
7938
8164