@google/genai 1.2.0 → 1.3.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.
@@ -192,7 +192,6 @@ function getValueByPath(data, keys) {
192
192
  * Copyright 2025 Google LLC
193
193
  * SPDX-License-Identifier: Apache-2.0
194
194
  */
195
- // Code generated by the Google Gen AI SDK generator DO NOT EDIT.
196
195
  /** Required. Outcome of the code execution. */
197
196
  var Outcome;
198
197
  (function (Outcome) {
@@ -428,6 +427,10 @@ var FinishReason;
428
427
  * Token generation stopped because generated images have safety violations.
429
428
  */
430
429
  FinishReason["IMAGE_SAFETY"] = "IMAGE_SAFETY";
430
+ /**
431
+ * The tool call generated by the model is invalid.
432
+ */
433
+ FinishReason["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
431
434
  })(FinishReason || (FinishReason = {}));
432
435
  /** Output only. Harm probability levels in the content. */
433
436
  var HarmProbability;
@@ -1421,7 +1424,6 @@ class ReplayResponse {
1421
1424
  */
1422
1425
  class RawReferenceImage {
1423
1426
  /** Internal method to convert to ReferenceImageAPIInternal. */
1424
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1425
1427
  toReferenceImageAPI() {
1426
1428
  const referenceImageAPI = {
1427
1429
  referenceType: 'REFERENCE_TYPE_RAW',
@@ -1443,7 +1445,6 @@ class RawReferenceImage {
1443
1445
  */
1444
1446
  class MaskReferenceImage {
1445
1447
  /** Internal method to convert to ReferenceImageAPIInternal. */
1446
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1447
1448
  toReferenceImageAPI() {
1448
1449
  const referenceImageAPI = {
1449
1450
  referenceType: 'REFERENCE_TYPE_MASK',
@@ -1466,7 +1467,6 @@ class MaskReferenceImage {
1466
1467
  */
1467
1468
  class ControlReferenceImage {
1468
1469
  /** Internal method to convert to ReferenceImageAPIInternal. */
1469
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1470
1470
  toReferenceImageAPI() {
1471
1471
  const referenceImageAPI = {
1472
1472
  referenceType: 'REFERENCE_TYPE_CONTROL',
@@ -1487,7 +1487,6 @@ class ControlReferenceImage {
1487
1487
  */
1488
1488
  class StyleReferenceImage {
1489
1489
  /** Internal method to convert to ReferenceImageAPIInternal. */
1490
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1491
1490
  toReferenceImageAPI() {
1492
1491
  const referenceImageAPI = {
1493
1492
  referenceType: 'REFERENCE_TYPE_STYLE',
@@ -1508,7 +1507,6 @@ class StyleReferenceImage {
1508
1507
  */
1509
1508
  class SubjectReferenceImage {
1510
1509
  /* Internal method to convert to ReferenceImageAPIInternal. */
1511
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1512
1510
  toReferenceImageAPI() {
1513
1511
  const referenceImageAPI = {
1514
1512
  referenceType: 'REFERENCE_TYPE_SUBJECT',
@@ -2423,7 +2421,7 @@ function filterToJsonSchema(schema) {
2423
2421
  * Copyright 2025 Google LLC
2424
2422
  * SPDX-License-Identifier: Apache-2.0
2425
2423
  */
2426
- function videoMetadataToMldev$2(apiClient, fromObject) {
2424
+ function videoMetadataToMldev$3(apiClient, fromObject) {
2427
2425
  const toObject = {};
2428
2426
  const fromFps = getValueByPath(fromObject, ['fps']);
2429
2427
  if (fromFps != null) {
@@ -2439,7 +2437,7 @@ function videoMetadataToMldev$2(apiClient, fromObject) {
2439
2437
  }
2440
2438
  return toObject;
2441
2439
  }
2442
- function blobToMldev$2(apiClient, fromObject) {
2440
+ function blobToMldev$3(apiClient, fromObject) {
2443
2441
  const toObject = {};
2444
2442
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2445
2443
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -2454,7 +2452,7 @@ function blobToMldev$2(apiClient, fromObject) {
2454
2452
  }
2455
2453
  return toObject;
2456
2454
  }
2457
- function fileDataToMldev$2(apiClient, fromObject) {
2455
+ function fileDataToMldev$3(apiClient, fromObject) {
2458
2456
  const toObject = {};
2459
2457
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
2460
2458
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -2469,13 +2467,13 @@ function fileDataToMldev$2(apiClient, fromObject) {
2469
2467
  }
2470
2468
  return toObject;
2471
2469
  }
2472
- function partToMldev$2(apiClient, fromObject) {
2470
+ function partToMldev$3(apiClient, fromObject) {
2473
2471
  const toObject = {};
2474
2472
  const fromVideoMetadata = getValueByPath(fromObject, [
2475
2473
  'videoMetadata',
2476
2474
  ]);
2477
2475
  if (fromVideoMetadata != null) {
2478
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$2(apiClient, fromVideoMetadata));
2476
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$3(apiClient, fromVideoMetadata));
2479
2477
  }
2480
2478
  const fromThought = getValueByPath(fromObject, ['thought']);
2481
2479
  if (fromThought != null) {
@@ -2483,11 +2481,17 @@ function partToMldev$2(apiClient, fromObject) {
2483
2481
  }
2484
2482
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
2485
2483
  if (fromInlineData != null) {
2486
- setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
2484
+ setValueByPath(toObject, ['inlineData'], blobToMldev$3(apiClient, fromInlineData));
2487
2485
  }
2488
2486
  const fromFileData = getValueByPath(fromObject, ['fileData']);
2489
2487
  if (fromFileData != null) {
2490
- setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
2488
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$3(apiClient, fromFileData));
2489
+ }
2490
+ const fromThoughtSignature = getValueByPath(fromObject, [
2491
+ 'thoughtSignature',
2492
+ ]);
2493
+ if (fromThoughtSignature != null) {
2494
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
2491
2495
  }
2492
2496
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2493
2497
  'codeExecutionResult',
@@ -2517,14 +2521,14 @@ function partToMldev$2(apiClient, fromObject) {
2517
2521
  }
2518
2522
  return toObject;
2519
2523
  }
2520
- function contentToMldev$2(apiClient, fromObject) {
2524
+ function contentToMldev$3(apiClient, fromObject) {
2521
2525
  const toObject = {};
2522
2526
  const fromParts = getValueByPath(fromObject, ['parts']);
2523
2527
  if (fromParts != null) {
2524
2528
  let transformedList = fromParts;
2525
2529
  if (Array.isArray(transformedList)) {
2526
2530
  transformedList = transformedList.map((item) => {
2527
- return partToMldev$2(apiClient, item);
2531
+ return partToMldev$3(apiClient, item);
2528
2532
  });
2529
2533
  }
2530
2534
  setValueByPath(toObject, ['parts'], transformedList);
@@ -2535,7 +2539,7 @@ function contentToMldev$2(apiClient, fromObject) {
2535
2539
  }
2536
2540
  return toObject;
2537
2541
  }
2538
- function functionDeclarationToMldev$2(apiClient, fromObject) {
2542
+ function functionDeclarationToMldev$3(apiClient, fromObject) {
2539
2543
  const toObject = {};
2540
2544
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
2541
2545
  if (fromBehavior != null) {
@@ -2559,7 +2563,7 @@ function functionDeclarationToMldev$2(apiClient, fromObject) {
2559
2563
  }
2560
2564
  return toObject;
2561
2565
  }
2562
- function intervalToMldev$2(apiClient, fromObject) {
2566
+ function intervalToMldev$3(apiClient, fromObject) {
2563
2567
  const toObject = {};
2564
2568
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
2565
2569
  if (fromStartTime != null) {
@@ -2571,17 +2575,17 @@ function intervalToMldev$2(apiClient, fromObject) {
2571
2575
  }
2572
2576
  return toObject;
2573
2577
  }
2574
- function googleSearchToMldev$2(apiClient, fromObject) {
2578
+ function googleSearchToMldev$3(apiClient, fromObject) {
2575
2579
  const toObject = {};
2576
2580
  const fromTimeRangeFilter = getValueByPath(fromObject, [
2577
2581
  'timeRangeFilter',
2578
2582
  ]);
2579
2583
  if (fromTimeRangeFilter != null) {
2580
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(apiClient, fromTimeRangeFilter));
2584
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$3(apiClient, fromTimeRangeFilter));
2581
2585
  }
2582
2586
  return toObject;
2583
2587
  }
2584
- function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
2588
+ function dynamicRetrievalConfigToMldev$3(apiClient, fromObject) {
2585
2589
  const toObject = {};
2586
2590
  const fromMode = getValueByPath(fromObject, ['mode']);
2587
2591
  if (fromMode != null) {
@@ -2595,21 +2599,21 @@ function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
2595
2599
  }
2596
2600
  return toObject;
2597
2601
  }
2598
- function googleSearchRetrievalToMldev$2(apiClient, fromObject) {
2602
+ function googleSearchRetrievalToMldev$3(apiClient, fromObject) {
2599
2603
  const toObject = {};
2600
2604
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
2601
2605
  'dynamicRetrievalConfig',
2602
2606
  ]);
2603
2607
  if (fromDynamicRetrievalConfig != null) {
2604
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$2(apiClient, fromDynamicRetrievalConfig));
2608
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$3(apiClient, fromDynamicRetrievalConfig));
2605
2609
  }
2606
2610
  return toObject;
2607
2611
  }
2608
- function urlContextToMldev$2() {
2612
+ function urlContextToMldev$3() {
2609
2613
  const toObject = {};
2610
2614
  return toObject;
2611
2615
  }
2612
- function toolToMldev$2(apiClient, fromObject) {
2616
+ function toolToMldev$3(apiClient, fromObject) {
2613
2617
  const toObject = {};
2614
2618
  const fromFunctionDeclarations = getValueByPath(fromObject, [
2615
2619
  'functionDeclarations',
@@ -2618,7 +2622,7 @@ function toolToMldev$2(apiClient, fromObject) {
2618
2622
  let transformedList = fromFunctionDeclarations;
2619
2623
  if (Array.isArray(transformedList)) {
2620
2624
  transformedList = transformedList.map((item) => {
2621
- return functionDeclarationToMldev$2(apiClient, item);
2625
+ return functionDeclarationToMldev$3(apiClient, item);
2622
2626
  });
2623
2627
  }
2624
2628
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -2628,13 +2632,13 @@ function toolToMldev$2(apiClient, fromObject) {
2628
2632
  }
2629
2633
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
2630
2634
  if (fromGoogleSearch != null) {
2631
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(apiClient, fromGoogleSearch));
2635
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(apiClient, fromGoogleSearch));
2632
2636
  }
2633
2637
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
2634
2638
  'googleSearchRetrieval',
2635
2639
  ]);
2636
2640
  if (fromGoogleSearchRetrieval != null) {
2637
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$2(apiClient, fromGoogleSearchRetrieval));
2641
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$3(apiClient, fromGoogleSearchRetrieval));
2638
2642
  }
2639
2643
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
2640
2644
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -2644,7 +2648,7 @@ function toolToMldev$2(apiClient, fromObject) {
2644
2648
  }
2645
2649
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
2646
2650
  if (fromUrlContext != null) {
2647
- setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
2651
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$3());
2648
2652
  }
2649
2653
  const fromCodeExecution = getValueByPath(fromObject, [
2650
2654
  'codeExecution',
@@ -2727,7 +2731,7 @@ function createCachedContentConfigToMldev(apiClient, fromObject, parentObject) {
2727
2731
  let transformedList = tContents(apiClient, fromContents);
2728
2732
  if (Array.isArray(transformedList)) {
2729
2733
  transformedList = transformedList.map((item) => {
2730
- return contentToMldev$2(apiClient, item);
2734
+ return contentToMldev$3(apiClient, item);
2731
2735
  });
2732
2736
  }
2733
2737
  setValueByPath(parentObject, ['contents'], transformedList);
@@ -2736,14 +2740,14 @@ function createCachedContentConfigToMldev(apiClient, fromObject, parentObject) {
2736
2740
  'systemInstruction',
2737
2741
  ]);
2738
2742
  if (parentObject !== undefined && fromSystemInstruction != null) {
2739
- setValueByPath(parentObject, ['systemInstruction'], contentToMldev$2(apiClient, tContent(apiClient, fromSystemInstruction)));
2743
+ setValueByPath(parentObject, ['systemInstruction'], contentToMldev$3(apiClient, tContent(apiClient, fromSystemInstruction)));
2740
2744
  }
2741
2745
  const fromTools = getValueByPath(fromObject, ['tools']);
2742
2746
  if (parentObject !== undefined && fromTools != null) {
2743
2747
  let transformedList = fromTools;
2744
2748
  if (Array.isArray(transformedList)) {
2745
2749
  transformedList = transformedList.map((item) => {
2746
- return toolToMldev$2(apiClient, item);
2750
+ return toolToMldev$3(apiClient, item);
2747
2751
  });
2748
2752
  }
2749
2753
  setValueByPath(parentObject, ['tools'], transformedList);
@@ -2905,6 +2909,12 @@ function partToVertex$2(apiClient, fromObject) {
2905
2909
  if (fromFileData != null) {
2906
2910
  setValueByPath(toObject, ['fileData'], fileDataToVertex$2(apiClient, fromFileData));
2907
2911
  }
2912
+ const fromThoughtSignature = getValueByPath(fromObject, [
2913
+ 'thoughtSignature',
2914
+ ]);
2915
+ if (fromThoughtSignature != null) {
2916
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
2917
+ }
2908
2918
  const fromCodeExecutionResult = getValueByPath(fromObject, [
2909
2919
  'codeExecutionResult',
2910
2920
  ]);
@@ -4883,7 +4893,7 @@ class Files extends BaseModule {
4883
4893
  * Copyright 2025 Google LLC
4884
4894
  * SPDX-License-Identifier: Apache-2.0
4885
4895
  */
4886
- function prebuiltVoiceConfigToMldev$1(apiClient, fromObject) {
4896
+ function prebuiltVoiceConfigToMldev$2(apiClient, fromObject) {
4887
4897
  const toObject = {};
4888
4898
  const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
4889
4899
  if (fromVoiceName != null) {
@@ -4899,13 +4909,13 @@ function prebuiltVoiceConfigToVertex$1(apiClient, fromObject) {
4899
4909
  }
4900
4910
  return toObject;
4901
4911
  }
4902
- function voiceConfigToMldev$1(apiClient, fromObject) {
4912
+ function voiceConfigToMldev$2(apiClient, fromObject) {
4903
4913
  const toObject = {};
4904
4914
  const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
4905
4915
  'prebuiltVoiceConfig',
4906
4916
  ]);
4907
4917
  if (fromPrebuiltVoiceConfig != null) {
4908
- setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$1(apiClient, fromPrebuiltVoiceConfig));
4918
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$2(apiClient, fromPrebuiltVoiceConfig));
4909
4919
  }
4910
4920
  return toObject;
4911
4921
  }
@@ -4919,7 +4929,7 @@ function voiceConfigToVertex$1(apiClient, fromObject) {
4919
4929
  }
4920
4930
  return toObject;
4921
4931
  }
4922
- function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
4932
+ function speakerVoiceConfigToMldev$2(apiClient, fromObject) {
4923
4933
  const toObject = {};
4924
4934
  const fromSpeaker = getValueByPath(fromObject, ['speaker']);
4925
4935
  if (fromSpeaker != null) {
@@ -4927,11 +4937,11 @@ function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
4927
4937
  }
4928
4938
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
4929
4939
  if (fromVoiceConfig != null) {
4930
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
4940
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$2(apiClient, fromVoiceConfig));
4931
4941
  }
4932
4942
  return toObject;
4933
4943
  }
4934
- function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
4944
+ function multiSpeakerVoiceConfigToMldev$2(apiClient, fromObject) {
4935
4945
  const toObject = {};
4936
4946
  const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
4937
4947
  'speakerVoiceConfigs',
@@ -4940,24 +4950,24 @@ function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
4940
4950
  let transformedList = fromSpeakerVoiceConfigs;
4941
4951
  if (Array.isArray(transformedList)) {
4942
4952
  transformedList = transformedList.map((item) => {
4943
- return speakerVoiceConfigToMldev$1(apiClient, item);
4953
+ return speakerVoiceConfigToMldev$2(apiClient, item);
4944
4954
  });
4945
4955
  }
4946
4956
  setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
4947
4957
  }
4948
4958
  return toObject;
4949
4959
  }
4950
- function speechConfigToMldev$1(apiClient, fromObject) {
4960
+ function speechConfigToMldev$2(apiClient, fromObject) {
4951
4961
  const toObject = {};
4952
4962
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
4953
4963
  if (fromVoiceConfig != null) {
4954
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
4964
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$2(apiClient, fromVoiceConfig));
4955
4965
  }
4956
4966
  const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
4957
4967
  'multiSpeakerVoiceConfig',
4958
4968
  ]);
4959
4969
  if (fromMultiSpeakerVoiceConfig != null) {
4960
- setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$1(apiClient, fromMultiSpeakerVoiceConfig));
4970
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$2(apiClient, fromMultiSpeakerVoiceConfig));
4961
4971
  }
4962
4972
  const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
4963
4973
  if (fromLanguageCode != null) {
@@ -4980,7 +4990,7 @@ function speechConfigToVertex$1(apiClient, fromObject) {
4980
4990
  }
4981
4991
  return toObject;
4982
4992
  }
4983
- function videoMetadataToMldev$1(apiClient, fromObject) {
4993
+ function videoMetadataToMldev$2(apiClient, fromObject) {
4984
4994
  const toObject = {};
4985
4995
  const fromFps = getValueByPath(fromObject, ['fps']);
4986
4996
  if (fromFps != null) {
@@ -5012,7 +5022,7 @@ function videoMetadataToVertex$1(apiClient, fromObject) {
5012
5022
  }
5013
5023
  return toObject;
5014
5024
  }
5015
- function blobToMldev$1(apiClient, fromObject) {
5025
+ function blobToMldev$2(apiClient, fromObject) {
5016
5026
  const toObject = {};
5017
5027
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5018
5028
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -5043,7 +5053,7 @@ function blobToVertex$1(apiClient, fromObject) {
5043
5053
  }
5044
5054
  return toObject;
5045
5055
  }
5046
- function fileDataToMldev$1(apiClient, fromObject) {
5056
+ function fileDataToMldev$2(apiClient, fromObject) {
5047
5057
  const toObject = {};
5048
5058
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
5049
5059
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -5074,13 +5084,13 @@ function fileDataToVertex$1(apiClient, fromObject) {
5074
5084
  }
5075
5085
  return toObject;
5076
5086
  }
5077
- function partToMldev$1(apiClient, fromObject) {
5087
+ function partToMldev$2(apiClient, fromObject) {
5078
5088
  const toObject = {};
5079
5089
  const fromVideoMetadata = getValueByPath(fromObject, [
5080
5090
  'videoMetadata',
5081
5091
  ]);
5082
5092
  if (fromVideoMetadata != null) {
5083
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$1(apiClient, fromVideoMetadata));
5093
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$2(apiClient, fromVideoMetadata));
5084
5094
  }
5085
5095
  const fromThought = getValueByPath(fromObject, ['thought']);
5086
5096
  if (fromThought != null) {
@@ -5088,11 +5098,17 @@ function partToMldev$1(apiClient, fromObject) {
5088
5098
  }
5089
5099
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
5090
5100
  if (fromInlineData != null) {
5091
- setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
5101
+ setValueByPath(toObject, ['inlineData'], blobToMldev$2(apiClient, fromInlineData));
5092
5102
  }
5093
5103
  const fromFileData = getValueByPath(fromObject, ['fileData']);
5094
5104
  if (fromFileData != null) {
5095
- setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
5105
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$2(apiClient, fromFileData));
5106
+ }
5107
+ const fromThoughtSignature = getValueByPath(fromObject, [
5108
+ 'thoughtSignature',
5109
+ ]);
5110
+ if (fromThoughtSignature != null) {
5111
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
5096
5112
  }
5097
5113
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5098
5114
  'codeExecutionResult',
@@ -5142,6 +5158,12 @@ function partToVertex$1(apiClient, fromObject) {
5142
5158
  if (fromFileData != null) {
5143
5159
  setValueByPath(toObject, ['fileData'], fileDataToVertex$1(apiClient, fromFileData));
5144
5160
  }
5161
+ const fromThoughtSignature = getValueByPath(fromObject, [
5162
+ 'thoughtSignature',
5163
+ ]);
5164
+ if (fromThoughtSignature != null) {
5165
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
5166
+ }
5145
5167
  const fromCodeExecutionResult = getValueByPath(fromObject, [
5146
5168
  'codeExecutionResult',
5147
5169
  ]);
@@ -5170,14 +5192,14 @@ function partToVertex$1(apiClient, fromObject) {
5170
5192
  }
5171
5193
  return toObject;
5172
5194
  }
5173
- function contentToMldev$1(apiClient, fromObject) {
5195
+ function contentToMldev$2(apiClient, fromObject) {
5174
5196
  const toObject = {};
5175
5197
  const fromParts = getValueByPath(fromObject, ['parts']);
5176
5198
  if (fromParts != null) {
5177
5199
  let transformedList = fromParts;
5178
5200
  if (Array.isArray(transformedList)) {
5179
5201
  transformedList = transformedList.map((item) => {
5180
- return partToMldev$1(apiClient, item);
5202
+ return partToMldev$2(apiClient, item);
5181
5203
  });
5182
5204
  }
5183
5205
  setValueByPath(toObject, ['parts'], transformedList);
@@ -5206,7 +5228,7 @@ function contentToVertex$1(apiClient, fromObject) {
5206
5228
  }
5207
5229
  return toObject;
5208
5230
  }
5209
- function functionDeclarationToMldev$1(apiClient, fromObject) {
5231
+ function functionDeclarationToMldev$2(apiClient, fromObject) {
5210
5232
  const toObject = {};
5211
5233
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
5212
5234
  if (fromBehavior != null) {
@@ -5253,7 +5275,7 @@ function functionDeclarationToVertex$1(apiClient, fromObject) {
5253
5275
  }
5254
5276
  return toObject;
5255
5277
  }
5256
- function intervalToMldev$1(apiClient, fromObject) {
5278
+ function intervalToMldev$2(apiClient, fromObject) {
5257
5279
  const toObject = {};
5258
5280
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
5259
5281
  if (fromStartTime != null) {
@@ -5277,13 +5299,13 @@ function intervalToVertex$1(apiClient, fromObject) {
5277
5299
  }
5278
5300
  return toObject;
5279
5301
  }
5280
- function googleSearchToMldev$1(apiClient, fromObject) {
5302
+ function googleSearchToMldev$2(apiClient, fromObject) {
5281
5303
  const toObject = {};
5282
5304
  const fromTimeRangeFilter = getValueByPath(fromObject, [
5283
5305
  'timeRangeFilter',
5284
5306
  ]);
5285
5307
  if (fromTimeRangeFilter != null) {
5286
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(apiClient, fromTimeRangeFilter));
5308
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(apiClient, fromTimeRangeFilter));
5287
5309
  }
5288
5310
  return toObject;
5289
5311
  }
@@ -5297,7 +5319,7 @@ function googleSearchToVertex$1(apiClient, fromObject) {
5297
5319
  }
5298
5320
  return toObject;
5299
5321
  }
5300
- function dynamicRetrievalConfigToMldev$1(apiClient, fromObject) {
5322
+ function dynamicRetrievalConfigToMldev$2(apiClient, fromObject) {
5301
5323
  const toObject = {};
5302
5324
  const fromMode = getValueByPath(fromObject, ['mode']);
5303
5325
  if (fromMode != null) {
@@ -5325,13 +5347,13 @@ function dynamicRetrievalConfigToVertex$1(apiClient, fromObject) {
5325
5347
  }
5326
5348
  return toObject;
5327
5349
  }
5328
- function googleSearchRetrievalToMldev$1(apiClient, fromObject) {
5350
+ function googleSearchRetrievalToMldev$2(apiClient, fromObject) {
5329
5351
  const toObject = {};
5330
5352
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
5331
5353
  'dynamicRetrievalConfig',
5332
5354
  ]);
5333
5355
  if (fromDynamicRetrievalConfig != null) {
5334
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$1(apiClient, fromDynamicRetrievalConfig));
5356
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$2(apiClient, fromDynamicRetrievalConfig));
5335
5357
  }
5336
5358
  return toObject;
5337
5359
  }
@@ -5397,11 +5419,11 @@ function googleMapsToVertex$1(apiClient, fromObject) {
5397
5419
  }
5398
5420
  return toObject;
5399
5421
  }
5400
- function urlContextToMldev$1() {
5422
+ function urlContextToMldev$2() {
5401
5423
  const toObject = {};
5402
5424
  return toObject;
5403
5425
  }
5404
- function toolToMldev$1(apiClient, fromObject) {
5426
+ function toolToMldev$2(apiClient, fromObject) {
5405
5427
  const toObject = {};
5406
5428
  const fromFunctionDeclarations = getValueByPath(fromObject, [
5407
5429
  'functionDeclarations',
@@ -5410,7 +5432,7 @@ function toolToMldev$1(apiClient, fromObject) {
5410
5432
  let transformedList = fromFunctionDeclarations;
5411
5433
  if (Array.isArray(transformedList)) {
5412
5434
  transformedList = transformedList.map((item) => {
5413
- return functionDeclarationToMldev$1(apiClient, item);
5435
+ return functionDeclarationToMldev$2(apiClient, item);
5414
5436
  });
5415
5437
  }
5416
5438
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -5420,13 +5442,13 @@ function toolToMldev$1(apiClient, fromObject) {
5420
5442
  }
5421
5443
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
5422
5444
  if (fromGoogleSearch != null) {
5423
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(apiClient, fromGoogleSearch));
5445
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(apiClient, fromGoogleSearch));
5424
5446
  }
5425
5447
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
5426
5448
  'googleSearchRetrieval',
5427
5449
  ]);
5428
5450
  if (fromGoogleSearchRetrieval != null) {
5429
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$1(apiClient, fromGoogleSearchRetrieval));
5451
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$2(apiClient, fromGoogleSearchRetrieval));
5430
5452
  }
5431
5453
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
5432
5454
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -5436,7 +5458,7 @@ function toolToMldev$1(apiClient, fromObject) {
5436
5458
  }
5437
5459
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
5438
5460
  if (fromUrlContext != null) {
5439
- setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
5461
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
5440
5462
  }
5441
5463
  const fromCodeExecution = getValueByPath(fromObject, [
5442
5464
  'codeExecution',
@@ -5495,7 +5517,7 @@ function toolToVertex$1(apiClient, fromObject) {
5495
5517
  }
5496
5518
  return toObject;
5497
5519
  }
5498
- function sessionResumptionConfigToMldev(apiClient, fromObject) {
5520
+ function sessionResumptionConfigToMldev$1(apiClient, fromObject) {
5499
5521
  const toObject = {};
5500
5522
  const fromHandle = getValueByPath(fromObject, ['handle']);
5501
5523
  if (fromHandle != null) {
@@ -5518,7 +5540,7 @@ function sessionResumptionConfigToVertex(apiClient, fromObject) {
5518
5540
  }
5519
5541
  return toObject;
5520
5542
  }
5521
- function audioTranscriptionConfigToMldev() {
5543
+ function audioTranscriptionConfigToMldev$1() {
5522
5544
  const toObject = {};
5523
5545
  return toObject;
5524
5546
  }
@@ -5526,7 +5548,7 @@ function audioTranscriptionConfigToVertex() {
5526
5548
  const toObject = {};
5527
5549
  return toObject;
5528
5550
  }
5529
- function automaticActivityDetectionToMldev(apiClient, fromObject) {
5551
+ function automaticActivityDetectionToMldev$1(apiClient, fromObject) {
5530
5552
  const toObject = {};
5531
5553
  const fromDisabled = getValueByPath(fromObject, ['disabled']);
5532
5554
  if (fromDisabled != null) {
@@ -5590,13 +5612,13 @@ function automaticActivityDetectionToVertex(apiClient, fromObject) {
5590
5612
  }
5591
5613
  return toObject;
5592
5614
  }
5593
- function realtimeInputConfigToMldev(apiClient, fromObject) {
5615
+ function realtimeInputConfigToMldev$1(apiClient, fromObject) {
5594
5616
  const toObject = {};
5595
5617
  const fromAutomaticActivityDetection = getValueByPath(fromObject, [
5596
5618
  'automaticActivityDetection',
5597
5619
  ]);
5598
5620
  if (fromAutomaticActivityDetection != null) {
5599
- setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev(apiClient, fromAutomaticActivityDetection));
5621
+ setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev$1(apiClient, fromAutomaticActivityDetection));
5600
5622
  }
5601
5623
  const fromActivityHandling = getValueByPath(fromObject, [
5602
5624
  'activityHandling',
@@ -5630,7 +5652,7 @@ function realtimeInputConfigToVertex(apiClient, fromObject) {
5630
5652
  }
5631
5653
  return toObject;
5632
5654
  }
5633
- function slidingWindowToMldev(apiClient, fromObject) {
5655
+ function slidingWindowToMldev$1(apiClient, fromObject) {
5634
5656
  const toObject = {};
5635
5657
  const fromTargetTokens = getValueByPath(fromObject, ['targetTokens']);
5636
5658
  if (fromTargetTokens != null) {
@@ -5646,7 +5668,7 @@ function slidingWindowToVertex(apiClient, fromObject) {
5646
5668
  }
5647
5669
  return toObject;
5648
5670
  }
5649
- function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
5671
+ function contextWindowCompressionConfigToMldev$1(apiClient, fromObject) {
5650
5672
  const toObject = {};
5651
5673
  const fromTriggerTokens = getValueByPath(fromObject, [
5652
5674
  'triggerTokens',
@@ -5658,7 +5680,7 @@ function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
5658
5680
  'slidingWindow',
5659
5681
  ]);
5660
5682
  if (fromSlidingWindow != null) {
5661
- setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev(apiClient, fromSlidingWindow));
5683
+ setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev$1(apiClient, fromSlidingWindow));
5662
5684
  }
5663
5685
  return toObject;
5664
5686
  }
@@ -5678,7 +5700,7 @@ function contextWindowCompressionConfigToVertex(apiClient, fromObject) {
5678
5700
  }
5679
5701
  return toObject;
5680
5702
  }
5681
- function proactivityConfigToMldev(apiClient, fromObject) {
5703
+ function proactivityConfigToMldev$1(apiClient, fromObject) {
5682
5704
  const toObject = {};
5683
5705
  const fromProactiveAudio = getValueByPath(fromObject, [
5684
5706
  'proactiveAudio',
@@ -5698,7 +5720,7 @@ function proactivityConfigToVertex(apiClient, fromObject) {
5698
5720
  }
5699
5721
  return toObject;
5700
5722
  }
5701
- function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
5723
+ function liveConnectConfigToMldev$1(apiClient, fromObject, parentObject) {
5702
5724
  const toObject = {};
5703
5725
  const fromGenerationConfig = getValueByPath(fromObject, [
5704
5726
  'generationConfig',
@@ -5742,7 +5764,7 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
5742
5764
  }
5743
5765
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
5744
5766
  if (parentObject !== undefined && fromSpeechConfig != null) {
5745
- setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev$1(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
5767
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev$2(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
5746
5768
  }
5747
5769
  const fromEnableAffectiveDialog = getValueByPath(fromObject, [
5748
5770
  'enableAffectiveDialog',
@@ -5754,14 +5776,14 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
5754
5776
  'systemInstruction',
5755
5777
  ]);
5756
5778
  if (parentObject !== undefined && fromSystemInstruction != null) {
5757
- setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev$1(apiClient, tContent(apiClient, fromSystemInstruction)));
5779
+ setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev$2(apiClient, tContent(apiClient, fromSystemInstruction)));
5758
5780
  }
5759
5781
  const fromTools = getValueByPath(fromObject, ['tools']);
5760
5782
  if (parentObject !== undefined && fromTools != null) {
5761
5783
  let transformedList = tTools(apiClient, fromTools);
5762
5784
  if (Array.isArray(transformedList)) {
5763
5785
  transformedList = transformedList.map((item) => {
5764
- return toolToMldev$1(apiClient, tTool(apiClient, item));
5786
+ return toolToMldev$2(apiClient, tTool(apiClient, item));
5765
5787
  });
5766
5788
  }
5767
5789
  setValueByPath(parentObject, ['setup', 'tools'], transformedList);
@@ -5770,35 +5792,35 @@ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
5770
5792
  'sessionResumption',
5771
5793
  ]);
5772
5794
  if (parentObject !== undefined && fromSessionResumption != null) {
5773
- setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev(apiClient, fromSessionResumption));
5795
+ setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev$1(apiClient, fromSessionResumption));
5774
5796
  }
5775
5797
  const fromInputAudioTranscription = getValueByPath(fromObject, [
5776
5798
  'inputAudioTranscription',
5777
5799
  ]);
5778
5800
  if (parentObject !== undefined && fromInputAudioTranscription != null) {
5779
- setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev());
5801
+ setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev$1());
5780
5802
  }
5781
5803
  const fromOutputAudioTranscription = getValueByPath(fromObject, [
5782
5804
  'outputAudioTranscription',
5783
5805
  ]);
5784
5806
  if (parentObject !== undefined && fromOutputAudioTranscription != null) {
5785
- setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev());
5807
+ setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev$1());
5786
5808
  }
5787
5809
  const fromRealtimeInputConfig = getValueByPath(fromObject, [
5788
5810
  'realtimeInputConfig',
5789
5811
  ]);
5790
5812
  if (parentObject !== undefined && fromRealtimeInputConfig != null) {
5791
- setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev(apiClient, fromRealtimeInputConfig));
5813
+ setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev$1(apiClient, fromRealtimeInputConfig));
5792
5814
  }
5793
5815
  const fromContextWindowCompression = getValueByPath(fromObject, [
5794
5816
  'contextWindowCompression',
5795
5817
  ]);
5796
5818
  if (parentObject !== undefined && fromContextWindowCompression != null) {
5797
- setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev(apiClient, fromContextWindowCompression));
5819
+ setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev$1(apiClient, fromContextWindowCompression));
5798
5820
  }
5799
5821
  const fromProactivity = getValueByPath(fromObject, ['proactivity']);
5800
5822
  if (parentObject !== undefined && fromProactivity != null) {
5801
- setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev(apiClient, fromProactivity));
5823
+ setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev$1(apiClient, fromProactivity));
5802
5824
  }
5803
5825
  return toObject;
5804
5826
  }
@@ -5914,7 +5936,7 @@ function liveConnectParametersToMldev(apiClient, fromObject) {
5914
5936
  }
5915
5937
  const fromConfig = getValueByPath(fromObject, ['config']);
5916
5938
  if (fromConfig != null) {
5917
- setValueByPath(toObject, ['config'], liveConnectConfigToMldev(apiClient, fromConfig, toObject));
5939
+ setValueByPath(toObject, ['config'], liveConnectConfigToMldev$1(apiClient, fromConfig, toObject));
5918
5940
  }
5919
5941
  return toObject;
5920
5942
  }
@@ -6269,6 +6291,12 @@ function partFromMldev$1(apiClient, fromObject) {
6269
6291
  if (fromFileData != null) {
6270
6292
  setValueByPath(toObject, ['fileData'], fileDataFromMldev$1(apiClient, fromFileData));
6271
6293
  }
6294
+ const fromThoughtSignature = getValueByPath(fromObject, [
6295
+ 'thoughtSignature',
6296
+ ]);
6297
+ if (fromThoughtSignature != null) {
6298
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
6299
+ }
6272
6300
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6273
6301
  'codeExecutionResult',
6274
6302
  ]);
@@ -6317,6 +6345,12 @@ function partFromVertex$1(apiClient, fromObject) {
6317
6345
  if (fromFileData != null) {
6318
6346
  setValueByPath(toObject, ['fileData'], fileDataFromVertex$1(apiClient, fromFileData));
6319
6347
  }
6348
+ const fromThoughtSignature = getValueByPath(fromObject, [
6349
+ 'thoughtSignature',
6350
+ ]);
6351
+ if (fromThoughtSignature != null) {
6352
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
6353
+ }
6320
6354
  const fromCodeExecutionResult = getValueByPath(fromObject, [
6321
6355
  'codeExecutionResult',
6322
6356
  ]);
@@ -7107,7 +7141,7 @@ function liveMusicServerMessageFromMldev(apiClient, fromObject) {
7107
7141
  * Copyright 2025 Google LLC
7108
7142
  * SPDX-License-Identifier: Apache-2.0
7109
7143
  */
7110
- function videoMetadataToMldev(apiClient, fromObject) {
7144
+ function videoMetadataToMldev$1(apiClient, fromObject) {
7111
7145
  const toObject = {};
7112
7146
  const fromFps = getValueByPath(fromObject, ['fps']);
7113
7147
  if (fromFps != null) {
@@ -7123,7 +7157,7 @@ function videoMetadataToMldev(apiClient, fromObject) {
7123
7157
  }
7124
7158
  return toObject;
7125
7159
  }
7126
- function blobToMldev(apiClient, fromObject) {
7160
+ function blobToMldev$1(apiClient, fromObject) {
7127
7161
  const toObject = {};
7128
7162
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7129
7163
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -7138,7 +7172,7 @@ function blobToMldev(apiClient, fromObject) {
7138
7172
  }
7139
7173
  return toObject;
7140
7174
  }
7141
- function fileDataToMldev(apiClient, fromObject) {
7175
+ function fileDataToMldev$1(apiClient, fromObject) {
7142
7176
  const toObject = {};
7143
7177
  if (getValueByPath(fromObject, ['displayName']) !== undefined) {
7144
7178
  throw new Error('displayName parameter is not supported in Gemini API.');
@@ -7153,13 +7187,13 @@ function fileDataToMldev(apiClient, fromObject) {
7153
7187
  }
7154
7188
  return toObject;
7155
7189
  }
7156
- function partToMldev(apiClient, fromObject) {
7190
+ function partToMldev$1(apiClient, fromObject) {
7157
7191
  const toObject = {};
7158
7192
  const fromVideoMetadata = getValueByPath(fromObject, [
7159
7193
  'videoMetadata',
7160
7194
  ]);
7161
7195
  if (fromVideoMetadata != null) {
7162
- setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev(apiClient, fromVideoMetadata));
7196
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev$1(apiClient, fromVideoMetadata));
7163
7197
  }
7164
7198
  const fromThought = getValueByPath(fromObject, ['thought']);
7165
7199
  if (fromThought != null) {
@@ -7167,11 +7201,17 @@ function partToMldev(apiClient, fromObject) {
7167
7201
  }
7168
7202
  const fromInlineData = getValueByPath(fromObject, ['inlineData']);
7169
7203
  if (fromInlineData != null) {
7170
- setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
7204
+ setValueByPath(toObject, ['inlineData'], blobToMldev$1(apiClient, fromInlineData));
7171
7205
  }
7172
7206
  const fromFileData = getValueByPath(fromObject, ['fileData']);
7173
7207
  if (fromFileData != null) {
7174
- setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
7208
+ setValueByPath(toObject, ['fileData'], fileDataToMldev$1(apiClient, fromFileData));
7209
+ }
7210
+ const fromThoughtSignature = getValueByPath(fromObject, [
7211
+ 'thoughtSignature',
7212
+ ]);
7213
+ if (fromThoughtSignature != null) {
7214
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
7175
7215
  }
7176
7216
  const fromCodeExecutionResult = getValueByPath(fromObject, [
7177
7217
  'codeExecutionResult',
@@ -7201,14 +7241,14 @@ function partToMldev(apiClient, fromObject) {
7201
7241
  }
7202
7242
  return toObject;
7203
7243
  }
7204
- function contentToMldev(apiClient, fromObject) {
7244
+ function contentToMldev$1(apiClient, fromObject) {
7205
7245
  const toObject = {};
7206
7246
  const fromParts = getValueByPath(fromObject, ['parts']);
7207
7247
  if (fromParts != null) {
7208
7248
  let transformedList = fromParts;
7209
7249
  if (Array.isArray(transformedList)) {
7210
7250
  transformedList = transformedList.map((item) => {
7211
- return partToMldev(apiClient, item);
7251
+ return partToMldev$1(apiClient, item);
7212
7252
  });
7213
7253
  }
7214
7254
  setValueByPath(toObject, ['parts'], transformedList);
@@ -7332,7 +7372,7 @@ function safetySettingToMldev(apiClient, fromObject) {
7332
7372
  }
7333
7373
  return toObject;
7334
7374
  }
7335
- function functionDeclarationToMldev(apiClient, fromObject) {
7375
+ function functionDeclarationToMldev$1(apiClient, fromObject) {
7336
7376
  const toObject = {};
7337
7377
  const fromBehavior = getValueByPath(fromObject, ['behavior']);
7338
7378
  if (fromBehavior != null) {
@@ -7356,7 +7396,7 @@ function functionDeclarationToMldev(apiClient, fromObject) {
7356
7396
  }
7357
7397
  return toObject;
7358
7398
  }
7359
- function intervalToMldev(apiClient, fromObject) {
7399
+ function intervalToMldev$1(apiClient, fromObject) {
7360
7400
  const toObject = {};
7361
7401
  const fromStartTime = getValueByPath(fromObject, ['startTime']);
7362
7402
  if (fromStartTime != null) {
@@ -7368,17 +7408,17 @@ function intervalToMldev(apiClient, fromObject) {
7368
7408
  }
7369
7409
  return toObject;
7370
7410
  }
7371
- function googleSearchToMldev(apiClient, fromObject) {
7411
+ function googleSearchToMldev$1(apiClient, fromObject) {
7372
7412
  const toObject = {};
7373
7413
  const fromTimeRangeFilter = getValueByPath(fromObject, [
7374
7414
  'timeRangeFilter',
7375
7415
  ]);
7376
7416
  if (fromTimeRangeFilter != null) {
7377
- setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(apiClient, fromTimeRangeFilter));
7417
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(apiClient, fromTimeRangeFilter));
7378
7418
  }
7379
7419
  return toObject;
7380
7420
  }
7381
- function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
7421
+ function dynamicRetrievalConfigToMldev$1(apiClient, fromObject) {
7382
7422
  const toObject = {};
7383
7423
  const fromMode = getValueByPath(fromObject, ['mode']);
7384
7424
  if (fromMode != null) {
@@ -7392,21 +7432,21 @@ function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
7392
7432
  }
7393
7433
  return toObject;
7394
7434
  }
7395
- function googleSearchRetrievalToMldev(apiClient, fromObject) {
7435
+ function googleSearchRetrievalToMldev$1(apiClient, fromObject) {
7396
7436
  const toObject = {};
7397
7437
  const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
7398
7438
  'dynamicRetrievalConfig',
7399
7439
  ]);
7400
7440
  if (fromDynamicRetrievalConfig != null) {
7401
- setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev(apiClient, fromDynamicRetrievalConfig));
7441
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev$1(apiClient, fromDynamicRetrievalConfig));
7402
7442
  }
7403
7443
  return toObject;
7404
7444
  }
7405
- function urlContextToMldev() {
7445
+ function urlContextToMldev$1() {
7406
7446
  const toObject = {};
7407
7447
  return toObject;
7408
7448
  }
7409
- function toolToMldev(apiClient, fromObject) {
7449
+ function toolToMldev$1(apiClient, fromObject) {
7410
7450
  const toObject = {};
7411
7451
  const fromFunctionDeclarations = getValueByPath(fromObject, [
7412
7452
  'functionDeclarations',
@@ -7415,7 +7455,7 @@ function toolToMldev(apiClient, fromObject) {
7415
7455
  let transformedList = fromFunctionDeclarations;
7416
7456
  if (Array.isArray(transformedList)) {
7417
7457
  transformedList = transformedList.map((item) => {
7418
- return functionDeclarationToMldev(apiClient, item);
7458
+ return functionDeclarationToMldev$1(apiClient, item);
7419
7459
  });
7420
7460
  }
7421
7461
  setValueByPath(toObject, ['functionDeclarations'], transformedList);
@@ -7425,13 +7465,13 @@ function toolToMldev(apiClient, fromObject) {
7425
7465
  }
7426
7466
  const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
7427
7467
  if (fromGoogleSearch != null) {
7428
- setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(apiClient, fromGoogleSearch));
7468
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(apiClient, fromGoogleSearch));
7429
7469
  }
7430
7470
  const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
7431
7471
  'googleSearchRetrieval',
7432
7472
  ]);
7433
7473
  if (fromGoogleSearchRetrieval != null) {
7434
- setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev(apiClient, fromGoogleSearchRetrieval));
7474
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev$1(apiClient, fromGoogleSearchRetrieval));
7435
7475
  }
7436
7476
  if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
7437
7477
  throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
@@ -7441,7 +7481,7 @@ function toolToMldev(apiClient, fromObject) {
7441
7481
  }
7442
7482
  const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
7443
7483
  if (fromUrlContext != null) {
7444
- setValueByPath(toObject, ['urlContext'], urlContextToMldev());
7484
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
7445
7485
  }
7446
7486
  const fromCodeExecution = getValueByPath(fromObject, [
7447
7487
  'codeExecution',
@@ -7505,7 +7545,7 @@ function toolConfigToMldev(apiClient, fromObject) {
7505
7545
  }
7506
7546
  return toObject;
7507
7547
  }
7508
- function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
7548
+ function prebuiltVoiceConfigToMldev$1(apiClient, fromObject) {
7509
7549
  const toObject = {};
7510
7550
  const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
7511
7551
  if (fromVoiceName != null) {
@@ -7513,17 +7553,17 @@ function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
7513
7553
  }
7514
7554
  return toObject;
7515
7555
  }
7516
- function voiceConfigToMldev(apiClient, fromObject) {
7556
+ function voiceConfigToMldev$1(apiClient, fromObject) {
7517
7557
  const toObject = {};
7518
7558
  const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
7519
7559
  'prebuiltVoiceConfig',
7520
7560
  ]);
7521
7561
  if (fromPrebuiltVoiceConfig != null) {
7522
- setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev(apiClient, fromPrebuiltVoiceConfig));
7562
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev$1(apiClient, fromPrebuiltVoiceConfig));
7523
7563
  }
7524
7564
  return toObject;
7525
7565
  }
7526
- function speakerVoiceConfigToMldev(apiClient, fromObject) {
7566
+ function speakerVoiceConfigToMldev$1(apiClient, fromObject) {
7527
7567
  const toObject = {};
7528
7568
  const fromSpeaker = getValueByPath(fromObject, ['speaker']);
7529
7569
  if (fromSpeaker != null) {
@@ -7531,11 +7571,11 @@ function speakerVoiceConfigToMldev(apiClient, fromObject) {
7531
7571
  }
7532
7572
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
7533
7573
  if (fromVoiceConfig != null) {
7534
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
7574
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
7535
7575
  }
7536
7576
  return toObject;
7537
7577
  }
7538
- function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
7578
+ function multiSpeakerVoiceConfigToMldev$1(apiClient, fromObject) {
7539
7579
  const toObject = {};
7540
7580
  const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
7541
7581
  'speakerVoiceConfigs',
@@ -7544,24 +7584,24 @@ function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
7544
7584
  let transformedList = fromSpeakerVoiceConfigs;
7545
7585
  if (Array.isArray(transformedList)) {
7546
7586
  transformedList = transformedList.map((item) => {
7547
- return speakerVoiceConfigToMldev(apiClient, item);
7587
+ return speakerVoiceConfigToMldev$1(apiClient, item);
7548
7588
  });
7549
7589
  }
7550
7590
  setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
7551
7591
  }
7552
7592
  return toObject;
7553
7593
  }
7554
- function speechConfigToMldev(apiClient, fromObject) {
7594
+ function speechConfigToMldev$1(apiClient, fromObject) {
7555
7595
  const toObject = {};
7556
7596
  const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
7557
7597
  if (fromVoiceConfig != null) {
7558
- setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
7598
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev$1(apiClient, fromVoiceConfig));
7559
7599
  }
7560
7600
  const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
7561
7601
  'multiSpeakerVoiceConfig',
7562
7602
  ]);
7563
7603
  if (fromMultiSpeakerVoiceConfig != null) {
7564
- setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev(apiClient, fromMultiSpeakerVoiceConfig));
7604
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev$1(apiClient, fromMultiSpeakerVoiceConfig));
7565
7605
  }
7566
7606
  const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
7567
7607
  if (fromLanguageCode != null) {
@@ -7591,7 +7631,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
7591
7631
  'systemInstruction',
7592
7632
  ]);
7593
7633
  if (parentObject !== undefined && fromSystemInstruction != null) {
7594
- setValueByPath(parentObject, ['systemInstruction'], contentToMldev(apiClient, tContent(apiClient, fromSystemInstruction)));
7634
+ setValueByPath(parentObject, ['systemInstruction'], contentToMldev$1(apiClient, tContent(apiClient, fromSystemInstruction)));
7595
7635
  }
7596
7636
  const fromTemperature = getValueByPath(fromObject, ['temperature']);
7597
7637
  if (fromTemperature != null) {
@@ -7684,7 +7724,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
7684
7724
  let transformedList = tTools(apiClient, fromTools);
7685
7725
  if (Array.isArray(transformedList)) {
7686
7726
  transformedList = transformedList.map((item) => {
7687
- return toolToMldev(apiClient, tTool(apiClient, item));
7727
+ return toolToMldev$1(apiClient, tTool(apiClient, item));
7688
7728
  });
7689
7729
  }
7690
7730
  setValueByPath(parentObject, ['tools'], transformedList);
@@ -7716,7 +7756,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
7716
7756
  }
7717
7757
  const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
7718
7758
  if (fromSpeechConfig != null) {
7719
- setValueByPath(toObject, ['speechConfig'], speechConfigToMldev(apiClient, tSpeechConfig(apiClient, fromSpeechConfig)));
7759
+ setValueByPath(toObject, ['speechConfig'], speechConfigToMldev$1(apiClient, tSpeechConfig(apiClient, fromSpeechConfig)));
7720
7760
  }
7721
7761
  if (getValueByPath(fromObject, ['audioTimestamp']) !== undefined) {
7722
7762
  throw new Error('audioTimestamp parameter is not supported in Gemini API.');
@@ -7740,7 +7780,7 @@ function generateContentParametersToMldev(apiClient, fromObject) {
7740
7780
  let transformedList = tContents(apiClient, fromContents);
7741
7781
  if (Array.isArray(transformedList)) {
7742
7782
  transformedList = transformedList.map((item) => {
7743
- return contentToMldev(apiClient, item);
7783
+ return contentToMldev$1(apiClient, item);
7744
7784
  });
7745
7785
  }
7746
7786
  setValueByPath(toObject, ['contents'], transformedList);
@@ -7992,7 +8032,7 @@ function countTokensParametersToMldev(apiClient, fromObject) {
7992
8032
  let transformedList = tContents(apiClient, fromContents);
7993
8033
  if (Array.isArray(transformedList)) {
7994
8034
  transformedList = transformedList.map((item) => {
7995
- return contentToMldev(apiClient, item);
8035
+ return contentToMldev$1(apiClient, item);
7996
8036
  });
7997
8037
  }
7998
8038
  setValueByPath(toObject, ['contents'], transformedList);
@@ -8159,6 +8199,12 @@ function partToVertex(apiClient, fromObject) {
8159
8199
  if (fromFileData != null) {
8160
8200
  setValueByPath(toObject, ['fileData'], fileDataToVertex(apiClient, fromFileData));
8161
8201
  }
8202
+ const fromThoughtSignature = getValueByPath(fromObject, [
8203
+ 'thoughtSignature',
8204
+ ]);
8205
+ if (fromThoughtSignature != null) {
8206
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
8207
+ }
8162
8208
  const fromCodeExecutionResult = getValueByPath(fromObject, [
8163
8209
  'codeExecutionResult',
8164
8210
  ]);
@@ -9496,6 +9542,12 @@ function partFromMldev(apiClient, fromObject) {
9496
9542
  if (fromFileData != null) {
9497
9543
  setValueByPath(toObject, ['fileData'], fileDataFromMldev(apiClient, fromFileData));
9498
9544
  }
9545
+ const fromThoughtSignature = getValueByPath(fromObject, [
9546
+ 'thoughtSignature',
9547
+ ]);
9548
+ if (fromThoughtSignature != null) {
9549
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
9550
+ }
9499
9551
  const fromCodeExecutionResult = getValueByPath(fromObject, [
9500
9552
  'codeExecutionResult',
9501
9553
  ]);
@@ -10014,6 +10066,12 @@ function partFromVertex(apiClient, fromObject) {
10014
10066
  if (fromFileData != null) {
10015
10067
  setValueByPath(toObject, ['fileData'], fileDataFromVertex(apiClient, fromFileData));
10016
10068
  }
10069
+ const fromThoughtSignature = getValueByPath(fromObject, [
10070
+ 'thoughtSignature',
10071
+ ]);
10072
+ if (fromThoughtSignature != null) {
10073
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
10074
+ }
10017
10075
  const fromCodeExecutionResult = getValueByPath(fromObject, [
10018
10076
  'codeExecutionResult',
10019
10077
  ]);
@@ -10556,7 +10614,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
10556
10614
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
10557
10615
  const USER_AGENT_HEADER = 'User-Agent';
10558
10616
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
10559
- const SDK_VERSION = '1.2.0'; // x-release-please-version
10617
+ const SDK_VERSION = '1.3.0'; // x-release-please-version
10560
10618
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
10561
10619
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
10562
10620
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -11108,11 +11166,9 @@ function hasNonMcpTools(params) {
11108
11166
  }
11109
11167
  // Returns true if the object is a MCP CallableTool, otherwise false.
11110
11168
  function isMcpCallableTool(object) {
11111
- // TODO: b/418266406 - Add a more robust check for the MCP CallableTool.
11112
11169
  return (object !== null &&
11113
11170
  typeof object === 'object' &&
11114
- 'tool' in object &&
11115
- 'callTool' in object);
11171
+ object instanceof McpCallableTool);
11116
11172
  }
11117
11173
  // List all tools from the MCP client.
11118
11174
  function listAllTools(mcpClient, maxTools = 100) {
@@ -11592,7 +11648,14 @@ class Live {
11592
11648
  }
11593
11649
  else {
11594
11650
  const apiKey = this.apiClient.getApiKey();
11595
- url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.BidiGenerateContent?key=${apiKey}`;
11651
+ let method = 'BidiGenerateContent';
11652
+ let keyName = 'key';
11653
+ if (apiKey === null || apiKey === void 0 ? void 0 : apiKey.startsWith('auth_tokens/')) {
11654
+ console.warn('Warning: Ephemeral token support is experimental and may change in future versions.');
11655
+ method = 'BidiGenerateContentConstrained';
11656
+ keyName = 'access_token';
11657
+ }
11658
+ url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.${method}?${keyName}=${apiKey}`;
11596
11659
  }
11597
11660
  let onopenResolve = () => { };
11598
11661
  const onopenPromise = new Promise((resolve) => {
@@ -11698,7 +11761,7 @@ class Session {
11698
11761
  contents = contents.map((item) => contentToVertex(apiClient, item));
11699
11762
  }
11700
11763
  else {
11701
- contents = contents.map((item) => contentToMldev(apiClient, item));
11764
+ contents = contents.map((item) => contentToMldev$1(apiClient, item));
11702
11765
  }
11703
11766
  }
11704
11767
  catch (_a) {
@@ -11996,7 +12059,6 @@ class Models extends BaseModule {
11996
12059
  if (!hasMcpClientTools(params) || shouldDisableAfc(params.config)) {
11997
12060
  return await this.generateContentInternal(transformedParams);
11998
12061
  }
11999
- // TODO: b/418266406 - Improve the check for CallableTools and Tools.
12000
12062
  if (hasNonMcpTools(params)) {
12001
12063
  throw new Error('Automatic function calling with CallableTools and Tools is not yet supported.');
12002
12064
  }
@@ -13551,75 +13613,910 @@ class Operations extends BaseModule {
13551
13613
  * Copyright 2025 Google LLC
13552
13614
  * SPDX-License-Identifier: Apache-2.0
13553
13615
  */
13554
- function getTuningJobParametersToMldev(apiClient, fromObject) {
13555
- const toObject = {};
13556
- const fromName = getValueByPath(fromObject, ['name']);
13557
- if (fromName != null) {
13558
- setValueByPath(toObject, ['_url', 'name'], fromName);
13559
- }
13560
- const fromConfig = getValueByPath(fromObject, ['config']);
13561
- if (fromConfig != null) {
13562
- setValueByPath(toObject, ['config'], fromConfig);
13563
- }
13564
- return toObject;
13565
- }
13566
- function listTuningJobsConfigToMldev(apiClient, fromObject, parentObject) {
13616
+ function prebuiltVoiceConfigToMldev(apiClient, fromObject) {
13567
13617
  const toObject = {};
13568
- const fromPageSize = getValueByPath(fromObject, ['pageSize']);
13569
- if (parentObject !== undefined && fromPageSize != null) {
13570
- setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);
13571
- }
13572
- const fromPageToken = getValueByPath(fromObject, ['pageToken']);
13573
- if (parentObject !== undefined && fromPageToken != null) {
13574
- setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);
13575
- }
13576
- const fromFilter = getValueByPath(fromObject, ['filter']);
13577
- if (parentObject !== undefined && fromFilter != null) {
13578
- setValueByPath(parentObject, ['_query', 'filter'], fromFilter);
13618
+ const fromVoiceName = getValueByPath(fromObject, ['voiceName']);
13619
+ if (fromVoiceName != null) {
13620
+ setValueByPath(toObject, ['voiceName'], fromVoiceName);
13579
13621
  }
13580
13622
  return toObject;
13581
13623
  }
13582
- function listTuningJobsParametersToMldev(apiClient, fromObject) {
13624
+ function voiceConfigToMldev(apiClient, fromObject) {
13583
13625
  const toObject = {};
13584
- const fromConfig = getValueByPath(fromObject, ['config']);
13585
- if (fromConfig != null) {
13586
- setValueByPath(toObject, ['config'], listTuningJobsConfigToMldev(apiClient, fromConfig, toObject));
13626
+ const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
13627
+ 'prebuiltVoiceConfig',
13628
+ ]);
13629
+ if (fromPrebuiltVoiceConfig != null) {
13630
+ setValueByPath(toObject, ['prebuiltVoiceConfig'], prebuiltVoiceConfigToMldev(apiClient, fromPrebuiltVoiceConfig));
13587
13631
  }
13588
13632
  return toObject;
13589
13633
  }
13590
- function tuningExampleToMldev(apiClient, fromObject) {
13634
+ function speakerVoiceConfigToMldev(apiClient, fromObject) {
13591
13635
  const toObject = {};
13592
- const fromTextInput = getValueByPath(fromObject, ['textInput']);
13593
- if (fromTextInput != null) {
13594
- setValueByPath(toObject, ['textInput'], fromTextInput);
13636
+ const fromSpeaker = getValueByPath(fromObject, ['speaker']);
13637
+ if (fromSpeaker != null) {
13638
+ setValueByPath(toObject, ['speaker'], fromSpeaker);
13595
13639
  }
13596
- const fromOutput = getValueByPath(fromObject, ['output']);
13597
- if (fromOutput != null) {
13598
- setValueByPath(toObject, ['output'], fromOutput);
13640
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
13641
+ if (fromVoiceConfig != null) {
13642
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
13599
13643
  }
13600
13644
  return toObject;
13601
13645
  }
13602
- function tuningDatasetToMldev(apiClient, fromObject) {
13646
+ function multiSpeakerVoiceConfigToMldev(apiClient, fromObject) {
13603
13647
  const toObject = {};
13604
- if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {
13605
- throw new Error('gcsUri parameter is not supported in Gemini API.');
13606
- }
13607
- const fromExamples = getValueByPath(fromObject, ['examples']);
13608
- if (fromExamples != null) {
13609
- let transformedList = fromExamples;
13648
+ const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
13649
+ 'speakerVoiceConfigs',
13650
+ ]);
13651
+ if (fromSpeakerVoiceConfigs != null) {
13652
+ let transformedList = fromSpeakerVoiceConfigs;
13610
13653
  if (Array.isArray(transformedList)) {
13611
13654
  transformedList = transformedList.map((item) => {
13612
- return tuningExampleToMldev(apiClient, item);
13655
+ return speakerVoiceConfigToMldev(apiClient, item);
13613
13656
  });
13614
13657
  }
13615
- setValueByPath(toObject, ['examples', 'examples'], transformedList);
13658
+ setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);
13616
13659
  }
13617
13660
  return toObject;
13618
13661
  }
13619
- function createTuningJobConfigToMldev(apiClient, fromObject, parentObject) {
13662
+ function speechConfigToMldev(apiClient, fromObject) {
13620
13663
  const toObject = {};
13621
- if (getValueByPath(fromObject, ['validationDataset']) !== undefined) {
13622
- throw new Error('validationDataset parameter is not supported in Gemini API.');
13664
+ const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);
13665
+ if (fromVoiceConfig != null) {
13666
+ setValueByPath(toObject, ['voiceConfig'], voiceConfigToMldev(apiClient, fromVoiceConfig));
13667
+ }
13668
+ const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
13669
+ 'multiSpeakerVoiceConfig',
13670
+ ]);
13671
+ if (fromMultiSpeakerVoiceConfig != null) {
13672
+ setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToMldev(apiClient, fromMultiSpeakerVoiceConfig));
13673
+ }
13674
+ const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);
13675
+ if (fromLanguageCode != null) {
13676
+ setValueByPath(toObject, ['languageCode'], fromLanguageCode);
13677
+ }
13678
+ return toObject;
13679
+ }
13680
+ function videoMetadataToMldev(apiClient, fromObject) {
13681
+ const toObject = {};
13682
+ const fromFps = getValueByPath(fromObject, ['fps']);
13683
+ if (fromFps != null) {
13684
+ setValueByPath(toObject, ['fps'], fromFps);
13685
+ }
13686
+ const fromEndOffset = getValueByPath(fromObject, ['endOffset']);
13687
+ if (fromEndOffset != null) {
13688
+ setValueByPath(toObject, ['endOffset'], fromEndOffset);
13689
+ }
13690
+ const fromStartOffset = getValueByPath(fromObject, ['startOffset']);
13691
+ if (fromStartOffset != null) {
13692
+ setValueByPath(toObject, ['startOffset'], fromStartOffset);
13693
+ }
13694
+ return toObject;
13695
+ }
13696
+ function blobToMldev(apiClient, fromObject) {
13697
+ const toObject = {};
13698
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
13699
+ throw new Error('displayName parameter is not supported in Gemini API.');
13700
+ }
13701
+ const fromData = getValueByPath(fromObject, ['data']);
13702
+ if (fromData != null) {
13703
+ setValueByPath(toObject, ['data'], fromData);
13704
+ }
13705
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
13706
+ if (fromMimeType != null) {
13707
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
13708
+ }
13709
+ return toObject;
13710
+ }
13711
+ function fileDataToMldev(apiClient, fromObject) {
13712
+ const toObject = {};
13713
+ if (getValueByPath(fromObject, ['displayName']) !== undefined) {
13714
+ throw new Error('displayName parameter is not supported in Gemini API.');
13715
+ }
13716
+ const fromFileUri = getValueByPath(fromObject, ['fileUri']);
13717
+ if (fromFileUri != null) {
13718
+ setValueByPath(toObject, ['fileUri'], fromFileUri);
13719
+ }
13720
+ const fromMimeType = getValueByPath(fromObject, ['mimeType']);
13721
+ if (fromMimeType != null) {
13722
+ setValueByPath(toObject, ['mimeType'], fromMimeType);
13723
+ }
13724
+ return toObject;
13725
+ }
13726
+ function partToMldev(apiClient, fromObject) {
13727
+ const toObject = {};
13728
+ const fromVideoMetadata = getValueByPath(fromObject, [
13729
+ 'videoMetadata',
13730
+ ]);
13731
+ if (fromVideoMetadata != null) {
13732
+ setValueByPath(toObject, ['videoMetadata'], videoMetadataToMldev(apiClient, fromVideoMetadata));
13733
+ }
13734
+ const fromThought = getValueByPath(fromObject, ['thought']);
13735
+ if (fromThought != null) {
13736
+ setValueByPath(toObject, ['thought'], fromThought);
13737
+ }
13738
+ const fromInlineData = getValueByPath(fromObject, ['inlineData']);
13739
+ if (fromInlineData != null) {
13740
+ setValueByPath(toObject, ['inlineData'], blobToMldev(apiClient, fromInlineData));
13741
+ }
13742
+ const fromFileData = getValueByPath(fromObject, ['fileData']);
13743
+ if (fromFileData != null) {
13744
+ setValueByPath(toObject, ['fileData'], fileDataToMldev(apiClient, fromFileData));
13745
+ }
13746
+ const fromThoughtSignature = getValueByPath(fromObject, [
13747
+ 'thoughtSignature',
13748
+ ]);
13749
+ if (fromThoughtSignature != null) {
13750
+ setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);
13751
+ }
13752
+ const fromCodeExecutionResult = getValueByPath(fromObject, [
13753
+ 'codeExecutionResult',
13754
+ ]);
13755
+ if (fromCodeExecutionResult != null) {
13756
+ setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);
13757
+ }
13758
+ const fromExecutableCode = getValueByPath(fromObject, [
13759
+ 'executableCode',
13760
+ ]);
13761
+ if (fromExecutableCode != null) {
13762
+ setValueByPath(toObject, ['executableCode'], fromExecutableCode);
13763
+ }
13764
+ const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);
13765
+ if (fromFunctionCall != null) {
13766
+ setValueByPath(toObject, ['functionCall'], fromFunctionCall);
13767
+ }
13768
+ const fromFunctionResponse = getValueByPath(fromObject, [
13769
+ 'functionResponse',
13770
+ ]);
13771
+ if (fromFunctionResponse != null) {
13772
+ setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);
13773
+ }
13774
+ const fromText = getValueByPath(fromObject, ['text']);
13775
+ if (fromText != null) {
13776
+ setValueByPath(toObject, ['text'], fromText);
13777
+ }
13778
+ return toObject;
13779
+ }
13780
+ function contentToMldev(apiClient, fromObject) {
13781
+ const toObject = {};
13782
+ const fromParts = getValueByPath(fromObject, ['parts']);
13783
+ if (fromParts != null) {
13784
+ let transformedList = fromParts;
13785
+ if (Array.isArray(transformedList)) {
13786
+ transformedList = transformedList.map((item) => {
13787
+ return partToMldev(apiClient, item);
13788
+ });
13789
+ }
13790
+ setValueByPath(toObject, ['parts'], transformedList);
13791
+ }
13792
+ const fromRole = getValueByPath(fromObject, ['role']);
13793
+ if (fromRole != null) {
13794
+ setValueByPath(toObject, ['role'], fromRole);
13795
+ }
13796
+ return toObject;
13797
+ }
13798
+ function functionDeclarationToMldev(apiClient, fromObject) {
13799
+ const toObject = {};
13800
+ const fromBehavior = getValueByPath(fromObject, ['behavior']);
13801
+ if (fromBehavior != null) {
13802
+ setValueByPath(toObject, ['behavior'], fromBehavior);
13803
+ }
13804
+ const fromDescription = getValueByPath(fromObject, ['description']);
13805
+ if (fromDescription != null) {
13806
+ setValueByPath(toObject, ['description'], fromDescription);
13807
+ }
13808
+ const fromName = getValueByPath(fromObject, ['name']);
13809
+ if (fromName != null) {
13810
+ setValueByPath(toObject, ['name'], fromName);
13811
+ }
13812
+ const fromParameters = getValueByPath(fromObject, ['parameters']);
13813
+ if (fromParameters != null) {
13814
+ setValueByPath(toObject, ['parameters'], fromParameters);
13815
+ }
13816
+ const fromResponse = getValueByPath(fromObject, ['response']);
13817
+ if (fromResponse != null) {
13818
+ setValueByPath(toObject, ['response'], fromResponse);
13819
+ }
13820
+ return toObject;
13821
+ }
13822
+ function intervalToMldev(apiClient, fromObject) {
13823
+ const toObject = {};
13824
+ const fromStartTime = getValueByPath(fromObject, ['startTime']);
13825
+ if (fromStartTime != null) {
13826
+ setValueByPath(toObject, ['startTime'], fromStartTime);
13827
+ }
13828
+ const fromEndTime = getValueByPath(fromObject, ['endTime']);
13829
+ if (fromEndTime != null) {
13830
+ setValueByPath(toObject, ['endTime'], fromEndTime);
13831
+ }
13832
+ return toObject;
13833
+ }
13834
+ function googleSearchToMldev(apiClient, fromObject) {
13835
+ const toObject = {};
13836
+ const fromTimeRangeFilter = getValueByPath(fromObject, [
13837
+ 'timeRangeFilter',
13838
+ ]);
13839
+ if (fromTimeRangeFilter != null) {
13840
+ setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(apiClient, fromTimeRangeFilter));
13841
+ }
13842
+ return toObject;
13843
+ }
13844
+ function dynamicRetrievalConfigToMldev(apiClient, fromObject) {
13845
+ const toObject = {};
13846
+ const fromMode = getValueByPath(fromObject, ['mode']);
13847
+ if (fromMode != null) {
13848
+ setValueByPath(toObject, ['mode'], fromMode);
13849
+ }
13850
+ const fromDynamicThreshold = getValueByPath(fromObject, [
13851
+ 'dynamicThreshold',
13852
+ ]);
13853
+ if (fromDynamicThreshold != null) {
13854
+ setValueByPath(toObject, ['dynamicThreshold'], fromDynamicThreshold);
13855
+ }
13856
+ return toObject;
13857
+ }
13858
+ function googleSearchRetrievalToMldev(apiClient, fromObject) {
13859
+ const toObject = {};
13860
+ const fromDynamicRetrievalConfig = getValueByPath(fromObject, [
13861
+ 'dynamicRetrievalConfig',
13862
+ ]);
13863
+ if (fromDynamicRetrievalConfig != null) {
13864
+ setValueByPath(toObject, ['dynamicRetrievalConfig'], dynamicRetrievalConfigToMldev(apiClient, fromDynamicRetrievalConfig));
13865
+ }
13866
+ return toObject;
13867
+ }
13868
+ function urlContextToMldev() {
13869
+ const toObject = {};
13870
+ return toObject;
13871
+ }
13872
+ function toolToMldev(apiClient, fromObject) {
13873
+ const toObject = {};
13874
+ const fromFunctionDeclarations = getValueByPath(fromObject, [
13875
+ 'functionDeclarations',
13876
+ ]);
13877
+ if (fromFunctionDeclarations != null) {
13878
+ let transformedList = fromFunctionDeclarations;
13879
+ if (Array.isArray(transformedList)) {
13880
+ transformedList = transformedList.map((item) => {
13881
+ return functionDeclarationToMldev(apiClient, item);
13882
+ });
13883
+ }
13884
+ setValueByPath(toObject, ['functionDeclarations'], transformedList);
13885
+ }
13886
+ if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
13887
+ throw new Error('retrieval parameter is not supported in Gemini API.');
13888
+ }
13889
+ const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);
13890
+ if (fromGoogleSearch != null) {
13891
+ setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(apiClient, fromGoogleSearch));
13892
+ }
13893
+ const fromGoogleSearchRetrieval = getValueByPath(fromObject, [
13894
+ 'googleSearchRetrieval',
13895
+ ]);
13896
+ if (fromGoogleSearchRetrieval != null) {
13897
+ setValueByPath(toObject, ['googleSearchRetrieval'], googleSearchRetrievalToMldev(apiClient, fromGoogleSearchRetrieval));
13898
+ }
13899
+ if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {
13900
+ throw new Error('enterpriseWebSearch parameter is not supported in Gemini API.');
13901
+ }
13902
+ if (getValueByPath(fromObject, ['googleMaps']) !== undefined) {
13903
+ throw new Error('googleMaps parameter is not supported in Gemini API.');
13904
+ }
13905
+ const fromUrlContext = getValueByPath(fromObject, ['urlContext']);
13906
+ if (fromUrlContext != null) {
13907
+ setValueByPath(toObject, ['urlContext'], urlContextToMldev());
13908
+ }
13909
+ const fromCodeExecution = getValueByPath(fromObject, [
13910
+ 'codeExecution',
13911
+ ]);
13912
+ if (fromCodeExecution != null) {
13913
+ setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
13914
+ }
13915
+ return toObject;
13916
+ }
13917
+ function sessionResumptionConfigToMldev(apiClient, fromObject) {
13918
+ const toObject = {};
13919
+ const fromHandle = getValueByPath(fromObject, ['handle']);
13920
+ if (fromHandle != null) {
13921
+ setValueByPath(toObject, ['handle'], fromHandle);
13922
+ }
13923
+ if (getValueByPath(fromObject, ['transparent']) !== undefined) {
13924
+ throw new Error('transparent parameter is not supported in Gemini API.');
13925
+ }
13926
+ return toObject;
13927
+ }
13928
+ function audioTranscriptionConfigToMldev() {
13929
+ const toObject = {};
13930
+ return toObject;
13931
+ }
13932
+ function automaticActivityDetectionToMldev(apiClient, fromObject) {
13933
+ const toObject = {};
13934
+ const fromDisabled = getValueByPath(fromObject, ['disabled']);
13935
+ if (fromDisabled != null) {
13936
+ setValueByPath(toObject, ['disabled'], fromDisabled);
13937
+ }
13938
+ const fromStartOfSpeechSensitivity = getValueByPath(fromObject, [
13939
+ 'startOfSpeechSensitivity',
13940
+ ]);
13941
+ if (fromStartOfSpeechSensitivity != null) {
13942
+ setValueByPath(toObject, ['startOfSpeechSensitivity'], fromStartOfSpeechSensitivity);
13943
+ }
13944
+ const fromEndOfSpeechSensitivity = getValueByPath(fromObject, [
13945
+ 'endOfSpeechSensitivity',
13946
+ ]);
13947
+ if (fromEndOfSpeechSensitivity != null) {
13948
+ setValueByPath(toObject, ['endOfSpeechSensitivity'], fromEndOfSpeechSensitivity);
13949
+ }
13950
+ const fromPrefixPaddingMs = getValueByPath(fromObject, [
13951
+ 'prefixPaddingMs',
13952
+ ]);
13953
+ if (fromPrefixPaddingMs != null) {
13954
+ setValueByPath(toObject, ['prefixPaddingMs'], fromPrefixPaddingMs);
13955
+ }
13956
+ const fromSilenceDurationMs = getValueByPath(fromObject, [
13957
+ 'silenceDurationMs',
13958
+ ]);
13959
+ if (fromSilenceDurationMs != null) {
13960
+ setValueByPath(toObject, ['silenceDurationMs'], fromSilenceDurationMs);
13961
+ }
13962
+ return toObject;
13963
+ }
13964
+ function realtimeInputConfigToMldev(apiClient, fromObject) {
13965
+ const toObject = {};
13966
+ const fromAutomaticActivityDetection = getValueByPath(fromObject, [
13967
+ 'automaticActivityDetection',
13968
+ ]);
13969
+ if (fromAutomaticActivityDetection != null) {
13970
+ setValueByPath(toObject, ['automaticActivityDetection'], automaticActivityDetectionToMldev(apiClient, fromAutomaticActivityDetection));
13971
+ }
13972
+ const fromActivityHandling = getValueByPath(fromObject, [
13973
+ 'activityHandling',
13974
+ ]);
13975
+ if (fromActivityHandling != null) {
13976
+ setValueByPath(toObject, ['activityHandling'], fromActivityHandling);
13977
+ }
13978
+ const fromTurnCoverage = getValueByPath(fromObject, ['turnCoverage']);
13979
+ if (fromTurnCoverage != null) {
13980
+ setValueByPath(toObject, ['turnCoverage'], fromTurnCoverage);
13981
+ }
13982
+ return toObject;
13983
+ }
13984
+ function slidingWindowToMldev(apiClient, fromObject) {
13985
+ const toObject = {};
13986
+ const fromTargetTokens = getValueByPath(fromObject, ['targetTokens']);
13987
+ if (fromTargetTokens != null) {
13988
+ setValueByPath(toObject, ['targetTokens'], fromTargetTokens);
13989
+ }
13990
+ return toObject;
13991
+ }
13992
+ function contextWindowCompressionConfigToMldev(apiClient, fromObject) {
13993
+ const toObject = {};
13994
+ const fromTriggerTokens = getValueByPath(fromObject, [
13995
+ 'triggerTokens',
13996
+ ]);
13997
+ if (fromTriggerTokens != null) {
13998
+ setValueByPath(toObject, ['triggerTokens'], fromTriggerTokens);
13999
+ }
14000
+ const fromSlidingWindow = getValueByPath(fromObject, [
14001
+ 'slidingWindow',
14002
+ ]);
14003
+ if (fromSlidingWindow != null) {
14004
+ setValueByPath(toObject, ['slidingWindow'], slidingWindowToMldev(apiClient, fromSlidingWindow));
14005
+ }
14006
+ return toObject;
14007
+ }
14008
+ function proactivityConfigToMldev(apiClient, fromObject) {
14009
+ const toObject = {};
14010
+ const fromProactiveAudio = getValueByPath(fromObject, [
14011
+ 'proactiveAudio',
14012
+ ]);
14013
+ if (fromProactiveAudio != null) {
14014
+ setValueByPath(toObject, ['proactiveAudio'], fromProactiveAudio);
14015
+ }
14016
+ return toObject;
14017
+ }
14018
+ function liveConnectConfigToMldev(apiClient, fromObject, parentObject) {
14019
+ const toObject = {};
14020
+ const fromGenerationConfig = getValueByPath(fromObject, [
14021
+ 'generationConfig',
14022
+ ]);
14023
+ if (parentObject !== undefined && fromGenerationConfig != null) {
14024
+ setValueByPath(parentObject, ['setup', 'generationConfig'], fromGenerationConfig);
14025
+ }
14026
+ const fromResponseModalities = getValueByPath(fromObject, [
14027
+ 'responseModalities',
14028
+ ]);
14029
+ if (parentObject !== undefined && fromResponseModalities != null) {
14030
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'responseModalities'], fromResponseModalities);
14031
+ }
14032
+ const fromTemperature = getValueByPath(fromObject, ['temperature']);
14033
+ if (parentObject !== undefined && fromTemperature != null) {
14034
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'temperature'], fromTemperature);
14035
+ }
14036
+ const fromTopP = getValueByPath(fromObject, ['topP']);
14037
+ if (parentObject !== undefined && fromTopP != null) {
14038
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'topP'], fromTopP);
14039
+ }
14040
+ const fromTopK = getValueByPath(fromObject, ['topK']);
14041
+ if (parentObject !== undefined && fromTopK != null) {
14042
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'topK'], fromTopK);
14043
+ }
14044
+ const fromMaxOutputTokens = getValueByPath(fromObject, [
14045
+ 'maxOutputTokens',
14046
+ ]);
14047
+ if (parentObject !== undefined && fromMaxOutputTokens != null) {
14048
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'maxOutputTokens'], fromMaxOutputTokens);
14049
+ }
14050
+ const fromMediaResolution = getValueByPath(fromObject, [
14051
+ 'mediaResolution',
14052
+ ]);
14053
+ if (parentObject !== undefined && fromMediaResolution != null) {
14054
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'mediaResolution'], fromMediaResolution);
14055
+ }
14056
+ const fromSeed = getValueByPath(fromObject, ['seed']);
14057
+ if (parentObject !== undefined && fromSeed != null) {
14058
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'seed'], fromSeed);
14059
+ }
14060
+ const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);
14061
+ if (parentObject !== undefined && fromSpeechConfig != null) {
14062
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToMldev(apiClient, tLiveSpeechConfig(apiClient, fromSpeechConfig)));
14063
+ }
14064
+ const fromEnableAffectiveDialog = getValueByPath(fromObject, [
14065
+ 'enableAffectiveDialog',
14066
+ ]);
14067
+ if (parentObject !== undefined && fromEnableAffectiveDialog != null) {
14068
+ setValueByPath(parentObject, ['setup', 'generationConfig', 'enableAffectiveDialog'], fromEnableAffectiveDialog);
14069
+ }
14070
+ const fromSystemInstruction = getValueByPath(fromObject, [
14071
+ 'systemInstruction',
14072
+ ]);
14073
+ if (parentObject !== undefined && fromSystemInstruction != null) {
14074
+ setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev(apiClient, tContent(apiClient, fromSystemInstruction)));
14075
+ }
14076
+ const fromTools = getValueByPath(fromObject, ['tools']);
14077
+ if (parentObject !== undefined && fromTools != null) {
14078
+ let transformedList = tTools(apiClient, fromTools);
14079
+ if (Array.isArray(transformedList)) {
14080
+ transformedList = transformedList.map((item) => {
14081
+ return toolToMldev(apiClient, tTool(apiClient, item));
14082
+ });
14083
+ }
14084
+ setValueByPath(parentObject, ['setup', 'tools'], transformedList);
14085
+ }
14086
+ const fromSessionResumption = getValueByPath(fromObject, [
14087
+ 'sessionResumption',
14088
+ ]);
14089
+ if (parentObject !== undefined && fromSessionResumption != null) {
14090
+ setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev(apiClient, fromSessionResumption));
14091
+ }
14092
+ const fromInputAudioTranscription = getValueByPath(fromObject, [
14093
+ 'inputAudioTranscription',
14094
+ ]);
14095
+ if (parentObject !== undefined && fromInputAudioTranscription != null) {
14096
+ setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], audioTranscriptionConfigToMldev());
14097
+ }
14098
+ const fromOutputAudioTranscription = getValueByPath(fromObject, [
14099
+ 'outputAudioTranscription',
14100
+ ]);
14101
+ if (parentObject !== undefined && fromOutputAudioTranscription != null) {
14102
+ setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], audioTranscriptionConfigToMldev());
14103
+ }
14104
+ const fromRealtimeInputConfig = getValueByPath(fromObject, [
14105
+ 'realtimeInputConfig',
14106
+ ]);
14107
+ if (parentObject !== undefined && fromRealtimeInputConfig != null) {
14108
+ setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], realtimeInputConfigToMldev(apiClient, fromRealtimeInputConfig));
14109
+ }
14110
+ const fromContextWindowCompression = getValueByPath(fromObject, [
14111
+ 'contextWindowCompression',
14112
+ ]);
14113
+ if (parentObject !== undefined && fromContextWindowCompression != null) {
14114
+ setValueByPath(parentObject, ['setup', 'contextWindowCompression'], contextWindowCompressionConfigToMldev(apiClient, fromContextWindowCompression));
14115
+ }
14116
+ const fromProactivity = getValueByPath(fromObject, ['proactivity']);
14117
+ if (parentObject !== undefined && fromProactivity != null) {
14118
+ setValueByPath(parentObject, ['setup', 'proactivity'], proactivityConfigToMldev(apiClient, fromProactivity));
14119
+ }
14120
+ return toObject;
14121
+ }
14122
+ function liveConnectConstraintsToMldev(apiClient, fromObject) {
14123
+ const toObject = {};
14124
+ const fromModel = getValueByPath(fromObject, ['model']);
14125
+ if (fromModel != null) {
14126
+ setValueByPath(toObject, ['setup', 'model'], tModel(apiClient, fromModel));
14127
+ }
14128
+ const fromConfig = getValueByPath(fromObject, ['config']);
14129
+ if (fromConfig != null) {
14130
+ setValueByPath(toObject, ['config'], liveConnectConfigToMldev(apiClient, fromConfig, toObject));
14131
+ }
14132
+ return toObject;
14133
+ }
14134
+ function createAuthTokenConfigToMldev(apiClient, fromObject, parentObject) {
14135
+ const toObject = {};
14136
+ const fromExpireTime = getValueByPath(fromObject, ['expireTime']);
14137
+ if (parentObject !== undefined && fromExpireTime != null) {
14138
+ setValueByPath(parentObject, ['expireTime'], fromExpireTime);
14139
+ }
14140
+ const fromNewSessionExpireTime = getValueByPath(fromObject, [
14141
+ 'newSessionExpireTime',
14142
+ ]);
14143
+ if (parentObject !== undefined && fromNewSessionExpireTime != null) {
14144
+ setValueByPath(parentObject, ['newSessionExpireTime'], fromNewSessionExpireTime);
14145
+ }
14146
+ const fromUses = getValueByPath(fromObject, ['uses']);
14147
+ if (parentObject !== undefined && fromUses != null) {
14148
+ setValueByPath(parentObject, ['uses'], fromUses);
14149
+ }
14150
+ const fromLiveConnectConstraints = getValueByPath(fromObject, [
14151
+ 'liveConnectConstraints',
14152
+ ]);
14153
+ if (parentObject !== undefined && fromLiveConnectConstraints != null) {
14154
+ setValueByPath(parentObject, ['bidiGenerateContentSetup'], liveConnectConstraintsToMldev(apiClient, fromLiveConnectConstraints));
14155
+ }
14156
+ const fromLockAdditionalFields = getValueByPath(fromObject, [
14157
+ 'lockAdditionalFields',
14158
+ ]);
14159
+ if (parentObject !== undefined && fromLockAdditionalFields != null) {
14160
+ setValueByPath(parentObject, ['fieldMask'], fromLockAdditionalFields);
14161
+ }
14162
+ return toObject;
14163
+ }
14164
+ function createAuthTokenParametersToMldev(apiClient, fromObject) {
14165
+ const toObject = {};
14166
+ const fromConfig = getValueByPath(fromObject, ['config']);
14167
+ if (fromConfig != null) {
14168
+ setValueByPath(toObject, ['config'], createAuthTokenConfigToMldev(apiClient, fromConfig, toObject));
14169
+ }
14170
+ return toObject;
14171
+ }
14172
+ function authTokenFromMldev(apiClient, fromObject) {
14173
+ const toObject = {};
14174
+ const fromName = getValueByPath(fromObject, ['name']);
14175
+ if (fromName != null) {
14176
+ setValueByPath(toObject, ['name'], fromName);
14177
+ }
14178
+ return toObject;
14179
+ }
14180
+
14181
+ /**
14182
+ * @license
14183
+ * Copyright 2025 Google LLC
14184
+ * SPDX-License-Identifier: Apache-2.0
14185
+ */
14186
+ /**
14187
+ * Returns a comma-separated list of field masks from a given object.
14188
+ *
14189
+ * @param setup The object to extract field masks from.
14190
+ * @return A comma-separated list of field masks.
14191
+ */
14192
+ function getFieldMasks(setup) {
14193
+ const fields = [];
14194
+ for (const key in setup) {
14195
+ if (Object.prototype.hasOwnProperty.call(setup, key)) {
14196
+ const value = setup[key];
14197
+ // 2nd layer, recursively get field masks see TODO(b/418290100)
14198
+ if (typeof value === 'object' &&
14199
+ value != null &&
14200
+ Object.keys(value).length > 0) {
14201
+ const field = Object.keys(value).map((kk) => `${key}.${kk}`);
14202
+ fields.push(...field);
14203
+ }
14204
+ else {
14205
+ fields.push(key); // 1st layer
14206
+ }
14207
+ }
14208
+ }
14209
+ return fields.join(',');
14210
+ }
14211
+ /**
14212
+ * Converts bidiGenerateContentSetup.
14213
+ * @param requestDict - The request dictionary.
14214
+ * @param config - The configuration object.
14215
+ * @return - The modified request dictionary.
14216
+ */
14217
+ function convertBidiSetupToTokenSetup(requestDict, config) {
14218
+ // Convert bidiGenerateContentSetup from bidiGenerateContentSetup.setup.
14219
+ let setupForMaskGeneration = null;
14220
+ const bidiGenerateContentSetupValue = requestDict['bidiGenerateContentSetup'];
14221
+ if (typeof bidiGenerateContentSetupValue === 'object' &&
14222
+ bidiGenerateContentSetupValue !== null &&
14223
+ 'setup' in bidiGenerateContentSetupValue) {
14224
+ // Now we know bidiGenerateContentSetupValue is an object and has a 'setup'
14225
+ // property.
14226
+ const innerSetup = bidiGenerateContentSetupValue
14227
+ .setup;
14228
+ if (typeof innerSetup === 'object' && innerSetup !== null) {
14229
+ // Valid inner setup found.
14230
+ requestDict['bidiGenerateContentSetup'] = innerSetup;
14231
+ setupForMaskGeneration = innerSetup;
14232
+ }
14233
+ else {
14234
+ // `bidiGenerateContentSetupValue.setup` is not a valid object; treat as
14235
+ // if bidiGenerateContentSetup is invalid.
14236
+ delete requestDict['bidiGenerateContentSetup'];
14237
+ }
14238
+ }
14239
+ else if (bidiGenerateContentSetupValue !== undefined) {
14240
+ // `bidiGenerateContentSetup` exists but not in the expected
14241
+ // shape {setup: {...}}; treat as invalid.
14242
+ delete requestDict['bidiGenerateContentSetup'];
14243
+ }
14244
+ const preExistingFieldMask = requestDict['fieldMask'];
14245
+ // Handle mask generation setup.
14246
+ if (setupForMaskGeneration) {
14247
+ const generatedMaskFromBidi = getFieldMasks(setupForMaskGeneration);
14248
+ if (Array.isArray(config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&
14249
+ (config === null || config === void 0 ? void 0 : config.lockAdditionalFields.length) === 0) {
14250
+ // Case 1: lockAdditionalFields is an empty array. Lock only fields from
14251
+ // bidi setup.
14252
+ if (generatedMaskFromBidi) {
14253
+ // Only assign if mask is not empty
14254
+ requestDict['fieldMask'] = generatedMaskFromBidi;
14255
+ }
14256
+ else {
14257
+ delete requestDict['fieldMask']; // If mask is empty, effectively no
14258
+ // specific fields locked by bidi
14259
+ }
14260
+ }
14261
+ else if ((config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&
14262
+ config.lockAdditionalFields.length > 0 &&
14263
+ preExistingFieldMask !== null &&
14264
+ Array.isArray(preExistingFieldMask) &&
14265
+ preExistingFieldMask.length > 0) {
14266
+ // Case 2: Lock fields from bidi setup + additional fields
14267
+ // (preExistingFieldMask).
14268
+ const generationConfigFields = [
14269
+ 'temperature',
14270
+ 'topK',
14271
+ 'topP',
14272
+ 'maxOutputTokens',
14273
+ 'responseModalities',
14274
+ 'seed',
14275
+ 'speechConfig',
14276
+ ];
14277
+ let mappedFieldsFromPreExisting = [];
14278
+ if (preExistingFieldMask.length > 0) {
14279
+ mappedFieldsFromPreExisting = preExistingFieldMask.map((field) => {
14280
+ if (generationConfigFields.includes(field)) {
14281
+ return `generationConfig.${field}`;
14282
+ }
14283
+ return field; // Keep original field name if not in
14284
+ // generationConfigFields
14285
+ });
14286
+ }
14287
+ const finalMaskParts = [];
14288
+ if (generatedMaskFromBidi) {
14289
+ finalMaskParts.push(generatedMaskFromBidi);
14290
+ }
14291
+ if (mappedFieldsFromPreExisting.length > 0) {
14292
+ finalMaskParts.push(...mappedFieldsFromPreExisting);
14293
+ }
14294
+ if (finalMaskParts.length > 0) {
14295
+ requestDict['fieldMask'] = finalMaskParts.join(',');
14296
+ }
14297
+ else {
14298
+ // If no fields from bidi and no valid additional fields from
14299
+ // pre-existing mask.
14300
+ delete requestDict['fieldMask'];
14301
+ }
14302
+ }
14303
+ else {
14304
+ // Case 3: "Lock all fields" (meaning, don't send a field_mask, let server
14305
+ // defaults apply or all are mutable). This is hit if:
14306
+ // - `config.lockAdditionalFields` is undefined.
14307
+ // - `config.lockAdditionalFields` is non-empty, BUT
14308
+ // `preExistingFieldMask` is null, not a string, or an empty string.
14309
+ delete requestDict['fieldMask'];
14310
+ }
14311
+ }
14312
+ else {
14313
+ // No valid `bidiGenerateContentSetup` was found or extracted.
14314
+ // "Lock additional null fields if any".
14315
+ if (preExistingFieldMask !== null &&
14316
+ Array.isArray(preExistingFieldMask) &&
14317
+ preExistingFieldMask.length > 0) {
14318
+ // If there's a pre-existing field mask, it's a string, and it's not
14319
+ // empty, then we should lock all fields.
14320
+ requestDict['fieldMask'] = preExistingFieldMask.join(',');
14321
+ }
14322
+ else {
14323
+ delete requestDict['fieldMask'];
14324
+ }
14325
+ }
14326
+ return requestDict;
14327
+ }
14328
+ class Tokens extends BaseModule {
14329
+ constructor(apiClient) {
14330
+ super();
14331
+ this.apiClient = apiClient;
14332
+ }
14333
+ /**
14334
+ * Creates an ephemeral auth token resource.
14335
+ *
14336
+ * @experimental
14337
+ *
14338
+ * @remarks
14339
+ * Ephermeral auth tokens is only supported in the Gemini Developer API.
14340
+ * It can be used for the session connection to the Live constrained API.
14341
+ *
14342
+ * @param params - The parameters for the create request.
14343
+ * @return The created auth token.
14344
+ *
14345
+ * @example
14346
+ * ```ts
14347
+ * // Case 1: If LiveEphemeralParameters is unset, unlock LiveConnectConfig
14348
+ * // when using the token in Live API sessions. Each session connection can
14349
+ * // use a different configuration.
14350
+ * const config: CreateAuthTokenConfig = {
14351
+ * uses: 3,
14352
+ * expireTime: '2025-05-01T00:00:00Z',
14353
+ * }
14354
+ * const token = await ai.tokens.create(config);
14355
+ *
14356
+ * // Case 2: If LiveEphemeralParameters is set, lock all fields in
14357
+ * // LiveConnectConfig when using the token in Live API sessions. For
14358
+ * // example, changing `outputAudioTranscription` in the Live API
14359
+ * // connection will be ignored by the API.
14360
+ * const config: CreateAuthTokenConfig =
14361
+ * uses: 3,
14362
+ * expireTime: '2025-05-01T00:00:00Z',
14363
+ * LiveEphemeralParameters: {
14364
+ * model: 'gemini-2.0-flash-001',
14365
+ * config: {
14366
+ * 'responseModalities': ['AUDIO'],
14367
+ * 'systemInstruction': 'Always answer in English.',
14368
+ * }
14369
+ * }
14370
+ * }
14371
+ * const token = await ai.tokens.create(config);
14372
+ *
14373
+ * // Case 3: If LiveEphemeralParameters is set and lockAdditionalFields is
14374
+ * // set, lock LiveConnectConfig with set and additional fields (e.g.
14375
+ * // responseModalities, systemInstruction, temperature in this example) when
14376
+ * // using the token in Live API sessions.
14377
+ * const config: CreateAuthTokenConfig =
14378
+ * uses: 3,
14379
+ * expireTime: '2025-05-01T00:00:00Z',
14380
+ * LiveEphemeralParameters: {
14381
+ * model: 'gemini-2.0-flash-001',
14382
+ * config: {
14383
+ * 'responseModalities': ['AUDIO'],
14384
+ * 'systemInstruction': 'Always answer in English.',
14385
+ * }
14386
+ * },
14387
+ * lockAdditionalFields: ['temperature'],
14388
+ * }
14389
+ * const token = await ai.tokens.create(config);
14390
+ *
14391
+ * // Case 4: If LiveEphemeralParameters is set and lockAdditionalFields is
14392
+ * // empty array, lock LiveConnectConfig with set fields (e.g.
14393
+ * // responseModalities, systemInstruction in this example) when using the
14394
+ * // token in Live API sessions.
14395
+ * const config: CreateAuthTokenConfig =
14396
+ * uses: 3,
14397
+ * expireTime: '2025-05-01T00:00:00Z',
14398
+ * LiveEphemeralParameters: {
14399
+ * model: 'gemini-2.0-flash-001',
14400
+ * config: {
14401
+ * 'responseModalities': ['AUDIO'],
14402
+ * 'systemInstruction': 'Always answer in English.',
14403
+ * }
14404
+ * },
14405
+ * lockAdditionalFields: [],
14406
+ * }
14407
+ * const token = await ai.tokens.create(config);
14408
+ * ```
14409
+ */
14410
+ async create(params) {
14411
+ var _a, _b;
14412
+ let response;
14413
+ let path = '';
14414
+ let queryParams = {};
14415
+ if (this.apiClient.isVertexAI()) {
14416
+ throw new Error('The client.tokens.create method is only supported by the Gemini Developer API.');
14417
+ }
14418
+ else {
14419
+ const body = createAuthTokenParametersToMldev(this.apiClient, params);
14420
+ path = formatMap('auth_tokens', body['_url']);
14421
+ queryParams = body['_query'];
14422
+ delete body['config'];
14423
+ delete body['_url'];
14424
+ delete body['_query'];
14425
+ const transformedBody = convertBidiSetupToTokenSetup(body, params.config);
14426
+ response = this.apiClient
14427
+ .request({
14428
+ path: path,
14429
+ queryParams: queryParams,
14430
+ body: JSON.stringify(transformedBody),
14431
+ httpMethod: 'POST',
14432
+ httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,
14433
+ abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
14434
+ })
14435
+ .then((httpResponse) => {
14436
+ return httpResponse.json();
14437
+ });
14438
+ return response.then((apiResponse) => {
14439
+ const resp = authTokenFromMldev(this.apiClient, apiResponse);
14440
+ return resp;
14441
+ });
14442
+ }
14443
+ }
14444
+ }
14445
+
14446
+ /**
14447
+ * @license
14448
+ * Copyright 2025 Google LLC
14449
+ * SPDX-License-Identifier: Apache-2.0
14450
+ */
14451
+ function getTuningJobParametersToMldev(apiClient, fromObject) {
14452
+ const toObject = {};
14453
+ const fromName = getValueByPath(fromObject, ['name']);
14454
+ if (fromName != null) {
14455
+ setValueByPath(toObject, ['_url', 'name'], fromName);
14456
+ }
14457
+ const fromConfig = getValueByPath(fromObject, ['config']);
14458
+ if (fromConfig != null) {
14459
+ setValueByPath(toObject, ['config'], fromConfig);
14460
+ }
14461
+ return toObject;
14462
+ }
14463
+ function listTuningJobsConfigToMldev(apiClient, fromObject, parentObject) {
14464
+ const toObject = {};
14465
+ const fromPageSize = getValueByPath(fromObject, ['pageSize']);
14466
+ if (parentObject !== undefined && fromPageSize != null) {
14467
+ setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);
14468
+ }
14469
+ const fromPageToken = getValueByPath(fromObject, ['pageToken']);
14470
+ if (parentObject !== undefined && fromPageToken != null) {
14471
+ setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);
14472
+ }
14473
+ const fromFilter = getValueByPath(fromObject, ['filter']);
14474
+ if (parentObject !== undefined && fromFilter != null) {
14475
+ setValueByPath(parentObject, ['_query', 'filter'], fromFilter);
14476
+ }
14477
+ return toObject;
14478
+ }
14479
+ function listTuningJobsParametersToMldev(apiClient, fromObject) {
14480
+ const toObject = {};
14481
+ const fromConfig = getValueByPath(fromObject, ['config']);
14482
+ if (fromConfig != null) {
14483
+ setValueByPath(toObject, ['config'], listTuningJobsConfigToMldev(apiClient, fromConfig, toObject));
14484
+ }
14485
+ return toObject;
14486
+ }
14487
+ function tuningExampleToMldev(apiClient, fromObject) {
14488
+ const toObject = {};
14489
+ const fromTextInput = getValueByPath(fromObject, ['textInput']);
14490
+ if (fromTextInput != null) {
14491
+ setValueByPath(toObject, ['textInput'], fromTextInput);
14492
+ }
14493
+ const fromOutput = getValueByPath(fromObject, ['output']);
14494
+ if (fromOutput != null) {
14495
+ setValueByPath(toObject, ['output'], fromOutput);
14496
+ }
14497
+ return toObject;
14498
+ }
14499
+ function tuningDatasetToMldev(apiClient, fromObject) {
14500
+ const toObject = {};
14501
+ if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {
14502
+ throw new Error('gcsUri parameter is not supported in Gemini API.');
14503
+ }
14504
+ const fromExamples = getValueByPath(fromObject, ['examples']);
14505
+ if (fromExamples != null) {
14506
+ let transformedList = fromExamples;
14507
+ if (Array.isArray(transformedList)) {
14508
+ transformedList = transformedList.map((item) => {
14509
+ return tuningExampleToMldev(apiClient, item);
14510
+ });
14511
+ }
14512
+ setValueByPath(toObject, ['examples', 'examples'], transformedList);
14513
+ }
14514
+ return toObject;
14515
+ }
14516
+ function createTuningJobConfigToMldev(apiClient, fromObject, parentObject) {
14517
+ const toObject = {};
14518
+ if (getValueByPath(fromObject, ['validationDataset']) !== undefined) {
14519
+ throw new Error('validationDataset parameter is not supported in Gemini API.');
13623
14520
  }
13624
14521
  const fromTunedModelDisplayName = getValueByPath(fromObject, [
13625
14522
  'tunedModelDisplayName',
@@ -14479,6 +15376,13 @@ class WebAuth {
14479
15376
  if (headers.get(GOOGLE_API_KEY_HEADER) !== null) {
14480
15377
  return;
14481
15378
  }
15379
+ if (this.apiKey.startsWith('auth_tokens/')) {
15380
+ throw new Error('Ephemeral tokens are only supported by the live API.');
15381
+ }
15382
+ // Check if API key is empty or null
15383
+ if (!this.apiKey) {
15384
+ throw new Error('API key is missing. Please provide a valid API key.');
15385
+ }
14482
15386
  headers.append(GOOGLE_API_KEY_HEADER, this.apiKey);
14483
15387
  }
14484
15388
  }
@@ -14566,9 +15470,10 @@ class GoogleGenAI {
14566
15470
  this.caches = new Caches(this.apiClient);
14567
15471
  this.files = new Files(this.apiClient);
14568
15472
  this.operations = new Operations(this.apiClient);
15473
+ this.authTokens = new Tokens(this.apiClient);
14569
15474
  this.tunings = new Tunings(this.apiClient);
14570
15475
  }
14571
15476
  }
14572
15477
 
14573
- export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
15478
+ export { ActivityHandling, AdapterSize, AuthType, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, JobState, Language, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, Tokens, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
14574
15479
  //# sourceMappingURL=index.mjs.map