@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.
@@ -594,6 +594,18 @@ function videoFromVertex$1(fromObject) {
594
594
  * Copyright 2025 Google LLC
595
595
  * SPDX-License-Identifier: Apache-2.0
596
596
  */
597
+ /** Programming language of the `code`. */
598
+ var Language;
599
+ (function (Language) {
600
+ /**
601
+ * Unspecified language. This value should not be used.
602
+ */
603
+ Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
604
+ /**
605
+ * Python >= 3.10, with numpy and simpy available.
606
+ */
607
+ Language["PYTHON"] = "PYTHON";
608
+ })(Language || (Language = {}));
597
609
  /** Outcome of the code execution. */
598
610
  var Outcome;
599
611
  (function (Outcome) {
@@ -614,18 +626,6 @@ var Outcome;
614
626
  */
615
627
  Outcome["OUTCOME_DEADLINE_EXCEEDED"] = "OUTCOME_DEADLINE_EXCEEDED";
616
628
  })(Outcome || (Outcome = {}));
617
- /** Programming language of the `code`. */
618
- var Language;
619
- (function (Language) {
620
- /**
621
- * Unspecified language. This value should not be used.
622
- */
623
- Language["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
624
- /**
625
- * Python >= 3.10, with numpy and simpy available.
626
- */
627
- Language["PYTHON"] = "PYTHON";
628
- })(Language || (Language = {}));
629
629
  /** Specifies how the response should be scheduled in the conversation. */
630
630
  var FunctionResponseScheduling;
631
631
  (function (FunctionResponseScheduling) {
@@ -682,38 +682,18 @@ var Type;
682
682
  */
683
683
  Type["NULL"] = "NULL";
684
684
  })(Type || (Type = {}));
685
- /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
686
- var PhishBlockThreshold;
687
- (function (PhishBlockThreshold) {
688
- /**
689
- * Defaults to unspecified.
690
- */
691
- PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
692
- /**
693
- * Blocks Low and above confidence URL that is risky.
694
- */
695
- PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
696
- /**
697
- * Blocks Medium and above confidence URL that is risky.
698
- */
699
- PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
700
- /**
701
- * Blocks High and above confidence URL that is risky.
702
- */
703
- PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
704
- /**
705
- * Blocks Higher and above confidence URL that is risky.
706
- */
707
- PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
685
+ /** The environment being operated. */
686
+ var Environment;
687
+ (function (Environment) {
708
688
  /**
709
- * Blocks Very high and above confidence URL that is risky.
689
+ * Defaults to browser.
710
690
  */
711
- PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
691
+ Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
712
692
  /**
713
- * Blocks Extremely high confidence URL that is risky.
693
+ * Operates in a web browser.
714
694
  */
715
- PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
716
- })(PhishBlockThreshold || (PhishBlockThreshold = {}));
695
+ Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
696
+ })(Environment || (Environment = {}));
717
697
  /** Type of auth scheme. This enum is not supported in Gemini API. */
718
698
  var AuthType;
719
699
  (function (AuthType) {
@@ -784,6 +764,38 @@ var ApiSpec;
784
764
  */
785
765
  ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
786
766
  })(ApiSpec || (ApiSpec = {}));
767
+ /** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */
768
+ var PhishBlockThreshold;
769
+ (function (PhishBlockThreshold) {
770
+ /**
771
+ * Defaults to unspecified.
772
+ */
773
+ PhishBlockThreshold["PHISH_BLOCK_THRESHOLD_UNSPECIFIED"] = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED";
774
+ /**
775
+ * Blocks Low and above confidence URL that is risky.
776
+ */
777
+ PhishBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
778
+ /**
779
+ * Blocks Medium and above confidence URL that is risky.
780
+ */
781
+ PhishBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
782
+ /**
783
+ * Blocks High and above confidence URL that is risky.
784
+ */
785
+ PhishBlockThreshold["BLOCK_HIGH_AND_ABOVE"] = "BLOCK_HIGH_AND_ABOVE";
786
+ /**
787
+ * Blocks Higher and above confidence URL that is risky.
788
+ */
789
+ PhishBlockThreshold["BLOCK_HIGHER_AND_ABOVE"] = "BLOCK_HIGHER_AND_ABOVE";
790
+ /**
791
+ * Blocks Very high and above confidence URL that is risky.
792
+ */
793
+ PhishBlockThreshold["BLOCK_VERY_HIGH_AND_ABOVE"] = "BLOCK_VERY_HIGH_AND_ABOVE";
794
+ /**
795
+ * Blocks Extremely high confidence URL that is risky.
796
+ */
797
+ PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
798
+ })(PhishBlockThreshold || (PhishBlockThreshold = {}));
787
799
  /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
788
800
  var Behavior;
789
801
  (function (Behavior) {
@@ -843,6 +855,10 @@ var ThinkingLevel;
843
855
  * Unspecified thinking level.
844
856
  */
845
857
  ThinkingLevel["THINKING_LEVEL_UNSPECIFIED"] = "THINKING_LEVEL_UNSPECIFIED";
858
+ /**
859
+ * MINIMAL thinking level.
860
+ */
861
+ ThinkingLevel["MINIMAL"] = "MINIMAL";
846
862
  /**
847
863
  * Low thinking level.
848
864
  */
@@ -855,10 +871,6 @@ var ThinkingLevel;
855
871
  * High thinking level.
856
872
  */
857
873
  ThinkingLevel["HIGH"] = "HIGH";
858
- /**
859
- * MINIMAL thinking level.
860
- */
861
- ThinkingLevel["MINIMAL"] = "MINIMAL";
862
874
  })(ThinkingLevel || (ThinkingLevel = {}));
863
875
  /** Enum that controls the generation of people. */
864
876
  var PersonGeneration;
@@ -876,6 +888,22 @@ var PersonGeneration;
876
888
  */
877
889
  PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
878
890
  })(PersonGeneration || (PersonGeneration = {}));
891
+ /** 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. */
892
+ var ProminentPeople;
893
+ (function (ProminentPeople) {
894
+ /**
895
+ * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
896
+ */
897
+ ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
898
+ /**
899
+ * Allows the model to generate images of prominent people.
900
+ */
901
+ ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
902
+ /**
903
+ * Prevents the model from generating images of prominent people.
904
+ */
905
+ ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
906
+ })(ProminentPeople || (ProminentPeople = {}));
879
907
  /** The harm category to be blocked. */
880
908
  var HarmCategory;
881
909
  (function (HarmCategory) {
@@ -1194,6 +1222,42 @@ var Modality;
1194
1222
  */
1195
1223
  Modality["AUDIO"] = "AUDIO";
1196
1224
  })(Modality || (Modality = {}));
1225
+ /** The stage of the underlying model. This enum is not supported in Vertex AI. */
1226
+ var ModelStage;
1227
+ (function (ModelStage) {
1228
+ /**
1229
+ * Unspecified model stage.
1230
+ */
1231
+ ModelStage["MODEL_STAGE_UNSPECIFIED"] = "MODEL_STAGE_UNSPECIFIED";
1232
+ /**
1233
+ * The underlying model is subject to lots of tunings.
1234
+ */
1235
+ ModelStage["UNSTABLE_EXPERIMENTAL"] = "UNSTABLE_EXPERIMENTAL";
1236
+ /**
1237
+ * Models in this stage are for experimental purposes only.
1238
+ */
1239
+ ModelStage["EXPERIMENTAL"] = "EXPERIMENTAL";
1240
+ /**
1241
+ * Models in this stage are more mature than experimental models.
1242
+ */
1243
+ ModelStage["PREVIEW"] = "PREVIEW";
1244
+ /**
1245
+ * Models in this stage are considered stable and ready for production use.
1246
+ */
1247
+ ModelStage["STABLE"] = "STABLE";
1248
+ /**
1249
+ * 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.
1250
+ */
1251
+ ModelStage["LEGACY"] = "LEGACY";
1252
+ /**
1253
+ * Models in this stage are deprecated. These models cannot be used.
1254
+ */
1255
+ ModelStage["DEPRECATED"] = "DEPRECATED";
1256
+ /**
1257
+ * Models in this stage are retired. These models cannot be used.
1258
+ */
1259
+ ModelStage["RETIRED"] = "RETIRED";
1260
+ })(ModelStage || (ModelStage = {}));
1197
1261
  /** The media resolution to use. */
1198
1262
  var MediaResolution;
1199
1263
  (function (MediaResolution) {
@@ -1430,6 +1494,26 @@ var TuningTask;
1430
1494
  */
1431
1495
  TuningTask["TUNING_TASK_R2V"] = "TUNING_TASK_R2V";
1432
1496
  })(TuningTask || (TuningTask = {}));
1497
+ /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
1498
+ var DocumentState;
1499
+ (function (DocumentState) {
1500
+ /**
1501
+ * The default value. This value is used if the state is omitted.
1502
+ */
1503
+ DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
1504
+ /**
1505
+ * Some `Chunks` of the `Document` are being processed (embedding and vector storage).
1506
+ */
1507
+ DocumentState["STATE_PENDING"] = "STATE_PENDING";
1508
+ /**
1509
+ * All `Chunks` of the `Document` is processed and available for querying.
1510
+ */
1511
+ DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
1512
+ /**
1513
+ * Some `Chunks` of the `Document` failed processing.
1514
+ */
1515
+ DocumentState["STATE_FAILED"] = "STATE_FAILED";
1516
+ })(DocumentState || (DocumentState = {}));
1433
1517
  /** The tokenization quality used for given media. */
1434
1518
  var PartMediaResolutionLevel;
1435
1519
  (function (PartMediaResolutionLevel) {
@@ -1454,6 +1538,34 @@ var PartMediaResolutionLevel;
1454
1538
  */
1455
1539
  PartMediaResolutionLevel["MEDIA_RESOLUTION_ULTRA_HIGH"] = "MEDIA_RESOLUTION_ULTRA_HIGH";
1456
1540
  })(PartMediaResolutionLevel || (PartMediaResolutionLevel = {}));
1541
+ /** The type of tool in the function call. */
1542
+ var ToolType;
1543
+ (function (ToolType) {
1544
+ /**
1545
+ * Unspecified tool type.
1546
+ */
1547
+ ToolType["TOOL_TYPE_UNSPECIFIED"] = "TOOL_TYPE_UNSPECIFIED";
1548
+ /**
1549
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
1550
+ */
1551
+ ToolType["GOOGLE_SEARCH_WEB"] = "GOOGLE_SEARCH_WEB";
1552
+ /**
1553
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
1554
+ */
1555
+ ToolType["GOOGLE_SEARCH_IMAGE"] = "GOOGLE_SEARCH_IMAGE";
1556
+ /**
1557
+ * URL context tool, maps to Tool.url_context.
1558
+ */
1559
+ ToolType["URL_CONTEXT"] = "URL_CONTEXT";
1560
+ /**
1561
+ * Google maps tool, maps to Tool.google_maps.
1562
+ */
1563
+ ToolType["GOOGLE_MAPS"] = "GOOGLE_MAPS";
1564
+ /**
1565
+ * File search tool, maps to Tool.file_search.
1566
+ */
1567
+ ToolType["FILE_SEARCH"] = "FILE_SEARCH";
1568
+ })(ToolType || (ToolType = {}));
1457
1569
  /** Resource scope. */
1458
1570
  var ResourceScope;
1459
1571
  (function (ResourceScope) {
@@ -1466,42 +1578,34 @@ var ResourceScope;
1466
1578
  */
1467
1579
  ResourceScope["COLLECTION"] = "COLLECTION";
1468
1580
  })(ResourceScope || (ResourceScope = {}));
1469
- /** Options for feature selection preference. */
1470
- var FeatureSelectionPreference;
1471
- (function (FeatureSelectionPreference) {
1472
- FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
1473
- FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
1474
- FeatureSelectionPreference["BALANCED"] = "BALANCED";
1475
- FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1476
- })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1477
- /** The environment being operated. */
1478
- var Environment;
1479
- (function (Environment) {
1480
- /**
1481
- * Defaults to browser.
1482
- */
1483
- Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
1581
+ /** Pricing and performance service tier. */
1582
+ var ServiceTier;
1583
+ (function (ServiceTier) {
1484
1584
  /**
1485
- * Operates in a web browser.
1585
+ * Default service tier, which is standard.
1486
1586
  */
1487
- Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
1488
- })(Environment || (Environment = {}));
1489
- /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
1490
- var ProminentPeople;
1491
- (function (ProminentPeople) {
1587
+ ServiceTier["SERVICE_TIER_UNSPECIFIED"] = "SERVICE_TIER_UNSPECIFIED";
1492
1588
  /**
1493
- * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
1589
+ * Flex service tier.
1494
1590
  */
1495
- ProminentPeople["PROMINENT_PEOPLE_UNSPECIFIED"] = "PROMINENT_PEOPLE_UNSPECIFIED";
1591
+ ServiceTier["SERVICE_TIER_FLEX"] = "SERVICE_TIER_FLEX";
1496
1592
  /**
1497
- * Allows the model to generate images of prominent people.
1593
+ * Standard service tier.
1498
1594
  */
1499
- ProminentPeople["ALLOW_PROMINENT_PEOPLE"] = "ALLOW_PROMINENT_PEOPLE";
1595
+ ServiceTier["SERVICE_TIER_STANDARD"] = "SERVICE_TIER_STANDARD";
1500
1596
  /**
1501
- * Prevents the model from generating images of prominent people.
1597
+ * Priority service tier.
1502
1598
  */
1503
- ProminentPeople["BLOCK_PROMINENT_PEOPLE"] = "BLOCK_PROMINENT_PEOPLE";
1504
- })(ProminentPeople || (ProminentPeople = {}));
1599
+ ServiceTier["SERVICE_TIER_PRIORITY"] = "SERVICE_TIER_PRIORITY";
1600
+ })(ServiceTier || (ServiceTier = {}));
1601
+ /** Options for feature selection preference. */
1602
+ var FeatureSelectionPreference;
1603
+ (function (FeatureSelectionPreference) {
1604
+ FeatureSelectionPreference["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED"] = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED";
1605
+ FeatureSelectionPreference["PRIORITIZE_QUALITY"] = "PRIORITIZE_QUALITY";
1606
+ FeatureSelectionPreference["BALANCED"] = "BALANCED";
1607
+ FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1608
+ })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1505
1609
  /** Enum representing the Vertex embedding API to use. */
1506
1610
  var EmbeddingApiType;
1507
1611
  (function (EmbeddingApiType) {
@@ -1676,14 +1780,6 @@ var TuningMethod;
1676
1780
  */
1677
1781
  TuningMethod["DISTILLATION"] = "DISTILLATION";
1678
1782
  })(TuningMethod || (TuningMethod = {}));
1679
- /** State for the lifecycle of a Document. */
1680
- var DocumentState;
1681
- (function (DocumentState) {
1682
- DocumentState["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
1683
- DocumentState["STATE_PENDING"] = "STATE_PENDING";
1684
- DocumentState["STATE_ACTIVE"] = "STATE_ACTIVE";
1685
- DocumentState["STATE_FAILED"] = "STATE_FAILED";
1686
- })(DocumentState || (DocumentState = {}));
1687
1783
  /** State for the lifecycle of a File. */
1688
1784
  var FileState;
1689
1785
  (function (FileState) {
@@ -1843,6 +1939,10 @@ var TurnCoverage;
1843
1939
  * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
1844
1940
  */
1845
1941
  TurnCoverage["TURN_INCLUDES_ALL_INPUT"] = "TURN_INCLUDES_ALL_INPUT";
1942
+ /**
1943
+ * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
1944
+ */
1945
+ TurnCoverage["TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"] = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO";
1846
1946
  })(TurnCoverage || (TurnCoverage = {}));
1847
1947
  /** Scale of the generated music. */
1848
1948
  var Scale;
@@ -1949,6 +2049,14 @@ var LiveMusicPlaybackControl;
1949
2049
  */
1950
2050
  LiveMusicPlaybackControl["RESET_CONTEXT"] = "RESET_CONTEXT";
1951
2051
  })(LiveMusicPlaybackControl || (LiveMusicPlaybackControl = {}));
2052
+ /** The output from a server-side `ToolCall` execution.
2053
+
2054
+ This message contains the results of a tool invocation that was initiated by a
2055
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
2056
+ the API in a subsequent turn within a `Content` message, along with the
2057
+ corresponding `ToolCall`. */
2058
+ class ToolResponse {
2059
+ }
1952
2060
  /** Raw media bytes for function response.
1953
2061
 
1954
2062
  Text should not be sent as raw bytes, use the FunctionResponse.response
@@ -2404,7 +2512,6 @@ class GenerateVideosResponse {
2404
2512
  class GenerateVideosOperation {
2405
2513
  /**
2406
2514
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
2407
- * @internal
2408
2515
  */
2409
2516
  _fromAPIResponse({ apiResponse, _isVertexAI, }) {
2410
2517
  const operation = new GenerateVideosOperation();
@@ -2450,7 +2557,6 @@ class ImportFileResponse {
2450
2557
  class ImportFileOperation {
2451
2558
  /**
2452
2559
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
2453
- * @internal
2454
2560
  */
2455
2561
  _fromAPIResponse({ apiResponse, _isVertexAI, }) {
2456
2562
  const operation = new ImportFileOperation();
@@ -2705,7 +2811,6 @@ class UploadToFileSearchStoreResponse {
2705
2811
  class UploadToFileSearchStoreOperation {
2706
2812
  /**
2707
2813
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
2708
- * @internal
2709
2814
  */
2710
2815
  _fromAPIResponse({ apiResponse, _isVertexAI, }) {
2711
2816
  const operation = new UploadToFileSearchStoreOperation();
@@ -4358,6 +4463,10 @@ function generateContentConfigToMldev$1(apiClient, fromObject, parentObject) {
4358
4463
  if (getValueByPath(fromObject, ['modelArmorConfig']) !== undefined) {
4359
4464
  throw new Error('modelArmorConfig parameter is not supported in Gemini API.');
4360
4465
  }
4466
+ const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);
4467
+ if (parentObject !== undefined && fromServiceTier != null) {
4468
+ setValueByPath(parentObject, ['serviceTier'], fromServiceTier);
4469
+ }
4361
4470
  return toObject;
4362
4471
  }
4363
4472
  function generateContentResponseFromMldev$1(fromObject) {
@@ -4398,6 +4507,10 @@ function generateContentResponseFromMldev$1(fromObject) {
4398
4507
  if (fromUsageMetadata != null) {
4399
4508
  setValueByPath(toObject, ['usageMetadata'], fromUsageMetadata);
4400
4509
  }
4510
+ const fromModelStatus = getValueByPath(fromObject, ['modelStatus']);
4511
+ if (fromModelStatus != null) {
4512
+ setValueByPath(toObject, ['modelStatus'], fromModelStatus);
4513
+ }
4401
4514
  return toObject;
4402
4515
  }
4403
4516
  function getBatchJobParametersToMldev(apiClient, fromObject) {
@@ -4677,6 +4790,18 @@ function partToMldev$4(fromObject) {
4677
4790
  if (fromVideoMetadata != null) {
4678
4791
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
4679
4792
  }
4793
+ const fromToolCall = getValueByPath(fromObject, ['toolCall']);
4794
+ if (fromToolCall != null) {
4795
+ setValueByPath(toObject, ['toolCall'], fromToolCall);
4796
+ }
4797
+ const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);
4798
+ if (fromToolResponse != null) {
4799
+ setValueByPath(toObject, ['toolResponse'], fromToolResponse);
4800
+ }
4801
+ const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);
4802
+ if (fromPartMetadata != null) {
4803
+ setValueByPath(toObject, ['partMetadata'], fromPartMetadata);
4804
+ }
4680
4805
  return toObject;
4681
4806
  }
4682
4807
  function safetySettingToMldev$1(fromObject) {
@@ -4708,6 +4833,10 @@ function toolConfigToMldev$2(fromObject) {
4708
4833
  if (fromFunctionCallingConfig != null) {
4709
4834
  setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$2(fromFunctionCallingConfig));
4710
4835
  }
4836
+ const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);
4837
+ if (fromIncludeServerSideToolInvocations != null) {
4838
+ setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);
4839
+ }
4711
4840
  return toObject;
4712
4841
  }
4713
4842
  function toolToMldev$4(fromObject) {
@@ -5530,6 +5659,24 @@ function contentToMldev$3(fromObject) {
5530
5659
  }
5531
5660
  return toObject;
5532
5661
  }
5662
+ function contentToVertex$2(fromObject) {
5663
+ const toObject = {};
5664
+ const fromParts = getValueByPath(fromObject, ['parts']);
5665
+ if (fromParts != null) {
5666
+ let transformedList = fromParts;
5667
+ if (Array.isArray(transformedList)) {
5668
+ transformedList = transformedList.map((item) => {
5669
+ return partToVertex$2(item);
5670
+ });
5671
+ }
5672
+ setValueByPath(toObject, ['parts'], transformedList);
5673
+ }
5674
+ const fromRole = getValueByPath(fromObject, ['role']);
5675
+ if (fromRole != null) {
5676
+ setValueByPath(toObject, ['role'], fromRole);
5677
+ }
5678
+ return toObject;
5679
+ }
5533
5680
  function createCachedContentConfigToMldev(fromObject, parentObject) {
5534
5681
  const toObject = {};
5535
5682
  const fromTtl = getValueByPath(fromObject, ['ttl']);
@@ -5598,7 +5745,7 @@ function createCachedContentConfigToVertex(fromObject, parentObject) {
5598
5745
  let transformedList = tContents(fromContents);
5599
5746
  if (Array.isArray(transformedList)) {
5600
5747
  transformedList = transformedList.map((item) => {
5601
- return item;
5748
+ return contentToVertex$2(item);
5602
5749
  });
5603
5750
  }
5604
5751
  setValueByPath(parentObject, ['contents'], transformedList);
@@ -5607,7 +5754,7 @@ function createCachedContentConfigToVertex(fromObject, parentObject) {
5607
5754
  'systemInstruction',
5608
5755
  ]);
5609
5756
  if (parentObject !== undefined && fromSystemInstruction != null) {
5610
- setValueByPath(parentObject, ['systemInstruction'], tContent(fromSystemInstruction));
5757
+ setValueByPath(parentObject, ['systemInstruction'], contentToVertex$2(tContent(fromSystemInstruction)));
5611
5758
  }
5612
5759
  const fromTools = getValueByPath(fromObject, ['tools']);
5613
5760
  if (parentObject !== undefined && fromTools != null) {
@@ -5621,7 +5768,7 @@ function createCachedContentConfigToVertex(fromObject, parentObject) {
5621
5768
  }
5622
5769
  const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);
5623
5770
  if (parentObject !== undefined && fromToolConfig != null) {
5624
- setValueByPath(parentObject, ['toolConfig'], fromToolConfig);
5771
+ setValueByPath(parentObject, ['toolConfig'], toolConfigToVertex$1(fromToolConfig));
5625
5772
  }
5626
5773
  const fromKmsKeyName = getValueByPath(fromObject, ['kmsKeyName']);
5627
5774
  if (parentObject !== undefined && fromKmsKeyName != null) {
@@ -5981,6 +6128,87 @@ function partToMldev$3(fromObject) {
5981
6128
  if (fromVideoMetadata != null) {
5982
6129
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
5983
6130
  }
6131
+ const fromToolCall = getValueByPath(fromObject, ['toolCall']);
6132
+ if (fromToolCall != null) {
6133
+ setValueByPath(toObject, ['toolCall'], fromToolCall);
6134
+ }
6135
+ const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);
6136
+ if (fromToolResponse != null) {
6137
+ setValueByPath(toObject, ['toolResponse'], fromToolResponse);
6138
+ }
6139
+ const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);
6140
+ if (fromPartMetadata != null) {
6141
+ setValueByPath(toObject, ['partMetadata'], fromPartMetadata);
6142
+ }
6143
+ return toObject;
6144
+ }
6145
+ function partToVertex$2(fromObject) {
6146
+ const toObject = {};
6147
+ const fromMediaResolution = getValueByPath(fromObject, [
6148
+ 'mediaResolution',
6149
+ ]);
6150
+ if (fromMediaResolution != null) {
6151
+ setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);
6152
+ }
6153
+ const fromCodeExecutionResult = getValueByPath(fromObject, [
6154
+ 'codeExecutionResult',
6155
+ ]);
6156
+ if (fromCodeExecutionResult != null) {
6157
+ setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);
6158
+ }
6159
+ const fromExecutableCode = getValueByPath(fromObject, [
6160
+ 'executableCode',
6161
+ ]);
6162
+ if (fromExecutableCode != null) {
6163
+ setValueByPath(toObject, ['executableCode'], fromExecutableCode);
6164
+ }
6165
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
6166
+ if (fromFileData != null) {
6167
+ setValueByPath(toObject, ['fileData'], fromFileData);
6168
+ }
6169
+ const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
6170
+ if (fromFunctionCall != null) {
6171
+ setValueByPath(toObject, ['functionCall'], fromFunctionCall);
6172
+ }
6173
+ const fromFunctionResponse = getValueByPath(fromObject, [
6174
+ 'functionResponse',
6175
+ ]);
6176
+ if (fromFunctionResponse != null) {
6177
+ setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);
6178
+ }
6179
+ const fromInlineData = getValueByPath(fromObject, ['inlineData']);
6180
+ if (fromInlineData != null) {
6181
+ setValueByPath(toObject, ['inlineData'], fromInlineData);
6182
+ }
6183
+ const fromText = getValueByPath(fromObject, ['text']);
6184
+ if (fromText != null) {
6185
+ setValueByPath(toObject, ['text'], fromText);
6186
+ }
6187
+ const fromThought = getValueByPath(fromObject, ['thought']);
6188
+ if (fromThought != null) {
6189
+ setValueByPath(toObject, ['thought'], fromThought);
6190
+ }
6191
+ const fromThoughtSignature = getValueByPath(fromObject, [
6192
+ 'thoughtSignature',
6193
+ ]);
6194
+ if (fromThoughtSignature != null) {
6195
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
6196
+ }
6197
+ const fromVideoMetadata = getValueByPath(fromObject, [
6198
+ 'videoMetadata',
6199
+ ]);
6200
+ if (fromVideoMetadata != null) {
6201
+ setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
6202
+ }
6203
+ if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
6204
+ throw new Error('toolCall parameter is not supported in Vertex AI.');
6205
+ }
6206
+ if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
6207
+ throw new Error('toolResponse parameter is not supported in Vertex AI.');
6208
+ }
6209
+ if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
6210
+ throw new Error('partMetadata parameter is not supported in Vertex AI.');
6211
+ }
5984
6212
  return toObject;
5985
6213
  }
5986
6214
  function toolConfigToMldev$1(fromObject) {
@@ -5997,6 +6225,30 @@ function toolConfigToMldev$1(fromObject) {
5997
6225
  if (fromFunctionCallingConfig != null) {
5998
6226
  setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$1(fromFunctionCallingConfig));
5999
6227
  }
6228
+ const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);
6229
+ if (fromIncludeServerSideToolInvocations != null) {
6230
+ setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);
6231
+ }
6232
+ return toObject;
6233
+ }
6234
+ function toolConfigToVertex$1(fromObject) {
6235
+ const toObject = {};
6236
+ const fromRetrievalConfig = getValueByPath(fromObject, [
6237
+ 'retrievalConfig',
6238
+ ]);
6239
+ if (fromRetrievalConfig != null) {
6240
+ setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);
6241
+ }
6242
+ const fromFunctionCallingConfig = getValueByPath(fromObject, [
6243
+ 'functionCallingConfig',
6244
+ ]);
6245
+ if (fromFunctionCallingConfig != null) {
6246
+ setValueByPath(toObject, ['functionCallingConfig'], fromFunctionCallingConfig);
6247
+ }
6248
+ if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==
6249
+ undefined) {
6250
+ throw new Error('includeServerSideToolInvocations parameter is not supported in Vertex AI.');
6251
+ }
6000
6252
  return toObject;
6001
6253
  }
6002
6254
  function toolToMldev$3(fromObject) {
@@ -7484,6 +7736,24 @@ function contentToMldev$2(fromObject) {
7484
7736
  }
7485
7737
  return toObject;
7486
7738
  }
7739
+ function contentToVertex$1(fromObject) {
7740
+ const toObject = {};
7741
+ const fromParts = getValueByPath(fromObject, ['parts']);
7742
+ if (fromParts != null) {
7743
+ let transformedList = fromParts;
7744
+ if (Array.isArray(transformedList)) {
7745
+ transformedList = transformedList.map((item) => {
7746
+ return partToVertex$1(item);
7747
+ });
7748
+ }
7749
+ setValueByPath(toObject, ['parts'], transformedList);
7750
+ }
7751
+ const fromRole = getValueByPath(fromObject, ['role']);
7752
+ if (fromRole != null) {
7753
+ setValueByPath(toObject, ['role'], fromRole);
7754
+ }
7755
+ return toObject;
7756
+ }
7487
7757
  function fileDataToMldev$2(fromObject) {
7488
7758
  const toObject = {};
7489
7759
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
@@ -7652,7 +7922,7 @@ function generationConfigToVertex$1(fromObject) {
7652
7922
  }
7653
7923
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
7654
7924
  if (fromSpeechConfig != null) {
7655
- setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
7925
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex$1(fromSpeechConfig));
7656
7926
  }
7657
7927
  const fromStopSequences = getValueByPath(fromObject, [
7658
7928
  'stopSequences',
@@ -7873,7 +8143,7 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
7873
8143
  }
7874
8144
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
7875
8145
  if (parentObject !== undefined && fromSpeechConfig != null) {
7876
- setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], tLiveSpeechConfig(fromSpeechConfig));
8146
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));
7877
8147
  }
7878
8148
  const fromThinkingConfig = getValueByPath(fromObject, [
7879
8149
  'thinkingConfig',
@@ -7891,7 +8161,7 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
7891
8161
  'systemInstruction',
7892
8162
  ]);
7893
8163
  if (parentObject !== undefined && fromSystemInstruction != null) {
7894
- setValueByPath(parentObject, ['setup', 'systemInstruction'], tContent(fromSystemInstruction));
8164
+ setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToVertex$1(tContent(fromSystemInstruction)));
7895
8165
  }
7896
8166
  const fromTools = getValueByPath(fromObject, ['tools']);
7897
8167
  if (parentObject !== undefined && fromTools != null) {
@@ -8097,43 +8367,131 @@ function liveServerMessageFromVertex(fromObject) {
8097
8367
  if (fromToolCall != null) {
8098
8368
  setValueByPath(toObject, ['toolCall'], fromToolCall);
8099
8369
  }
8100
- const fromToolCallCancellation = getValueByPath(fromObject, [
8101
- 'toolCallCancellation',
8370
+ const fromToolCallCancellation = getValueByPath(fromObject, [
8371
+ 'toolCallCancellation',
8372
+ ]);
8373
+ if (fromToolCallCancellation != null) {
8374
+ setValueByPath(toObject, ['toolCallCancellation'], fromToolCallCancellation);
8375
+ }
8376
+ const fromUsageMetadata = getValueByPath(fromObject, [
8377
+ 'usageMetadata',
8378
+ ]);
8379
+ if (fromUsageMetadata != null) {
8380
+ setValueByPath(toObject, ['usageMetadata'], usageMetadataFromVertex(fromUsageMetadata));
8381
+ }
8382
+ const fromGoAway = getValueByPath(fromObject, ['goAway']);
8383
+ if (fromGoAway != null) {
8384
+ setValueByPath(toObject, ['goAway'], fromGoAway);
8385
+ }
8386
+ const fromSessionResumptionUpdate = getValueByPath(fromObject, [
8387
+ 'sessionResumptionUpdate',
8388
+ ]);
8389
+ if (fromSessionResumptionUpdate != null) {
8390
+ setValueByPath(toObject, ['sessionResumptionUpdate'], fromSessionResumptionUpdate);
8391
+ }
8392
+ const fromVoiceActivityDetectionSignal = getValueByPath(fromObject, [
8393
+ 'voiceActivityDetectionSignal',
8394
+ ]);
8395
+ if (fromVoiceActivityDetectionSignal != null) {
8396
+ setValueByPath(toObject, ['voiceActivityDetectionSignal'], fromVoiceActivityDetectionSignal);
8397
+ }
8398
+ const fromVoiceActivity = getValueByPath(fromObject, [
8399
+ 'voiceActivity',
8400
+ ]);
8401
+ if (fromVoiceActivity != null) {
8402
+ setValueByPath(toObject, ['voiceActivity'], voiceActivityFromVertex(fromVoiceActivity));
8403
+ }
8404
+ return toObject;
8405
+ }
8406
+ function multiSpeakerVoiceConfigToVertex$1(fromObject) {
8407
+ const toObject = {};
8408
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
8409
+ 'speakerVoiceConfigs',
8410
+ ]);
8411
+ if (fromSpeakerVoiceConfigs != null) {
8412
+ let transformedList = fromSpeakerVoiceConfigs;
8413
+ if (Array.isArray(transformedList)) {
8414
+ transformedList = transformedList.map((item) => {
8415
+ return speakerVoiceConfigToVertex$1(item);
8416
+ });
8417
+ }
8418
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
8419
+ }
8420
+ return toObject;
8421
+ }
8422
+ function partToMldev$2(fromObject) {
8423
+ const toObject = {};
8424
+ const fromMediaResolution = getValueByPath(fromObject, [
8425
+ 'mediaResolution',
8426
+ ]);
8427
+ if (fromMediaResolution != null) {
8428
+ setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);
8429
+ }
8430
+ const fromCodeExecutionResult = getValueByPath(fromObject, [
8431
+ 'codeExecutionResult',
8432
+ ]);
8433
+ if (fromCodeExecutionResult != null) {
8434
+ setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);
8435
+ }
8436
+ const fromExecutableCode = getValueByPath(fromObject, [
8437
+ 'executableCode',
8438
+ ]);
8439
+ if (fromExecutableCode != null) {
8440
+ setValueByPath(toObject, ['executableCode'], fromExecutableCode);
8441
+ }
8442
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
8443
+ if (fromFileData != null) {
8444
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$2(fromFileData));
8445
+ }
8446
+ const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
8447
+ if (fromFunctionCall != null) {
8448
+ setValueByPath(toObject, ['functionCall'], functionCallToMldev$2(fromFunctionCall));
8449
+ }
8450
+ const fromFunctionResponse = getValueByPath(fromObject, [
8451
+ 'functionResponse',
8452
+ ]);
8453
+ if (fromFunctionResponse != null) {
8454
+ setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);
8455
+ }
8456
+ const fromInlineData = getValueByPath(fromObject, ['inlineData']);
8457
+ if (fromInlineData != null) {
8458
+ setValueByPath(toObject, ['inlineData'], blobToMldev$2(fromInlineData));
8459
+ }
8460
+ const fromText = getValueByPath(fromObject, ['text']);
8461
+ if (fromText != null) {
8462
+ setValueByPath(toObject, ['text'], fromText);
8463
+ }
8464
+ const fromThought = getValueByPath(fromObject, ['thought']);
8465
+ if (fromThought != null) {
8466
+ setValueByPath(toObject, ['thought'], fromThought);
8467
+ }
8468
+ const fromThoughtSignature = getValueByPath(fromObject, [
8469
+ 'thoughtSignature',
8102
8470
  ]);
8103
- if (fromToolCallCancellation != null) {
8104
- setValueByPath(toObject, ['toolCallCancellation'], fromToolCallCancellation);
8471
+ if (fromThoughtSignature != null) {
8472
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
8105
8473
  }
8106
- const fromUsageMetadata = getValueByPath(fromObject, [
8107
- 'usageMetadata',
8474
+ const fromVideoMetadata = getValueByPath(fromObject, [
8475
+ 'videoMetadata',
8108
8476
  ]);
8109
- if (fromUsageMetadata != null) {
8110
- setValueByPath(toObject, ['usageMetadata'], usageMetadataFromVertex(fromUsageMetadata));
8111
- }
8112
- const fromGoAway = getValueByPath(fromObject, ['goAway']);
8113
- if (fromGoAway != null) {
8114
- setValueByPath(toObject, ['goAway'], fromGoAway);
8477
+ if (fromVideoMetadata != null) {
8478
+ setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
8115
8479
  }
8116
- const fromSessionResumptionUpdate = getValueByPath(fromObject, [
8117
- 'sessionResumptionUpdate',
8118
- ]);
8119
- if (fromSessionResumptionUpdate != null) {
8120
- setValueByPath(toObject, ['sessionResumptionUpdate'], fromSessionResumptionUpdate);
8480
+ const fromToolCall = getValueByPath(fromObject, ['toolCall']);
8481
+ if (fromToolCall != null) {
8482
+ setValueByPath(toObject, ['toolCall'], fromToolCall);
8121
8483
  }
8122
- const fromVoiceActivityDetectionSignal = getValueByPath(fromObject, [
8123
- 'voiceActivityDetectionSignal',
8124
- ]);
8125
- if (fromVoiceActivityDetectionSignal != null) {
8126
- setValueByPath(toObject, ['voiceActivityDetectionSignal'], fromVoiceActivityDetectionSignal);
8484
+ const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);
8485
+ if (fromToolResponse != null) {
8486
+ setValueByPath(toObject, ['toolResponse'], fromToolResponse);
8127
8487
  }
8128
- const fromVoiceActivity = getValueByPath(fromObject, [
8129
- 'voiceActivity',
8130
- ]);
8131
- if (fromVoiceActivity != null) {
8132
- setValueByPath(toObject, ['voiceActivity'], voiceActivityFromVertex(fromVoiceActivity));
8488
+ const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);
8489
+ if (fromPartMetadata != null) {
8490
+ setValueByPath(toObject, ['partMetadata'], fromPartMetadata);
8133
8491
  }
8134
8492
  return toObject;
8135
8493
  }
8136
- function partToMldev$2(fromObject) {
8494
+ function partToVertex$1(fromObject) {
8137
8495
  const toObject = {};
8138
8496
  const fromMediaResolution = getValueByPath(fromObject, [
8139
8497
  'mediaResolution',
@@ -8155,11 +8513,11 @@ function partToMldev$2(fromObject) {
8155
8513
  }
8156
8514
  const fromFileData = getValueByPath(fromObject, ['fileData']);
8157
8515
  if (fromFileData != null) {
8158
- setValueByPath(toObject, ['fileData'], fileDataToMldev$2(fromFileData));
8516
+ setValueByPath(toObject, ['fileData'], fromFileData);
8159
8517
  }
8160
8518
  const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
8161
8519
  if (fromFunctionCall != null) {
8162
- setValueByPath(toObject, ['functionCall'], functionCallToMldev$2(fromFunctionCall));
8520
+ setValueByPath(toObject, ['functionCall'], fromFunctionCall);
8163
8521
  }
8164
8522
  const fromFunctionResponse = getValueByPath(fromObject, [
8165
8523
  'functionResponse',
@@ -8169,7 +8527,7 @@ function partToMldev$2(fromObject) {
8169
8527
  }
8170
8528
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
8171
8529
  if (fromInlineData != null) {
8172
- setValueByPath(toObject, ['inlineData'], blobToMldev$2(fromInlineData));
8530
+ setValueByPath(toObject, ['inlineData'], fromInlineData);
8173
8531
  }
8174
8532
  const fromText = getValueByPath(fromObject, ['text']);
8175
8533
  if (fromText != null) {
@@ -8191,6 +8549,29 @@ function partToMldev$2(fromObject) {
8191
8549
  if (fromVideoMetadata != null) {
8192
8550
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
8193
8551
  }
8552
+ if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
8553
+ throw new Error('toolCall parameter is not supported in Vertex AI.');
8554
+ }
8555
+ if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
8556
+ throw new Error('toolResponse parameter is not supported in Vertex AI.');
8557
+ }
8558
+ if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
8559
+ throw new Error('partMetadata parameter is not supported in Vertex AI.');
8560
+ }
8561
+ return toObject;
8562
+ }
8563
+ function replicatedVoiceConfigToVertex$1(fromObject) {
8564
+ const toObject = {};
8565
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
8566
+ if (fromMimeType != null) {
8567
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
8568
+ }
8569
+ const fromVoiceSampleAudio = getValueByPath(fromObject, [
8570
+ 'voiceSampleAudio',
8571
+ ]);
8572
+ if (fromVoiceSampleAudio != null) {
8573
+ setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
8574
+ }
8194
8575
  return toObject;
8195
8576
  }
8196
8577
  function sessionResumptionConfigToMldev$1(fromObject) {
@@ -8204,6 +8585,36 @@ function sessionResumptionConfigToMldev$1(fromObject) {
8204
8585
  }
8205
8586
  return toObject;
8206
8587
  }
8588
+ function speakerVoiceConfigToVertex$1(fromObject) {
8589
+ const toObject = {};
8590
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
8591
+ if (fromSpeaker != null) {
8592
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
8593
+ }
8594
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
8595
+ if (fromVoiceConfig != null) {
8596
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
8597
+ }
8598
+ return toObject;
8599
+ }
8600
+ function speechConfigToVertex$1(fromObject) {
8601
+ const toObject = {};
8602
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
8603
+ if (fromVoiceConfig != null) {
8604
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));
8605
+ }
8606
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
8607
+ if (fromLanguageCode != null) {
8608
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
8609
+ }
8610
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
8611
+ 'multiSpeakerVoiceConfig',
8612
+ ]);
8613
+ if (fromMultiSpeakerVoiceConfig != null) {
8614
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex$1(fromMultiSpeakerVoiceConfig));
8615
+ }
8616
+ return toObject;
8617
+ }
8207
8618
  function toolToMldev$2(fromObject) {
8208
8619
  const toObject = {};
8209
8620
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
@@ -8437,6 +8848,22 @@ function voiceActivityFromVertex(fromObject) {
8437
8848
  }
8438
8849
  return toObject;
8439
8850
  }
8851
+ function voiceConfigToVertex$1(fromObject) {
8852
+ const toObject = {};
8853
+ const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
8854
+ 'replicatedVoiceConfig',
8855
+ ]);
8856
+ if (fromReplicatedVoiceConfig != null) {
8857
+ setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex$1(fromReplicatedVoiceConfig));
8858
+ }
8859
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
8860
+ 'prebuiltVoiceConfig',
8861
+ ]);
8862
+ if (fromPrebuiltVoiceConfig != null) {
8863
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
8864
+ }
8865
+ return toObject;
8866
+ }
8440
8867
 
8441
8868
  /**
8442
8869
  * @license
@@ -8559,7 +8986,7 @@ function citationMetadataFromMldev(fromObject, _rootObject) {
8559
8986
  }
8560
8987
  return toObject;
8561
8988
  }
8562
- function computeTokensParametersToVertex(apiClient, fromObject, _rootObject) {
8989
+ function computeTokensParametersToVertex(apiClient, fromObject, rootObject) {
8563
8990
  const toObject = {};
8564
8991
  const fromModel = getValueByPath(fromObject, ['model']);
8565
8992
  if (fromModel != null) {
@@ -8570,7 +8997,7 @@ function computeTokensParametersToVertex(apiClient, fromObject, _rootObject) {
8570
8997
  let transformedList = tContents(fromContents);
8571
8998
  if (Array.isArray(transformedList)) {
8572
8999
  transformedList = transformedList.map((item) => {
8573
- return item;
9000
+ return contentToVertex(item);
8574
9001
  });
8575
9002
  }
8576
9003
  setValueByPath(toObject, ['contents'], transformedList);
@@ -8639,6 +9066,24 @@ function contentToMldev$1(fromObject, rootObject) {
8639
9066
  }
8640
9067
  return toObject;
8641
9068
  }
9069
+ function contentToVertex(fromObject, rootObject) {
9070
+ const toObject = {};
9071
+ const fromParts = getValueByPath(fromObject, ['parts']);
9072
+ if (fromParts != null) {
9073
+ let transformedList = fromParts;
9074
+ if (Array.isArray(transformedList)) {
9075
+ transformedList = transformedList.map((item) => {
9076
+ return partToVertex(item);
9077
+ });
9078
+ }
9079
+ setValueByPath(toObject, ['parts'], transformedList);
9080
+ }
9081
+ const fromRole = getValueByPath(fromObject, ['role']);
9082
+ if (fromRole != null) {
9083
+ setValueByPath(toObject, ['role'], fromRole);
9084
+ }
9085
+ return toObject;
9086
+ }
8642
9087
  function controlReferenceConfigToVertex(fromObject, _rootObject) {
8643
9088
  const toObject = {};
8644
9089
  const fromControlType = getValueByPath(fromObject, ['controlType']);
@@ -8672,7 +9117,7 @@ function countTokensConfigToVertex(fromObject, parentObject, rootObject) {
8672
9117
  'systemInstruction',
8673
9118
  ]);
8674
9119
  if (parentObject !== undefined && fromSystemInstruction != null) {
8675
- setValueByPath(parentObject, ['systemInstruction'], tContent(fromSystemInstruction));
9120
+ setValueByPath(parentObject, ['systemInstruction'], contentToVertex(tContent(fromSystemInstruction)));
8676
9121
  }
8677
9122
  const fromTools = getValueByPath(fromObject, ['tools']);
8678
9123
  if (parentObject !== undefined && fromTools != null) {
@@ -8725,7 +9170,7 @@ function countTokensParametersToVertex(apiClient, fromObject, rootObject) {
8725
9170
  let transformedList = tContents(fromContents);
8726
9171
  if (Array.isArray(transformedList)) {
8727
9172
  transformedList = transformedList.map((item) => {
8728
- return item;
9173
+ return contentToVertex(item);
8729
9174
  });
8730
9175
  }
8731
9176
  setValueByPath(toObject, ['contents'], transformedList);
@@ -9129,7 +9574,7 @@ function embedContentParametersPrivateToVertex(apiClient, fromObject, rootObject
9129
9574
  if (discriminatorContent === 'EMBED_CONTENT') {
9130
9575
  const fromContent = getValueByPath(fromObject, ['content']);
9131
9576
  if (fromContent != null) {
9132
- setValueByPath(toObject, ['content'], tContent(fromContent));
9577
+ setValueByPath(toObject, ['content'], contentToVertex(tContent(fromContent)));
9133
9578
  }
9134
9579
  }
9135
9580
  const fromConfig = getValueByPath(fromObject, ['config']);
@@ -9472,6 +9917,10 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject, rootO
9472
9917
  if (getValueByPath(fromObject, ['modelArmorConfig']) !== undefined) {
9473
9918
  throw new Error('modelArmorConfig parameter is not supported in Gemini API.');
9474
9919
  }
9920
+ const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);
9921
+ if (parentObject !== undefined && fromServiceTier != null) {
9922
+ setValueByPath(parentObject, ['serviceTier'], fromServiceTier);
9923
+ }
9475
9924
  return toObject;
9476
9925
  }
9477
9926
  function generateContentConfigToVertex(apiClient, fromObject, parentObject, rootObject) {
@@ -9480,7 +9929,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
9480
9929
  'systemInstruction',
9481
9930
  ]);
9482
9931
  if (parentObject !== undefined && fromSystemInstruction != null) {
9483
- setValueByPath(parentObject, ['systemInstruction'], tContent(fromSystemInstruction));
9932
+ setValueByPath(parentObject, ['systemInstruction'], contentToVertex(tContent(fromSystemInstruction)));
9484
9933
  }
9485
9934
  const fromTemperature = getValueByPath(fromObject, ['temperature']);
9486
9935
  if (fromTemperature != null) {
@@ -9592,7 +10041,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
9592
10041
  }
9593
10042
  const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);
9594
10043
  if (parentObject !== undefined && fromToolConfig != null) {
9595
- setValueByPath(parentObject, ['toolConfig'], fromToolConfig);
10044
+ setValueByPath(parentObject, ['toolConfig'], toolConfigToVertex(fromToolConfig));
9596
10045
  }
9597
10046
  const fromLabels = getValueByPath(fromObject, ['labels']);
9598
10047
  if (parentObject !== undefined && fromLabels != null) {
@@ -9618,7 +10067,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
9618
10067
  }
9619
10068
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
9620
10069
  if (fromSpeechConfig != null) {
9621
- setValueByPath(toObject, ['speechConfig'], tSpeechConfig(fromSpeechConfig));
10070
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(tSpeechConfig(fromSpeechConfig)));
9622
10071
  }
9623
10072
  const fromAudioTimestamp = getValueByPath(fromObject, [
9624
10073
  'audioTimestamp',
@@ -9646,6 +10095,9 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
9646
10095
  if (parentObject !== undefined && fromModelArmorConfig != null) {
9647
10096
  setValueByPath(parentObject, ['modelArmorConfig'], fromModelArmorConfig);
9648
10097
  }
10098
+ if (getValueByPath(fromObject, ['serviceTier']) !== undefined) {
10099
+ throw new Error('serviceTier parameter is not supported in Vertex AI.');
10100
+ }
9649
10101
  return toObject;
9650
10102
  }
9651
10103
  function generateContentParametersToMldev(apiClient, fromObject, rootObject) {
@@ -9681,7 +10133,7 @@ function generateContentParametersToVertex(apiClient, fromObject, rootObject) {
9681
10133
  let transformedList = tContents(fromContents);
9682
10134
  if (Array.isArray(transformedList)) {
9683
10135
  transformedList = transformedList.map((item) => {
9684
- return item;
10136
+ return contentToVertex(item);
9685
10137
  });
9686
10138
  }
9687
10139
  setValueByPath(toObject, ['contents'], transformedList);
@@ -9730,6 +10182,10 @@ function generateContentResponseFromMldev(fromObject, rootObject) {
9730
10182
  if (fromUsageMetadata != null) {
9731
10183
  setValueByPath(toObject, ['usageMetadata'], fromUsageMetadata);
9732
10184
  }
10185
+ const fromModelStatus = getValueByPath(fromObject, ['modelStatus']);
10186
+ if (fromModelStatus != null) {
10187
+ setValueByPath(toObject, ['modelStatus'], fromModelStatus);
10188
+ }
9733
10189
  return toObject;
9734
10190
  }
9735
10191
  function generateContentResponseFromVertex(fromObject, _rootObject) {
@@ -10115,6 +10571,9 @@ function generateVideosConfigToMldev(fromObject, parentObject, rootObject) {
10115
10571
  if (getValueByPath(fromObject, ['compressionQuality']) !== undefined) {
10116
10572
  throw new Error('compressionQuality parameter is not supported in Gemini API.');
10117
10573
  }
10574
+ if (getValueByPath(fromObject, ['labels']) !== undefined) {
10575
+ throw new Error('labels parameter is not supported in Gemini API.');
10576
+ }
10118
10577
  return toObject;
10119
10578
  }
10120
10579
  function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
@@ -10205,6 +10664,10 @@ function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
10205
10664
  if (parentObject !== undefined && fromCompressionQuality != null) {
10206
10665
  setValueByPath(parentObject, ['parameters', 'compressionQuality'], fromCompressionQuality);
10207
10666
  }
10667
+ const fromLabels = getValueByPath(fromObject, ['labels']);
10668
+ if (parentObject !== undefined && fromLabels != null) {
10669
+ setValueByPath(parentObject, ['labels'], fromLabels);
10670
+ }
10208
10671
  return toObject;
10209
10672
  }
10210
10673
  function generateVideosOperationFromMldev(fromObject, rootObject) {
@@ -10474,7 +10937,7 @@ function generatedVideoFromVertex(fromObject, rootObject) {
10474
10937
  }
10475
10938
  return toObject;
10476
10939
  }
10477
- function generationConfigToVertex(fromObject, _rootObject) {
10940
+ function generationConfigToVertex(fromObject, rootObject) {
10478
10941
  const toObject = {};
10479
10942
  const fromModelSelectionConfig = getValueByPath(fromObject, [
10480
10943
  'modelSelectionConfig',
@@ -10570,7 +11033,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
10570
11033
  }
10571
11034
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
10572
11035
  if (fromSpeechConfig != null) {
10573
- setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);
11036
+ setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(fromSpeechConfig));
10574
11037
  }
10575
11038
  const fromStopSequences = getValueByPath(fromObject, [
10576
11039
  'stopSequences',
@@ -11027,6 +11490,22 @@ function modelFromVertex(fromObject, rootObject) {
11027
11490
  }
11028
11491
  return toObject;
11029
11492
  }
11493
+ function multiSpeakerVoiceConfigToVertex(fromObject, rootObject) {
11494
+ const toObject = {};
11495
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
11496
+ 'speakerVoiceConfigs',
11497
+ ]);
11498
+ if (fromSpeakerVoiceConfigs != null) {
11499
+ let transformedList = fromSpeakerVoiceConfigs;
11500
+ if (Array.isArray(transformedList)) {
11501
+ transformedList = transformedList.map((item) => {
11502
+ return speakerVoiceConfigToVertex(item);
11503
+ });
11504
+ }
11505
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
11506
+ }
11507
+ return toObject;
11508
+ }
11030
11509
  function partToMldev$1(fromObject, rootObject) {
11031
11510
  const toObject = {};
11032
11511
  const fromMediaResolution = getValueByPath(fromObject, [
@@ -11085,6 +11564,87 @@ function partToMldev$1(fromObject, rootObject) {
11085
11564
  if (fromVideoMetadata != null) {
11086
11565
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
11087
11566
  }
11567
+ const fromToolCall = getValueByPath(fromObject, ['toolCall']);
11568
+ if (fromToolCall != null) {
11569
+ setValueByPath(toObject, ['toolCall'], fromToolCall);
11570
+ }
11571
+ const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);
11572
+ if (fromToolResponse != null) {
11573
+ setValueByPath(toObject, ['toolResponse'], fromToolResponse);
11574
+ }
11575
+ const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);
11576
+ if (fromPartMetadata != null) {
11577
+ setValueByPath(toObject, ['partMetadata'], fromPartMetadata);
11578
+ }
11579
+ return toObject;
11580
+ }
11581
+ function partToVertex(fromObject, _rootObject) {
11582
+ const toObject = {};
11583
+ const fromMediaResolution = getValueByPath(fromObject, [
11584
+ 'mediaResolution',
11585
+ ]);
11586
+ if (fromMediaResolution != null) {
11587
+ setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);
11588
+ }
11589
+ const fromCodeExecutionResult = getValueByPath(fromObject, [
11590
+ 'codeExecutionResult',
11591
+ ]);
11592
+ if (fromCodeExecutionResult != null) {
11593
+ setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);
11594
+ }
11595
+ const fromExecutableCode = getValueByPath(fromObject, [
11596
+ 'executableCode',
11597
+ ]);
11598
+ if (fromExecutableCode != null) {
11599
+ setValueByPath(toObject, ['executableCode'], fromExecutableCode);
11600
+ }
11601
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
11602
+ if (fromFileData != null) {
11603
+ setValueByPath(toObject, ['fileData'], fromFileData);
11604
+ }
11605
+ const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
11606
+ if (fromFunctionCall != null) {
11607
+ setValueByPath(toObject, ['functionCall'], fromFunctionCall);
11608
+ }
11609
+ const fromFunctionResponse = getValueByPath(fromObject, [
11610
+ 'functionResponse',
11611
+ ]);
11612
+ if (fromFunctionResponse != null) {
11613
+ setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);
11614
+ }
11615
+ const fromInlineData = getValueByPath(fromObject, ['inlineData']);
11616
+ if (fromInlineData != null) {
11617
+ setValueByPath(toObject, ['inlineData'], fromInlineData);
11618
+ }
11619
+ const fromText = getValueByPath(fromObject, ['text']);
11620
+ if (fromText != null) {
11621
+ setValueByPath(toObject, ['text'], fromText);
11622
+ }
11623
+ const fromThought = getValueByPath(fromObject, ['thought']);
11624
+ if (fromThought != null) {
11625
+ setValueByPath(toObject, ['thought'], fromThought);
11626
+ }
11627
+ const fromThoughtSignature = getValueByPath(fromObject, [
11628
+ 'thoughtSignature',
11629
+ ]);
11630
+ if (fromThoughtSignature != null) {
11631
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
11632
+ }
11633
+ const fromVideoMetadata = getValueByPath(fromObject, [
11634
+ 'videoMetadata',
11635
+ ]);
11636
+ if (fromVideoMetadata != null) {
11637
+ setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
11638
+ }
11639
+ if (getValueByPath(fromObject, ['toolCall']) !== undefined) {
11640
+ throw new Error('toolCall parameter is not supported in Vertex AI.');
11641
+ }
11642
+ if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {
11643
+ throw new Error('toolResponse parameter is not supported in Vertex AI.');
11644
+ }
11645
+ if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {
11646
+ throw new Error('partMetadata parameter is not supported in Vertex AI.');
11647
+ }
11088
11648
  return toObject;
11089
11649
  }
11090
11650
  function productImageToVertex(fromObject, rootObject) {
@@ -11255,6 +11815,20 @@ function referenceImageAPIInternalToVertex(fromObject, rootObject) {
11255
11815
  }
11256
11816
  return toObject;
11257
11817
  }
11818
+ function replicatedVoiceConfigToVertex(fromObject, _rootObject) {
11819
+ const toObject = {};
11820
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
11821
+ if (fromMimeType != null) {
11822
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
11823
+ }
11824
+ const fromVoiceSampleAudio = getValueByPath(fromObject, [
11825
+ 'voiceSampleAudio',
11826
+ ]);
11827
+ if (fromVoiceSampleAudio != null) {
11828
+ setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);
11829
+ }
11830
+ return toObject;
11831
+ }
11258
11832
  function safetyAttributesFromMldev(fromObject, _rootObject) {
11259
11833
  const toObject = {};
11260
11834
  const fromCategories = getValueByPath(fromObject, [
@@ -11404,6 +11978,36 @@ function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
11404
11978
  }
11405
11979
  return toObject;
11406
11980
  }
11981
+ function speakerVoiceConfigToVertex(fromObject, rootObject) {
11982
+ const toObject = {};
11983
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
11984
+ if (fromSpeaker != null) {
11985
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
11986
+ }
11987
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
11988
+ if (fromVoiceConfig != null) {
11989
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
11990
+ }
11991
+ return toObject;
11992
+ }
11993
+ function speechConfigToVertex(fromObject, rootObject) {
11994
+ const toObject = {};
11995
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
11996
+ if (fromVoiceConfig != null) {
11997
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));
11998
+ }
11999
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
12000
+ if (fromLanguageCode != null) {
12001
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
12002
+ }
12003
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
12004
+ 'multiSpeakerVoiceConfig',
12005
+ ]);
12006
+ if (fromMultiSpeakerVoiceConfig != null) {
12007
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex(fromMultiSpeakerVoiceConfig));
12008
+ }
12009
+ return toObject;
12010
+ }
11407
12011
  function toolConfigToMldev(fromObject, rootObject) {
11408
12012
  const toObject = {};
11409
12013
  const fromRetrievalConfig = getValueByPath(fromObject, [
@@ -11418,6 +12022,30 @@ function toolConfigToMldev(fromObject, rootObject) {
11418
12022
  if (fromFunctionCallingConfig != null) {
11419
12023
  setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev(fromFunctionCallingConfig));
11420
12024
  }
12025
+ const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);
12026
+ if (fromIncludeServerSideToolInvocations != null) {
12027
+ setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);
12028
+ }
12029
+ return toObject;
12030
+ }
12031
+ function toolConfigToVertex(fromObject, _rootObject) {
12032
+ const toObject = {};
12033
+ const fromRetrievalConfig = getValueByPath(fromObject, [
12034
+ 'retrievalConfig',
12035
+ ]);
12036
+ if (fromRetrievalConfig != null) {
12037
+ setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);
12038
+ }
12039
+ const fromFunctionCallingConfig = getValueByPath(fromObject, [
12040
+ 'functionCallingConfig',
12041
+ ]);
12042
+ if (fromFunctionCallingConfig != null) {
12043
+ setValueByPath(toObject, ['functionCallingConfig'], fromFunctionCallingConfig);
12044
+ }
12045
+ if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==
12046
+ undefined) {
12047
+ throw new Error('includeServerSideToolInvocations parameter is not supported in Vertex AI.');
12048
+ }
11421
12049
  return toObject;
11422
12050
  }
11423
12051
  function toolToMldev$1(fromObject, rootObject) {
@@ -11862,6 +12490,22 @@ function videoToVertex(fromObject, _rootObject) {
11862
12490
  }
11863
12491
  return toObject;
11864
12492
  }
12493
+ function voiceConfigToVertex(fromObject, rootObject) {
12494
+ const toObject = {};
12495
+ const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
12496
+ 'replicatedVoiceConfig',
12497
+ ]);
12498
+ if (fromReplicatedVoiceConfig != null) {
12499
+ setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex(fromReplicatedVoiceConfig));
12500
+ }
12501
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
12502
+ 'prebuiltVoiceConfig',
12503
+ ]);
12504
+ if (fromPrebuiltVoiceConfig != null) {
12505
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);
12506
+ }
12507
+ return toObject;
12508
+ }
11865
12509
 
11866
12510
  /**
11867
12511
  * @license
@@ -12107,7 +12751,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
12107
12751
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
12108
12752
  const USER_AGENT_HEADER = 'User-Agent';
12109
12753
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
12110
- const SDK_VERSION = '1.45.0'; // x-release-please-version
12754
+ const SDK_VERSION = '1.47.0'; // x-release-please-version
12111
12755
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
12112
12756
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
12113
12757
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -12167,6 +12811,11 @@ class ApiClient {
12167
12811
  // Vertex Express or global endpoint case.
12168
12812
  initHttpOptions.baseUrl = 'https://aiplatform.googleapis.com/';
12169
12813
  }
12814
+ else if (this.clientOptions.project &&
12815
+ this.clientOptions.location &&
12816
+ this.clientOptions.location === 'us') {
12817
+ initHttpOptions.baseUrl = `https://aiplatform.${this.clientOptions.location}.rep.googleapis.com/`;
12818
+ }
12170
12819
  else if (this.clientOptions.project && this.clientOptions.location) {
12171
12820
  initHttpOptions.baseUrl = `https://${this.clientOptions.location}-aiplatform.googleapis.com/`;
12172
12821
  }
@@ -13466,7 +14115,7 @@ class Session {
13466
14115
  }
13467
14116
  }
13468
14117
  const clientMessage = {
13469
- toolResponse: { functionResponses: functionResponses },
14118
+ toolResponse: { 'functionResponses': functionResponses },
13470
14119
  };
13471
14120
  return clientMessage;
13472
14121
  }
@@ -15796,6 +16445,18 @@ function partToMldev(fromObject) {
15796
16445
  if (fromVideoMetadata != null) {
15797
16446
  setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);
15798
16447
  }
16448
+ const fromToolCall = getValueByPath(fromObject, ['toolCall']);
16449
+ if (fromToolCall != null) {
16450
+ setValueByPath(toObject, ['toolCall'], fromToolCall);
16451
+ }
16452
+ const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);
16453
+ if (fromToolResponse != null) {
16454
+ setValueByPath(toObject, ['toolResponse'], fromToolResponse);
16455
+ }
16456
+ const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);
16457
+ if (fromPartMetadata != null) {
16458
+ setValueByPath(toObject, ['partMetadata'], fromPartMetadata);
16459
+ }
15799
16460
  return toObject;
15800
16461
  }
15801
16462
  function sessionResumptionConfigToMldev(fromObject) {
@@ -18959,6 +19620,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
18959
19620
  setValueByPath(parentObject, ['supervisedTuningSpec', 'tuningMode'], fromTuningMode);
18960
19621
  }
18961
19622
  }
19623
+ else if (discriminatorTuningMode === 'DISTILLATION') {
19624
+ const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);
19625
+ if (parentObject !== undefined && fromTuningMode != null) {
19626
+ setValueByPath(parentObject, ['distillationSpec', 'tuningMode'], fromTuningMode);
19627
+ }
19628
+ }
18962
19629
  const fromCustomBaseModel = getValueByPath(fromObject, [
18963
19630
  'customBaseModel',
18964
19631
  ]);
@@ -18978,6 +19645,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
18978
19645
  setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'batchSize'], fromBatchSize);
18979
19646
  }
18980
19647
  }
19648
+ else if (discriminatorBatchSize === 'DISTILLATION') {
19649
+ const fromBatchSize = getValueByPath(fromObject, ['batchSize']);
19650
+ if (parentObject !== undefined && fromBatchSize != null) {
19651
+ setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'batchSize'], fromBatchSize);
19652
+ }
19653
+ }
18981
19654
  let discriminatorLearningRate = getValueByPath(rootObject, [
18982
19655
  'config',
18983
19656
  'method',
@@ -18993,6 +19666,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
18993
19666
  setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'learningRate'], fromLearningRate);
18994
19667
  }
18995
19668
  }
19669
+ else if (discriminatorLearningRate === 'DISTILLATION') {
19670
+ const fromLearningRate = getValueByPath(fromObject, [
19671
+ 'learningRate',
19672
+ ]);
19673
+ if (parentObject !== undefined && fromLearningRate != null) {
19674
+ setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'learningRate'], fromLearningRate);
19675
+ }
19676
+ }
18996
19677
  const fromLabels = getValueByPath(fromObject, ['labels']);
18997
19678
  if (parentObject !== undefined && fromLabels != null) {
18998
19679
  setValueByPath(parentObject, ['labels'], fromLabels);
@@ -19496,6 +20177,18 @@ function tuningJobFromVertex(fromObject, _rootObject) {
19496
20177
  if (fromVeoTuningSpec != null) {
19497
20178
  setValueByPath(toObject, ['veoTuningSpec'], fromVeoTuningSpec);
19498
20179
  }
20180
+ const fromDistillationSamplingSpec = getValueByPath(fromObject, [
20181
+ 'distillationSamplingSpec',
20182
+ ]);
20183
+ if (fromDistillationSamplingSpec != null) {
20184
+ setValueByPath(toObject, ['distillationSamplingSpec'], fromDistillationSamplingSpec);
20185
+ }
20186
+ const fromTuningJobMetadata = getValueByPath(fromObject, [
20187
+ 'tuningJobMetadata',
20188
+ ]);
20189
+ if (fromTuningJobMetadata != null) {
20190
+ setValueByPath(toObject, ['tuningJobMetadata'], fromTuningJobMetadata);
20191
+ }
19499
20192
  return toObject;
19500
20193
  }
19501
20194
  function tuningOperationFromMldev(fromObject, _rootObject) {
@@ -19919,18 +20612,18 @@ const MAX_RETRY_COUNT = 3;
19919
20612
  const INITIAL_RETRY_DELAY_MS = 1000;
19920
20613
  const DELAY_MULTIPLIER = 2;
19921
20614
  const X_GOOG_UPLOAD_STATUS_HEADER_FIELD = 'x-goog-upload-status';
19922
- async function uploadBlob(file, uploadUrl, apiClient) {
20615
+ async function uploadBlob(file, uploadUrl, apiClient, httpOptions) {
19923
20616
  var _a;
19924
- const response = await uploadBlobInternal(file, uploadUrl, apiClient);
20617
+ const response = await uploadBlobInternal(file, uploadUrl, apiClient, httpOptions);
19925
20618
  const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));
19926
20619
  if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {
19927
20620
  throw new Error('Failed to upload file: Upload status is not finalized.');
19928
20621
  }
19929
20622
  return responseJson['file'];
19930
20623
  }
19931
- async function uploadBlobToFileSearchStore(file, uploadUrl, apiClient) {
20624
+ async function uploadBlobToFileSearchStore(file, uploadUrl, apiClient, httpOptions) {
19932
20625
  var _a;
19933
- const response = await uploadBlobInternal(file, uploadUrl, apiClient);
20626
+ const response = await uploadBlobInternal(file, uploadUrl, apiClient, httpOptions);
19934
20627
  const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));
19935
20628
  if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {
19936
20629
  throw new Error('Failed to upload file: Upload status is not finalized.');
@@ -19940,8 +20633,18 @@ async function uploadBlobToFileSearchStore(file, uploadUrl, apiClient) {
19940
20633
  Object.assign(typedResp, resp);
19941
20634
  return typedResp;
19942
20635
  }
19943
- async function uploadBlobInternal(file, uploadUrl, apiClient) {
19944
- var _a, _b;
20636
+ async function uploadBlobInternal(file, uploadUrl, apiClient, httpOptions) {
20637
+ var _a, _b, _c;
20638
+ let finalUrl = uploadUrl;
20639
+ const effectiveBaseUrl = (httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.baseUrl) || ((_a = apiClient.clientOptions.httpOptions) === null || _a === void 0 ? void 0 : _a.baseUrl);
20640
+ if (effectiveBaseUrl) {
20641
+ const baseUri = new URL(effectiveBaseUrl);
20642
+ const uploadUri = new URL(uploadUrl);
20643
+ uploadUri.protocol = baseUri.protocol;
20644
+ uploadUri.host = baseUri.host;
20645
+ uploadUri.port = baseUri.port;
20646
+ finalUrl = uploadUri.toString();
20647
+ }
19945
20648
  let fileSize = 0;
19946
20649
  let offset = 0;
19947
20650
  let response = new HttpResponse(new Response());
@@ -19956,21 +20659,14 @@ async function uploadBlobInternal(file, uploadUrl, apiClient) {
19956
20659
  let retryCount = 0;
19957
20660
  let currentDelayMs = INITIAL_RETRY_DELAY_MS;
19958
20661
  while (retryCount < MAX_RETRY_COUNT) {
20662
+ const mergedHeaders = Object.assign(Object.assign({}, ((httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.headers) || {})), { 'X-Goog-Upload-Command': uploadCommand, 'X-Goog-Upload-Offset': String(offset), 'Content-Length': String(chunkSize) });
19959
20663
  response = await apiClient.request({
19960
20664
  path: '',
19961
20665
  body: chunk,
19962
20666
  httpMethod: 'POST',
19963
- httpOptions: {
19964
- apiVersion: '',
19965
- baseUrl: uploadUrl,
19966
- headers: {
19967
- 'X-Goog-Upload-Command': uploadCommand,
19968
- 'X-Goog-Upload-Offset': String(offset),
19969
- 'Content-Length': String(chunkSize),
19970
- },
19971
- },
20667
+ httpOptions: Object.assign(Object.assign({}, httpOptions), { apiVersion: '', baseUrl: finalUrl, headers: mergedHeaders }),
19972
20668
  });
19973
- if ((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) {
20669
+ if ((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) {
19974
20670
  break;
19975
20671
  }
19976
20672
  retryCount++;
@@ -19980,7 +20676,7 @@ async function uploadBlobInternal(file, uploadUrl, apiClient) {
19980
20676
  offset += chunkSize;
19981
20677
  // The `x-goog-upload-status` header field can be `active`, `final` and
19982
20678
  //`cancelled` in resposne.
19983
- if (((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'active') {
20679
+ if (((_c = response === null || response === void 0 ? void 0 : response.headers) === null || _c === void 0 ? void 0 : _c[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'active') {
19984
20680
  break;
19985
20681
  }
19986
20682
  // TODO(b/401391430) Investigate why the upload status is not finalized
@@ -20017,20 +20713,20 @@ class NodeUploader {
20017
20713
  return await getBlobStat(file);
20018
20714
  }
20019
20715
  }
20020
- async upload(file, uploadUrl, apiClient) {
20716
+ async upload(file, uploadUrl, apiClient, httpOptions) {
20021
20717
  if (typeof file === 'string') {
20022
- return await this.uploadFileFromPath(file, uploadUrl, apiClient);
20718
+ return await this.uploadFileFromPath(file, uploadUrl, apiClient, httpOptions);
20023
20719
  }
20024
20720
  else {
20025
- return uploadBlob(file, uploadUrl, apiClient);
20721
+ return uploadBlob(file, uploadUrl, apiClient, httpOptions);
20026
20722
  }
20027
20723
  }
20028
- async uploadToFileSearchStore(file, uploadUrl, apiClient) {
20724
+ async uploadToFileSearchStore(file, uploadUrl, apiClient, httpOptions) {
20029
20725
  if (typeof file === 'string') {
20030
- return await this.uploadFileToFileSearchStoreFromPath(file, uploadUrl, apiClient);
20726
+ return await this.uploadFileToFileSearchStoreFromPath(file, uploadUrl, apiClient, httpOptions);
20031
20727
  }
20032
20728
  else {
20033
- return uploadBlobToFileSearchStore(file, uploadUrl, apiClient);
20729
+ return uploadBlobToFileSearchStore(file, uploadUrl, apiClient, httpOptions);
20034
20730
  }
20035
20731
  }
20036
20732
  /**
@@ -20123,18 +20819,18 @@ class NodeUploader {
20123
20819
  // Return the MIME type.
20124
20820
  return mimeType;
20125
20821
  }
20126
- async uploadFileFromPath(file, uploadUrl, apiClient) {
20822
+ async uploadFileFromPath(file, uploadUrl, apiClient, httpOptions) {
20127
20823
  var _a;
20128
- const response = await this.uploadFileFromPathInternal(file, uploadUrl, apiClient);
20824
+ const response = await this.uploadFileFromPathInternal(file, uploadUrl, apiClient, httpOptions);
20129
20825
  const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));
20130
20826
  if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {
20131
20827
  throw new Error('Failed to upload file: Upload status is not finalized.');
20132
20828
  }
20133
20829
  return responseJson['file'];
20134
20830
  }
20135
- async uploadFileToFileSearchStoreFromPath(file, uploadUrl, apiClient) {
20831
+ async uploadFileToFileSearchStoreFromPath(file, uploadUrl, apiClient, httpOptions) {
20136
20832
  var _a;
20137
- const response = await this.uploadFileFromPathInternal(file, uploadUrl, apiClient);
20833
+ const response = await this.uploadFileFromPathInternal(file, uploadUrl, apiClient, httpOptions);
20138
20834
  const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));
20139
20835
  if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {
20140
20836
  throw new Error('Failed to upload file: Upload status is not finalized.');
@@ -20144,8 +20840,18 @@ class NodeUploader {
20144
20840
  Object.assign(typedResp, resp);
20145
20841
  return typedResp;
20146
20842
  }
20147
- async uploadFileFromPathInternal(file, uploadUrl, apiClient) {
20148
- var _a, _b;
20843
+ async uploadFileFromPathInternal(file, uploadUrl, apiClient, httpOptions) {
20844
+ var _a, _b, _c;
20845
+ let finalUrl = uploadUrl;
20846
+ const effectiveBaseUrl = (httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.baseUrl) || ((_a = apiClient.clientOptions.httpOptions) === null || _a === void 0 ? void 0 : _a.baseUrl);
20847
+ if (effectiveBaseUrl) {
20848
+ const baseUri = new URL(effectiveBaseUrl);
20849
+ const uploadUri = new URL(uploadUrl);
20850
+ uploadUri.protocol = baseUri.protocol;
20851
+ uploadUri.host = baseUri.host;
20852
+ uploadUri.port = baseUri.port;
20853
+ finalUrl = uploadUri.toString();
20854
+ }
20149
20855
  let fileSize = 0;
20150
20856
  let offset = 0;
20151
20857
  let response = new HttpResponse(new Response());
@@ -20172,22 +20878,14 @@ class NodeUploader {
20172
20878
  let retryCount = 0;
20173
20879
  let currentDelayMs = INITIAL_RETRY_DELAY_MS;
20174
20880
  while (retryCount < MAX_RETRY_COUNT) {
20881
+ const mergedHeaders = Object.assign(Object.assign({}, ((httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.headers) || {})), { 'X-Goog-Upload-Command': uploadCommand, 'X-Goog-Upload-Offset': String(offset), 'Content-Length': String(bytesRead), 'X-Goog-Upload-File-Name': fileName });
20175
20882
  response = await apiClient.request({
20176
20883
  path: '',
20177
20884
  body: chunk,
20178
20885
  httpMethod: 'POST',
20179
- httpOptions: {
20180
- apiVersion: '',
20181
- baseUrl: uploadUrl,
20182
- headers: {
20183
- 'X-Goog-Upload-Command': uploadCommand,
20184
- 'X-Goog-Upload-Offset': String(offset),
20185
- 'Content-Length': String(bytesRead),
20186
- 'X-Goog-Upload-File-Name': fileName,
20187
- },
20188
- },
20886
+ httpOptions: Object.assign(Object.assign({}, httpOptions), { apiVersion: '', baseUrl: finalUrl, headers: mergedHeaders }),
20189
20887
  });
20190
- if ((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) {
20888
+ if ((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) {
20191
20889
  break;
20192
20890
  }
20193
20891
  retryCount++;
@@ -20197,7 +20895,7 @@ class NodeUploader {
20197
20895
  offset += bytesRead;
20198
20896
  // The `x-goog-upload-status` header field can be `active`, `final` and
20199
20897
  //`cancelled` in resposne.
20200
- if (((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'active') {
20898
+ if (((_c = response === null || response === void 0 ? void 0 : response.headers) === null || _c === void 0 ? void 0 : _c[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'active') {
20201
20899
  break;
20202
20900
  }
20203
20901
  if (fileSize <= offset) {
@@ -20437,5 +21135,5 @@ function getApiKeyFromEnv() {
20437
21135
  return envGoogleApiKey || envGeminiApiKey || undefined;
20438
21136
  }
20439
21137
 
20440
- export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
21138
+ export { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
20441
21139
  //# sourceMappingURL=index.mjs.map