@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/web/index.mjs
CHANGED
|
@@ -417,18 +417,6 @@ var ApiSpec;
|
|
|
417
417
|
*/
|
|
418
418
|
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
419
419
|
})(ApiSpec || (ApiSpec = {}));
|
|
420
|
-
/** Required. The environment being operated. */
|
|
421
|
-
var Environment;
|
|
422
|
-
(function (Environment) {
|
|
423
|
-
/**
|
|
424
|
-
* Defaults to browser.
|
|
425
|
-
*/
|
|
426
|
-
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
427
|
-
/**
|
|
428
|
-
* Operates in a web browser.
|
|
429
|
-
*/
|
|
430
|
-
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
431
|
-
})(Environment || (Environment = {}));
|
|
432
420
|
/** Status of the url retrieval. */
|
|
433
421
|
var UrlRetrievalStatus;
|
|
434
422
|
(function (UrlRetrievalStatus) {
|
|
@@ -696,6 +684,22 @@ var JobState;
|
|
|
696
684
|
*/
|
|
697
685
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
698
686
|
})(JobState || (JobState = {}));
|
|
687
|
+
/** Tuning mode. */
|
|
688
|
+
var TuningMode;
|
|
689
|
+
(function (TuningMode) {
|
|
690
|
+
/**
|
|
691
|
+
* Tuning mode is unspecified.
|
|
692
|
+
*/
|
|
693
|
+
TuningMode["TUNING_MODE_UNSPECIFIED"] = "TUNING_MODE_UNSPECIFIED";
|
|
694
|
+
/**
|
|
695
|
+
* Full fine-tuning mode.
|
|
696
|
+
*/
|
|
697
|
+
TuningMode["TUNING_MODE_FULL"] = "TUNING_MODE_FULL";
|
|
698
|
+
/**
|
|
699
|
+
* PEFT adapter tuning mode.
|
|
700
|
+
*/
|
|
701
|
+
TuningMode["TUNING_MODE_PEFT_ADAPTER"] = "TUNING_MODE_PEFT_ADAPTER";
|
|
702
|
+
})(TuningMode || (TuningMode = {}));
|
|
699
703
|
/** Optional. Adapter size for tuning. */
|
|
700
704
|
var AdapterSize;
|
|
701
705
|
(function (AdapterSize) {
|
|
@@ -764,6 +768,18 @@ var DynamicRetrievalConfigMode;
|
|
|
764
768
|
*/
|
|
765
769
|
DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
|
|
766
770
|
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
771
|
+
/** The environment being operated. */
|
|
772
|
+
var Environment;
|
|
773
|
+
(function (Environment) {
|
|
774
|
+
/**
|
|
775
|
+
* Defaults to browser.
|
|
776
|
+
*/
|
|
777
|
+
Environment["ENVIRONMENT_UNSPECIFIED"] = "ENVIRONMENT_UNSPECIFIED";
|
|
778
|
+
/**
|
|
779
|
+
* Operates in a web browser.
|
|
780
|
+
*/
|
|
781
|
+
Environment["ENVIRONMENT_BROWSER"] = "ENVIRONMENT_BROWSER";
|
|
782
|
+
})(Environment || (Environment = {}));
|
|
767
783
|
/** Config for the function calling config mode. */
|
|
768
784
|
var FunctionCallingConfigMode;
|
|
769
785
|
(function (FunctionCallingConfigMode) {
|
|
@@ -2870,6 +2886,9 @@ function googleSearchToMldev$4(fromObject) {
|
|
|
2870
2886
|
if (fromTimeRangeFilter != null) {
|
|
2871
2887
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$4(fromTimeRangeFilter));
|
|
2872
2888
|
}
|
|
2889
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
2890
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
2891
|
+
}
|
|
2873
2892
|
return toObject;
|
|
2874
2893
|
}
|
|
2875
2894
|
function dynamicRetrievalConfigToMldev$4(fromObject) {
|
|
@@ -2900,6 +2919,14 @@ function urlContextToMldev$4() {
|
|
|
2900
2919
|
const toObject = {};
|
|
2901
2920
|
return toObject;
|
|
2902
2921
|
}
|
|
2922
|
+
function toolComputerUseToMldev$4(fromObject) {
|
|
2923
|
+
const toObject = {};
|
|
2924
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
2925
|
+
if (fromEnvironment != null) {
|
|
2926
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
2927
|
+
}
|
|
2928
|
+
return toObject;
|
|
2929
|
+
}
|
|
2903
2930
|
function toolToMldev$4(fromObject) {
|
|
2904
2931
|
const toObject = {};
|
|
2905
2932
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -2937,16 +2964,16 @@ function toolToMldev$4(fromObject) {
|
|
|
2937
2964
|
if (fromUrlContext != null) {
|
|
2938
2965
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$4());
|
|
2939
2966
|
}
|
|
2967
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2968
|
+
if (fromComputerUse != null) {
|
|
2969
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$4(fromComputerUse));
|
|
2970
|
+
}
|
|
2940
2971
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
2941
2972
|
'codeExecution',
|
|
2942
2973
|
]);
|
|
2943
2974
|
if (fromCodeExecution != null) {
|
|
2944
2975
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
2945
2976
|
}
|
|
2946
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
2947
|
-
if (fromComputerUse != null) {
|
|
2948
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
2949
|
-
}
|
|
2950
2977
|
return toObject;
|
|
2951
2978
|
}
|
|
2952
2979
|
function functionCallingConfigToMldev$2(fromObject) {
|
|
@@ -4800,6 +4827,9 @@ function googleSearchToMldev$3(fromObject) {
|
|
|
4800
4827
|
if (fromTimeRangeFilter != null) {
|
|
4801
4828
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$3(fromTimeRangeFilter));
|
|
4802
4829
|
}
|
|
4830
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
4831
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
4832
|
+
}
|
|
4803
4833
|
return toObject;
|
|
4804
4834
|
}
|
|
4805
4835
|
function dynamicRetrievalConfigToMldev$3(fromObject) {
|
|
@@ -4830,6 +4860,14 @@ function urlContextToMldev$3() {
|
|
|
4830
4860
|
const toObject = {};
|
|
4831
4861
|
return toObject;
|
|
4832
4862
|
}
|
|
4863
|
+
function toolComputerUseToMldev$3(fromObject) {
|
|
4864
|
+
const toObject = {};
|
|
4865
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
4866
|
+
if (fromEnvironment != null) {
|
|
4867
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
4868
|
+
}
|
|
4869
|
+
return toObject;
|
|
4870
|
+
}
|
|
4833
4871
|
function toolToMldev$3(fromObject) {
|
|
4834
4872
|
const toObject = {};
|
|
4835
4873
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -4867,16 +4905,16 @@ function toolToMldev$3(fromObject) {
|
|
|
4867
4905
|
if (fromUrlContext != null) {
|
|
4868
4906
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$3());
|
|
4869
4907
|
}
|
|
4908
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4909
|
+
if (fromComputerUse != null) {
|
|
4910
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$3(fromComputerUse));
|
|
4911
|
+
}
|
|
4870
4912
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
4871
4913
|
'codeExecution',
|
|
4872
4914
|
]);
|
|
4873
4915
|
if (fromCodeExecution != null) {
|
|
4874
4916
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
4875
4917
|
}
|
|
4876
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
4877
|
-
if (fromComputerUse != null) {
|
|
4878
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
4879
|
-
}
|
|
4880
4918
|
return toObject;
|
|
4881
4919
|
}
|
|
4882
4920
|
function functionCallingConfigToMldev$1(fromObject) {
|
|
@@ -5237,6 +5275,12 @@ function googleSearchToVertex$2(fromObject) {
|
|
|
5237
5275
|
if (fromTimeRangeFilter != null) {
|
|
5238
5276
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$2(fromTimeRangeFilter));
|
|
5239
5277
|
}
|
|
5278
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5279
|
+
'excludeDomains',
|
|
5280
|
+
]);
|
|
5281
|
+
if (fromExcludeDomains != null) {
|
|
5282
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5283
|
+
}
|
|
5240
5284
|
return toObject;
|
|
5241
5285
|
}
|
|
5242
5286
|
function dynamicRetrievalConfigToVertex$2(fromObject) {
|
|
@@ -5263,8 +5307,14 @@ function googleSearchRetrievalToVertex$2(fromObject) {
|
|
|
5263
5307
|
}
|
|
5264
5308
|
return toObject;
|
|
5265
5309
|
}
|
|
5266
|
-
function enterpriseWebSearchToVertex$2() {
|
|
5310
|
+
function enterpriseWebSearchToVertex$2(fromObject) {
|
|
5267
5311
|
const toObject = {};
|
|
5312
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
5313
|
+
'excludeDomains',
|
|
5314
|
+
]);
|
|
5315
|
+
if (fromExcludeDomains != null) {
|
|
5316
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
5317
|
+
}
|
|
5268
5318
|
return toObject;
|
|
5269
5319
|
}
|
|
5270
5320
|
function apiKeyConfigToVertex$2(fromObject) {
|
|
@@ -5319,6 +5369,14 @@ function urlContextToVertex$2() {
|
|
|
5319
5369
|
const toObject = {};
|
|
5320
5370
|
return toObject;
|
|
5321
5371
|
}
|
|
5372
|
+
function toolComputerUseToVertex$2(fromObject) {
|
|
5373
|
+
const toObject = {};
|
|
5374
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
5375
|
+
if (fromEnvironment != null) {
|
|
5376
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
5377
|
+
}
|
|
5378
|
+
return toObject;
|
|
5379
|
+
}
|
|
5322
5380
|
function toolToVertex$2(fromObject) {
|
|
5323
5381
|
const toObject = {};
|
|
5324
5382
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -5351,7 +5409,7 @@ function toolToVertex$2(fromObject) {
|
|
|
5351
5409
|
'enterpriseWebSearch',
|
|
5352
5410
|
]);
|
|
5353
5411
|
if (fromEnterpriseWebSearch != null) {
|
|
5354
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2());
|
|
5412
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$2(fromEnterpriseWebSearch));
|
|
5355
5413
|
}
|
|
5356
5414
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
5357
5415
|
if (fromGoogleMaps != null) {
|
|
@@ -5361,16 +5419,16 @@ function toolToVertex$2(fromObject) {
|
|
|
5361
5419
|
if (fromUrlContext != null) {
|
|
5362
5420
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$2());
|
|
5363
5421
|
}
|
|
5422
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5423
|
+
if (fromComputerUse != null) {
|
|
5424
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$2(fromComputerUse));
|
|
5425
|
+
}
|
|
5364
5426
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
5365
5427
|
'codeExecution',
|
|
5366
5428
|
]);
|
|
5367
5429
|
if (fromCodeExecution != null) {
|
|
5368
5430
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
5369
5431
|
}
|
|
5370
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
5371
|
-
if (fromComputerUse != null) {
|
|
5372
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
5373
|
-
}
|
|
5374
5432
|
return toObject;
|
|
5375
5433
|
}
|
|
5376
5434
|
function functionCallingConfigToVertex$1(fromObject) {
|
|
@@ -7256,6 +7314,9 @@ function googleSearchToMldev$2(fromObject) {
|
|
|
7256
7314
|
if (fromTimeRangeFilter != null) {
|
|
7257
7315
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$2(fromTimeRangeFilter));
|
|
7258
7316
|
}
|
|
7317
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
7318
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
7319
|
+
}
|
|
7259
7320
|
return toObject;
|
|
7260
7321
|
}
|
|
7261
7322
|
function dynamicRetrievalConfigToMldev$2(fromObject) {
|
|
@@ -7286,6 +7347,14 @@ function urlContextToMldev$2() {
|
|
|
7286
7347
|
const toObject = {};
|
|
7287
7348
|
return toObject;
|
|
7288
7349
|
}
|
|
7350
|
+
function toolComputerUseToMldev$2(fromObject) {
|
|
7351
|
+
const toObject = {};
|
|
7352
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
7353
|
+
if (fromEnvironment != null) {
|
|
7354
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
7355
|
+
}
|
|
7356
|
+
return toObject;
|
|
7357
|
+
}
|
|
7289
7358
|
function toolToMldev$2(fromObject) {
|
|
7290
7359
|
const toObject = {};
|
|
7291
7360
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -7323,16 +7392,16 @@ function toolToMldev$2(fromObject) {
|
|
|
7323
7392
|
if (fromUrlContext != null) {
|
|
7324
7393
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$2());
|
|
7325
7394
|
}
|
|
7395
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
7396
|
+
if (fromComputerUse != null) {
|
|
7397
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$2(fromComputerUse));
|
|
7398
|
+
}
|
|
7326
7399
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
7327
7400
|
'codeExecution',
|
|
7328
7401
|
]);
|
|
7329
7402
|
if (fromCodeExecution != null) {
|
|
7330
7403
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
7331
7404
|
}
|
|
7332
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
7333
|
-
if (fromComputerUse != null) {
|
|
7334
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
7335
|
-
}
|
|
7336
7405
|
return toObject;
|
|
7337
7406
|
}
|
|
7338
7407
|
function sessionResumptionConfigToMldev$1(fromObject) {
|
|
@@ -7948,6 +8017,12 @@ function googleSearchToVertex$1(fromObject) {
|
|
|
7948
8017
|
if (fromTimeRangeFilter != null) {
|
|
7949
8018
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex$1(fromTimeRangeFilter));
|
|
7950
8019
|
}
|
|
8020
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8021
|
+
'excludeDomains',
|
|
8022
|
+
]);
|
|
8023
|
+
if (fromExcludeDomains != null) {
|
|
8024
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8025
|
+
}
|
|
7951
8026
|
return toObject;
|
|
7952
8027
|
}
|
|
7953
8028
|
function dynamicRetrievalConfigToVertex$1(fromObject) {
|
|
@@ -7974,8 +8049,14 @@ function googleSearchRetrievalToVertex$1(fromObject) {
|
|
|
7974
8049
|
}
|
|
7975
8050
|
return toObject;
|
|
7976
8051
|
}
|
|
7977
|
-
function enterpriseWebSearchToVertex$1() {
|
|
8052
|
+
function enterpriseWebSearchToVertex$1(fromObject) {
|
|
7978
8053
|
const toObject = {};
|
|
8054
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
8055
|
+
'excludeDomains',
|
|
8056
|
+
]);
|
|
8057
|
+
if (fromExcludeDomains != null) {
|
|
8058
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
8059
|
+
}
|
|
7979
8060
|
return toObject;
|
|
7980
8061
|
}
|
|
7981
8062
|
function apiKeyConfigToVertex$1(fromObject) {
|
|
@@ -8030,6 +8111,14 @@ function urlContextToVertex$1() {
|
|
|
8030
8111
|
const toObject = {};
|
|
8031
8112
|
return toObject;
|
|
8032
8113
|
}
|
|
8114
|
+
function toolComputerUseToVertex$1(fromObject) {
|
|
8115
|
+
const toObject = {};
|
|
8116
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
8117
|
+
if (fromEnvironment != null) {
|
|
8118
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
8119
|
+
}
|
|
8120
|
+
return toObject;
|
|
8121
|
+
}
|
|
8033
8122
|
function toolToVertex$1(fromObject) {
|
|
8034
8123
|
const toObject = {};
|
|
8035
8124
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -8062,7 +8151,7 @@ function toolToVertex$1(fromObject) {
|
|
|
8062
8151
|
'enterpriseWebSearch',
|
|
8063
8152
|
]);
|
|
8064
8153
|
if (fromEnterpriseWebSearch != null) {
|
|
8065
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1());
|
|
8154
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex$1(fromEnterpriseWebSearch));
|
|
8066
8155
|
}
|
|
8067
8156
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
8068
8157
|
if (fromGoogleMaps != null) {
|
|
@@ -8072,16 +8161,16 @@ function toolToVertex$1(fromObject) {
|
|
|
8072
8161
|
if (fromUrlContext != null) {
|
|
8073
8162
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex$1());
|
|
8074
8163
|
}
|
|
8164
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8165
|
+
if (fromComputerUse != null) {
|
|
8166
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex$1(fromComputerUse));
|
|
8167
|
+
}
|
|
8075
8168
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
8076
8169
|
'codeExecution',
|
|
8077
8170
|
]);
|
|
8078
8171
|
if (fromCodeExecution != null) {
|
|
8079
8172
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
8080
8173
|
}
|
|
8081
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
8082
|
-
if (fromComputerUse != null) {
|
|
8083
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
8084
|
-
}
|
|
8085
8174
|
return toObject;
|
|
8086
8175
|
}
|
|
8087
8176
|
function sessionResumptionConfigToVertex(fromObject) {
|
|
@@ -9609,6 +9698,9 @@ function googleSearchToMldev$1(fromObject) {
|
|
|
9609
9698
|
if (fromTimeRangeFilter != null) {
|
|
9610
9699
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev$1(fromTimeRangeFilter));
|
|
9611
9700
|
}
|
|
9701
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
9702
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
9703
|
+
}
|
|
9612
9704
|
return toObject;
|
|
9613
9705
|
}
|
|
9614
9706
|
function dynamicRetrievalConfigToMldev$1(fromObject) {
|
|
@@ -9639,6 +9731,14 @@ function urlContextToMldev$1() {
|
|
|
9639
9731
|
const toObject = {};
|
|
9640
9732
|
return toObject;
|
|
9641
9733
|
}
|
|
9734
|
+
function toolComputerUseToMldev$1(fromObject) {
|
|
9735
|
+
const toObject = {};
|
|
9736
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
9737
|
+
if (fromEnvironment != null) {
|
|
9738
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
9739
|
+
}
|
|
9740
|
+
return toObject;
|
|
9741
|
+
}
|
|
9642
9742
|
function toolToMldev$1(fromObject) {
|
|
9643
9743
|
const toObject = {};
|
|
9644
9744
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -9676,16 +9776,16 @@ function toolToMldev$1(fromObject) {
|
|
|
9676
9776
|
if (fromUrlContext != null) {
|
|
9677
9777
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev$1());
|
|
9678
9778
|
}
|
|
9779
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
9780
|
+
if (fromComputerUse != null) {
|
|
9781
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev$1(fromComputerUse));
|
|
9782
|
+
}
|
|
9679
9783
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
9680
9784
|
'codeExecution',
|
|
9681
9785
|
]);
|
|
9682
9786
|
if (fromCodeExecution != null) {
|
|
9683
9787
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
9684
9788
|
}
|
|
9685
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
9686
|
-
if (fromComputerUse != null) {
|
|
9687
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
9688
|
-
}
|
|
9689
9789
|
return toObject;
|
|
9690
9790
|
}
|
|
9691
9791
|
function functionCallingConfigToMldev(fromObject) {
|
|
@@ -10649,6 +10749,12 @@ function googleSearchToVertex(fromObject) {
|
|
|
10649
10749
|
if (fromTimeRangeFilter != null) {
|
|
10650
10750
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToVertex(fromTimeRangeFilter));
|
|
10651
10751
|
}
|
|
10752
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
10753
|
+
'excludeDomains',
|
|
10754
|
+
]);
|
|
10755
|
+
if (fromExcludeDomains != null) {
|
|
10756
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
10757
|
+
}
|
|
10652
10758
|
return toObject;
|
|
10653
10759
|
}
|
|
10654
10760
|
function dynamicRetrievalConfigToVertex(fromObject) {
|
|
@@ -10675,8 +10781,14 @@ function googleSearchRetrievalToVertex(fromObject) {
|
|
|
10675
10781
|
}
|
|
10676
10782
|
return toObject;
|
|
10677
10783
|
}
|
|
10678
|
-
function enterpriseWebSearchToVertex() {
|
|
10784
|
+
function enterpriseWebSearchToVertex(fromObject) {
|
|
10679
10785
|
const toObject = {};
|
|
10786
|
+
const fromExcludeDomains = getValueByPath(fromObject, [
|
|
10787
|
+
'excludeDomains',
|
|
10788
|
+
]);
|
|
10789
|
+
if (fromExcludeDomains != null) {
|
|
10790
|
+
setValueByPath(toObject, ['excludeDomains'], fromExcludeDomains);
|
|
10791
|
+
}
|
|
10680
10792
|
return toObject;
|
|
10681
10793
|
}
|
|
10682
10794
|
function apiKeyConfigToVertex(fromObject) {
|
|
@@ -10731,6 +10843,14 @@ function urlContextToVertex() {
|
|
|
10731
10843
|
const toObject = {};
|
|
10732
10844
|
return toObject;
|
|
10733
10845
|
}
|
|
10846
|
+
function toolComputerUseToVertex(fromObject) {
|
|
10847
|
+
const toObject = {};
|
|
10848
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
10849
|
+
if (fromEnvironment != null) {
|
|
10850
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
10851
|
+
}
|
|
10852
|
+
return toObject;
|
|
10853
|
+
}
|
|
10734
10854
|
function toolToVertex(fromObject) {
|
|
10735
10855
|
const toObject = {};
|
|
10736
10856
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -10763,7 +10883,7 @@ function toolToVertex(fromObject) {
|
|
|
10763
10883
|
'enterpriseWebSearch',
|
|
10764
10884
|
]);
|
|
10765
10885
|
if (fromEnterpriseWebSearch != null) {
|
|
10766
|
-
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex());
|
|
10886
|
+
setValueByPath(toObject, ['enterpriseWebSearch'], enterpriseWebSearchToVertex(fromEnterpriseWebSearch));
|
|
10767
10887
|
}
|
|
10768
10888
|
const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);
|
|
10769
10889
|
if (fromGoogleMaps != null) {
|
|
@@ -10773,16 +10893,16 @@ function toolToVertex(fromObject) {
|
|
|
10773
10893
|
if (fromUrlContext != null) {
|
|
10774
10894
|
setValueByPath(toObject, ['urlContext'], urlContextToVertex());
|
|
10775
10895
|
}
|
|
10896
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10897
|
+
if (fromComputerUse != null) {
|
|
10898
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToVertex(fromComputerUse));
|
|
10899
|
+
}
|
|
10776
10900
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
10777
10901
|
'codeExecution',
|
|
10778
10902
|
]);
|
|
10779
10903
|
if (fromCodeExecution != null) {
|
|
10780
10904
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
10781
10905
|
}
|
|
10782
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
10783
|
-
if (fromComputerUse != null) {
|
|
10784
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
10785
|
-
}
|
|
10786
10906
|
return toObject;
|
|
10787
10907
|
}
|
|
10788
10908
|
function functionCallingConfigToVertex(fromObject) {
|
|
@@ -13142,7 +13262,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
13142
13262
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
13143
13263
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
13144
13264
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
13145
|
-
const SDK_VERSION = '1.
|
|
13265
|
+
const SDK_VERSION = '1.14.0'; // x-release-please-version
|
|
13146
13266
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
13147
13267
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
13148
13268
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -16549,6 +16669,9 @@ function googleSearchToMldev(fromObject) {
|
|
|
16549
16669
|
if (fromTimeRangeFilter != null) {
|
|
16550
16670
|
setValueByPath(toObject, ['timeRangeFilter'], intervalToMldev(fromTimeRangeFilter));
|
|
16551
16671
|
}
|
|
16672
|
+
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
16673
|
+
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
16674
|
+
}
|
|
16552
16675
|
return toObject;
|
|
16553
16676
|
}
|
|
16554
16677
|
function dynamicRetrievalConfigToMldev(fromObject) {
|
|
@@ -16579,6 +16702,14 @@ function urlContextToMldev() {
|
|
|
16579
16702
|
const toObject = {};
|
|
16580
16703
|
return toObject;
|
|
16581
16704
|
}
|
|
16705
|
+
function toolComputerUseToMldev(fromObject) {
|
|
16706
|
+
const toObject = {};
|
|
16707
|
+
const fromEnvironment = getValueByPath(fromObject, ['environment']);
|
|
16708
|
+
if (fromEnvironment != null) {
|
|
16709
|
+
setValueByPath(toObject, ['environment'], fromEnvironment);
|
|
16710
|
+
}
|
|
16711
|
+
return toObject;
|
|
16712
|
+
}
|
|
16582
16713
|
function toolToMldev(fromObject) {
|
|
16583
16714
|
const toObject = {};
|
|
16584
16715
|
const fromFunctionDeclarations = getValueByPath(fromObject, [
|
|
@@ -16616,16 +16747,16 @@ function toolToMldev(fromObject) {
|
|
|
16616
16747
|
if (fromUrlContext != null) {
|
|
16617
16748
|
setValueByPath(toObject, ['urlContext'], urlContextToMldev());
|
|
16618
16749
|
}
|
|
16750
|
+
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16751
|
+
if (fromComputerUse != null) {
|
|
16752
|
+
setValueByPath(toObject, ['computerUse'], toolComputerUseToMldev(fromComputerUse));
|
|
16753
|
+
}
|
|
16619
16754
|
const fromCodeExecution = getValueByPath(fromObject, [
|
|
16620
16755
|
'codeExecution',
|
|
16621
16756
|
]);
|
|
16622
16757
|
if (fromCodeExecution != null) {
|
|
16623
16758
|
setValueByPath(toObject, ['codeExecution'], fromCodeExecution);
|
|
16624
16759
|
}
|
|
16625
|
-
const fromComputerUse = getValueByPath(fromObject, ['computerUse']);
|
|
16626
|
-
if (fromComputerUse != null) {
|
|
16627
|
-
setValueByPath(toObject, ['computerUse'], fromComputerUse);
|
|
16628
|
-
}
|
|
16629
16760
|
return toObject;
|
|
16630
16761
|
}
|
|
16631
16762
|
function sessionResumptionConfigToMldev(fromObject) {
|
|
@@ -17265,6 +17396,10 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17265
17396
|
undefined) {
|
|
17266
17397
|
throw new Error('exportLastCheckpointOnly parameter is not supported in Gemini API.');
|
|
17267
17398
|
}
|
|
17399
|
+
if (getValueByPath(fromObject, ['preTunedModelCheckpointId']) !==
|
|
17400
|
+
undefined) {
|
|
17401
|
+
throw new Error('preTunedModelCheckpointId parameter is not supported in Gemini API.');
|
|
17402
|
+
}
|
|
17268
17403
|
if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {
|
|
17269
17404
|
throw new Error('adapterSize parameter is not supported in Gemini API.');
|
|
17270
17405
|
}
|
|
@@ -17278,12 +17413,18 @@ function createTuningJobConfigToMldev(fromObject, parentObject) {
|
|
|
17278
17413
|
}
|
|
17279
17414
|
return toObject;
|
|
17280
17415
|
}
|
|
17281
|
-
function
|
|
17416
|
+
function createTuningJobParametersPrivateToMldev(fromObject) {
|
|
17282
17417
|
const toObject = {};
|
|
17283
17418
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17284
17419
|
if (fromBaseModel != null) {
|
|
17285
17420
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17286
17421
|
}
|
|
17422
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17423
|
+
'preTunedModel',
|
|
17424
|
+
]);
|
|
17425
|
+
if (fromPreTunedModel != null) {
|
|
17426
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17427
|
+
}
|
|
17287
17428
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17288
17429
|
'trainingDataset',
|
|
17289
17430
|
]);
|
|
@@ -17397,6 +17538,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17397
17538
|
if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {
|
|
17398
17539
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
17399
17540
|
}
|
|
17541
|
+
const fromPreTunedModelCheckpointId = getValueByPath(fromObject, [
|
|
17542
|
+
'preTunedModelCheckpointId',
|
|
17543
|
+
]);
|
|
17544
|
+
if (fromPreTunedModelCheckpointId != null) {
|
|
17545
|
+
setValueByPath(toObject, ['preTunedModel', 'checkpointId'], fromPreTunedModelCheckpointId);
|
|
17546
|
+
}
|
|
17400
17547
|
const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);
|
|
17401
17548
|
if (parentObject !== undefined && fromAdapterSize != null) {
|
|
17402
17549
|
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
@@ -17409,12 +17556,18 @@ function createTuningJobConfigToVertex(fromObject, parentObject) {
|
|
|
17409
17556
|
}
|
|
17410
17557
|
return toObject;
|
|
17411
17558
|
}
|
|
17412
|
-
function
|
|
17559
|
+
function createTuningJobParametersPrivateToVertex(fromObject) {
|
|
17413
17560
|
const toObject = {};
|
|
17414
17561
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
17415
17562
|
if (fromBaseModel != null) {
|
|
17416
17563
|
setValueByPath(toObject, ['baseModel'], fromBaseModel);
|
|
17417
17564
|
}
|
|
17565
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17566
|
+
'preTunedModel',
|
|
17567
|
+
]);
|
|
17568
|
+
if (fromPreTunedModel != null) {
|
|
17569
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17570
|
+
}
|
|
17418
17571
|
const fromTrainingDataset = getValueByPath(fromObject, [
|
|
17419
17572
|
'trainingDataset',
|
|
17420
17573
|
]);
|
|
@@ -17489,11 +17642,11 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17489
17642
|
if (fromTunedModel != null) {
|
|
17490
17643
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromMldev(fromTunedModel));
|
|
17491
17644
|
}
|
|
17492
|
-
const
|
|
17493
|
-
'
|
|
17645
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
17646
|
+
'customBaseModel',
|
|
17494
17647
|
]);
|
|
17495
|
-
if (
|
|
17496
|
-
setValueByPath(toObject, ['
|
|
17648
|
+
if (fromCustomBaseModel != null) {
|
|
17649
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17497
17650
|
}
|
|
17498
17651
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17499
17652
|
if (fromExperiment != null) {
|
|
@@ -17503,18 +17656,14 @@ function tuningJobFromMldev(fromObject) {
|
|
|
17503
17656
|
if (fromLabels != null) {
|
|
17504
17657
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17505
17658
|
}
|
|
17659
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
17660
|
+
if (fromOutputUri != null) {
|
|
17661
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
17662
|
+
}
|
|
17506
17663
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17507
17664
|
if (fromPipelineJob != null) {
|
|
17508
17665
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17509
17666
|
}
|
|
17510
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17511
|
-
if (fromSatisfiesPzi != null) {
|
|
17512
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17513
|
-
}
|
|
17514
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17515
|
-
if (fromSatisfiesPzs != null) {
|
|
17516
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17517
|
-
}
|
|
17518
17667
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17519
17668
|
'serviceAccount',
|
|
17520
17669
|
]);
|
|
@@ -17671,6 +17820,12 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17671
17820
|
if (fromTunedModel != null) {
|
|
17672
17821
|
setValueByPath(toObject, ['tunedModel'], tunedModelFromVertex(fromTunedModel));
|
|
17673
17822
|
}
|
|
17823
|
+
const fromPreTunedModel = getValueByPath(fromObject, [
|
|
17824
|
+
'preTunedModel',
|
|
17825
|
+
]);
|
|
17826
|
+
if (fromPreTunedModel != null) {
|
|
17827
|
+
setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);
|
|
17828
|
+
}
|
|
17674
17829
|
const fromSupervisedTuningSpec = getValueByPath(fromObject, [
|
|
17675
17830
|
'supervisedTuningSpec',
|
|
17676
17831
|
]);
|
|
@@ -17695,11 +17850,11 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17695
17850
|
if (fromPartnerModelTuningSpec != null) {
|
|
17696
17851
|
setValueByPath(toObject, ['partnerModelTuningSpec'], fromPartnerModelTuningSpec);
|
|
17697
17852
|
}
|
|
17698
|
-
const
|
|
17699
|
-
'
|
|
17853
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
17854
|
+
'customBaseModel',
|
|
17700
17855
|
]);
|
|
17701
|
-
if (
|
|
17702
|
-
setValueByPath(toObject, ['
|
|
17856
|
+
if (fromCustomBaseModel != null) {
|
|
17857
|
+
setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);
|
|
17703
17858
|
}
|
|
17704
17859
|
const fromExperiment = getValueByPath(fromObject, ['experiment']);
|
|
17705
17860
|
if (fromExperiment != null) {
|
|
@@ -17709,18 +17864,14 @@ function tuningJobFromVertex(fromObject) {
|
|
|
17709
17864
|
if (fromLabels != null) {
|
|
17710
17865
|
setValueByPath(toObject, ['labels'], fromLabels);
|
|
17711
17866
|
}
|
|
17867
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
17868
|
+
if (fromOutputUri != null) {
|
|
17869
|
+
setValueByPath(toObject, ['outputUri'], fromOutputUri);
|
|
17870
|
+
}
|
|
17712
17871
|
const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);
|
|
17713
17872
|
if (fromPipelineJob != null) {
|
|
17714
17873
|
setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);
|
|
17715
17874
|
}
|
|
17716
|
-
const fromSatisfiesPzi = getValueByPath(fromObject, ['satisfiesPzi']);
|
|
17717
|
-
if (fromSatisfiesPzi != null) {
|
|
17718
|
-
setValueByPath(toObject, ['satisfiesPzi'], fromSatisfiesPzi);
|
|
17719
|
-
}
|
|
17720
|
-
const fromSatisfiesPzs = getValueByPath(fromObject, ['satisfiesPzs']);
|
|
17721
|
-
if (fromSatisfiesPzs != null) {
|
|
17722
|
-
setValueByPath(toObject, ['satisfiesPzs'], fromSatisfiesPzs);
|
|
17723
|
-
}
|
|
17724
17875
|
const fromServiceAccount = getValueByPath(fromObject, [
|
|
17725
17876
|
'serviceAccount',
|
|
17726
17877
|
]);
|
|
@@ -17806,10 +17957,22 @@ class Tunings extends BaseModule {
|
|
|
17806
17957
|
*/
|
|
17807
17958
|
this.tune = async (params) => {
|
|
17808
17959
|
if (this.apiClient.isVertexAI()) {
|
|
17809
|
-
|
|
17960
|
+
if (params.baseModel.startsWith('projects/')) {
|
|
17961
|
+
const preTunedModel = {
|
|
17962
|
+
tunedModelName: params.baseModel,
|
|
17963
|
+
};
|
|
17964
|
+
const paramsPrivate = Object.assign(Object.assign({}, params), { preTunedModel: preTunedModel });
|
|
17965
|
+
paramsPrivate.baseModel = undefined;
|
|
17966
|
+
return await this.tuneInternal(paramsPrivate);
|
|
17967
|
+
}
|
|
17968
|
+
else {
|
|
17969
|
+
const paramsPrivate = Object.assign({}, params);
|
|
17970
|
+
return await this.tuneInternal(paramsPrivate);
|
|
17971
|
+
}
|
|
17810
17972
|
}
|
|
17811
17973
|
else {
|
|
17812
|
-
const
|
|
17974
|
+
const paramsPrivate = Object.assign({}, params);
|
|
17975
|
+
const operation = await this.tuneMldevInternal(paramsPrivate);
|
|
17813
17976
|
let tunedModelName = '';
|
|
17814
17977
|
if (operation['metadata'] !== undefined &&
|
|
17815
17978
|
operation['metadata']['tunedModel'] !== undefined) {
|
|
@@ -17969,7 +18132,7 @@ class Tunings extends BaseModule {
|
|
|
17969
18132
|
let path = '';
|
|
17970
18133
|
let queryParams = {};
|
|
17971
18134
|
if (this.apiClient.isVertexAI()) {
|
|
17972
|
-
const body =
|
|
18135
|
+
const body = createTuningJobParametersPrivateToVertex(params);
|
|
17973
18136
|
path = formatMap('tuningJobs', body['_url']);
|
|
17974
18137
|
queryParams = body['_query'];
|
|
17975
18138
|
delete body['config'];
|
|
@@ -18011,7 +18174,7 @@ class Tunings extends BaseModule {
|
|
|
18011
18174
|
throw new Error('This method is only supported by the Gemini Developer API.');
|
|
18012
18175
|
}
|
|
18013
18176
|
else {
|
|
18014
|
-
const body =
|
|
18177
|
+
const body = createTuningJobParametersPrivateToMldev(params);
|
|
18015
18178
|
path = formatMap('tunedModels', body['_url']);
|
|
18016
18179
|
queryParams = body['_query'];
|
|
18017
18180
|
delete body['config'];
|
|
@@ -18291,5 +18454,5 @@ class GoogleGenAI {
|
|
|
18291
18454
|
}
|
|
18292
18455
|
}
|
|
18293
18456
|
|
|
18294
|
-
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 };
|
|
18457
|
+
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 };
|
|
18295
18458
|
//# sourceMappingURL=index.mjs.map
|