@google/genai 1.34.0 → 1.35.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.
@@ -672,18 +672,6 @@ var Type;
672
672
  */
673
673
  Type["NULL"] = "NULL";
674
674
  })(Type || (Type = {}));
675
- /** The mode of the predictor to be used in dynamic retrieval. */
676
- var Mode;
677
- (function (Mode) {
678
- /**
679
- * Always trigger retrieval.
680
- */
681
- Mode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
682
- /**
683
- * Run retrieval only when system decides it is necessary.
684
- */
685
- Mode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
686
- })(Mode || (Mode = {}));
687
675
  /** The API spec that the external API implements. This enum is not supported in Gemini API. */
688
676
  var ApiSpec;
689
677
  (function (ApiSpec) {
@@ -786,6 +774,58 @@ var PhishBlockThreshold;
786
774
  */
787
775
  PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
788
776
  })(PhishBlockThreshold || (PhishBlockThreshold = {}));
777
+ /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
778
+ var Behavior;
779
+ (function (Behavior) {
780
+ /**
781
+ * This value is unused.
782
+ */
783
+ Behavior["UNSPECIFIED"] = "UNSPECIFIED";
784
+ /**
785
+ * If set, the system will wait to receive the function response before continuing the conversation.
786
+ */
787
+ Behavior["BLOCKING"] = "BLOCKING";
788
+ /**
789
+ * If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.
790
+ */
791
+ Behavior["NON_BLOCKING"] = "NON_BLOCKING";
792
+ })(Behavior || (Behavior = {}));
793
+ /** The mode of the predictor to be used in dynamic retrieval. */
794
+ var DynamicRetrievalConfigMode;
795
+ (function (DynamicRetrievalConfigMode) {
796
+ /**
797
+ * Always trigger retrieval.
798
+ */
799
+ DynamicRetrievalConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
800
+ /**
801
+ * Run retrieval only when system decides it is necessary.
802
+ */
803
+ DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
804
+ })(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
805
+ /** Function calling mode. */
806
+ var FunctionCallingConfigMode;
807
+ (function (FunctionCallingConfigMode) {
808
+ /**
809
+ * Unspecified function calling mode. This value should not be used.
810
+ */
811
+ FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
812
+ /**
813
+ * Default model behavior, model decides to predict either function calls or natural language response.
814
+ */
815
+ FunctionCallingConfigMode["AUTO"] = "AUTO";
816
+ /**
817
+ * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
818
+ */
819
+ FunctionCallingConfigMode["ANY"] = "ANY";
820
+ /**
821
+ * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
822
+ */
823
+ FunctionCallingConfigMode["NONE"] = "NONE";
824
+ /**
825
+ * Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
826
+ */
827
+ FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
828
+ })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
789
829
  /** The number of thoughts tokens that the model should generate. */
790
830
  var ThinkingLevel;
791
831
  (function (ThinkingLevel) {
@@ -1292,34 +1332,6 @@ var FeatureSelectionPreference;
1292
1332
  FeatureSelectionPreference["BALANCED"] = "BALANCED";
1293
1333
  FeatureSelectionPreference["PRIORITIZE_COST"] = "PRIORITIZE_COST";
1294
1334
  })(FeatureSelectionPreference || (FeatureSelectionPreference = {}));
1295
- /** Defines the function behavior. Defaults to `BLOCKING`. */
1296
- var Behavior;
1297
- (function (Behavior) {
1298
- /**
1299
- * This value is unused.
1300
- */
1301
- Behavior["UNSPECIFIED"] = "UNSPECIFIED";
1302
- /**
1303
- * If set, the system will wait to receive the function response before continuing the conversation.
1304
- */
1305
- Behavior["BLOCKING"] = "BLOCKING";
1306
- /**
1307
- * If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.
1308
- */
1309
- Behavior["NON_BLOCKING"] = "NON_BLOCKING";
1310
- })(Behavior || (Behavior = {}));
1311
- /** Config for the dynamic retrieval config mode. */
1312
- var DynamicRetrievalConfigMode;
1313
- (function (DynamicRetrievalConfigMode) {
1314
- /**
1315
- * Always trigger retrieval.
1316
- */
1317
- DynamicRetrievalConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
1318
- /**
1319
- * Run retrieval only when system decides it is necessary.
1320
- */
1321
- DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
1322
- })(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
1323
1335
  /** The environment being operated. */
1324
1336
  var Environment;
1325
1337
  (function (Environment) {
@@ -1332,30 +1344,6 @@ var Environment;
1332
1344
  */
1333
1345
  Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
1334
1346
  })(Environment || (Environment = {}));
1335
- /** Config for the function calling config mode. */
1336
- var FunctionCallingConfigMode;
1337
- (function (FunctionCallingConfigMode) {
1338
- /**
1339
- * The function calling config mode is unspecified. Should not be used.
1340
- */
1341
- FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
1342
- /**
1343
- * Default model behavior, model decides to predict either function calls or natural language response.
1344
- */
1345
- FunctionCallingConfigMode["AUTO"] = "AUTO";
1346
- /**
1347
- * Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
1348
- */
1349
- FunctionCallingConfigMode["ANY"] = "ANY";
1350
- /**
1351
- * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
1352
- */
1353
- FunctionCallingConfigMode["NONE"] = "NONE";
1354
- /**
1355
- * Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
1356
- */
1357
- FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
1358
- })(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
1359
1347
  /** Enum that controls the safety filter level for objectionable content. */
1360
1348
  var SafetyFilterLevel;
1361
1349
  (function (SafetyFilterLevel) {
@@ -1552,6 +1540,7 @@ var FileSource;
1552
1540
  FileSource["SOURCE_UNSPECIFIED"] = "SOURCE_UNSPECIFIED";
1553
1541
  FileSource["UPLOADED"] = "UPLOADED";
1554
1542
  FileSource["GENERATED"] = "GENERATED";
1543
+ FileSource["REGISTERED"] = "REGISTERED";
1555
1544
  })(FileSource || (FileSource = {}));
1556
1545
  /** The reason why the turn is complete. */
1557
1546
  var TurnCompleteReason;
@@ -3981,16 +3970,16 @@ function functionCallToMldev$4(fromObject) {
3981
3970
  }
3982
3971
  function functionCallingConfigToMldev$2(fromObject) {
3983
3972
  const toObject = {};
3984
- const fromMode = getValueByPath(fromObject, ['mode']);
3985
- if (fromMode != null) {
3986
- setValueByPath(toObject, ['mode'], fromMode);
3987
- }
3988
3973
  const fromAllowedFunctionNames = getValueByPath(fromObject, [
3989
3974
  'allowedFunctionNames',
3990
3975
  ]);
3991
3976
  if (fromAllowedFunctionNames != null) {
3992
3977
  setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);
3993
3978
  }
3979
+ const fromMode = getValueByPath(fromObject, ['mode']);
3980
+ if (fromMode != null) {
3981
+ setValueByPath(toObject, ['mode'], fromMode);
3982
+ }
3994
3983
  if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==
3995
3984
  undefined) {
3996
3985
  throw new Error('streamFunctionCallArguments parameter is not supported in Gemini API.');
@@ -4250,6 +4239,9 @@ function imageConfigToMldev$1(fromObject) {
4250
4239
  if (fromImageSize != null) {
4251
4240
  setValueByPath(toObject, ['imageSize'], fromImageSize);
4252
4241
  }
4242
+ if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
4243
+ throw new Error('personGeneration parameter is not supported in Gemini API.');
4244
+ }
4253
4245
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
4254
4246
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
4255
4247
  }
@@ -4475,43 +4467,25 @@ function safetySettingToMldev$1(fromObject) {
4475
4467
  }
4476
4468
  function toolConfigToMldev$2(fromObject) {
4477
4469
  const toObject = {};
4478
- const fromFunctionCallingConfig = getValueByPath(fromObject, [
4479
- 'functionCallingConfig',
4480
- ]);
4481
- if (fromFunctionCallingConfig != null) {
4482
- setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$2(fromFunctionCallingConfig));
4483
- }
4484
4470
  const fromRetrievalConfig = getValueByPath(fromObject, [
4485
4471
  'retrievalConfig',
4486
4472
  ]);
4487
4473
  if (fromRetrievalConfig != null) {
4488
4474
  setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);
4489
4475
  }
4476
+ const fromFunctionCallingConfig = getValueByPath(fromObject, [
4477
+ 'functionCallingConfig',
4478
+ ]);
4479
+ if (fromFunctionCallingConfig != null) {
4480
+ setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$2(fromFunctionCallingConfig));
4481
+ }
4490
4482
  return toObject;
4491
4483
  }
4492
4484
  function toolToMldev$4(fromObject) {
4493
4485
  const toObject = {};
4494
- const fromFunctionDeclarations = getValueByPath(fromObject, [
4495
- 'functionDeclarations',
4496
- ]);
4497
- if (fromFunctionDeclarations != null) {
4498
- let transformedList = fromFunctionDeclarations;
4499
- if (Array.isArray(transformedList)) {
4500
- transformedList = transformedList.map((item) => {
4501
- return item;
4502
- });
4503
- }
4504
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
4505
- }
4506
4486
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
4507
4487
  throw new Error('retrieval parameter is not supported in Gemini API.');
4508
4488
  }
4509
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
4510
- 'googleSearchRetrieval',
4511
- ]);
4512
- if (fromGoogleSearchRetrieval != null) {
4513
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
4514
- }
4515
4489
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
4516
4490
  if (fromComputerUse != null) {
4517
4491
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -4529,6 +4503,18 @@ function toolToMldev$4(fromObject) {
4529
4503
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
4530
4504
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
4531
4505
  }
4506
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
4507
+ 'functionDeclarations',
4508
+ ]);
4509
+ if (fromFunctionDeclarations != null) {
4510
+ let transformedList = fromFunctionDeclarations;
4511
+ if (Array.isArray(transformedList)) {
4512
+ transformedList = transformedList.map((item) => {
4513
+ return item;
4514
+ });
4515
+ }
4516
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
4517
+ }
4532
4518
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
4533
4519
  if (fromGoogleMaps != null) {
4534
4520
  setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));
@@ -4537,6 +4523,12 @@ function toolToMldev$4(fromObject) {
4537
4523
  if (fromGoogleSearch != null) {
4538
4524
  setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));
4539
4525
  }
4526
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
4527
+ 'googleSearchRetrieval',
4528
+ ]);
4529
+ if (fromGoogleSearchRetrieval != null) {
4530
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
4531
+ }
4540
4532
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
4541
4533
  if (fromUrlContext != null) {
4542
4534
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -5467,16 +5459,16 @@ function functionCallToMldev$3(fromObject) {
5467
5459
  }
5468
5460
  function functionCallingConfigToMldev$1(fromObject) {
5469
5461
  const toObject = {};
5470
- const fromMode = getValueByPath(fromObject, ['mode']);
5471
- if (fromMode != null) {
5472
- setValueByPath(toObject, ['mode'], fromMode);
5473
- }
5474
5462
  const fromAllowedFunctionNames = getValueByPath(fromObject, [
5475
5463
  'allowedFunctionNames',
5476
5464
  ]);
5477
5465
  if (fromAllowedFunctionNames != null) {
5478
5466
  setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);
5479
5467
  }
5468
+ const fromMode = getValueByPath(fromObject, ['mode']);
5469
+ if (fromMode != null) {
5470
+ setValueByPath(toObject, ['mode'], fromMode);
5471
+ }
5480
5472
  if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==
5481
5473
  undefined) {
5482
5474
  throw new Error('streamFunctionCallArguments parameter is not supported in Gemini API.');
@@ -5485,9 +5477,6 @@ function functionCallingConfigToMldev$1(fromObject) {
5485
5477
  }
5486
5478
  function functionDeclarationToVertex$2(fromObject) {
5487
5479
  const toObject = {};
5488
- if (getValueByPath(fromObject, ['behavior']) !== undefined) {
5489
- throw new Error('behavior parameter is not supported in Vertex AI.');
5490
- }
5491
5480
  const fromDescription = getValueByPath(fromObject, ['description']);
5492
5481
  if (fromDescription != null) {
5493
5482
  setValueByPath(toObject, ['description'], fromDescription);
@@ -5516,6 +5505,9 @@ function functionDeclarationToVertex$2(fromObject) {
5516
5505
  if (fromResponseJsonSchema != null) {
5517
5506
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
5518
5507
  }
5508
+ if (getValueByPath(fromObject, ['behavior']) !== undefined) {
5509
+ throw new Error('behavior parameter is not supported in Vertex AI.');
5510
+ }
5519
5511
  return toObject;
5520
5512
  }
5521
5513
  function getCachedContentParametersToMldev(apiClient, fromObject) {
@@ -5719,43 +5711,25 @@ function partToMldev$3(fromObject) {
5719
5711
  }
5720
5712
  function toolConfigToMldev$1(fromObject) {
5721
5713
  const toObject = {};
5722
- const fromFunctionCallingConfig = getValueByPath(fromObject, [
5723
- 'functionCallingConfig',
5724
- ]);
5725
- if (fromFunctionCallingConfig != null) {
5726
- setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$1(fromFunctionCallingConfig));
5727
- }
5728
5714
  const fromRetrievalConfig = getValueByPath(fromObject, [
5729
5715
  'retrievalConfig',
5730
5716
  ]);
5731
5717
  if (fromRetrievalConfig != null) {
5732
5718
  setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);
5733
5719
  }
5720
+ const fromFunctionCallingConfig = getValueByPath(fromObject, [
5721
+ 'functionCallingConfig',
5722
+ ]);
5723
+ if (fromFunctionCallingConfig != null) {
5724
+ setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$1(fromFunctionCallingConfig));
5725
+ }
5734
5726
  return toObject;
5735
5727
  }
5736
5728
  function toolToMldev$3(fromObject) {
5737
5729
  const toObject = {};
5738
- const fromFunctionDeclarations = getValueByPath(fromObject, [
5739
- 'functionDeclarations',
5740
- ]);
5741
- if (fromFunctionDeclarations != null) {
5742
- let transformedList = fromFunctionDeclarations;
5743
- if (Array.isArray(transformedList)) {
5744
- transformedList = transformedList.map((item) => {
5745
- return item;
5746
- });
5747
- }
5748
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
5749
- }
5750
5730
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
5751
5731
  throw new Error('retrieval parameter is not supported in Gemini API.');
5752
5732
  }
5753
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5754
- 'googleSearchRetrieval',
5755
- ]);
5756
- if (fromGoogleSearchRetrieval != null) {
5757
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5758
- }
5759
5733
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
5760
5734
  if (fromComputerUse != null) {
5761
5735
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -5773,6 +5747,18 @@ function toolToMldev$3(fromObject) {
5773
5747
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
5774
5748
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
5775
5749
  }
5750
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
5751
+ 'functionDeclarations',
5752
+ ]);
5753
+ if (fromFunctionDeclarations != null) {
5754
+ let transformedList = fromFunctionDeclarations;
5755
+ if (Array.isArray(transformedList)) {
5756
+ transformedList = transformedList.map((item) => {
5757
+ return item;
5758
+ });
5759
+ }
5760
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
5761
+ }
5776
5762
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5777
5763
  if (fromGoogleMaps != null) {
5778
5764
  setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));
@@ -5781,6 +5767,12 @@ function toolToMldev$3(fromObject) {
5781
5767
  if (fromGoogleSearch != null) {
5782
5768
  setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));
5783
5769
  }
5770
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5771
+ 'googleSearchRetrieval',
5772
+ ]);
5773
+ if (fromGoogleSearchRetrieval != null) {
5774
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5775
+ }
5784
5776
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5785
5777
  if (fromUrlContext != null) {
5786
5778
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -5789,28 +5781,10 @@ function toolToMldev$3(fromObject) {
5789
5781
  }
5790
5782
  function toolToVertex$2(fromObject) {
5791
5783
  const toObject = {};
5792
- const fromFunctionDeclarations = getValueByPath(fromObject, [
5793
- 'functionDeclarations',
5794
- ]);
5795
- if (fromFunctionDeclarations != null) {
5796
- let transformedList = fromFunctionDeclarations;
5797
- if (Array.isArray(transformedList)) {
5798
- transformedList = transformedList.map((item) => {
5799
- return functionDeclarationToVertex$2(item);
5800
- });
5801
- }
5802
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
5803
- }
5804
5784
  const fromRetrieval = getValueByPath(fromObject, ['retrieval']);
5805
5785
  if (fromRetrieval != null) {
5806
5786
  setValueByPath(toObject, ['retrieval'], fromRetrieval);
5807
5787
  }
5808
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5809
- 'googleSearchRetrieval',
5810
- ]);
5811
- if (fromGoogleSearchRetrieval != null) {
5812
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5813
- }
5814
5788
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
5815
5789
  if (fromComputerUse != null) {
5816
5790
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -5830,6 +5804,18 @@ function toolToVertex$2(fromObject) {
5830
5804
  if (fromEnterpriseWebSearch != null) {
5831
5805
  setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);
5832
5806
  }
5807
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
5808
+ 'functionDeclarations',
5809
+ ]);
5810
+ if (fromFunctionDeclarations != null) {
5811
+ let transformedList = fromFunctionDeclarations;
5812
+ if (Array.isArray(transformedList)) {
5813
+ transformedList = transformedList.map((item) => {
5814
+ return functionDeclarationToVertex$2(item);
5815
+ });
5816
+ }
5817
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
5818
+ }
5833
5819
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
5834
5820
  if (fromGoogleMaps != null) {
5835
5821
  setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
@@ -5838,6 +5824,12 @@ function toolToVertex$2(fromObject) {
5838
5824
  if (fromGoogleSearch != null) {
5839
5825
  setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
5840
5826
  }
5827
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5828
+ 'googleSearchRetrieval',
5829
+ ]);
5830
+ if (fromGoogleSearchRetrieval != null) {
5831
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
5832
+ }
5841
5833
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5842
5834
  if (fromUrlContext != null) {
5843
5835
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -7129,9 +7121,6 @@ function functionCallToMldev$2(fromObject) {
7129
7121
  }
7130
7122
  function functionDeclarationToVertex$1(fromObject) {
7131
7123
  const toObject = {};
7132
- if (getValueByPath(fromObject, ['behavior']) !== undefined) {
7133
- throw new Error('behavior parameter is not supported in Vertex AI.');
7134
- }
7135
7124
  const fromDescription = getValueByPath(fromObject, ['description']);
7136
7125
  if (fromDescription != null) {
7137
7126
  setValueByPath(toObject, ['description'], fromDescription);
@@ -7160,6 +7149,9 @@ function functionDeclarationToVertex$1(fromObject) {
7160
7149
  if (fromResponseJsonSchema != null) {
7161
7150
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
7162
7151
  }
7152
+ if (getValueByPath(fromObject, ['behavior']) !== undefined) {
7153
+ throw new Error('behavior parameter is not supported in Vertex AI.');
7154
+ }
7163
7155
  return toObject;
7164
7156
  }
7165
7157
  function generationConfigToVertex$1(fromObject) {
@@ -7801,27 +7793,9 @@ function sessionResumptionConfigToMldev$1(fromObject) {
7801
7793
  }
7802
7794
  function toolToMldev$2(fromObject) {
7803
7795
  const toObject = {};
7804
- const fromFunctionDeclarations = getValueByPath(fromObject, [
7805
- 'functionDeclarations',
7806
- ]);
7807
- if (fromFunctionDeclarations != null) {
7808
- let transformedList = fromFunctionDeclarations;
7809
- if (Array.isArray(transformedList)) {
7810
- transformedList = transformedList.map((item) => {
7811
- return item;
7812
- });
7813
- }
7814
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
7815
- }
7816
7796
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
7817
7797
  throw new Error('retrieval parameter is not supported in Gemini API.');
7818
7798
  }
7819
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7820
- 'googleSearchRetrieval',
7821
- ]);
7822
- if (fromGoogleSearchRetrieval != null) {
7823
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
7824
- }
7825
7799
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
7826
7800
  if (fromComputerUse != null) {
7827
7801
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -7839,6 +7813,18 @@ function toolToMldev$2(fromObject) {
7839
7813
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
7840
7814
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
7841
7815
  }
7816
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
7817
+ 'functionDeclarations',
7818
+ ]);
7819
+ if (fromFunctionDeclarations != null) {
7820
+ let transformedList = fromFunctionDeclarations;
7821
+ if (Array.isArray(transformedList)) {
7822
+ transformedList = transformedList.map((item) => {
7823
+ return item;
7824
+ });
7825
+ }
7826
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
7827
+ }
7842
7828
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
7843
7829
  if (fromGoogleMaps != null) {
7844
7830
  setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));
@@ -7847,6 +7833,12 @@ function toolToMldev$2(fromObject) {
7847
7833
  if (fromGoogleSearch != null) {
7848
7834
  setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));
7849
7835
  }
7836
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7837
+ 'googleSearchRetrieval',
7838
+ ]);
7839
+ if (fromGoogleSearchRetrieval != null) {
7840
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
7841
+ }
7850
7842
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
7851
7843
  if (fromUrlContext != null) {
7852
7844
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -7855,28 +7847,10 @@ function toolToMldev$2(fromObject) {
7855
7847
  }
7856
7848
  function toolToVertex$1(fromObject) {
7857
7849
  const toObject = {};
7858
- const fromFunctionDeclarations = getValueByPath(fromObject, [
7859
- 'functionDeclarations',
7860
- ]);
7861
- if (fromFunctionDeclarations != null) {
7862
- let transformedList = fromFunctionDeclarations;
7863
- if (Array.isArray(transformedList)) {
7864
- transformedList = transformedList.map((item) => {
7865
- return functionDeclarationToVertex$1(item);
7866
- });
7867
- }
7868
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
7869
- }
7870
7850
  const fromRetrieval = getValueByPath(fromObject, ['retrieval']);
7871
7851
  if (fromRetrieval != null) {
7872
7852
  setValueByPath(toObject, ['retrieval'], fromRetrieval);
7873
7853
  }
7874
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7875
- 'googleSearchRetrieval',
7876
- ]);
7877
- if (fromGoogleSearchRetrieval != null) {
7878
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
7879
- }
7880
7854
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
7881
7855
  if (fromComputerUse != null) {
7882
7856
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -7896,6 +7870,18 @@ function toolToVertex$1(fromObject) {
7896
7870
  if (fromEnterpriseWebSearch != null) {
7897
7871
  setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);
7898
7872
  }
7873
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
7874
+ 'functionDeclarations',
7875
+ ]);
7876
+ if (fromFunctionDeclarations != null) {
7877
+ let transformedList = fromFunctionDeclarations;
7878
+ if (Array.isArray(transformedList)) {
7879
+ transformedList = transformedList.map((item) => {
7880
+ return functionDeclarationToVertex$1(item);
7881
+ });
7882
+ }
7883
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
7884
+ }
7899
7885
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
7900
7886
  if (fromGoogleMaps != null) {
7901
7887
  setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
@@ -7904,6 +7890,12 @@ function toolToVertex$1(fromObject) {
7904
7890
  if (fromGoogleSearch != null) {
7905
7891
  setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
7906
7892
  }
7893
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7894
+ 'googleSearchRetrieval',
7895
+ ]);
7896
+ if (fromGoogleSearchRetrieval != null) {
7897
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
7898
+ }
7907
7899
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
7908
7900
  if (fromUrlContext != null) {
7909
7901
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -8686,16 +8678,16 @@ function functionCallToMldev$1(fromObject) {
8686
8678
  }
8687
8679
  function functionCallingConfigToMldev(fromObject) {
8688
8680
  const toObject = {};
8689
- const fromMode = getValueByPath(fromObject, ['mode']);
8690
- if (fromMode != null) {
8691
- setValueByPath(toObject, ['mode'], fromMode);
8692
- }
8693
8681
  const fromAllowedFunctionNames = getValueByPath(fromObject, [
8694
8682
  'allowedFunctionNames',
8695
8683
  ]);
8696
8684
  if (fromAllowedFunctionNames != null) {
8697
8685
  setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);
8698
8686
  }
8687
+ const fromMode = getValueByPath(fromObject, ['mode']);
8688
+ if (fromMode != null) {
8689
+ setValueByPath(toObject, ['mode'], fromMode);
8690
+ }
8699
8691
  if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==
8700
8692
  undefined) {
8701
8693
  throw new Error('streamFunctionCallArguments parameter is not supported in Gemini API.');
@@ -8704,9 +8696,6 @@ function functionCallingConfigToMldev(fromObject) {
8704
8696
  }
8705
8697
  function functionDeclarationToVertex(fromObject) {
8706
8698
  const toObject = {};
8707
- if (getValueByPath(fromObject, ['behavior']) !== undefined) {
8708
- throw new Error('behavior parameter is not supported in Vertex AI.');
8709
- }
8710
8699
  const fromDescription = getValueByPath(fromObject, ['description']);
8711
8700
  if (fromDescription != null) {
8712
8701
  setValueByPath(toObject, ['description'], fromDescription);
@@ -8735,6 +8724,9 @@ function functionDeclarationToVertex(fromObject) {
8735
8724
  if (fromResponseJsonSchema != null) {
8736
8725
  setValueByPath(toObject, ['responseJsonSchema'], fromResponseJsonSchema);
8737
8726
  }
8727
+ if (getValueByPath(fromObject, ['behavior']) !== undefined) {
8728
+ throw new Error('behavior parameter is not supported in Vertex AI.');
8729
+ }
8738
8730
  return toObject;
8739
8731
  }
8740
8732
  function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
@@ -10072,6 +10064,9 @@ function imageConfigToMldev(fromObject) {
10072
10064
  if (fromImageSize != null) {
10073
10065
  setValueByPath(toObject, ['imageSize'], fromImageSize);
10074
10066
  }
10067
+ if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {
10068
+ throw new Error('personGeneration parameter is not supported in Gemini API.');
10069
+ }
10075
10070
  if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {
10076
10071
  throw new Error('outputMimeType parameter is not supported in Gemini API.');
10077
10072
  }
@@ -10091,6 +10086,12 @@ function imageConfigToVertex(fromObject) {
10091
10086
  if (fromImageSize != null) {
10092
10087
  setValueByPath(toObject, ['imageSize'], fromImageSize);
10093
10088
  }
10089
+ const fromPersonGeneration = getValueByPath(fromObject, [
10090
+ 'personGeneration',
10091
+ ]);
10092
+ if (fromPersonGeneration != null) {
10093
+ setValueByPath(toObject, ['personGeneration'], fromPersonGeneration);
10094
+ }
10094
10095
  const fromOutputMimeType = getValueByPath(fromObject, [
10095
10096
  'outputMimeType',
10096
10097
  ]);
@@ -10791,43 +10792,25 @@ function segmentImageSourceToVertex(fromObject, parentObject) {
10791
10792
  }
10792
10793
  function toolConfigToMldev(fromObject) {
10793
10794
  const toObject = {};
10794
- const fromFunctionCallingConfig = getValueByPath(fromObject, [
10795
- 'functionCallingConfig',
10796
- ]);
10797
- if (fromFunctionCallingConfig != null) {
10798
- setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev(fromFunctionCallingConfig));
10799
- }
10800
10795
  const fromRetrievalConfig = getValueByPath(fromObject, [
10801
10796
  'retrievalConfig',
10802
10797
  ]);
10803
10798
  if (fromRetrievalConfig != null) {
10804
10799
  setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);
10805
10800
  }
10801
+ const fromFunctionCallingConfig = getValueByPath(fromObject, [
10802
+ 'functionCallingConfig',
10803
+ ]);
10804
+ if (fromFunctionCallingConfig != null) {
10805
+ setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev(fromFunctionCallingConfig));
10806
+ }
10806
10807
  return toObject;
10807
10808
  }
10808
10809
  function toolToMldev$1(fromObject) {
10809
10810
  const toObject = {};
10810
- const fromFunctionDeclarations = getValueByPath(fromObject, [
10811
- 'functionDeclarations',
10812
- ]);
10813
- if (fromFunctionDeclarations != null) {
10814
- let transformedList = fromFunctionDeclarations;
10815
- if (Array.isArray(transformedList)) {
10816
- transformedList = transformedList.map((item) => {
10817
- return item;
10818
- });
10819
- }
10820
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
10821
- }
10822
10811
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
10823
10812
  throw new Error('retrieval parameter is not supported in Gemini API.');
10824
10813
  }
10825
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
10826
- 'googleSearchRetrieval',
10827
- ]);
10828
- if (fromGoogleSearchRetrieval != null) {
10829
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
10830
- }
10831
10814
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
10832
10815
  if (fromComputerUse != null) {
10833
10816
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -10845,6 +10828,18 @@ function toolToMldev$1(fromObject) {
10845
10828
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
10846
10829
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
10847
10830
  }
10831
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
10832
+ 'functionDeclarations',
10833
+ ]);
10834
+ if (fromFunctionDeclarations != null) {
10835
+ let transformedList = fromFunctionDeclarations;
10836
+ if (Array.isArray(transformedList)) {
10837
+ transformedList = transformedList.map((item) => {
10838
+ return item;
10839
+ });
10840
+ }
10841
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
10842
+ }
10848
10843
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
10849
10844
  if (fromGoogleMaps != null) {
10850
10845
  setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));
@@ -10853,6 +10848,12 @@ function toolToMldev$1(fromObject) {
10853
10848
  if (fromGoogleSearch != null) {
10854
10849
  setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));
10855
10850
  }
10851
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
10852
+ 'googleSearchRetrieval',
10853
+ ]);
10854
+ if (fromGoogleSearchRetrieval != null) {
10855
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
10856
+ }
10856
10857
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
10857
10858
  if (fromUrlContext != null) {
10858
10859
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -10861,28 +10862,10 @@ function toolToMldev$1(fromObject) {
10861
10862
  }
10862
10863
  function toolToVertex(fromObject) {
10863
10864
  const toObject = {};
10864
- const fromFunctionDeclarations = getValueByPath(fromObject, [
10865
- 'functionDeclarations',
10866
- ]);
10867
- if (fromFunctionDeclarations != null) {
10868
- let transformedList = fromFunctionDeclarations;
10869
- if (Array.isArray(transformedList)) {
10870
- transformedList = transformedList.map((item) => {
10871
- return functionDeclarationToVertex(item);
10872
- });
10873
- }
10874
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
10875
- }
10876
10865
  const fromRetrieval = getValueByPath(fromObject, ['retrieval']);
10877
10866
  if (fromRetrieval != null) {
10878
10867
  setValueByPath(toObject, ['retrieval'], fromRetrieval);
10879
10868
  }
10880
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
10881
- 'googleSearchRetrieval',
10882
- ]);
10883
- if (fromGoogleSearchRetrieval != null) {
10884
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
10885
- }
10886
10869
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
10887
10870
  if (fromComputerUse != null) {
10888
10871
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -10902,6 +10885,18 @@ function toolToVertex(fromObject) {
10902
10885
  if (fromEnterpriseWebSearch != null) {
10903
10886
  setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);
10904
10887
  }
10888
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
10889
+ 'functionDeclarations',
10890
+ ]);
10891
+ if (fromFunctionDeclarations != null) {
10892
+ let transformedList = fromFunctionDeclarations;
10893
+ if (Array.isArray(transformedList)) {
10894
+ transformedList = transformedList.map((item) => {
10895
+ return functionDeclarationToVertex(item);
10896
+ });
10897
+ }
10898
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
10899
+ }
10905
10900
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
10906
10901
  if (fromGoogleMaps != null) {
10907
10902
  setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);
@@ -10910,6 +10905,12 @@ function toolToVertex(fromObject) {
10910
10905
  if (fromGoogleSearch != null) {
10911
10906
  setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);
10912
10907
  }
10908
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
10909
+ 'googleSearchRetrieval',
10910
+ ]);
10911
+ if (fromGoogleSearchRetrieval != null) {
10912
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
10913
+ }
10913
10914
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
10914
10915
  if (fromUrlContext != null) {
10915
10916
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -11470,7 +11471,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
11470
11471
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
11471
11472
  const USER_AGENT_HEADER = 'User-Agent';
11472
11473
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
11473
- const SDK_VERSION = '1.34.0'; // x-release-please-version
11474
+ const SDK_VERSION = '1.35.0'; // x-release-please-version
11474
11475
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
11475
11476
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
11476
11477
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -13184,7 +13185,7 @@ class Models extends BaseModule {
13184
13185
  * @example
13185
13186
  * ```ts
13186
13187
  * const response = await client.models.generateImages({
13187
- * model: 'imagen-3.0-generate-002',
13188
+ * model: 'imagen-4.0-generate-001',
13188
13189
  * prompt: 'Robot holding a red skateboard',
13189
13190
  * config: {
13190
13191
  * numberOfImages: 1,
@@ -13293,7 +13294,7 @@ class Models extends BaseModule {
13293
13294
  * @example
13294
13295
  * ```ts
13295
13296
  * const response = await client.models.upscaleImage({
13296
- * model: 'imagen-3.0-generate-002',
13297
+ * model: 'imagen-4.0-upscale-preview',
13297
13298
  * image: image,
13298
13299
  * upscaleFactor: 'x2',
13299
13300
  * config: {
@@ -13955,7 +13956,7 @@ class Models extends BaseModule {
13955
13956
  * console.log(response1?.generatedImages?.[0]?.image?.imageBytes);
13956
13957
  *
13957
13958
  * const response2 = await ai.models.recontextImage({
13958
- * model: 'virtual-try-on-preview-08-04',
13959
+ * model: 'virtual-try-on-001',
13959
13960
  * source: {
13960
13961
  * personImage: personImage,
13961
13962
  * productImages: [productImage],
@@ -15037,27 +15038,9 @@ function sessionResumptionConfigToMldev(fromObject) {
15037
15038
  }
15038
15039
  function toolToMldev(fromObject) {
15039
15040
  const toObject = {};
15040
- const fromFunctionDeclarations = getValueByPath(fromObject, [
15041
- 'functionDeclarations',
15042
- ]);
15043
- if (fromFunctionDeclarations != null) {
15044
- let transformedList = fromFunctionDeclarations;
15045
- if (Array.isArray(transformedList)) {
15046
- transformedList = transformedList.map((item) => {
15047
- return item;
15048
- });
15049
- }
15050
- setValueByPath(toObject, ['functionDeclarations'], transformedList);
15051
- }
15052
15041
  if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
15053
15042
  throw new Error('retrieval parameter is not supported in Gemini API.');
15054
15043
  }
15055
- const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
15056
- 'googleSearchRetrieval',
15057
- ]);
15058
- if (fromGoogleSearchRetrieval != null) {
15059
- setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
15060
- }
15061
15044
  const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
15062
15045
  if (fromComputerUse != null) {
15063
15046
  setValueByPath(toObject, ['computerUse'], fromComputerUse);
@@ -15075,6 +15058,18 @@ function toolToMldev(fromObject) {
15075
15058
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
15076
15059
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
15077
15060
  }
15061
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
15062
+ 'functionDeclarations',
15063
+ ]);
15064
+ if (fromFunctionDeclarations != null) {
15065
+ let transformedList = fromFunctionDeclarations;
15066
+ if (Array.isArray(transformedList)) {
15067
+ transformedList = transformedList.map((item) => {
15068
+ return item;
15069
+ });
15070
+ }
15071
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
15072
+ }
15078
15073
  const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
15079
15074
  if (fromGoogleMaps != null) {
15080
15075
  setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));
@@ -15083,6 +15078,12 @@ function toolToMldev(fromObject) {
15083
15078
  if (fromGoogleSearch != null) {
15084
15079
  setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));
15085
15080
  }
15081
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
15082
+ 'googleSearchRetrieval',
15083
+ ]);
15084
+ if (fromGoogleSearchRetrieval != null) {
15085
+ setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);
15086
+ }
15086
15087
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
15087
15088
  if (fromUrlContext != null) {
15088
15089
  setValueByPath(toObject, ['urlContext'], fromUrlContext);
@@ -19212,5 +19213,5 @@ class GoogleGenAI {
19212
19213
  }
19213
19214
  }
19214
19215
 
19215
- export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, 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, Mode, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, RawReferenceImage, RecontextImageResponse, ReplayResponse, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
19216
+ export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, 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, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, RawReferenceImage, RecontextImageResponse, ReplayResponse, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
19216
19217
  //# sourceMappingURL=index.mjs.map