@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/node/index.mjs
CHANGED
|
@@ -423,18 +423,6 @@ var ApiSpec;
|
|
|
423
423
|
*/
|
|
424
424
|
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
425
425
|
})(ApiSpec || (ApiSpec = {}));
|
|
426
|
-
/** Required. The environment being operated. */
|
|
427
|
-
var Environment;
|
|
428
|
-
(function (Environment) {
|
|
429
|
-
/**
|
|
430
|
-
* Defaults to browser.
|
|
431
|
-
*/
|
|
432
|
-
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
433
|
-
/**
|
|
434
|
-
* Operates in a web browser.
|
|
435
|
-
*/
|
|
436
|
-
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
437
|
-
})(Environment || (Environment = {}));
|
|
438
426
|
/** Status of the url retrieval. */
|
|
439
427
|
var UrlRetrievalStatus;
|
|
440
428
|
(function (UrlRetrievalStatus) {
|
|
@@ -702,6 +690,22 @@ var JobState;
|
|
|
702
690
|
*/
|
|
703
691
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
704
692
|
})(JobState || (JobState = {}));
|
|
693
|
+
/** Tuning mode. */
|
|
694
|
+
var TuningMode;
|
|
695
|
+
(function (TuningMode) {
|
|
696
|
+
/**
|
|
697
|
+
* Tuning mode is unspecified.
|
|
698
|
+
*/
|
|
699
|
+
TuningMode["TUNING_MODE_UNSPECIFIED"] = "TUNING_MODE_UNSPECIFIED";
|
|
700
|
+
/**
|
|
701
|
+
* Full fine-tuning mode.
|
|
702
|
+
*/
|
|
703
|
+
TuningMode["TUNING_MODE_FULL"] = "TUNING_MODE_FULL";
|
|
704
|
+
/**
|
|
705
|
+
* PEFT adapter tuning mode.
|
|
706
|
+
*/
|
|
707
|
+
TuningMode["TUNING_MODE_PEFT_ADAPTER"] = "TUNING_MODE_PEFT_ADAPTER";
|
|
708
|
+
})(TuningMode || (TuningMode = {}));
|
|
705
709
|
/** Optional. Adapter size for tuning. */
|
|
706
710
|
var AdapterSize;
|
|
707
711
|
(function (AdapterSize) {
|
|
@@ -770,6 +774,18 @@ var DynamicRetrievalConfigMode;
|
|
|
770
774
|
*/
|
|
771
775
|
DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
|
|
772
776
|
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
777
|
+
/** The environment being operated. */
|
|
778
|
+
var Environment;
|
|
779
|
+
(function (Environment) {
|
|
780
|
+
/**
|
|
781
|
+
* Defaults to browser.
|
|
782
|
+
*/
|
|
783
|
+
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
784
|
+
/**
|
|
785
|
+
* Operates in a web browser.
|
|
786
|
+
*/
|
|
787
|
+
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
788
|
+
})(Environment || (Environment = {}));
|
|
773
789
|
/** Config for the function calling config mode. */
|
|
774
790
|
var FunctionCallingConfigMode;
|
|
775
791
|
(function (FunctionCallingConfigMode) {
|
|
@@ -2876,6 +2892,9 @@ function googleSearchToMldev$4(fromObject) {
|
|
|
2876
2892
|
if (fromTimeRangeFilter != null) {
|
|
2877
2893
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$4(fromTimeRangeFilter));
|
|
2878
2894
|
}
|
|
2895
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
2896
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
2897
|
+
}
|
|
2879
2898
|
return toObject;
|
|
2880
2899
|
}
|
|
2881
2900
|
function dynamicRetrievalConfigToMldev$4(fromObject) {
|
|
@@ -2906,6 +2925,14 @@ function urlContextToMldev$4() {
|
|
|
2906
2925
|
const toObject = {};
|
|
2907
2926
|
return toObject;
|
|
2908
2927
|
}
|
|
2928
|
+
function toolComputerUseToMldev$4(fromObject) {
|
|
2929
|
+
const toObject = {};
|
|
2930
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
2931
|
+
if (fromEnvironment != null) {
|
|
2932
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
2933
|
+
}
|
|
2934
|
+
return toObject;
|
|
2935
|
+
}
|
|
2909
2936
|
function toolToMldev$4(fromObject) {
|
|
2910
2937
|
const toObject = {};
|
|
2911
2938
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -2943,16 +2970,16 @@ function toolToMldev$4(fromObject) {
|
|
|
2943
2970
|
if (fromUrlContext != null) {
|
|
2944
2971
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$4());
|
|
2945
2972
|
}
|
|
2973
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2974
|
+
if (fromComputerUse != null) {
|
|
2975
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$4(fromComputerUse));
|
|
2976
|
+
}
|
|
2946
2977
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
2947
2978
|
'codeExecution',
|
|
2948
2979
|
]);
|
|
2949
2980
|
if (fromCodeExecution != null) {
|
|
2950
2981
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
2951
2982
|
}
|
|
2952
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2953
|
-
if (fromComputerUse != null) {
|
|
2954
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
2955
|
-
}
|
|
2956
2983
|
return toObject;
|
|
2957
2984
|
}
|
|
2958
2985
|
function functionCallingConfigToMldev$2(fromObject) {
|
|
@@ -4806,6 +4833,9 @@ function googleSearchToMldev$3(fromObject) {
|
|
|
4806
4833
|
if (fromTimeRangeFilter != null) {
|
|
4807
4834
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$3(fromTimeRangeFilter));
|
|
4808
4835
|
}
|
|
4836
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
4837
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
4838
|
+
}
|
|
4809
4839
|
return toObject;
|
|
4810
4840
|
}
|
|
4811
4841
|
function dynamicRetrievalConfigToMldev$3(fromObject) {
|
|
@@ -4836,6 +4866,14 @@ function urlContextToMldev$3() {
|
|
|
4836
4866
|
const toObject = {};
|
|
4837
4867
|
return toObject;
|
|
4838
4868
|
}
|
|
4869
|
+
function toolComputerUseToMldev$3(fromObject) {
|
|
4870
|
+
const toObject = {};
|
|
4871
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
4872
|
+
if (fromEnvironment != null) {
|
|
4873
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
4874
|
+
}
|
|
4875
|
+
return toObject;
|
|
4876
|
+
}
|
|
4839
4877
|
function toolToMldev$3(fromObject) {
|
|
4840
4878
|
const toObject = {};
|
|
4841
4879
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -4873,16 +4911,16 @@ function toolToMldev$3(fromObject) {
|
|
|
4873
4911
|
if (fromUrlContext != null) {
|
|
4874
4912
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$3());
|
|
4875
4913
|
}
|
|
4914
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4915
|
+
if (fromComputerUse != null) {
|
|
4916
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$3(fromComputerUse));
|
|
4917
|
+
}
|
|
4876
4918
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
4877
4919
|
'codeExecution',
|
|
4878
4920
|
]);
|
|
4879
4921
|
if (fromCodeExecution != null) {
|
|
4880
4922
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
4881
4923
|
}
|
|
4882
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4883
|
-
if (fromComputerUse != null) {
|
|
4884
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
4885
|
-
}
|
|
4886
4924
|
return toObject;
|
|
4887
4925
|
}
|
|
4888
4926
|
function functionCallingConfigToMldev$1(fromObject) {
|
|
@@ -5243,6 +5281,12 @@ function googleSearchToVertex$2(fromObject) {
|
|
|
5243
5281
|
if (fromTimeRangeFilter != null) {
|
|
5244
5282
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$2(fromTimeRangeFilter));
|
|
5245
5283
|
}
|
|
5284
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5285
|
+
'excludeDomains',
|
|
5286
|
+
]);
|
|
5287
|
+
if (fromExcludeDomains != null) {
|
|
5288
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5289
|
+
}
|
|
5246
5290
|
return toObject;
|
|
5247
5291
|
}
|
|
5248
5292
|
function dynamicRetrievalConfigToVertex$2(fromObject) {
|
|
@@ -5269,8 +5313,14 @@ function googleSearchRetrievalToVertex$2(fromObject) {
|
|
|
5269
5313
|
}
|
|
5270
5314
|
return toObject;
|
|
5271
5315
|
}
|
|
5272
|
-
function enterpriseWebSearchToVertex$2() {
|
|
5316
|
+
function enterpriseWebSearchToVertex$2(fromObject) {
|
|
5273
5317
|
const toObject = {};
|
|
5318
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5319
|
+
'excludeDomains',
|
|
5320
|
+
]);
|
|
5321
|
+
if (fromExcludeDomains != null) {
|
|
5322
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5323
|
+
}
|
|
5274
5324
|
return toObject;
|
|
5275
5325
|
}
|
|
5276
5326
|
function apiKeyConfigToVertex$2(fromObject) {
|
|
@@ -5325,6 +5375,14 @@ function urlContextToVertex$2() {
|
|
|
5325
5375
|
const toObject = {};
|
|
5326
5376
|
return toObject;
|
|
5327
5377
|
}
|
|
5378
|
+
function toolComputerUseToVertex$2(fromObject) {
|
|
5379
|
+
const toObject = {};
|
|
5380
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
5381
|
+
if (fromEnvironment != null) {
|
|
5382
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
5383
|
+
}
|
|
5384
|
+
return toObject;
|
|
5385
|
+
}
|
|
5328
5386
|
function toolToVertex$2(fromObject) {
|
|
5329
5387
|
const toObject = {};
|
|
5330
5388
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -5357,7 +5415,7 @@ function toolToVertex$2(fromObject) {
|
|
|
5357
5415
|
'enterpriseWebSearch',
|
|
5358
5416
|
]);
|
|
5359
5417
|
if (fromEnterpriseWebSearch != null) {
|
|
5360
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2());
|
|
5418
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2(fromEnterpriseWebSearch));
|
|
5361
5419
|
}
|
|
5362
5420
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
5363
5421
|
if (fromGoogleMaps != null) {
|
|
@@ -5367,16 +5425,16 @@ function toolToVertex$2(fromObject) {
|
|
|
5367
5425
|
if (fromUrlContext != null) {
|
|
5368
5426
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$2());
|
|
5369
5427
|
}
|
|
5428
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5429
|
+
if (fromComputerUse != null) {
|
|
5430
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$2(fromComputerUse));
|
|
5431
|
+
}
|
|
5370
5432
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
5371
5433
|
'codeExecution',
|
|
5372
5434
|
]);
|
|
5373
5435
|
if (fromCodeExecution != null) {
|
|
5374
5436
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
5375
5437
|
}
|
|
5376
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5377
|
-
if (fromComputerUse != null) {
|
|
5378
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
5379
|
-
}
|
|
5380
5438
|
return toObject;
|
|
5381
5439
|
}
|
|
5382
5440
|
function functionCallingConfigToVertex$1(fromObject) {
|
|
@@ -7262,6 +7320,9 @@ function googleSearchToMldev$2(fromObject) {
|
|
|
7262
7320
|
if (fromTimeRangeFilter != null) {
|
|
7263
7321
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(fromTimeRangeFilter));
|
|
7264
7322
|
}
|
|
7323
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
7324
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
7325
|
+
}
|
|
7265
7326
|
return toObject;
|
|
7266
7327
|
}
|
|
7267
7328
|
function dynamicRetrievalConfigToMldev$2(fromObject) {
|
|
@@ -7292,6 +7353,14 @@ function urlContextToMldev$2() {
|
|
|
7292
7353
|
const toObject = {};
|
|
7293
7354
|
return toObject;
|
|
7294
7355
|
}
|
|
7356
|
+
function toolComputerUseToMldev$2(fromObject) {
|
|
7357
|
+
const toObject = {};
|
|
7358
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
7359
|
+
if (fromEnvironment != null) {
|
|
7360
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
7361
|
+
}
|
|
7362
|
+
return toObject;
|
|
7363
|
+
}
|
|
7295
7364
|
function toolToMldev$2(fromObject) {
|
|
7296
7365
|
const toObject = {};
|
|
7297
7366
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -7329,16 +7398,16 @@ function toolToMldev$2(fromObject) {
|
|
|
7329
7398
|
if (fromUrlContext != null) {
|
|
7330
7399
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
|
|
7331
7400
|
}
|
|
7401
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
7402
|
+
if (fromComputerUse != null) {
|
|
7403
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$2(fromComputerUse));
|
|
7404
|
+
}
|
|
7332
7405
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
7333
7406
|
'codeExecution',
|
|
7334
7407
|
]);
|
|
7335
7408
|
if (fromCodeExecution != null) {
|
|
7336
7409
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
7337
7410
|
}
|
|
7338
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
7339
|
-
if (fromComputerUse != null) {
|
|
7340
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
7341
|
-
}
|
|
7342
7411
|
return toObject;
|
|
7343
7412
|
}
|
|
7344
7413
|
function sessionResumptionConfigToMldev$1(fromObject) {
|
|
@@ -7954,6 +8023,12 @@ function googleSearchToVertex$1(fromObject) {
|
|
|
7954
8023
|
if (fromTimeRangeFilter != null) {
|
|
7955
8024
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$1(fromTimeRangeFilter));
|
|
7956
8025
|
}
|
|
8026
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8027
|
+
'excludeDomains',
|
|
8028
|
+
]);
|
|
8029
|
+
if (fromExcludeDomains != null) {
|
|
8030
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8031
|
+
}
|
|
7957
8032
|
return toObject;
|
|
7958
8033
|
}
|
|
7959
8034
|
function dynamicRetrievalConfigToVertex$1(fromObject) {
|
|
@@ -7980,8 +8055,14 @@ function googleSearchRetrievalToVertex$1(fromObject) {
|
|
|
7980
8055
|
}
|
|
7981
8056
|
return toObject;
|
|
7982
8057
|
}
|
|
7983
|
-
function enterpriseWebSearchToVertex$1() {
|
|
8058
|
+
function enterpriseWebSearchToVertex$1(fromObject) {
|
|
7984
8059
|
const toObject = {};
|
|
8060
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8061
|
+
'excludeDomains',
|
|
8062
|
+
]);
|
|
8063
|
+
if (fromExcludeDomains != null) {
|
|
8064
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8065
|
+
}
|
|
7985
8066
|
return toObject;
|
|
7986
8067
|
}
|
|
7987
8068
|
function apiKeyConfigToVertex$1(fromObject) {
|
|
@@ -8036,6 +8117,14 @@ function urlContextToVertex$1() {
|
|
|
8036
8117
|
const toObject = {};
|
|
8037
8118
|
return toObject;
|
|
8038
8119
|
}
|
|
8120
|
+
function toolComputerUseToVertex$1(fromObject) {
|
|
8121
|
+
const toObject = {};
|
|
8122
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
8123
|
+
if (fromEnvironment != null) {
|
|
8124
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
8125
|
+
}
|
|
8126
|
+
return toObject;
|
|
8127
|
+
}
|
|
8039
8128
|
function toolToVertex$1(fromObject) {
|
|
8040
8129
|
const toObject = {};
|
|
8041
8130
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -8068,7 +8157,7 @@ function toolToVertex$1(fromObject) {
|
|
|
8068
8157
|
'enterpriseWebSearch',
|
|
8069
8158
|
]);
|
|
8070
8159
|
if (fromEnterpriseWebSearch != null) {
|
|
8071
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1());
|
|
8160
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1(fromEnterpriseWebSearch));
|
|
8072
8161
|
}
|
|
8073
8162
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8074
8163
|
if (fromGoogleMaps != null) {
|
|
@@ -8078,16 +8167,16 @@ function toolToVertex$1(fromObject) {
|
|
|
8078
8167
|
if (fromUrlContext != null) {
|
|
8079
8168
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$1());
|
|
8080
8169
|
}
|
|
8170
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8171
|
+
if (fromComputerUse != null) {
|
|
8172
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$1(fromComputerUse));
|
|
8173
|
+
}
|
|
8081
8174
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
8082
8175
|
'codeExecution',
|
|
8083
8176
|
]);
|
|
8084
8177
|
if (fromCodeExecution != null) {
|
|
8085
8178
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
8086
8179
|
}
|
|
8087
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8088
|
-
if (fromComputerUse != null) {
|
|
8089
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
8090
|
-
}
|
|
8091
8180
|
return toObject;
|
|
8092
8181
|
}
|
|
8093
8182
|
function sessionResumptionConfigToVertex(fromObject) {
|
|
@@ -9615,6 +9704,9 @@ function googleSearchToMldev$1(fromObject) {
|
|
|
9615
9704
|
if (fromTimeRangeFilter != null) {
|
|
9616
9705
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(fromTimeRangeFilter));
|
|
9617
9706
|
}
|
|
9707
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
9708
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
9709
|
+
}
|
|
9618
9710
|
return toObject;
|
|
9619
9711
|
}
|
|
9620
9712
|
function dynamicRetrievalConfigToMldev$1(fromObject) {
|
|
@@ -9645,6 +9737,14 @@ function urlContextToMldev$1() {
|
|
|
9645
9737
|
const toObject = {};
|
|
9646
9738
|
return toObject;
|
|
9647
9739
|
}
|
|
9740
|
+
function toolComputerUseToMldev$1(fromObject) {
|
|
9741
|
+
const toObject = {};
|
|
9742
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
9743
|
+
if (fromEnvironment != null) {
|
|
9744
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
9745
|
+
}
|
|
9746
|
+
return toObject;
|
|
9747
|
+
}
|
|
9648
9748
|
function toolToMldev$1(fromObject) {
|
|
9649
9749
|
const toObject = {};
|
|
9650
9750
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -9682,16 +9782,16 @@ function toolToMldev$1(fromObject) {
|
|
|
9682
9782
|
if (fromUrlContext != null) {
|
|
9683
9783
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
|
|
9684
9784
|
}
|
|
9785
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
9786
|
+
if (fromComputerUse != null) {
|
|
9787
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$1(fromComputerUse));
|
|
9788
|
+
}
|
|
9685
9789
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
9686
9790
|
'codeExecution',
|
|
9687
9791
|
]);
|
|
9688
9792
|
if (fromCodeExecution != null) {
|
|
9689
9793
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
9690
9794
|
}
|
|
9691
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
9692
|
-
if (fromComputerUse != null) {
|
|
9693
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
9694
|
-
}
|
|
9695
9795
|
return toObject;
|
|
9696
9796
|
}
|
|
9697
9797
|
function functionCallingConfigToMldev(fromObject) {
|
|
@@ -10655,6 +10755,12 @@ function googleSearchToVertex(fromObject) {
|
|
|
10655
10755
|
if (fromTimeRangeFilter != null) {
|
|
10656
10756
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex(fromTimeRangeFilter));
|
|
10657
10757
|
}
|
|
10758
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
10759
|
+
'excludeDomains',
|
|
10760
|
+
]);
|
|
10761
|
+
if (fromExcludeDomains != null) {
|
|
10762
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
10763
|
+
}
|
|
10658
10764
|
return toObject;
|
|
10659
10765
|
}
|
|
10660
10766
|
function dynamicRetrievalConfigToVertex(fromObject) {
|
|
@@ -10681,8 +10787,14 @@ function googleSearchRetrievalToVertex(fromObject) {
|
|
|
10681
10787
|
}
|
|
10682
10788
|
return toObject;
|
|
10683
10789
|
}
|
|
10684
|
-
function enterpriseWebSearchToVertex() {
|
|
10790
|
+
function enterpriseWebSearchToVertex(fromObject) {
|
|
10685
10791
|
const toObject = {};
|
|
10792
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
10793
|
+
'excludeDomains',
|
|
10794
|
+
]);
|
|
10795
|
+
if (fromExcludeDomains != null) {
|
|
10796
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
10797
|
+
}
|
|
10686
10798
|
return toObject;
|
|
10687
10799
|
}
|
|
10688
10800
|
function apiKeyConfigToVertex(fromObject) {
|
|
@@ -10737,6 +10849,14 @@ function urlContextToVertex() {
|
|
|
10737
10849
|
const toObject = {};
|
|
10738
10850
|
return toObject;
|
|
10739
10851
|
}
|
|
10852
|
+
function toolComputerUseToVertex(fromObject) {
|
|
10853
|
+
const toObject = {};
|
|
10854
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
10855
|
+
if (fromEnvironment != null) {
|
|
10856
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
10857
|
+
}
|
|
10858
|
+
return toObject;
|
|
10859
|
+
}
|
|
10740
10860
|
function toolToVertex(fromObject) {
|
|
10741
10861
|
const toObject = {};
|
|
10742
10862
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -10769,7 +10889,7 @@ function toolToVertex(fromObject) {
|
|
|
10769
10889
|
'enterpriseWebSearch',
|
|
10770
10890
|
]);
|
|
10771
10891
|
if (fromEnterpriseWebSearch != null) {
|
|
10772
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex());
|
|
10892
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex(fromEnterpriseWebSearch));
|
|
10773
10893
|
}
|
|
10774
10894
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
10775
10895
|
if (fromGoogleMaps != null) {
|
|
@@ -10779,16 +10899,16 @@ function toolToVertex(fromObject) {
|
|
|
10779
10899
|
if (fromUrlContext != null) {
|
|
10780
10900
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex());
|
|
10781
10901
|
}
|
|
10902
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10903
|
+
if (fromComputerUse != null) {
|
|
10904
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex(fromComputerUse));
|
|
10905
|
+
}
|
|
10782
10906
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
10783
10907
|
'codeExecution',
|
|
10784
10908
|
]);
|
|
10785
10909
|
if (fromCodeExecution != null) {
|
|
10786
10910
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
10787
10911
|
}
|
|
10788
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10789
|
-
if (fromComputerUse != null) {
|
|
10790
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
10791
|
-
}
|
|
10792
10912
|
return toObject;
|
|
10793
10913
|
}
|
|
10794
10914
|
function functionCallingConfigToVertex(fromObject) {
|
|
@@ -13148,7 +13268,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
13148
13268
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
13149
13269
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
13150
13270
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
13151
|
-
const SDK_VERSION = '1.
|
|
13271
|
+
const SDK_VERSION = '1.14.0'; // x-release-please-version
|
|
13152
13272
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
13153
13273
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
13154
13274
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -16555,6 +16675,9 @@ function googleSearchToMldev(fromObject) {
|
|
|
16555
16675
|
if (fromTimeRangeFilter != null) {
|
|
16556
16676
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(fromTimeRangeFilter));
|
|
16557
16677
|
}
|
|
16678
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
16679
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
16680
|
+
}
|
|
16558
16681
|
return toObject;
|
|
16559
16682
|
}
|
|
16560
16683
|
function dynamicRetrievalConfigToMldev(fromObject) {
|
|
@@ -16585,6 +16708,14 @@ function urlContextToMldev() {
|
|
|
16585
16708
|
const toObject = {};
|
|
16586
16709
|
return toObject;
|
|
16587
16710
|
}
|
|
16711
|
+
function toolComputerUseToMldev(fromObject) {
|
|
16712
|
+
const toObject = {};
|
|
16713
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
16714
|
+
if (fromEnvironment != null) {
|
|
16715
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
16716
|
+
}
|
|
16717
|
+
return toObject;
|
|
16718
|
+
}
|
|
16588
16719
|
function toolToMldev(fromObject) {
|
|
16589
16720
|
const toObject = {};
|
|
16590
16721
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -16622,16 +16753,16 @@ function toolToMldev(fromObject) {
|
|
|
16622
16753
|
if (fromUrlContext != null) {
|
|
16623
16754
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev());
|
|
16624
16755
|
}
|
|
16756
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16757
|
+
if (fromComputerUse != null) {
|
|
16758
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev(fromComputerUse));
|
|
16759
|
+
}
|
|
16625
16760
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
16626
16761
|
'codeExecution',
|
|
16627
16762
|
]);
|
|
16628
16763
|
if (fromCodeExecution != null) {
|
|
16629
16764
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
16630
16765
|
}
|
|
16631
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16632
|
-
if (fromComputerUse != null) {
|
|
16633
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
16634
|
-
}
|
|
16635
16766
|
return toObject;
|
|
16636
16767
|
}
|
|
16637
16768
|
function sessionResumptionConfigToMldev(fromObject) {
|
|
@@ -17445,6 +17576,10 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17445
17576
|
undefined) {
|
|
17446
17577
|
throw new Error('exportLastCheckpointOnly parameter is not supported in Gemini API.');
|
|
17447
17578
|
}
|
|
17579
|
+
if (getValueByPath(fromObject, ['preTunedModelCheckpointId']) !==
|
|
17580
|
+
undefined) {
|
|
17581
|
+
throw new Error('preTunedModelCheckpointId parameter is not supported in Gemini API.');
|
|
17582
|
+
}
|
|
17448
17583
|
if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {
|
|
17449
17584
|
throw new Error('adapterSize parameter is not supported in Gemini API.');
|
|
17450
17585
|
}
|
|
@@ -17458,12 +17593,18 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17458
17593
|
}
|
|
17459
17594
|
return toObject;
|
|
17460
17595
|
}
|
|
17461
|
-
function
|
|
17596
|
+
function createTuningJobParametersPrivateToMldev(fromObject) {
|
|
17462
17597
|
const toObject = {};
|
|
17463
17598
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17464
17599
|
if (fromBaseModel != null) {
|
|
17465
17600
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17466
17601
|
}
|
|
17602
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17603
|
+
'preTunedModel',
|
|
17604
|
+
]);
|
|
17605
|
+
if (fromPreTunedModel != null) {
|
|
17606
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17607
|
+
}
|
|
17467
17608
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17468
17609
|
'trainingDataset',
|
|
17469
17610
|
]);
|
|
@@ -17577,6 +17718,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17577
17718
|
if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {
|
|
17578
17719
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
17579
17720
|
}
|
|
17721
|
+
const fromPreTunedModelCheckpointId = getValueByPath(fromObject, [
|
|
17722
|
+
'preTunedModelCheckpointId',
|
|
17723
|
+
]);
|
|
17724
|
+
if (fromPreTunedModelCheckpointId != null) {
|
|
17725
|
+
setValueByPath(toObject, ['preTunedModel', 'checkpointId'], fromPreTunedModelCheckpointId);
|
|
17726
|
+
}
|
|
17580
17727
|
const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);
|
|
17581
17728
|
if (parentObject !== undefined && fromAdapterSize != null) {
|
|
17582
17729
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
@@ -17589,12 +17736,18 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17589
17736
|
}
|
|
17590
17737
|
return toObject;
|
|
17591
17738
|
}
|
|
17592
|
-
function
|
|
17739
|
+
function createTuningJobParametersPrivateToVertex(fromObject) {
|
|
17593
17740
|
const toObject = {};
|
|
17594
17741
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17595
17742
|
if (fromBaseModel != null) {
|
|
17596
17743
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17597
17744
|
}
|
|
17745
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17746
|
+
'preTunedModel',
|
|
17747
|
+
]);
|
|
17748
|
+
if (fromPreTunedModel != null) {
|
|
17749
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17750
|
+
}
|
|
17598
17751
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17599
17752
|
'trainingDataset',
|
|
17600
17753
|
]);
|
|
@@ -17669,11 +17822,11 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17669
17822
|
if (fromTunedModel != null) {
|
|
17670
17823
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromMldev(fromTunedModel));
|
|
17671
17824
|
}
|
|
17672
|
-
const
|
|
17673
|
-
'
|
|
17825
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
17826
|
+
'customBaseModel',
|
|
17674
17827
|
]);
|
|
17675
|
-
if (
|
|
17676
|
-
setValueByPath(toObject, ['
|
|
17828
|
+
if (fromCustomBaseModel != null) {
|
|
17829
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17677
17830
|
}
|
|
17678
17831
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17679
17832
|
if (fromExperiment != null) {
|
|
@@ -17683,18 +17836,14 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17683
17836
|
if (fromLabels != null) {
|
|
17684
17837
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17685
17838
|
}
|
|
17839
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
17840
|
+
if (fromOutputUri != null) {
|
|
17841
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
17842
|
+
}
|
|
17686
17843
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17687
17844
|
if (fromPipelineJob != null) {
|
|
17688
17845
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17689
17846
|
}
|
|
17690
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17691
|
-
if (fromSatisfiesPzi != null) {
|
|
17692
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17693
|
-
}
|
|
17694
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17695
|
-
if (fromSatisfiesPzs != null) {
|
|
17696
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17697
|
-
}
|
|
17698
17847
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17699
17848
|
'serviceAccount',
|
|
17700
17849
|
]);
|
|
@@ -17851,6 +18000,12 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17851
18000
|
if (fromTunedModel != null) {
|
|
17852
18001
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromVertex(fromTunedModel));
|
|
17853
18002
|
}
|
|
18003
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
18004
|
+
'preTunedModel',
|
|
18005
|
+
]);
|
|
18006
|
+
if (fromPreTunedModel != null) {
|
|
18007
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
18008
|
+
}
|
|
17854
18009
|
const fromSupervisedTuningSpec = getValueByPath(fromObject, [
|
|
17855
18010
|
'supervisedTuningSpec',
|
|
17856
18011
|
]);
|
|
@@ -17875,11 +18030,11 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17875
18030
|
if (fromPartnerModelTuningSpec != null) {
|
|
17876
18031
|
setValueByPath(toObject, ['partnerModelTuningSpec'], fromPartnerModelTuningSpec);
|
|
17877
18032
|
}
|
|
17878
|
-
const
|
|
17879
|
-
'
|
|
18033
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
18034
|
+
'customBaseModel',
|
|
17880
18035
|
]);
|
|
17881
|
-
if (
|
|
17882
|
-
setValueByPath(toObject, ['
|
|
18036
|
+
if (fromCustomBaseModel != null) {
|
|
18037
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17883
18038
|
}
|
|
17884
18039
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17885
18040
|
if (fromExperiment != null) {
|
|
@@ -17889,18 +18044,14 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17889
18044
|
if (fromLabels != null) {
|
|
17890
18045
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17891
18046
|
}
|
|
18047
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
18048
|
+
if (fromOutputUri != null) {
|
|
18049
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
18050
|
+
}
|
|
17892
18051
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17893
18052
|
if (fromPipelineJob != null) {
|
|
17894
18053
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17895
18054
|
}
|
|
17896
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17897
|
-
if (fromSatisfiesPzi != null) {
|
|
17898
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17899
|
-
}
|
|
17900
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17901
|
-
if (fromSatisfiesPzs != null) {
|
|
17902
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17903
|
-
}
|
|
17904
18055
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17905
18056
|
'serviceAccount',
|
|
17906
18057
|
]);
|
|
@@ -17986,10 +18137,22 @@ class Tunings extends BaseModule {
|
|
|
17986
18137
|
*/
|
|
17987
18138
|
this.tune = async (params) => {
|
|
17988
18139
|
if (this.apiClient.isVertexAI()) {
|
|
17989
|
-
|
|
18140
|
+
if (params.baseModel.startsWith('projects/')) {
|
|
18141
|
+
const preTunedModel = {
|
|
18142
|
+
tunedModelName: params.baseModel,
|
|
18143
|
+
};
|
|
18144
|
+
const paramsPrivate = Object.assign(Object.assign({}, params), { preTunedModel: preTunedModel });
|
|
18145
|
+
paramsPrivate.baseModel = undefined;
|
|
18146
|
+
return await this.tuneInternal(paramsPrivate);
|
|
18147
|
+
}
|
|
18148
|
+
else {
|
|
18149
|
+
const paramsPrivate = Object.assign({}, params);
|
|
18150
|
+
return await this.tuneInternal(paramsPrivate);
|
|
18151
|
+
}
|
|
17990
18152
|
}
|
|
17991
18153
|
else {
|
|
17992
|
-
const
|
|
18154
|
+
const paramsPrivate = Object.assign({}, params);
|
|
18155
|
+
const operation = await this.tuneMldevInternal(paramsPrivate);
|
|
17993
18156
|
let tunedModelName = '';
|
|
17994
18157
|
if (operation['metadata'] !== undefined &&
|
|
17995
18158
|
operation['metadata']['tunedModel'] !== undefined) {
|
|
@@ -18149,7 +18312,7 @@ class Tunings extends BaseModule {
|
|
|
18149
18312
|
let path = '';
|
|
18150
18313
|
let queryParams = {};
|
|
18151
18314
|
if (this.apiClient.isVertexAI()) {
|
|
18152
|
-
const body =
|
|
18315
|
+
const body = createTuningJobParametersPrivateToVertex(params);
|
|
18153
18316
|
path = formatMap('tuningJobs', body['_url']);
|
|
18154
18317
|
queryParams = body['_query'];
|
|
18155
18318
|
delete body['config'];
|
|
@@ -18191,7 +18354,7 @@ class Tunings extends BaseModule {
|
|
|
18191
18354
|
throw new Error('This method is only supported by the Gemini Developer API.');
|
|
18192
18355
|
}
|
|
18193
18356
|
else {
|
|
18194
|
-
const body =
|
|
18357
|
+
const body = createTuningJobParametersPrivateToMldev(params);
|
|
18195
18358
|
path = formatMap('tunedModels', body['_url']);
|
|
18196
18359
|
queryParams = body['_query'];
|
|
18197
18360
|
delete body['config'];
|
|
@@ -18629,5 +18792,5 @@ function getApiKeyFromEnv() {
|
|
|
18629
18792
|
return envGoogleApiKey || envGeminiApiKey;
|
|
18630
18793
|
}
|
|
18631
18794
|
|
|
18632
|
-
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 };
|
|
18795
|
+
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 };
|
|
18633
18796
|
//# sourceMappingURL=index.mjs.map
|