@google/genai 1.13.0 → 1.14.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.
- package/dist/genai.d.ts +170 -47
- package/dist/index.cjs +244 -81
- package/dist/index.mjs +245 -82
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +244 -81
- package/dist/node/index.mjs +245 -82
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +170 -47
- package/dist/web/index.mjs +245 -82
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +170 -47
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -387,18 +387,6 @@ var ApiSpec;
|
|
|
387
387
|
*/
|
|
388
388
|
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
389
389
|
})(ApiSpec || (ApiSpec = {}));
|
|
390
|
-
/** Required. The environment being operated. */
|
|
391
|
-
var Environment;
|
|
392
|
-
(function (Environment) {
|
|
393
|
-
/**
|
|
394
|
-
* Defaults to browser.
|
|
395
|
-
*/
|
|
396
|
-
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
397
|
-
/**
|
|
398
|
-
* Operates in a web browser.
|
|
399
|
-
*/
|
|
400
|
-
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
401
|
-
})(Environment || (Environment = {}));
|
|
402
390
|
/** Status of the url retrieval. */
|
|
403
391
|
var UrlRetrievalStatus;
|
|
404
392
|
(function (UrlRetrievalStatus) {
|
|
@@ -666,6 +654,22 @@ var JobState;
|
|
|
666
654
|
*/
|
|
667
655
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
668
656
|
})(JobState || (JobState = {}));
|
|
657
|
+
/** Tuning mode. */
|
|
658
|
+
var TuningMode;
|
|
659
|
+
(function (TuningMode) {
|
|
660
|
+
/**
|
|
661
|
+
* Tuning mode is unspecified.
|
|
662
|
+
*/
|
|
663
|
+
TuningMode["TUNING_MODE_UNSPECIFIED"] = "TUNING_MODE_UNSPECIFIED";
|
|
664
|
+
/**
|
|
665
|
+
* Full fine-tuning mode.
|
|
666
|
+
*/
|
|
667
|
+
TuningMode["TUNING_MODE_FULL"] = "TUNING_MODE_FULL";
|
|
668
|
+
/**
|
|
669
|
+
* PEFT adapter tuning mode.
|
|
670
|
+
*/
|
|
671
|
+
TuningMode["TUNING_MODE_PEFT_ADAPTER"] = "TUNING_MODE_PEFT_ADAPTER";
|
|
672
|
+
})(TuningMode || (TuningMode = {}));
|
|
669
673
|
/** Optional. Adapter size for tuning. */
|
|
670
674
|
var AdapterSize;
|
|
671
675
|
(function (AdapterSize) {
|
|
@@ -734,6 +738,18 @@ var DynamicRetrievalConfigMode;
|
|
|
734
738
|
*/
|
|
735
739
|
DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
|
|
736
740
|
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
741
|
+
/** The environment being operated. */
|
|
742
|
+
var Environment;
|
|
743
|
+
(function (Environment) {
|
|
744
|
+
/**
|
|
745
|
+
* Defaults to browser.
|
|
746
|
+
*/
|
|
747
|
+
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
748
|
+
/**
|
|
749
|
+
* Operates in a web browser.
|
|
750
|
+
*/
|
|
751
|
+
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
752
|
+
})(Environment || (Environment = {}));
|
|
737
753
|
/** Config for the function calling config mode. */
|
|
738
754
|
var FunctionCallingConfigMode;
|
|
739
755
|
(function (FunctionCallingConfigMode) {
|
|
@@ -2840,6 +2856,9 @@ function googleSearchToMldev$4(fromObject) {
|
|
|
2840
2856
|
if (fromTimeRangeFilter != null) {
|
|
2841
2857
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$4(fromTimeRangeFilter));
|
|
2842
2858
|
}
|
|
2859
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
2860
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
2861
|
+
}
|
|
2843
2862
|
return toObject;
|
|
2844
2863
|
}
|
|
2845
2864
|
function dynamicRetrievalConfigToMldev$4(fromObject) {
|
|
@@ -2870,6 +2889,14 @@ function urlContextToMldev$4() {
|
|
|
2870
2889
|
const toObject = {};
|
|
2871
2890
|
return toObject;
|
|
2872
2891
|
}
|
|
2892
|
+
function toolComputerUseToMldev$4(fromObject) {
|
|
2893
|
+
const toObject = {};
|
|
2894
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
2895
|
+
if (fromEnvironment != null) {
|
|
2896
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
2897
|
+
}
|
|
2898
|
+
return toObject;
|
|
2899
|
+
}
|
|
2873
2900
|
function toolToMldev$4(fromObject) {
|
|
2874
2901
|
const toObject = {};
|
|
2875
2902
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -2907,16 +2934,16 @@ function toolToMldev$4(fromObject) {
|
|
|
2907
2934
|
if (fromUrlContext != null) {
|
|
2908
2935
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$4());
|
|
2909
2936
|
}
|
|
2937
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2938
|
+
if (fromComputerUse != null) {
|
|
2939
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$4(fromComputerUse));
|
|
2940
|
+
}
|
|
2910
2941
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
2911
2942
|
'codeExecution',
|
|
2912
2943
|
]);
|
|
2913
2944
|
if (fromCodeExecution != null) {
|
|
2914
2945
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
2915
2946
|
}
|
|
2916
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2917
|
-
if (fromComputerUse != null) {
|
|
2918
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
2919
|
-
}
|
|
2920
2947
|
return toObject;
|
|
2921
2948
|
}
|
|
2922
2949
|
function functionCallingConfigToMldev$2(fromObject) {
|
|
@@ -4770,6 +4797,9 @@ function googleSearchToMldev$3(fromObject) {
|
|
|
4770
4797
|
if (fromTimeRangeFilter != null) {
|
|
4771
4798
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$3(fromTimeRangeFilter));
|
|
4772
4799
|
}
|
|
4800
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
4801
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
4802
|
+
}
|
|
4773
4803
|
return toObject;
|
|
4774
4804
|
}
|
|
4775
4805
|
function dynamicRetrievalConfigToMldev$3(fromObject) {
|
|
@@ -4800,6 +4830,14 @@ function urlContextToMldev$3() {
|
|
|
4800
4830
|
const toObject = {};
|
|
4801
4831
|
return toObject;
|
|
4802
4832
|
}
|
|
4833
|
+
function toolComputerUseToMldev$3(fromObject) {
|
|
4834
|
+
const toObject = {};
|
|
4835
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
4836
|
+
if (fromEnvironment != null) {
|
|
4837
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
4838
|
+
}
|
|
4839
|
+
return toObject;
|
|
4840
|
+
}
|
|
4803
4841
|
function toolToMldev$3(fromObject) {
|
|
4804
4842
|
const toObject = {};
|
|
4805
4843
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -4837,16 +4875,16 @@ function toolToMldev$3(fromObject) {
|
|
|
4837
4875
|
if (fromUrlContext != null) {
|
|
4838
4876
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$3());
|
|
4839
4877
|
}
|
|
4878
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4879
|
+
if (fromComputerUse != null) {
|
|
4880
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$3(fromComputerUse));
|
|
4881
|
+
}
|
|
4840
4882
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
4841
4883
|
'codeExecution',
|
|
4842
4884
|
]);
|
|
4843
4885
|
if (fromCodeExecution != null) {
|
|
4844
4886
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
4845
4887
|
}
|
|
4846
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4847
|
-
if (fromComputerUse != null) {
|
|
4848
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
4849
|
-
}
|
|
4850
4888
|
return toObject;
|
|
4851
4889
|
}
|
|
4852
4890
|
function functionCallingConfigToMldev$1(fromObject) {
|
|
@@ -5207,6 +5245,12 @@ function googleSearchToVertex$2(fromObject) {
|
|
|
5207
5245
|
if (fromTimeRangeFilter != null) {
|
|
5208
5246
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$2(fromTimeRangeFilter));
|
|
5209
5247
|
}
|
|
5248
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5249
|
+
'excludeDomains',
|
|
5250
|
+
]);
|
|
5251
|
+
if (fromExcludeDomains != null) {
|
|
5252
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5253
|
+
}
|
|
5210
5254
|
return toObject;
|
|
5211
5255
|
}
|
|
5212
5256
|
function dynamicRetrievalConfigToVertex$2(fromObject) {
|
|
@@ -5233,8 +5277,14 @@ function googleSearchRetrievalToVertex$2(fromObject) {
|
|
|
5233
5277
|
}
|
|
5234
5278
|
return toObject;
|
|
5235
5279
|
}
|
|
5236
|
-
function enterpriseWebSearchToVertex$2() {
|
|
5280
|
+
function enterpriseWebSearchToVertex$2(fromObject) {
|
|
5237
5281
|
const toObject = {};
|
|
5282
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5283
|
+
'excludeDomains',
|
|
5284
|
+
]);
|
|
5285
|
+
if (fromExcludeDomains != null) {
|
|
5286
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5287
|
+
}
|
|
5238
5288
|
return toObject;
|
|
5239
5289
|
}
|
|
5240
5290
|
function apiKeyConfigToVertex$2(fromObject) {
|
|
@@ -5289,6 +5339,14 @@ function urlContextToVertex$2() {
|
|
|
5289
5339
|
const toObject = {};
|
|
5290
5340
|
return toObject;
|
|
5291
5341
|
}
|
|
5342
|
+
function toolComputerUseToVertex$2(fromObject) {
|
|
5343
|
+
const toObject = {};
|
|
5344
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
5345
|
+
if (fromEnvironment != null) {
|
|
5346
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
5347
|
+
}
|
|
5348
|
+
return toObject;
|
|
5349
|
+
}
|
|
5292
5350
|
function toolToVertex$2(fromObject) {
|
|
5293
5351
|
const toObject = {};
|
|
5294
5352
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -5321,7 +5379,7 @@ function toolToVertex$2(fromObject) {
|
|
|
5321
5379
|
'enterpriseWebSearch',
|
|
5322
5380
|
]);
|
|
5323
5381
|
if (fromEnterpriseWebSearch != null) {
|
|
5324
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2());
|
|
5382
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2(fromEnterpriseWebSearch));
|
|
5325
5383
|
}
|
|
5326
5384
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
5327
5385
|
if (fromGoogleMaps != null) {
|
|
@@ -5331,16 +5389,16 @@ function toolToVertex$2(fromObject) {
|
|
|
5331
5389
|
if (fromUrlContext != null) {
|
|
5332
5390
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$2());
|
|
5333
5391
|
}
|
|
5392
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5393
|
+
if (fromComputerUse != null) {
|
|
5394
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$2(fromComputerUse));
|
|
5395
|
+
}
|
|
5334
5396
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
5335
5397
|
'codeExecution',
|
|
5336
5398
|
]);
|
|
5337
5399
|
if (fromCodeExecution != null) {
|
|
5338
5400
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
5339
5401
|
}
|
|
5340
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5341
|
-
if (fromComputerUse != null) {
|
|
5342
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
5343
|
-
}
|
|
5344
5402
|
return toObject;
|
|
5345
5403
|
}
|
|
5346
5404
|
function functionCallingConfigToVertex$1(fromObject) {
|
|
@@ -6452,7 +6510,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
6452
6510
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
6453
6511
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
6454
6512
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
6455
|
-
const SDK_VERSION = '1.
|
|
6513
|
+
const SDK_VERSION = '1.14.0'; // x-release-please-version
|
|
6456
6514
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
6457
6515
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
6458
6516
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -7923,6 +7981,9 @@ function googleSearchToMldev$2(fromObject) {
|
|
|
7923
7981
|
if (fromTimeRangeFilter != null) {
|
|
7924
7982
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(fromTimeRangeFilter));
|
|
7925
7983
|
}
|
|
7984
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
7985
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
7986
|
+
}
|
|
7926
7987
|
return toObject;
|
|
7927
7988
|
}
|
|
7928
7989
|
function dynamicRetrievalConfigToMldev$2(fromObject) {
|
|
@@ -7953,6 +8014,14 @@ function urlContextToMldev$2() {
|
|
|
7953
8014
|
const toObject = {};
|
|
7954
8015
|
return toObject;
|
|
7955
8016
|
}
|
|
8017
|
+
function toolComputerUseToMldev$2(fromObject) {
|
|
8018
|
+
const toObject = {};
|
|
8019
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
8020
|
+
if (fromEnvironment != null) {
|
|
8021
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
8022
|
+
}
|
|
8023
|
+
return toObject;
|
|
8024
|
+
}
|
|
7956
8025
|
function toolToMldev$2(fromObject) {
|
|
7957
8026
|
const toObject = {};
|
|
7958
8027
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -7990,16 +8059,16 @@ function toolToMldev$2(fromObject) {
|
|
|
7990
8059
|
if (fromUrlContext != null) {
|
|
7991
8060
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
|
|
7992
8061
|
}
|
|
8062
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8063
|
+
if (fromComputerUse != null) {
|
|
8064
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$2(fromComputerUse));
|
|
8065
|
+
}
|
|
7993
8066
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
7994
8067
|
'codeExecution',
|
|
7995
8068
|
]);
|
|
7996
8069
|
if (fromCodeExecution != null) {
|
|
7997
8070
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
7998
8071
|
}
|
|
7999
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8000
|
-
if (fromComputerUse != null) {
|
|
8001
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
8002
|
-
}
|
|
8003
8072
|
return toObject;
|
|
8004
8073
|
}
|
|
8005
8074
|
function sessionResumptionConfigToMldev$1(fromObject) {
|
|
@@ -8615,6 +8684,12 @@ function googleSearchToVertex$1(fromObject) {
|
|
|
8615
8684
|
if (fromTimeRangeFilter != null) {
|
|
8616
8685
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$1(fromTimeRangeFilter));
|
|
8617
8686
|
}
|
|
8687
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8688
|
+
'excludeDomains',
|
|
8689
|
+
]);
|
|
8690
|
+
if (fromExcludeDomains != null) {
|
|
8691
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8692
|
+
}
|
|
8618
8693
|
return toObject;
|
|
8619
8694
|
}
|
|
8620
8695
|
function dynamicRetrievalConfigToVertex$1(fromObject) {
|
|
@@ -8641,8 +8716,14 @@ function googleSearchRetrievalToVertex$1(fromObject) {
|
|
|
8641
8716
|
}
|
|
8642
8717
|
return toObject;
|
|
8643
8718
|
}
|
|
8644
|
-
function enterpriseWebSearchToVertex$1() {
|
|
8719
|
+
function enterpriseWebSearchToVertex$1(fromObject) {
|
|
8645
8720
|
const toObject = {};
|
|
8721
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8722
|
+
'excludeDomains',
|
|
8723
|
+
]);
|
|
8724
|
+
if (fromExcludeDomains != null) {
|
|
8725
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8726
|
+
}
|
|
8646
8727
|
return toObject;
|
|
8647
8728
|
}
|
|
8648
8729
|
function apiKeyConfigToVertex$1(fromObject) {
|
|
@@ -8697,6 +8778,14 @@ function urlContextToVertex$1() {
|
|
|
8697
8778
|
const toObject = {};
|
|
8698
8779
|
return toObject;
|
|
8699
8780
|
}
|
|
8781
|
+
function toolComputerUseToVertex$1(fromObject) {
|
|
8782
|
+
const toObject = {};
|
|
8783
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
8784
|
+
if (fromEnvironment != null) {
|
|
8785
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
8786
|
+
}
|
|
8787
|
+
return toObject;
|
|
8788
|
+
}
|
|
8700
8789
|
function toolToVertex$1(fromObject) {
|
|
8701
8790
|
const toObject = {};
|
|
8702
8791
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -8729,7 +8818,7 @@ function toolToVertex$1(fromObject) {
|
|
|
8729
8818
|
'enterpriseWebSearch',
|
|
8730
8819
|
]);
|
|
8731
8820
|
if (fromEnterpriseWebSearch != null) {
|
|
8732
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1());
|
|
8821
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1(fromEnterpriseWebSearch));
|
|
8733
8822
|
}
|
|
8734
8823
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8735
8824
|
if (fromGoogleMaps != null) {
|
|
@@ -8739,16 +8828,16 @@ function toolToVertex$1(fromObject) {
|
|
|
8739
8828
|
if (fromUrlContext != null) {
|
|
8740
8829
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$1());
|
|
8741
8830
|
}
|
|
8831
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8832
|
+
if (fromComputerUse != null) {
|
|
8833
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$1(fromComputerUse));
|
|
8834
|
+
}
|
|
8742
8835
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
8743
8836
|
'codeExecution',
|
|
8744
8837
|
]);
|
|
8745
8838
|
if (fromCodeExecution != null) {
|
|
8746
8839
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
8747
8840
|
}
|
|
8748
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8749
|
-
if (fromComputerUse != null) {
|
|
8750
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
8751
|
-
}
|
|
8752
8841
|
return toObject;
|
|
8753
8842
|
}
|
|
8754
8843
|
function sessionResumptionConfigToVertex(fromObject) {
|
|
@@ -10276,6 +10365,9 @@ function googleSearchToMldev$1(fromObject) {
|
|
|
10276
10365
|
if (fromTimeRangeFilter != null) {
|
|
10277
10366
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(fromTimeRangeFilter));
|
|
10278
10367
|
}
|
|
10368
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
10369
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
10370
|
+
}
|
|
10279
10371
|
return toObject;
|
|
10280
10372
|
}
|
|
10281
10373
|
function dynamicRetrievalConfigToMldev$1(fromObject) {
|
|
@@ -10306,6 +10398,14 @@ function urlContextToMldev$1() {
|
|
|
10306
10398
|
const toObject = {};
|
|
10307
10399
|
return toObject;
|
|
10308
10400
|
}
|
|
10401
|
+
function toolComputerUseToMldev$1(fromObject) {
|
|
10402
|
+
const toObject = {};
|
|
10403
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
10404
|
+
if (fromEnvironment != null) {
|
|
10405
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
10406
|
+
}
|
|
10407
|
+
return toObject;
|
|
10408
|
+
}
|
|
10309
10409
|
function toolToMldev$1(fromObject) {
|
|
10310
10410
|
const toObject = {};
|
|
10311
10411
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -10343,16 +10443,16 @@ function toolToMldev$1(fromObject) {
|
|
|
10343
10443
|
if (fromUrlContext != null) {
|
|
10344
10444
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
|
|
10345
10445
|
}
|
|
10446
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10447
|
+
if (fromComputerUse != null) {
|
|
10448
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$1(fromComputerUse));
|
|
10449
|
+
}
|
|
10346
10450
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
10347
10451
|
'codeExecution',
|
|
10348
10452
|
]);
|
|
10349
10453
|
if (fromCodeExecution != null) {
|
|
10350
10454
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
10351
10455
|
}
|
|
10352
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10353
|
-
if (fromComputerUse != null) {
|
|
10354
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
10355
|
-
}
|
|
10356
10456
|
return toObject;
|
|
10357
10457
|
}
|
|
10358
10458
|
function functionCallingConfigToMldev(fromObject) {
|
|
@@ -11316,6 +11416,12 @@ function googleSearchToVertex(fromObject) {
|
|
|
11316
11416
|
if (fromTimeRangeFilter != null) {
|
|
11317
11417
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex(fromTimeRangeFilter));
|
|
11318
11418
|
}
|
|
11419
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
11420
|
+
'excludeDomains',
|
|
11421
|
+
]);
|
|
11422
|
+
if (fromExcludeDomains != null) {
|
|
11423
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
11424
|
+
}
|
|
11319
11425
|
return toObject;
|
|
11320
11426
|
}
|
|
11321
11427
|
function dynamicRetrievalConfigToVertex(fromObject) {
|
|
@@ -11342,8 +11448,14 @@ function googleSearchRetrievalToVertex(fromObject) {
|
|
|
11342
11448
|
}
|
|
11343
11449
|
return toObject;
|
|
11344
11450
|
}
|
|
11345
|
-
function enterpriseWebSearchToVertex() {
|
|
11451
|
+
function enterpriseWebSearchToVertex(fromObject) {
|
|
11346
11452
|
const toObject = {};
|
|
11453
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
11454
|
+
'excludeDomains',
|
|
11455
|
+
]);
|
|
11456
|
+
if (fromExcludeDomains != null) {
|
|
11457
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
11458
|
+
}
|
|
11347
11459
|
return toObject;
|
|
11348
11460
|
}
|
|
11349
11461
|
function apiKeyConfigToVertex(fromObject) {
|
|
@@ -11398,6 +11510,14 @@ function urlContextToVertex() {
|
|
|
11398
11510
|
const toObject = {};
|
|
11399
11511
|
return toObject;
|
|
11400
11512
|
}
|
|
11513
|
+
function toolComputerUseToVertex(fromObject) {
|
|
11514
|
+
const toObject = {};
|
|
11515
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
11516
|
+
if (fromEnvironment != null) {
|
|
11517
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
11518
|
+
}
|
|
11519
|
+
return toObject;
|
|
11520
|
+
}
|
|
11401
11521
|
function toolToVertex(fromObject) {
|
|
11402
11522
|
const toObject = {};
|
|
11403
11523
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -11430,7 +11550,7 @@ function toolToVertex(fromObject) {
|
|
|
11430
11550
|
'enterpriseWebSearch',
|
|
11431
11551
|
]);
|
|
11432
11552
|
if (fromEnterpriseWebSearch != null) {
|
|
11433
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex());
|
|
11553
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex(fromEnterpriseWebSearch));
|
|
11434
11554
|
}
|
|
11435
11555
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
11436
11556
|
if (fromGoogleMaps != null) {
|
|
@@ -11440,16 +11560,16 @@ function toolToVertex(fromObject) {
|
|
|
11440
11560
|
if (fromUrlContext != null) {
|
|
11441
11561
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex());
|
|
11442
11562
|
}
|
|
11563
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
11564
|
+
if (fromComputerUse != null) {
|
|
11565
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex(fromComputerUse));
|
|
11566
|
+
}
|
|
11443
11567
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
11444
11568
|
'codeExecution',
|
|
11445
11569
|
]);
|
|
11446
11570
|
if (fromCodeExecution != null) {
|
|
11447
11571
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
11448
11572
|
}
|
|
11449
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
11450
|
-
if (fromComputerUse != null) {
|
|
11451
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
11452
|
-
}
|
|
11453
11573
|
return toObject;
|
|
11454
11574
|
}
|
|
11455
11575
|
function functionCallingConfigToVertex(fromObject) {
|
|
@@ -16642,6 +16762,9 @@ function googleSearchToMldev(fromObject) {
|
|
|
16642
16762
|
if (fromTimeRangeFilter != null) {
|
|
16643
16763
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(fromTimeRangeFilter));
|
|
16644
16764
|
}
|
|
16765
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
16766
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
16767
|
+
}
|
|
16645
16768
|
return toObject;
|
|
16646
16769
|
}
|
|
16647
16770
|
function dynamicRetrievalConfigToMldev(fromObject) {
|
|
@@ -16672,6 +16795,14 @@ function urlContextToMldev() {
|
|
|
16672
16795
|
const toObject = {};
|
|
16673
16796
|
return toObject;
|
|
16674
16797
|
}
|
|
16798
|
+
function toolComputerUseToMldev(fromObject) {
|
|
16799
|
+
const toObject = {};
|
|
16800
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
16801
|
+
if (fromEnvironment != null) {
|
|
16802
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
16803
|
+
}
|
|
16804
|
+
return toObject;
|
|
16805
|
+
}
|
|
16675
16806
|
function toolToMldev(fromObject) {
|
|
16676
16807
|
const toObject = {};
|
|
16677
16808
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -16709,16 +16840,16 @@ function toolToMldev(fromObject) {
|
|
|
16709
16840
|
if (fromUrlContext != null) {
|
|
16710
16841
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev());
|
|
16711
16842
|
}
|
|
16843
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16844
|
+
if (fromComputerUse != null) {
|
|
16845
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev(fromComputerUse));
|
|
16846
|
+
}
|
|
16712
16847
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
16713
16848
|
'codeExecution',
|
|
16714
16849
|
]);
|
|
16715
16850
|
if (fromCodeExecution != null) {
|
|
16716
16851
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
16717
16852
|
}
|
|
16718
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16719
|
-
if (fromComputerUse != null) {
|
|
16720
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
16721
|
-
}
|
|
16722
16853
|
return toObject;
|
|
16723
16854
|
}
|
|
16724
16855
|
function sessionResumptionConfigToMldev(fromObject) {
|
|
@@ -17358,6 +17489,10 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17358
17489
|
undefined) {
|
|
17359
17490
|
throw new Error('exportLastCheckpointOnly parameter is not supported in Gemini API.');
|
|
17360
17491
|
}
|
|
17492
|
+
if (getValueByPath(fromObject, ['preTunedModelCheckpointId']) !==
|
|
17493
|
+
undefined) {
|
|
17494
|
+
throw new Error('preTunedModelCheckpointId parameter is not supported in Gemini API.');
|
|
17495
|
+
}
|
|
17361
17496
|
if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {
|
|
17362
17497
|
throw new Error('adapterSize parameter is not supported in Gemini API.');
|
|
17363
17498
|
}
|
|
@@ -17371,12 +17506,18 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17371
17506
|
}
|
|
17372
17507
|
return toObject;
|
|
17373
17508
|
}
|
|
17374
|
-
function
|
|
17509
|
+
function createTuningJobParametersPrivateToMldev(fromObject) {
|
|
17375
17510
|
const toObject = {};
|
|
17376
17511
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17377
17512
|
if (fromBaseModel != null) {
|
|
17378
17513
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17379
17514
|
}
|
|
17515
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17516
|
+
'preTunedModel',
|
|
17517
|
+
]);
|
|
17518
|
+
if (fromPreTunedModel != null) {
|
|
17519
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17520
|
+
}
|
|
17380
17521
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17381
17522
|
'trainingDataset',
|
|
17382
17523
|
]);
|
|
@@ -17490,6 +17631,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17490
17631
|
if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {
|
|
17491
17632
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
17492
17633
|
}
|
|
17634
|
+
const fromPreTunedModelCheckpointId = getValueByPath(fromObject, [
|
|
17635
|
+
'preTunedModelCheckpointId',
|
|
17636
|
+
]);
|
|
17637
|
+
if (fromPreTunedModelCheckpointId != null) {
|
|
17638
|
+
setValueByPath(toObject, ['preTunedModel', 'checkpointId'], fromPreTunedModelCheckpointId);
|
|
17639
|
+
}
|
|
17493
17640
|
const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);
|
|
17494
17641
|
if (parentObject !== undefined && fromAdapterSize != null) {
|
|
17495
17642
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
@@ -17502,12 +17649,18 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17502
17649
|
}
|
|
17503
17650
|
return toObject;
|
|
17504
17651
|
}
|
|
17505
|
-
function
|
|
17652
|
+
function createTuningJobParametersPrivateToVertex(fromObject) {
|
|
17506
17653
|
const toObject = {};
|
|
17507
17654
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17508
17655
|
if (fromBaseModel != null) {
|
|
17509
17656
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17510
17657
|
}
|
|
17658
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17659
|
+
'preTunedModel',
|
|
17660
|
+
]);
|
|
17661
|
+
if (fromPreTunedModel != null) {
|
|
17662
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17663
|
+
}
|
|
17511
17664
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17512
17665
|
'trainingDataset',
|
|
17513
17666
|
]);
|
|
@@ -17582,11 +17735,11 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17582
17735
|
if (fromTunedModel != null) {
|
|
17583
17736
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromMldev(fromTunedModel));
|
|
17584
17737
|
}
|
|
17585
|
-
const
|
|
17586
|
-
'
|
|
17738
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
17739
|
+
'customBaseModel',
|
|
17587
17740
|
]);
|
|
17588
|
-
if (
|
|
17589
|
-
setValueByPath(toObject, ['
|
|
17741
|
+
if (fromCustomBaseModel != null) {
|
|
17742
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17590
17743
|
}
|
|
17591
17744
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17592
17745
|
if (fromExperiment != null) {
|
|
@@ -17596,18 +17749,14 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17596
17749
|
if (fromLabels != null) {
|
|
17597
17750
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17598
17751
|
}
|
|
17752
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
17753
|
+
if (fromOutputUri != null) {
|
|
17754
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
17755
|
+
}
|
|
17599
17756
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17600
17757
|
if (fromPipelineJob != null) {
|
|
17601
17758
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17602
17759
|
}
|
|
17603
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17604
|
-
if (fromSatisfiesPzi != null) {
|
|
17605
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17606
|
-
}
|
|
17607
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17608
|
-
if (fromSatisfiesPzs != null) {
|
|
17609
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17610
|
-
}
|
|
17611
17760
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17612
17761
|
'serviceAccount',
|
|
17613
17762
|
]);
|
|
@@ -17764,6 +17913,12 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17764
17913
|
if (fromTunedModel != null) {
|
|
17765
17914
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromVertex(fromTunedModel));
|
|
17766
17915
|
}
|
|
17916
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17917
|
+
'preTunedModel',
|
|
17918
|
+
]);
|
|
17919
|
+
if (fromPreTunedModel != null) {
|
|
17920
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17921
|
+
}
|
|
17767
17922
|
const fromSupervisedTuningSpec = getValueByPath(fromObject, [
|
|
17768
17923
|
'supervisedTuningSpec',
|
|
17769
17924
|
]);
|
|
@@ -17788,11 +17943,11 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17788
17943
|
if (fromPartnerModelTuningSpec != null) {
|
|
17789
17944
|
setValueByPath(toObject, ['partnerModelTuningSpec'], fromPartnerModelTuningSpec);
|
|
17790
17945
|
}
|
|
17791
|
-
const
|
|
17792
|
-
'
|
|
17946
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
17947
|
+
'customBaseModel',
|
|
17793
17948
|
]);
|
|
17794
|
-
if (
|
|
17795
|
-
setValueByPath(toObject, ['
|
|
17949
|
+
if (fromCustomBaseModel != null) {
|
|
17950
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17796
17951
|
}
|
|
17797
17952
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17798
17953
|
if (fromExperiment != null) {
|
|
@@ -17802,18 +17957,14 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17802
17957
|
if (fromLabels != null) {
|
|
17803
17958
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17804
17959
|
}
|
|
17960
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
17961
|
+
if (fromOutputUri != null) {
|
|
17962
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
17963
|
+
}
|
|
17805
17964
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17806
17965
|
if (fromPipelineJob != null) {
|
|
17807
17966
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17808
17967
|
}
|
|
17809
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17810
|
-
if (fromSatisfiesPzi != null) {
|
|
17811
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17812
|
-
}
|
|
17813
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17814
|
-
if (fromSatisfiesPzs != null) {
|
|
17815
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17816
|
-
}
|
|
17817
17968
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17818
17969
|
'serviceAccount',
|
|
17819
17970
|
]);
|
|
@@ -17899,10 +18050,22 @@ class Tunings extends BaseModule {
|
|
|
17899
18050
|
*/
|
|
17900
18051
|
this.tune = async (params) => {
|
|
17901
18052
|
if (this.apiClient.isVertexAI()) {
|
|
17902
|
-
|
|
18053
|
+
if (params.baseModel.startsWith('projects/')) {
|
|
18054
|
+
const preTunedModel = {
|
|
18055
|
+
tunedModelName: params.baseModel,
|
|
18056
|
+
};
|
|
18057
|
+
const paramsPrivate = Object.assign(Object.assign({}, params), { preTunedModel: preTunedModel });
|
|
18058
|
+
paramsPrivate.baseModel = undefined;
|
|
18059
|
+
return await this.tuneInternal(paramsPrivate);
|
|
18060
|
+
}
|
|
18061
|
+
else {
|
|
18062
|
+
const paramsPrivate = Object.assign({}, params);
|
|
18063
|
+
return await this.tuneInternal(paramsPrivate);
|
|
18064
|
+
}
|
|
17903
18065
|
}
|
|
17904
18066
|
else {
|
|
17905
|
-
const
|
|
18067
|
+
const paramsPrivate = Object.assign({}, params);
|
|
18068
|
+
const operation = await this.tuneMldevInternal(paramsPrivate);
|
|
17906
18069
|
let tunedModelName = '';
|
|
17907
18070
|
if (operation['metadata'] !== undefined &&
|
|
17908
18071
|
operation['metadata']['tunedModel'] !== undefined) {
|
|
@@ -18062,7 +18225,7 @@ class Tunings extends BaseModule {
|
|
|
18062
18225
|
let path = '';
|
|
18063
18226
|
let queryParams = {};
|
|
18064
18227
|
if (this.apiClient.isVertexAI()) {
|
|
18065
|
-
const body =
|
|
18228
|
+
const body = createTuningJobParametersPrivateToVertex(params);
|
|
18066
18229
|
path = formatMap('tuningJobs', body['_url']);
|
|
18067
18230
|
queryParams = body['_query'];
|
|
18068
18231
|
delete body['config'];
|
|
@@ -18104,7 +18267,7 @@ class Tunings extends BaseModule {
|
|
|
18104
18267
|
throw new Error('This method is only supported by the Gemini Developer API.');
|
|
18105
18268
|
}
|
|
18106
18269
|
else {
|
|
18107
|
-
const body =
|
|
18270
|
+
const body = createTuningJobParametersPrivateToMldev(params);
|
|
18108
18271
|
path = formatMap('tunedModels', body['_url']);
|
|
18109
18272
|
queryParams = body['_query'];
|
|
18110
18273
|
delete body['config'];
|
|
@@ -18231,5 +18394,5 @@ class GoogleGenAI {
|
|
|
18231
18394
|
}
|
|
18232
18395
|
}
|
|
18233
18396
|
|
|
18234
|
-
export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, RecontextImageResponse, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, Tokens, TrafficType, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, VideoCompressionQuality, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
18397
|
+
export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, Chat, Chats, ComputeTokensResponse, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpResponse, ImagePromptLanguage, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Mode, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PersonGeneration, RawReferenceImage, RecontextImageResponse, ReplayResponse, SafetyFilterLevel, Scale, Session, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, Tokens, TrafficType, TuningMode, TurnCoverage, Type, UpscaleImageResponse, UrlRetrievalStatus, VideoCompressionQuality, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
18235
18398
|
//# sourceMappingURL=index.mjs.map
|