@google/genai 1.38.0 → 1.39.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 +163 -33
- package/dist/index.cjs +348 -123
- package/dist/index.mjs +348 -124
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +391 -124
- package/dist/node/index.mjs +391 -125
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +163 -33
- package/dist/tokenizer/node.cjs +4 -0
- package/dist/tokenizer/node.mjs +4 -0
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/web/index.mjs +348 -124
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +163 -33
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1499,6 +1499,10 @@ var TuningMethod;
|
|
|
1499
1499
|
* Preference optimization tuning.
|
|
1500
1500
|
*/
|
|
1501
1501
|
TuningMethod["PREFERENCE_TUNING"] = "PREFERENCE_TUNING";
|
|
1502
|
+
/**
|
|
1503
|
+
* Distillation tuning.
|
|
1504
|
+
*/
|
|
1505
|
+
TuningMethod["DISTILLATION"] = "DISTILLATION";
|
|
1502
1506
|
})(TuningMethod || (TuningMethod = {}));
|
|
1503
1507
|
/** State for the lifecycle of a Document. */
|
|
1504
1508
|
var DocumentState;
|
|
@@ -2290,6 +2294,9 @@ class CreateFileResponse {
|
|
|
2290
2294
|
/** Response for the delete file method. */
|
|
2291
2295
|
class DeleteFileResponse {
|
|
2292
2296
|
}
|
|
2297
|
+
/** Response for the _register file method. */
|
|
2298
|
+
class RegisterFilesResponse {
|
|
2299
|
+
}
|
|
2293
2300
|
/** Config for `inlined_responses` parameter. */
|
|
2294
2301
|
class InlinedResponse {
|
|
2295
2302
|
}
|
|
@@ -4284,6 +4291,10 @@ function inlinedResponseFromMldev(fromObject) {
|
|
|
4284
4291
|
if (fromResponse != null) {
|
|
4285
4292
|
setValueByPath(toObject, ['response'], generateContentResponseFromMldev$1(fromResponse));
|
|
4286
4293
|
}
|
|
4294
|
+
const fromMetadata = getValueByPath(fromObject, ['metadata']);
|
|
4295
|
+
if (fromMetadata != null) {
|
|
4296
|
+
setValueByPath(toObject, ['metadata'], fromMetadata);
|
|
4297
|
+
}
|
|
4287
4298
|
const fromError = getValueByPath(fromObject, ['error']);
|
|
4288
4299
|
if (fromError != null) {
|
|
4289
4300
|
setValueByPath(toObject, ['error'], fromError);
|
|
@@ -6918,7 +6929,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
6918
6929
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
6919
6930
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
6920
6931
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
6921
|
-
const SDK_VERSION = '1.
|
|
6932
|
+
const SDK_VERSION = '1.39.0'; // x-release-please-version
|
|
6922
6933
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
6923
6934
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
6924
6935
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -7753,6 +7764,14 @@ function getFileParametersToMldev(fromObject) {
|
|
|
7753
7764
|
}
|
|
7754
7765
|
return toObject;
|
|
7755
7766
|
}
|
|
7767
|
+
function internalRegisterFilesParametersToMldev(fromObject) {
|
|
7768
|
+
const toObject = {};
|
|
7769
|
+
const fromUris = getValueByPath(fromObject, ['uris']);
|
|
7770
|
+
if (fromUris != null) {
|
|
7771
|
+
setValueByPath(toObject, ['uris'], fromUris);
|
|
7772
|
+
}
|
|
7773
|
+
return toObject;
|
|
7774
|
+
}
|
|
7756
7775
|
function listFilesConfigToMldev(fromObject, parentObject) {
|
|
7757
7776
|
const toObject = {};
|
|
7758
7777
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
@@ -7799,6 +7818,26 @@ function listFilesResponseFromMldev(fromObject) {
|
|
|
7799
7818
|
}
|
|
7800
7819
|
return toObject;
|
|
7801
7820
|
}
|
|
7821
|
+
function registerFilesResponseFromMldev(fromObject) {
|
|
7822
|
+
const toObject = {};
|
|
7823
|
+
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
7824
|
+
'sdkHttpResponse',
|
|
7825
|
+
]);
|
|
7826
|
+
if (fromSdkHttpResponse != null) {
|
|
7827
|
+
setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);
|
|
7828
|
+
}
|
|
7829
|
+
const fromFiles = getValueByPath(fromObject, ['files']);
|
|
7830
|
+
if (fromFiles != null) {
|
|
7831
|
+
let transformedList = fromFiles;
|
|
7832
|
+
if (Array.isArray(transformedList)) {
|
|
7833
|
+
transformedList = transformedList.map((item) => {
|
|
7834
|
+
return item;
|
|
7835
|
+
});
|
|
7836
|
+
}
|
|
7837
|
+
setValueByPath(toObject, ['files'], transformedList);
|
|
7838
|
+
}
|
|
7839
|
+
return toObject;
|
|
7840
|
+
}
|
|
7802
7841
|
|
|
7803
7842
|
/**
|
|
7804
7843
|
* @license
|
|
@@ -7899,6 +7938,16 @@ class Files extends BaseModule {
|
|
|
7899
7938
|
async download(params) {
|
|
7900
7939
|
await this.apiClient.downloadFile(params);
|
|
7901
7940
|
}
|
|
7941
|
+
/**
|
|
7942
|
+
* Registers Google Cloud Storage files for use with the API.
|
|
7943
|
+
* This method is only available in Node.js environments.
|
|
7944
|
+
*/
|
|
7945
|
+
async registerFiles(params) {
|
|
7946
|
+
throw new Error('registerFiles is only supported in Node.js environments.');
|
|
7947
|
+
}
|
|
7948
|
+
async _registerFiles(params) {
|
|
7949
|
+
return this.registerFilesInternal(params);
|
|
7950
|
+
}
|
|
7902
7951
|
async listInternal(params) {
|
|
7903
7952
|
var _a, _b;
|
|
7904
7953
|
let response;
|
|
@@ -8072,6 +8121,40 @@ class Files extends BaseModule {
|
|
|
8072
8121
|
});
|
|
8073
8122
|
}
|
|
8074
8123
|
}
|
|
8124
|
+
async registerFilesInternal(params) {
|
|
8125
|
+
var _a, _b;
|
|
8126
|
+
let response;
|
|
8127
|
+
let path = '';
|
|
8128
|
+
let queryParams = {};
|
|
8129
|
+
if (this.apiClient.isVertexAI()) {
|
|
8130
|
+
throw new Error('This method is only supported by the Gemini Developer API.');
|
|
8131
|
+
}
|
|
8132
|
+
else {
|
|
8133
|
+
const body = internalRegisterFilesParametersToMldev(params);
|
|
8134
|
+
path = formatMap('files:register', body['_url']);
|
|
8135
|
+
queryParams = body['_query'];
|
|
8136
|
+
delete body['_url'];
|
|
8137
|
+
delete body['_query'];
|
|
8138
|
+
response = this.apiClient
|
|
8139
|
+
.request({
|
|
8140
|
+
path: path,
|
|
8141
|
+
queryParams: queryParams,
|
|
8142
|
+
body: JSON.stringify(body),
|
|
8143
|
+
httpMethod: 'POST',
|
|
8144
|
+
httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,
|
|
8145
|
+
abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,
|
|
8146
|
+
})
|
|
8147
|
+
.then((httpResponse) => {
|
|
8148
|
+
return httpResponse.json();
|
|
8149
|
+
});
|
|
8150
|
+
return response.then((apiResponse) => {
|
|
8151
|
+
const resp = registerFilesResponseFromMldev(apiResponse);
|
|
8152
|
+
const typedResp = new RegisterFilesResponse();
|
|
8153
|
+
Object.assign(typedResp, resp);
|
|
8154
|
+
return typedResp;
|
|
8155
|
+
});
|
|
8156
|
+
}
|
|
8157
|
+
}
|
|
8075
8158
|
}
|
|
8076
8159
|
|
|
8077
8160
|
/**
|
|
@@ -9310,7 +9393,9 @@ class BaseInteractions extends APIResource {
|
|
|
9310
9393
|
*
|
|
9311
9394
|
* @example
|
|
9312
9395
|
* ```ts
|
|
9313
|
-
* const interaction = await client.interactions.delete('id'
|
|
9396
|
+
* const interaction = await client.interactions.delete('id', {
|
|
9397
|
+
* api_version: 'api_version',
|
|
9398
|
+
* });
|
|
9314
9399
|
* ```
|
|
9315
9400
|
*/
|
|
9316
9401
|
delete(id, params = {}, options) {
|
|
@@ -9322,7 +9407,9 @@ class BaseInteractions extends APIResource {
|
|
|
9322
9407
|
*
|
|
9323
9408
|
* @example
|
|
9324
9409
|
* ```ts
|
|
9325
|
-
* const interaction = await client.interactions.cancel('id'
|
|
9410
|
+
* const interaction = await client.interactions.cancel('id', {
|
|
9411
|
+
* api_version: 'api_version',
|
|
9412
|
+
* });
|
|
9326
9413
|
* ```
|
|
9327
9414
|
*/
|
|
9328
9415
|
cancel(id, params = {}, options) {
|
|
@@ -11533,7 +11620,7 @@ function voiceActivityFromVertex(fromObject) {
|
|
|
11533
11620
|
* Copyright 2025 Google LLC
|
|
11534
11621
|
* SPDX-License-Identifier: Apache-2.0
|
|
11535
11622
|
*/
|
|
11536
|
-
function blobToMldev$1(fromObject) {
|
|
11623
|
+
function blobToMldev$1(fromObject, _rootObject) {
|
|
11537
11624
|
const toObject = {};
|
|
11538
11625
|
const fromData = getValueByPath(fromObject, ['data']);
|
|
11539
11626
|
if (fromData != null) {
|
|
@@ -11548,7 +11635,7 @@ function blobToMldev$1(fromObject) {
|
|
|
11548
11635
|
}
|
|
11549
11636
|
return toObject;
|
|
11550
11637
|
}
|
|
11551
|
-
function candidateFromMldev(fromObject) {
|
|
11638
|
+
function candidateFromMldev(fromObject, rootObject) {
|
|
11552
11639
|
const toObject = {};
|
|
11553
11640
|
const fromContent = getValueByPath(fromObject, ['content']);
|
|
11554
11641
|
if (fromContent != null) {
|
|
@@ -11608,7 +11695,7 @@ function candidateFromMldev(fromObject) {
|
|
|
11608
11695
|
}
|
|
11609
11696
|
return toObject;
|
|
11610
11697
|
}
|
|
11611
|
-
function citationMetadataFromMldev(fromObject) {
|
|
11698
|
+
function citationMetadataFromMldev(fromObject, _rootObject) {
|
|
11612
11699
|
const toObject = {};
|
|
11613
11700
|
const fromCitations = getValueByPath(fromObject, ['citationSources']);
|
|
11614
11701
|
if (fromCitations != null) {
|
|
@@ -11622,7 +11709,7 @@ function citationMetadataFromMldev(fromObject) {
|
|
|
11622
11709
|
}
|
|
11623
11710
|
return toObject;
|
|
11624
11711
|
}
|
|
11625
|
-
function computeTokensParametersToVertex(apiClient, fromObject) {
|
|
11712
|
+
function computeTokensParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
11626
11713
|
const toObject = {};
|
|
11627
11714
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11628
11715
|
if (fromModel != null) {
|
|
@@ -11640,7 +11727,7 @@ function computeTokensParametersToVertex(apiClient, fromObject) {
|
|
|
11640
11727
|
}
|
|
11641
11728
|
return toObject;
|
|
11642
11729
|
}
|
|
11643
|
-
function computeTokensResponseFromVertex(fromObject) {
|
|
11730
|
+
function computeTokensResponseFromVertex(fromObject, _rootObject) {
|
|
11644
11731
|
const toObject = {};
|
|
11645
11732
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11646
11733
|
'sdkHttpResponse',
|
|
@@ -11660,7 +11747,7 @@ function computeTokensResponseFromVertex(fromObject) {
|
|
|
11660
11747
|
}
|
|
11661
11748
|
return toObject;
|
|
11662
11749
|
}
|
|
11663
|
-
function contentEmbeddingFromVertex(fromObject) {
|
|
11750
|
+
function contentEmbeddingFromVertex(fromObject, rootObject) {
|
|
11664
11751
|
const toObject = {};
|
|
11665
11752
|
const fromValues = getValueByPath(fromObject, ['values']);
|
|
11666
11753
|
if (fromValues != null) {
|
|
@@ -11672,7 +11759,7 @@ function contentEmbeddingFromVertex(fromObject) {
|
|
|
11672
11759
|
}
|
|
11673
11760
|
return toObject;
|
|
11674
11761
|
}
|
|
11675
|
-
function contentEmbeddingStatisticsFromVertex(fromObject) {
|
|
11762
|
+
function contentEmbeddingStatisticsFromVertex(fromObject, _rootObject) {
|
|
11676
11763
|
const toObject = {};
|
|
11677
11764
|
const fromTruncated = getValueByPath(fromObject, ['truncated']);
|
|
11678
11765
|
if (fromTruncated != null) {
|
|
@@ -11684,7 +11771,7 @@ function contentEmbeddingStatisticsFromVertex(fromObject) {
|
|
|
11684
11771
|
}
|
|
11685
11772
|
return toObject;
|
|
11686
11773
|
}
|
|
11687
|
-
function contentToMldev$1(fromObject) {
|
|
11774
|
+
function contentToMldev$1(fromObject, rootObject) {
|
|
11688
11775
|
const toObject = {};
|
|
11689
11776
|
const fromParts = getValueByPath(fromObject, ['parts']);
|
|
11690
11777
|
if (fromParts != null) {
|
|
@@ -11702,7 +11789,7 @@ function contentToMldev$1(fromObject) {
|
|
|
11702
11789
|
}
|
|
11703
11790
|
return toObject;
|
|
11704
11791
|
}
|
|
11705
|
-
function controlReferenceConfigToVertex(fromObject) {
|
|
11792
|
+
function controlReferenceConfigToVertex(fromObject, _rootObject) {
|
|
11706
11793
|
const toObject = {};
|
|
11707
11794
|
const fromControlType = getValueByPath(fromObject, ['controlType']);
|
|
11708
11795
|
if (fromControlType != null) {
|
|
@@ -11716,7 +11803,7 @@ function controlReferenceConfigToVertex(fromObject) {
|
|
|
11716
11803
|
}
|
|
11717
11804
|
return toObject;
|
|
11718
11805
|
}
|
|
11719
|
-
function countTokensConfigToMldev(fromObject) {
|
|
11806
|
+
function countTokensConfigToMldev(fromObject, _rootObject) {
|
|
11720
11807
|
const toObject = {};
|
|
11721
11808
|
if (getValueByPath(fromObject, ['systemInstruction']) !== undefined) {
|
|
11722
11809
|
throw new Error('systemInstruction parameter is not supported in Gemini API.');
|
|
@@ -11729,7 +11816,7 @@ function countTokensConfigToMldev(fromObject) {
|
|
|
11729
11816
|
}
|
|
11730
11817
|
return toObject;
|
|
11731
11818
|
}
|
|
11732
|
-
function countTokensConfigToVertex(fromObject, parentObject) {
|
|
11819
|
+
function countTokensConfigToVertex(fromObject, parentObject, rootObject) {
|
|
11733
11820
|
const toObject = {};
|
|
11734
11821
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
11735
11822
|
'systemInstruction',
|
|
@@ -11755,7 +11842,7 @@ function countTokensConfigToVertex(fromObject, parentObject) {
|
|
|
11755
11842
|
}
|
|
11756
11843
|
return toObject;
|
|
11757
11844
|
}
|
|
11758
|
-
function countTokensParametersToMldev(apiClient, fromObject) {
|
|
11845
|
+
function countTokensParametersToMldev(apiClient, fromObject, rootObject) {
|
|
11759
11846
|
const toObject = {};
|
|
11760
11847
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11761
11848
|
if (fromModel != null) {
|
|
@@ -11777,7 +11864,7 @@ function countTokensParametersToMldev(apiClient, fromObject) {
|
|
|
11777
11864
|
}
|
|
11778
11865
|
return toObject;
|
|
11779
11866
|
}
|
|
11780
|
-
function countTokensParametersToVertex(apiClient, fromObject) {
|
|
11867
|
+
function countTokensParametersToVertex(apiClient, fromObject, rootObject) {
|
|
11781
11868
|
const toObject = {};
|
|
11782
11869
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11783
11870
|
if (fromModel != null) {
|
|
@@ -11799,7 +11886,7 @@ function countTokensParametersToVertex(apiClient, fromObject) {
|
|
|
11799
11886
|
}
|
|
11800
11887
|
return toObject;
|
|
11801
11888
|
}
|
|
11802
|
-
function countTokensResponseFromMldev(fromObject) {
|
|
11889
|
+
function countTokensResponseFromMldev(fromObject, _rootObject) {
|
|
11803
11890
|
const toObject = {};
|
|
11804
11891
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11805
11892
|
'sdkHttpResponse',
|
|
@@ -11819,7 +11906,7 @@ function countTokensResponseFromMldev(fromObject) {
|
|
|
11819
11906
|
}
|
|
11820
11907
|
return toObject;
|
|
11821
11908
|
}
|
|
11822
|
-
function countTokensResponseFromVertex(fromObject) {
|
|
11909
|
+
function countTokensResponseFromVertex(fromObject, _rootObject) {
|
|
11823
11910
|
const toObject = {};
|
|
11824
11911
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11825
11912
|
'sdkHttpResponse',
|
|
@@ -11833,7 +11920,7 @@ function countTokensResponseFromVertex(fromObject) {
|
|
|
11833
11920
|
}
|
|
11834
11921
|
return toObject;
|
|
11835
11922
|
}
|
|
11836
|
-
function deleteModelParametersToMldev(apiClient, fromObject) {
|
|
11923
|
+
function deleteModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
11837
11924
|
const toObject = {};
|
|
11838
11925
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11839
11926
|
if (fromModel != null) {
|
|
@@ -11841,7 +11928,7 @@ function deleteModelParametersToMldev(apiClient, fromObject) {
|
|
|
11841
11928
|
}
|
|
11842
11929
|
return toObject;
|
|
11843
11930
|
}
|
|
11844
|
-
function deleteModelParametersToVertex(apiClient, fromObject) {
|
|
11931
|
+
function deleteModelParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
11845
11932
|
const toObject = {};
|
|
11846
11933
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11847
11934
|
if (fromModel != null) {
|
|
@@ -11849,7 +11936,7 @@ function deleteModelParametersToVertex(apiClient, fromObject) {
|
|
|
11849
11936
|
}
|
|
11850
11937
|
return toObject;
|
|
11851
11938
|
}
|
|
11852
|
-
function deleteModelResponseFromMldev(fromObject) {
|
|
11939
|
+
function deleteModelResponseFromMldev(fromObject, _rootObject) {
|
|
11853
11940
|
const toObject = {};
|
|
11854
11941
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11855
11942
|
'sdkHttpResponse',
|
|
@@ -11859,7 +11946,7 @@ function deleteModelResponseFromMldev(fromObject) {
|
|
|
11859
11946
|
}
|
|
11860
11947
|
return toObject;
|
|
11861
11948
|
}
|
|
11862
|
-
function deleteModelResponseFromVertex(fromObject) {
|
|
11949
|
+
function deleteModelResponseFromVertex(fromObject, _rootObject) {
|
|
11863
11950
|
const toObject = {};
|
|
11864
11951
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11865
11952
|
'sdkHttpResponse',
|
|
@@ -11869,7 +11956,7 @@ function deleteModelResponseFromVertex(fromObject) {
|
|
|
11869
11956
|
}
|
|
11870
11957
|
return toObject;
|
|
11871
11958
|
}
|
|
11872
|
-
function editImageConfigToVertex(fromObject, parentObject) {
|
|
11959
|
+
function editImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
11873
11960
|
const toObject = {};
|
|
11874
11961
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
11875
11962
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -11959,7 +12046,7 @@ function editImageConfigToVertex(fromObject, parentObject) {
|
|
|
11959
12046
|
}
|
|
11960
12047
|
return toObject;
|
|
11961
12048
|
}
|
|
11962
|
-
function editImageParametersInternalToVertex(apiClient, fromObject) {
|
|
12049
|
+
function editImageParametersInternalToVertex(apiClient, fromObject, rootObject) {
|
|
11963
12050
|
const toObject = {};
|
|
11964
12051
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
11965
12052
|
if (fromModel != null) {
|
|
@@ -11987,7 +12074,7 @@ function editImageParametersInternalToVertex(apiClient, fromObject) {
|
|
|
11987
12074
|
}
|
|
11988
12075
|
return toObject;
|
|
11989
12076
|
}
|
|
11990
|
-
function editImageResponseFromVertex(fromObject) {
|
|
12077
|
+
function editImageResponseFromVertex(fromObject, rootObject) {
|
|
11991
12078
|
const toObject = {};
|
|
11992
12079
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
11993
12080
|
'sdkHttpResponse',
|
|
@@ -12009,7 +12096,7 @@ function editImageResponseFromVertex(fromObject) {
|
|
|
12009
12096
|
}
|
|
12010
12097
|
return toObject;
|
|
12011
12098
|
}
|
|
12012
|
-
function embedContentConfigToMldev(fromObject, parentObject) {
|
|
12099
|
+
function embedContentConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
12013
12100
|
const toObject = {};
|
|
12014
12101
|
const fromTaskType = getValueByPath(fromObject, ['taskType']);
|
|
12015
12102
|
if (parentObject !== undefined && fromTaskType != null) {
|
|
@@ -12033,7 +12120,7 @@ function embedContentConfigToMldev(fromObject, parentObject) {
|
|
|
12033
12120
|
}
|
|
12034
12121
|
return toObject;
|
|
12035
12122
|
}
|
|
12036
|
-
function embedContentConfigToVertex(fromObject, parentObject) {
|
|
12123
|
+
function embedContentConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
12037
12124
|
const toObject = {};
|
|
12038
12125
|
const fromTaskType = getValueByPath(fromObject, ['taskType']);
|
|
12039
12126
|
if (parentObject !== undefined && fromTaskType != null) {
|
|
@@ -12059,7 +12146,7 @@ function embedContentConfigToVertex(fromObject, parentObject) {
|
|
|
12059
12146
|
}
|
|
12060
12147
|
return toObject;
|
|
12061
12148
|
}
|
|
12062
|
-
function embedContentParametersToMldev(apiClient, fromObject) {
|
|
12149
|
+
function embedContentParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12063
12150
|
const toObject = {};
|
|
12064
12151
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12065
12152
|
if (fromModel != null) {
|
|
@@ -12085,7 +12172,7 @@ function embedContentParametersToMldev(apiClient, fromObject) {
|
|
|
12085
12172
|
}
|
|
12086
12173
|
return toObject;
|
|
12087
12174
|
}
|
|
12088
|
-
function embedContentParametersToVertex(apiClient, fromObject) {
|
|
12175
|
+
function embedContentParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12089
12176
|
const toObject = {};
|
|
12090
12177
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12091
12178
|
if (fromModel != null) {
|
|
@@ -12107,7 +12194,7 @@ function embedContentParametersToVertex(apiClient, fromObject) {
|
|
|
12107
12194
|
}
|
|
12108
12195
|
return toObject;
|
|
12109
12196
|
}
|
|
12110
|
-
function embedContentResponseFromMldev(fromObject) {
|
|
12197
|
+
function embedContentResponseFromMldev(fromObject, _rootObject) {
|
|
12111
12198
|
const toObject = {};
|
|
12112
12199
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12113
12200
|
'sdkHttpResponse',
|
|
@@ -12131,7 +12218,7 @@ function embedContentResponseFromMldev(fromObject) {
|
|
|
12131
12218
|
}
|
|
12132
12219
|
return toObject;
|
|
12133
12220
|
}
|
|
12134
|
-
function embedContentResponseFromVertex(fromObject) {
|
|
12221
|
+
function embedContentResponseFromVertex(fromObject, rootObject) {
|
|
12135
12222
|
const toObject = {};
|
|
12136
12223
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12137
12224
|
'sdkHttpResponse',
|
|
@@ -12158,7 +12245,7 @@ function embedContentResponseFromVertex(fromObject) {
|
|
|
12158
12245
|
}
|
|
12159
12246
|
return toObject;
|
|
12160
12247
|
}
|
|
12161
|
-
function endpointFromVertex(fromObject) {
|
|
12248
|
+
function endpointFromVertex(fromObject, _rootObject) {
|
|
12162
12249
|
const toObject = {};
|
|
12163
12250
|
const fromName = getValueByPath(fromObject, ['endpoint']);
|
|
12164
12251
|
if (fromName != null) {
|
|
@@ -12172,7 +12259,7 @@ function endpointFromVertex(fromObject) {
|
|
|
12172
12259
|
}
|
|
12173
12260
|
return toObject;
|
|
12174
12261
|
}
|
|
12175
|
-
function fileDataToMldev$1(fromObject) {
|
|
12262
|
+
function fileDataToMldev$1(fromObject, _rootObject) {
|
|
12176
12263
|
const toObject = {};
|
|
12177
12264
|
if (getValueByPath(fromObject, ['displayName']) !== undefined) {
|
|
12178
12265
|
throw new Error('displayName parameter is not supported in Gemini API.');
|
|
@@ -12187,7 +12274,7 @@ function fileDataToMldev$1(fromObject) {
|
|
|
12187
12274
|
}
|
|
12188
12275
|
return toObject;
|
|
12189
12276
|
}
|
|
12190
|
-
function functionCallToMldev$1(fromObject) {
|
|
12277
|
+
function functionCallToMldev$1(fromObject, _rootObject) {
|
|
12191
12278
|
const toObject = {};
|
|
12192
12279
|
const fromId = getValueByPath(fromObject, ['id']);
|
|
12193
12280
|
if (fromId != null) {
|
|
@@ -12209,7 +12296,7 @@ function functionCallToMldev$1(fromObject) {
|
|
|
12209
12296
|
}
|
|
12210
12297
|
return toObject;
|
|
12211
12298
|
}
|
|
12212
|
-
function functionCallingConfigToMldev(fromObject) {
|
|
12299
|
+
function functionCallingConfigToMldev(fromObject, _rootObject) {
|
|
12213
12300
|
const toObject = {};
|
|
12214
12301
|
const fromAllowedFunctionNames = getValueByPath(fromObject, [
|
|
12215
12302
|
'allowedFunctionNames',
|
|
@@ -12227,7 +12314,7 @@ function functionCallingConfigToMldev(fromObject) {
|
|
|
12227
12314
|
}
|
|
12228
12315
|
return toObject;
|
|
12229
12316
|
}
|
|
12230
|
-
function functionDeclarationToVertex(fromObject) {
|
|
12317
|
+
function functionDeclarationToVertex(fromObject, _rootObject) {
|
|
12231
12318
|
const toObject = {};
|
|
12232
12319
|
const fromDescription = getValueByPath(fromObject, ['description']);
|
|
12233
12320
|
if (fromDescription != null) {
|
|
@@ -12262,7 +12349,7 @@ function functionDeclarationToVertex(fromObject) {
|
|
|
12262
12349
|
}
|
|
12263
12350
|
return toObject;
|
|
12264
12351
|
}
|
|
12265
|
-
function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
|
|
12352
|
+
function generateContentConfigToMldev(apiClient, fromObject, parentObject, rootObject) {
|
|
12266
12353
|
const toObject = {};
|
|
12267
12354
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
12268
12355
|
'systemInstruction',
|
|
@@ -12425,7 +12512,7 @@ function generateContentConfigToMldev(apiClient, fromObject, parentObject) {
|
|
|
12425
12512
|
}
|
|
12426
12513
|
return toObject;
|
|
12427
12514
|
}
|
|
12428
|
-
function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
|
|
12515
|
+
function generateContentConfigToVertex(apiClient, fromObject, parentObject, rootObject) {
|
|
12429
12516
|
const toObject = {};
|
|
12430
12517
|
const fromSystemInstruction = getValueByPath(fromObject, [
|
|
12431
12518
|
'systemInstruction',
|
|
@@ -12599,7 +12686,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject) {
|
|
|
12599
12686
|
}
|
|
12600
12687
|
return toObject;
|
|
12601
12688
|
}
|
|
12602
|
-
function generateContentParametersToMldev(apiClient, fromObject) {
|
|
12689
|
+
function generateContentParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12603
12690
|
const toObject = {};
|
|
12604
12691
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12605
12692
|
if (fromModel != null) {
|
|
@@ -12621,7 +12708,7 @@ function generateContentParametersToMldev(apiClient, fromObject) {
|
|
|
12621
12708
|
}
|
|
12622
12709
|
return toObject;
|
|
12623
12710
|
}
|
|
12624
|
-
function generateContentParametersToVertex(apiClient, fromObject) {
|
|
12711
|
+
function generateContentParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12625
12712
|
const toObject = {};
|
|
12626
12713
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12627
12714
|
if (fromModel != null) {
|
|
@@ -12643,7 +12730,7 @@ function generateContentParametersToVertex(apiClient, fromObject) {
|
|
|
12643
12730
|
}
|
|
12644
12731
|
return toObject;
|
|
12645
12732
|
}
|
|
12646
|
-
function generateContentResponseFromMldev(fromObject) {
|
|
12733
|
+
function generateContentResponseFromMldev(fromObject, rootObject) {
|
|
12647
12734
|
const toObject = {};
|
|
12648
12735
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12649
12736
|
'sdkHttpResponse',
|
|
@@ -12683,7 +12770,7 @@ function generateContentResponseFromMldev(fromObject) {
|
|
|
12683
12770
|
}
|
|
12684
12771
|
return toObject;
|
|
12685
12772
|
}
|
|
12686
|
-
function generateContentResponseFromVertex(fromObject) {
|
|
12773
|
+
function generateContentResponseFromVertex(fromObject, _rootObject) {
|
|
12687
12774
|
const toObject = {};
|
|
12688
12775
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12689
12776
|
'sdkHttpResponse',
|
|
@@ -12727,7 +12814,7 @@ function generateContentResponseFromVertex(fromObject) {
|
|
|
12727
12814
|
}
|
|
12728
12815
|
return toObject;
|
|
12729
12816
|
}
|
|
12730
|
-
function generateImagesConfigToMldev(fromObject, parentObject) {
|
|
12817
|
+
function generateImagesConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
12731
12818
|
const toObject = {};
|
|
12732
12819
|
if (getValueByPath(fromObject, ['outputGcsUri']) !== undefined) {
|
|
12733
12820
|
throw new Error('outputGcsUri parameter is not supported in Gemini API.');
|
|
@@ -12809,7 +12896,7 @@ function generateImagesConfigToMldev(fromObject, parentObject) {
|
|
|
12809
12896
|
}
|
|
12810
12897
|
return toObject;
|
|
12811
12898
|
}
|
|
12812
|
-
function generateImagesConfigToVertex(fromObject, parentObject) {
|
|
12899
|
+
function generateImagesConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
12813
12900
|
const toObject = {};
|
|
12814
12901
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
12815
12902
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -12901,7 +12988,7 @@ function generateImagesConfigToVertex(fromObject, parentObject) {
|
|
|
12901
12988
|
}
|
|
12902
12989
|
return toObject;
|
|
12903
12990
|
}
|
|
12904
|
-
function generateImagesParametersToMldev(apiClient, fromObject) {
|
|
12991
|
+
function generateImagesParametersToMldev(apiClient, fromObject, rootObject) {
|
|
12905
12992
|
const toObject = {};
|
|
12906
12993
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12907
12994
|
if (fromModel != null) {
|
|
@@ -12917,7 +13004,7 @@ function generateImagesParametersToMldev(apiClient, fromObject) {
|
|
|
12917
13004
|
}
|
|
12918
13005
|
return toObject;
|
|
12919
13006
|
}
|
|
12920
|
-
function generateImagesParametersToVertex(apiClient, fromObject) {
|
|
13007
|
+
function generateImagesParametersToVertex(apiClient, fromObject, rootObject) {
|
|
12921
13008
|
const toObject = {};
|
|
12922
13009
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
12923
13010
|
if (fromModel != null) {
|
|
@@ -12933,7 +13020,7 @@ function generateImagesParametersToVertex(apiClient, fromObject) {
|
|
|
12933
13020
|
}
|
|
12934
13021
|
return toObject;
|
|
12935
13022
|
}
|
|
12936
|
-
function generateImagesResponseFromMldev(fromObject) {
|
|
13023
|
+
function generateImagesResponseFromMldev(fromObject, rootObject) {
|
|
12937
13024
|
const toObject = {};
|
|
12938
13025
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12939
13026
|
'sdkHttpResponse',
|
|
@@ -12961,7 +13048,7 @@ function generateImagesResponseFromMldev(fromObject) {
|
|
|
12961
13048
|
}
|
|
12962
13049
|
return toObject;
|
|
12963
13050
|
}
|
|
12964
|
-
function generateImagesResponseFromVertex(fromObject) {
|
|
13051
|
+
function generateImagesResponseFromVertex(fromObject, rootObject) {
|
|
12965
13052
|
const toObject = {};
|
|
12966
13053
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
12967
13054
|
'sdkHttpResponse',
|
|
@@ -12989,7 +13076,7 @@ function generateImagesResponseFromVertex(fromObject) {
|
|
|
12989
13076
|
}
|
|
12990
13077
|
return toObject;
|
|
12991
13078
|
}
|
|
12992
|
-
function generateVideosConfigToMldev(fromObject, parentObject) {
|
|
13079
|
+
function generateVideosConfigToMldev(fromObject, parentObject, rootObject) {
|
|
12993
13080
|
const toObject = {};
|
|
12994
13081
|
const fromNumberOfVideos = getValueByPath(fromObject, [
|
|
12995
13082
|
'numberOfVideos',
|
|
@@ -13068,7 +13155,7 @@ function generateVideosConfigToMldev(fromObject, parentObject) {
|
|
|
13068
13155
|
}
|
|
13069
13156
|
return toObject;
|
|
13070
13157
|
}
|
|
13071
|
-
function generateVideosConfigToVertex(fromObject, parentObject) {
|
|
13158
|
+
function generateVideosConfigToVertex(fromObject, parentObject, rootObject) {
|
|
13072
13159
|
const toObject = {};
|
|
13073
13160
|
const fromNumberOfVideos = getValueByPath(fromObject, [
|
|
13074
13161
|
'numberOfVideos',
|
|
@@ -13158,7 +13245,7 @@ function generateVideosConfigToVertex(fromObject, parentObject) {
|
|
|
13158
13245
|
}
|
|
13159
13246
|
return toObject;
|
|
13160
13247
|
}
|
|
13161
|
-
function generateVideosOperationFromMldev(fromObject) {
|
|
13248
|
+
function generateVideosOperationFromMldev(fromObject, rootObject) {
|
|
13162
13249
|
const toObject = {};
|
|
13163
13250
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13164
13251
|
if (fromName != null) {
|
|
@@ -13185,7 +13272,7 @@ function generateVideosOperationFromMldev(fromObject) {
|
|
|
13185
13272
|
}
|
|
13186
13273
|
return toObject;
|
|
13187
13274
|
}
|
|
13188
|
-
function generateVideosOperationFromVertex(fromObject) {
|
|
13275
|
+
function generateVideosOperationFromVertex(fromObject, rootObject) {
|
|
13189
13276
|
const toObject = {};
|
|
13190
13277
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13191
13278
|
if (fromName != null) {
|
|
@@ -13209,7 +13296,7 @@ function generateVideosOperationFromVertex(fromObject) {
|
|
|
13209
13296
|
}
|
|
13210
13297
|
return toObject;
|
|
13211
13298
|
}
|
|
13212
|
-
function generateVideosParametersToMldev(apiClient, fromObject) {
|
|
13299
|
+
function generateVideosParametersToMldev(apiClient, fromObject, rootObject) {
|
|
13213
13300
|
const toObject = {};
|
|
13214
13301
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13215
13302
|
if (fromModel != null) {
|
|
@@ -13237,7 +13324,7 @@ function generateVideosParametersToMldev(apiClient, fromObject) {
|
|
|
13237
13324
|
}
|
|
13238
13325
|
return toObject;
|
|
13239
13326
|
}
|
|
13240
|
-
function generateVideosParametersToVertex(apiClient, fromObject) {
|
|
13327
|
+
function generateVideosParametersToVertex(apiClient, fromObject, rootObject) {
|
|
13241
13328
|
const toObject = {};
|
|
13242
13329
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13243
13330
|
if (fromModel != null) {
|
|
@@ -13265,7 +13352,7 @@ function generateVideosParametersToVertex(apiClient, fromObject) {
|
|
|
13265
13352
|
}
|
|
13266
13353
|
return toObject;
|
|
13267
13354
|
}
|
|
13268
|
-
function generateVideosResponseFromMldev(fromObject) {
|
|
13355
|
+
function generateVideosResponseFromMldev(fromObject, rootObject) {
|
|
13269
13356
|
const toObject = {};
|
|
13270
13357
|
const fromGeneratedVideos = getValueByPath(fromObject, [
|
|
13271
13358
|
'generatedSamples',
|
|
@@ -13293,7 +13380,7 @@ function generateVideosResponseFromMldev(fromObject) {
|
|
|
13293
13380
|
}
|
|
13294
13381
|
return toObject;
|
|
13295
13382
|
}
|
|
13296
|
-
function generateVideosResponseFromVertex(fromObject) {
|
|
13383
|
+
function generateVideosResponseFromVertex(fromObject, rootObject) {
|
|
13297
13384
|
const toObject = {};
|
|
13298
13385
|
const fromGeneratedVideos = getValueByPath(fromObject, ['videos']);
|
|
13299
13386
|
if (fromGeneratedVideos != null) {
|
|
@@ -13319,7 +13406,7 @@ function generateVideosResponseFromVertex(fromObject) {
|
|
|
13319
13406
|
}
|
|
13320
13407
|
return toObject;
|
|
13321
13408
|
}
|
|
13322
|
-
function generateVideosSourceToMldev(fromObject, parentObject) {
|
|
13409
|
+
function generateVideosSourceToMldev(fromObject, parentObject, rootObject) {
|
|
13323
13410
|
const toObject = {};
|
|
13324
13411
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
13325
13412
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -13335,7 +13422,7 @@ function generateVideosSourceToMldev(fromObject, parentObject) {
|
|
|
13335
13422
|
}
|
|
13336
13423
|
return toObject;
|
|
13337
13424
|
}
|
|
13338
|
-
function generateVideosSourceToVertex(fromObject, parentObject) {
|
|
13425
|
+
function generateVideosSourceToVertex(fromObject, parentObject, rootObject) {
|
|
13339
13426
|
const toObject = {};
|
|
13340
13427
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
13341
13428
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -13351,7 +13438,7 @@ function generateVideosSourceToVertex(fromObject, parentObject) {
|
|
|
13351
13438
|
}
|
|
13352
13439
|
return toObject;
|
|
13353
13440
|
}
|
|
13354
|
-
function generatedImageFromMldev(fromObject) {
|
|
13441
|
+
function generatedImageFromMldev(fromObject, rootObject) {
|
|
13355
13442
|
const toObject = {};
|
|
13356
13443
|
const fromImage = getValueByPath(fromObject, ['_self']);
|
|
13357
13444
|
if (fromImage != null) {
|
|
@@ -13369,7 +13456,7 @@ function generatedImageFromMldev(fromObject) {
|
|
|
13369
13456
|
}
|
|
13370
13457
|
return toObject;
|
|
13371
13458
|
}
|
|
13372
|
-
function generatedImageFromVertex(fromObject) {
|
|
13459
|
+
function generatedImageFromVertex(fromObject, rootObject) {
|
|
13373
13460
|
const toObject = {};
|
|
13374
13461
|
const fromImage = getValueByPath(fromObject, ['_self']);
|
|
13375
13462
|
if (fromImage != null) {
|
|
@@ -13391,7 +13478,7 @@ function generatedImageFromVertex(fromObject) {
|
|
|
13391
13478
|
}
|
|
13392
13479
|
return toObject;
|
|
13393
13480
|
}
|
|
13394
|
-
function generatedImageMaskFromVertex(fromObject) {
|
|
13481
|
+
function generatedImageMaskFromVertex(fromObject, rootObject) {
|
|
13395
13482
|
const toObject = {};
|
|
13396
13483
|
const fromMask = getValueByPath(fromObject, ['_self']);
|
|
13397
13484
|
if (fromMask != null) {
|
|
@@ -13409,7 +13496,7 @@ function generatedImageMaskFromVertex(fromObject) {
|
|
|
13409
13496
|
}
|
|
13410
13497
|
return toObject;
|
|
13411
13498
|
}
|
|
13412
|
-
function generatedVideoFromMldev(fromObject) {
|
|
13499
|
+
function generatedVideoFromMldev(fromObject, rootObject) {
|
|
13413
13500
|
const toObject = {};
|
|
13414
13501
|
const fromVideo = getValueByPath(fromObject, ['video']);
|
|
13415
13502
|
if (fromVideo != null) {
|
|
@@ -13417,7 +13504,7 @@ function generatedVideoFromMldev(fromObject) {
|
|
|
13417
13504
|
}
|
|
13418
13505
|
return toObject;
|
|
13419
13506
|
}
|
|
13420
|
-
function generatedVideoFromVertex(fromObject) {
|
|
13507
|
+
function generatedVideoFromVertex(fromObject, rootObject) {
|
|
13421
13508
|
const toObject = {};
|
|
13422
13509
|
const fromVideo = getValueByPath(fromObject, ['_self']);
|
|
13423
13510
|
if (fromVideo != null) {
|
|
@@ -13425,7 +13512,7 @@ function generatedVideoFromVertex(fromObject) {
|
|
|
13425
13512
|
}
|
|
13426
13513
|
return toObject;
|
|
13427
13514
|
}
|
|
13428
|
-
function generationConfigToVertex(fromObject) {
|
|
13515
|
+
function generationConfigToVertex(fromObject, _rootObject) {
|
|
13429
13516
|
const toObject = {};
|
|
13430
13517
|
const fromModelSelectionConfig = getValueByPath(fromObject, [
|
|
13431
13518
|
'modelSelectionConfig',
|
|
@@ -13553,7 +13640,7 @@ function generationConfigToVertex(fromObject) {
|
|
|
13553
13640
|
}
|
|
13554
13641
|
return toObject;
|
|
13555
13642
|
}
|
|
13556
|
-
function getModelParametersToMldev(apiClient, fromObject) {
|
|
13643
|
+
function getModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
13557
13644
|
const toObject = {};
|
|
13558
13645
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13559
13646
|
if (fromModel != null) {
|
|
@@ -13561,7 +13648,7 @@ function getModelParametersToMldev(apiClient, fromObject) {
|
|
|
13561
13648
|
}
|
|
13562
13649
|
return toObject;
|
|
13563
13650
|
}
|
|
13564
|
-
function getModelParametersToVertex(apiClient, fromObject) {
|
|
13651
|
+
function getModelParametersToVertex(apiClient, fromObject, _rootObject) {
|
|
13565
13652
|
const toObject = {};
|
|
13566
13653
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
13567
13654
|
if (fromModel != null) {
|
|
@@ -13569,7 +13656,7 @@ function getModelParametersToVertex(apiClient, fromObject) {
|
|
|
13569
13656
|
}
|
|
13570
13657
|
return toObject;
|
|
13571
13658
|
}
|
|
13572
|
-
function googleMapsToMldev$1(fromObject) {
|
|
13659
|
+
function googleMapsToMldev$1(fromObject, _rootObject) {
|
|
13573
13660
|
const toObject = {};
|
|
13574
13661
|
if (getValueByPath(fromObject, ['authConfig']) !== undefined) {
|
|
13575
13662
|
throw new Error('authConfig parameter is not supported in Gemini API.');
|
|
@@ -13580,7 +13667,7 @@ function googleMapsToMldev$1(fromObject) {
|
|
|
13580
13667
|
}
|
|
13581
13668
|
return toObject;
|
|
13582
13669
|
}
|
|
13583
|
-
function googleSearchToMldev$1(fromObject) {
|
|
13670
|
+
function googleSearchToMldev$1(fromObject, _rootObject) {
|
|
13584
13671
|
const toObject = {};
|
|
13585
13672
|
if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {
|
|
13586
13673
|
throw new Error('excludeDomains parameter is not supported in Gemini API.');
|
|
@@ -13596,7 +13683,7 @@ function googleSearchToMldev$1(fromObject) {
|
|
|
13596
13683
|
}
|
|
13597
13684
|
return toObject;
|
|
13598
13685
|
}
|
|
13599
|
-
function imageConfigToMldev(fromObject) {
|
|
13686
|
+
function imageConfigToMldev(fromObject, _rootObject) {
|
|
13600
13687
|
const toObject = {};
|
|
13601
13688
|
const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
|
|
13602
13689
|
if (fromAspectRatio != null) {
|
|
@@ -13618,7 +13705,7 @@ function imageConfigToMldev(fromObject) {
|
|
|
13618
13705
|
}
|
|
13619
13706
|
return toObject;
|
|
13620
13707
|
}
|
|
13621
|
-
function imageConfigToVertex(fromObject) {
|
|
13708
|
+
function imageConfigToVertex(fromObject, _rootObject) {
|
|
13622
13709
|
const toObject = {};
|
|
13623
13710
|
const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);
|
|
13624
13711
|
if (fromAspectRatio != null) {
|
|
@@ -13648,7 +13735,7 @@ function imageConfigToVertex(fromObject) {
|
|
|
13648
13735
|
}
|
|
13649
13736
|
return toObject;
|
|
13650
13737
|
}
|
|
13651
|
-
function imageFromMldev(fromObject) {
|
|
13738
|
+
function imageFromMldev(fromObject, _rootObject) {
|
|
13652
13739
|
const toObject = {};
|
|
13653
13740
|
const fromImageBytes = getValueByPath(fromObject, [
|
|
13654
13741
|
'bytesBase64Encoded',
|
|
@@ -13662,7 +13749,7 @@ function imageFromMldev(fromObject) {
|
|
|
13662
13749
|
}
|
|
13663
13750
|
return toObject;
|
|
13664
13751
|
}
|
|
13665
|
-
function imageFromVertex(fromObject) {
|
|
13752
|
+
function imageFromVertex(fromObject, _rootObject) {
|
|
13666
13753
|
const toObject = {};
|
|
13667
13754
|
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
13668
13755
|
if (fromGcsUri != null) {
|
|
@@ -13680,7 +13767,7 @@ function imageFromVertex(fromObject) {
|
|
|
13680
13767
|
}
|
|
13681
13768
|
return toObject;
|
|
13682
13769
|
}
|
|
13683
|
-
function imageToMldev(fromObject) {
|
|
13770
|
+
function imageToMldev(fromObject, _rootObject) {
|
|
13684
13771
|
const toObject = {};
|
|
13685
13772
|
if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {
|
|
13686
13773
|
throw new Error('gcsUri parameter is not supported in Gemini API.');
|
|
@@ -13695,7 +13782,7 @@ function imageToMldev(fromObject) {
|
|
|
13695
13782
|
}
|
|
13696
13783
|
return toObject;
|
|
13697
13784
|
}
|
|
13698
|
-
function imageToVertex(fromObject) {
|
|
13785
|
+
function imageToVertex(fromObject, _rootObject) {
|
|
13699
13786
|
const toObject = {};
|
|
13700
13787
|
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
13701
13788
|
if (fromGcsUri != null) {
|
|
@@ -13711,7 +13798,7 @@ function imageToVertex(fromObject) {
|
|
|
13711
13798
|
}
|
|
13712
13799
|
return toObject;
|
|
13713
13800
|
}
|
|
13714
|
-
function listModelsConfigToMldev(apiClient, fromObject, parentObject) {
|
|
13801
|
+
function listModelsConfigToMldev(apiClient, fromObject, parentObject, _rootObject) {
|
|
13715
13802
|
const toObject = {};
|
|
13716
13803
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
13717
13804
|
if (parentObject !== undefined && fromPageSize != null) {
|
|
@@ -13731,7 +13818,7 @@ function listModelsConfigToMldev(apiClient, fromObject, parentObject) {
|
|
|
13731
13818
|
}
|
|
13732
13819
|
return toObject;
|
|
13733
13820
|
}
|
|
13734
|
-
function listModelsConfigToVertex(apiClient, fromObject, parentObject) {
|
|
13821
|
+
function listModelsConfigToVertex(apiClient, fromObject, parentObject, _rootObject) {
|
|
13735
13822
|
const toObject = {};
|
|
13736
13823
|
const fromPageSize = getValueByPath(fromObject, ['pageSize']);
|
|
13737
13824
|
if (parentObject !== undefined && fromPageSize != null) {
|
|
@@ -13751,7 +13838,7 @@ function listModelsConfigToVertex(apiClient, fromObject, parentObject) {
|
|
|
13751
13838
|
}
|
|
13752
13839
|
return toObject;
|
|
13753
13840
|
}
|
|
13754
|
-
function listModelsParametersToMldev(apiClient, fromObject) {
|
|
13841
|
+
function listModelsParametersToMldev(apiClient, fromObject, rootObject) {
|
|
13755
13842
|
const toObject = {};
|
|
13756
13843
|
const fromConfig = getValueByPath(fromObject, ['config']);
|
|
13757
13844
|
if (fromConfig != null) {
|
|
@@ -13759,7 +13846,7 @@ function listModelsParametersToMldev(apiClient, fromObject) {
|
|
|
13759
13846
|
}
|
|
13760
13847
|
return toObject;
|
|
13761
13848
|
}
|
|
13762
|
-
function listModelsParametersToVertex(apiClient, fromObject) {
|
|
13849
|
+
function listModelsParametersToVertex(apiClient, fromObject, rootObject) {
|
|
13763
13850
|
const toObject = {};
|
|
13764
13851
|
const fromConfig = getValueByPath(fromObject, ['config']);
|
|
13765
13852
|
if (fromConfig != null) {
|
|
@@ -13767,7 +13854,7 @@ function listModelsParametersToVertex(apiClient, fromObject) {
|
|
|
13767
13854
|
}
|
|
13768
13855
|
return toObject;
|
|
13769
13856
|
}
|
|
13770
|
-
function listModelsResponseFromMldev(fromObject) {
|
|
13857
|
+
function listModelsResponseFromMldev(fromObject, rootObject) {
|
|
13771
13858
|
const toObject = {};
|
|
13772
13859
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13773
13860
|
'sdkHttpResponse',
|
|
@@ -13793,7 +13880,7 @@ function listModelsResponseFromMldev(fromObject) {
|
|
|
13793
13880
|
}
|
|
13794
13881
|
return toObject;
|
|
13795
13882
|
}
|
|
13796
|
-
function listModelsResponseFromVertex(fromObject) {
|
|
13883
|
+
function listModelsResponseFromVertex(fromObject, rootObject) {
|
|
13797
13884
|
const toObject = {};
|
|
13798
13885
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
13799
13886
|
'sdkHttpResponse',
|
|
@@ -13819,7 +13906,7 @@ function listModelsResponseFromVertex(fromObject) {
|
|
|
13819
13906
|
}
|
|
13820
13907
|
return toObject;
|
|
13821
13908
|
}
|
|
13822
|
-
function maskReferenceConfigToVertex(fromObject) {
|
|
13909
|
+
function maskReferenceConfigToVertex(fromObject, _rootObject) {
|
|
13823
13910
|
const toObject = {};
|
|
13824
13911
|
const fromMaskMode = getValueByPath(fromObject, ['maskMode']);
|
|
13825
13912
|
if (fromMaskMode != null) {
|
|
@@ -13837,7 +13924,7 @@ function maskReferenceConfigToVertex(fromObject) {
|
|
|
13837
13924
|
}
|
|
13838
13925
|
return toObject;
|
|
13839
13926
|
}
|
|
13840
|
-
function modelFromMldev(fromObject) {
|
|
13927
|
+
function modelFromMldev(fromObject, rootObject) {
|
|
13841
13928
|
const toObject = {};
|
|
13842
13929
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13843
13930
|
if (fromName != null) {
|
|
@@ -13901,7 +13988,7 @@ function modelFromMldev(fromObject) {
|
|
|
13901
13988
|
}
|
|
13902
13989
|
return toObject;
|
|
13903
13990
|
}
|
|
13904
|
-
function modelFromVertex(fromObject) {
|
|
13991
|
+
function modelFromVertex(fromObject, rootObject) {
|
|
13905
13992
|
const toObject = {};
|
|
13906
13993
|
const fromName = getValueByPath(fromObject, ['name']);
|
|
13907
13994
|
if (fromName != null) {
|
|
@@ -13955,7 +14042,7 @@ function modelFromVertex(fromObject) {
|
|
|
13955
14042
|
}
|
|
13956
14043
|
return toObject;
|
|
13957
14044
|
}
|
|
13958
|
-
function partToMldev$1(fromObject) {
|
|
14045
|
+
function partToMldev$1(fromObject, rootObject) {
|
|
13959
14046
|
const toObject = {};
|
|
13960
14047
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
13961
14048
|
'mediaResolution',
|
|
@@ -14015,7 +14102,7 @@ function partToMldev$1(fromObject) {
|
|
|
14015
14102
|
}
|
|
14016
14103
|
return toObject;
|
|
14017
14104
|
}
|
|
14018
|
-
function productImageToVertex(fromObject) {
|
|
14105
|
+
function productImageToVertex(fromObject, rootObject) {
|
|
14019
14106
|
const toObject = {};
|
|
14020
14107
|
const fromProductImage = getValueByPath(fromObject, ['productImage']);
|
|
14021
14108
|
if (fromProductImage != null) {
|
|
@@ -14023,7 +14110,7 @@ function productImageToVertex(fromObject) {
|
|
|
14023
14110
|
}
|
|
14024
14111
|
return toObject;
|
|
14025
14112
|
}
|
|
14026
|
-
function recontextImageConfigToVertex(fromObject, parentObject) {
|
|
14113
|
+
function recontextImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14027
14114
|
const toObject = {};
|
|
14028
14115
|
const fromNumberOfImages = getValueByPath(fromObject, [
|
|
14029
14116
|
'numberOfImages',
|
|
@@ -14083,7 +14170,7 @@ function recontextImageConfigToVertex(fromObject, parentObject) {
|
|
|
14083
14170
|
}
|
|
14084
14171
|
return toObject;
|
|
14085
14172
|
}
|
|
14086
|
-
function recontextImageParametersToVertex(apiClient, fromObject) {
|
|
14173
|
+
function recontextImageParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14087
14174
|
const toObject = {};
|
|
14088
14175
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14089
14176
|
if (fromModel != null) {
|
|
@@ -14099,7 +14186,7 @@ function recontextImageParametersToVertex(apiClient, fromObject) {
|
|
|
14099
14186
|
}
|
|
14100
14187
|
return toObject;
|
|
14101
14188
|
}
|
|
14102
|
-
function recontextImageResponseFromVertex(fromObject) {
|
|
14189
|
+
function recontextImageResponseFromVertex(fromObject, rootObject) {
|
|
14103
14190
|
const toObject = {};
|
|
14104
14191
|
const fromGeneratedImages = getValueByPath(fromObject, [
|
|
14105
14192
|
'predictions',
|
|
@@ -14115,7 +14202,7 @@ function recontextImageResponseFromVertex(fromObject) {
|
|
|
14115
14202
|
}
|
|
14116
14203
|
return toObject;
|
|
14117
14204
|
}
|
|
14118
|
-
function recontextImageSourceToVertex(fromObject, parentObject) {
|
|
14205
|
+
function recontextImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
14119
14206
|
const toObject = {};
|
|
14120
14207
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
14121
14208
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -14139,7 +14226,7 @@ function recontextImageSourceToVertex(fromObject, parentObject) {
|
|
|
14139
14226
|
}
|
|
14140
14227
|
return toObject;
|
|
14141
14228
|
}
|
|
14142
|
-
function referenceImageAPIInternalToVertex(fromObject) {
|
|
14229
|
+
function referenceImageAPIInternalToVertex(fromObject, rootObject) {
|
|
14143
14230
|
const toObject = {};
|
|
14144
14231
|
const fromReferenceImage = getValueByPath(fromObject, [
|
|
14145
14232
|
'referenceImage',
|
|
@@ -14183,7 +14270,7 @@ function referenceImageAPIInternalToVertex(fromObject) {
|
|
|
14183
14270
|
}
|
|
14184
14271
|
return toObject;
|
|
14185
14272
|
}
|
|
14186
|
-
function safetyAttributesFromMldev(fromObject) {
|
|
14273
|
+
function safetyAttributesFromMldev(fromObject, _rootObject) {
|
|
14187
14274
|
const toObject = {};
|
|
14188
14275
|
const fromCategories = getValueByPath(fromObject, [
|
|
14189
14276
|
'safetyAttributes',
|
|
@@ -14205,7 +14292,7 @@ function safetyAttributesFromMldev(fromObject) {
|
|
|
14205
14292
|
}
|
|
14206
14293
|
return toObject;
|
|
14207
14294
|
}
|
|
14208
|
-
function safetyAttributesFromVertex(fromObject) {
|
|
14295
|
+
function safetyAttributesFromVertex(fromObject, _rootObject) {
|
|
14209
14296
|
const toObject = {};
|
|
14210
14297
|
const fromCategories = getValueByPath(fromObject, [
|
|
14211
14298
|
'safetyAttributes',
|
|
@@ -14227,7 +14314,7 @@ function safetyAttributesFromVertex(fromObject) {
|
|
|
14227
14314
|
}
|
|
14228
14315
|
return toObject;
|
|
14229
14316
|
}
|
|
14230
|
-
function safetySettingToMldev(fromObject) {
|
|
14317
|
+
function safetySettingToMldev(fromObject, _rootObject) {
|
|
14231
14318
|
const toObject = {};
|
|
14232
14319
|
const fromCategory = getValueByPath(fromObject, ['category']);
|
|
14233
14320
|
if (fromCategory != null) {
|
|
@@ -14242,7 +14329,7 @@ function safetySettingToMldev(fromObject) {
|
|
|
14242
14329
|
}
|
|
14243
14330
|
return toObject;
|
|
14244
14331
|
}
|
|
14245
|
-
function scribbleImageToVertex(fromObject) {
|
|
14332
|
+
function scribbleImageToVertex(fromObject, rootObject) {
|
|
14246
14333
|
const toObject = {};
|
|
14247
14334
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14248
14335
|
if (fromImage != null) {
|
|
@@ -14250,7 +14337,7 @@ function scribbleImageToVertex(fromObject) {
|
|
|
14250
14337
|
}
|
|
14251
14338
|
return toObject;
|
|
14252
14339
|
}
|
|
14253
|
-
function segmentImageConfigToVertex(fromObject, parentObject) {
|
|
14340
|
+
function segmentImageConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14254
14341
|
const toObject = {};
|
|
14255
14342
|
const fromMode = getValueByPath(fromObject, ['mode']);
|
|
14256
14343
|
if (parentObject !== undefined && fromMode != null) {
|
|
@@ -14284,7 +14371,7 @@ function segmentImageConfigToVertex(fromObject, parentObject) {
|
|
|
14284
14371
|
}
|
|
14285
14372
|
return toObject;
|
|
14286
14373
|
}
|
|
14287
|
-
function segmentImageParametersToVertex(apiClient, fromObject) {
|
|
14374
|
+
function segmentImageParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14288
14375
|
const toObject = {};
|
|
14289
14376
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14290
14377
|
if (fromModel != null) {
|
|
@@ -14300,7 +14387,7 @@ function segmentImageParametersToVertex(apiClient, fromObject) {
|
|
|
14300
14387
|
}
|
|
14301
14388
|
return toObject;
|
|
14302
14389
|
}
|
|
14303
|
-
function segmentImageResponseFromVertex(fromObject) {
|
|
14390
|
+
function segmentImageResponseFromVertex(fromObject, rootObject) {
|
|
14304
14391
|
const toObject = {};
|
|
14305
14392
|
const fromGeneratedMasks = getValueByPath(fromObject, ['predictions']);
|
|
14306
14393
|
if (fromGeneratedMasks != null) {
|
|
@@ -14314,7 +14401,7 @@ function segmentImageResponseFromVertex(fromObject) {
|
|
|
14314
14401
|
}
|
|
14315
14402
|
return toObject;
|
|
14316
14403
|
}
|
|
14317
|
-
function segmentImageSourceToVertex(fromObject, parentObject) {
|
|
14404
|
+
function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
14318
14405
|
const toObject = {};
|
|
14319
14406
|
const fromPrompt = getValueByPath(fromObject, ['prompt']);
|
|
14320
14407
|
if (parentObject !== undefined && fromPrompt != null) {
|
|
@@ -14332,7 +14419,7 @@ function segmentImageSourceToVertex(fromObject, parentObject) {
|
|
|
14332
14419
|
}
|
|
14333
14420
|
return toObject;
|
|
14334
14421
|
}
|
|
14335
|
-
function toolConfigToMldev(fromObject) {
|
|
14422
|
+
function toolConfigToMldev(fromObject, rootObject) {
|
|
14336
14423
|
const toObject = {};
|
|
14337
14424
|
const fromRetrievalConfig = getValueByPath(fromObject, [
|
|
14338
14425
|
'retrievalConfig',
|
|
@@ -14348,7 +14435,7 @@ function toolConfigToMldev(fromObject) {
|
|
|
14348
14435
|
}
|
|
14349
14436
|
return toObject;
|
|
14350
14437
|
}
|
|
14351
|
-
function toolToMldev$1(fromObject) {
|
|
14438
|
+
function toolToMldev$1(fromObject, rootObject) {
|
|
14352
14439
|
const toObject = {};
|
|
14353
14440
|
if (getValueByPath(fromObject, ['retrieval']) !== undefined) {
|
|
14354
14441
|
throw new Error('retrieval parameter is not supported in Gemini API.');
|
|
@@ -14402,7 +14489,7 @@ function toolToMldev$1(fromObject) {
|
|
|
14402
14489
|
}
|
|
14403
14490
|
return toObject;
|
|
14404
14491
|
}
|
|
14405
|
-
function toolToVertex(fromObject) {
|
|
14492
|
+
function toolToVertex(fromObject, rootObject) {
|
|
14406
14493
|
const toObject = {};
|
|
14407
14494
|
const fromRetrieval = getValueByPath(fromObject, ['retrieval']);
|
|
14408
14495
|
if (fromRetrieval != null) {
|
|
@@ -14459,7 +14546,7 @@ function toolToVertex(fromObject) {
|
|
|
14459
14546
|
}
|
|
14460
14547
|
return toObject;
|
|
14461
14548
|
}
|
|
14462
|
-
function tunedModelInfoFromMldev(fromObject) {
|
|
14549
|
+
function tunedModelInfoFromMldev(fromObject, _rootObject) {
|
|
14463
14550
|
const toObject = {};
|
|
14464
14551
|
const fromBaseModel = getValueByPath(fromObject, ['baseModel']);
|
|
14465
14552
|
if (fromBaseModel != null) {
|
|
@@ -14475,7 +14562,7 @@ function tunedModelInfoFromMldev(fromObject) {
|
|
|
14475
14562
|
}
|
|
14476
14563
|
return toObject;
|
|
14477
14564
|
}
|
|
14478
|
-
function tunedModelInfoFromVertex(fromObject) {
|
|
14565
|
+
function tunedModelInfoFromVertex(fromObject, _rootObject) {
|
|
14479
14566
|
const toObject = {};
|
|
14480
14567
|
const fromBaseModel = getValueByPath(fromObject, [
|
|
14481
14568
|
'labels',
|
|
@@ -14494,7 +14581,7 @@ function tunedModelInfoFromVertex(fromObject) {
|
|
|
14494
14581
|
}
|
|
14495
14582
|
return toObject;
|
|
14496
14583
|
}
|
|
14497
|
-
function updateModelConfigToMldev(fromObject, parentObject) {
|
|
14584
|
+
function updateModelConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
14498
14585
|
const toObject = {};
|
|
14499
14586
|
const fromDisplayName = getValueByPath(fromObject, ['displayName']);
|
|
14500
14587
|
if (parentObject !== undefined && fromDisplayName != null) {
|
|
@@ -14512,7 +14599,7 @@ function updateModelConfigToMldev(fromObject, parentObject) {
|
|
|
14512
14599
|
}
|
|
14513
14600
|
return toObject;
|
|
14514
14601
|
}
|
|
14515
|
-
function updateModelConfigToVertex(fromObject, parentObject) {
|
|
14602
|
+
function updateModelConfigToVertex(fromObject, parentObject, _rootObject) {
|
|
14516
14603
|
const toObject = {};
|
|
14517
14604
|
const fromDisplayName = getValueByPath(fromObject, ['displayName']);
|
|
14518
14605
|
if (parentObject !== undefined && fromDisplayName != null) {
|
|
@@ -14530,7 +14617,7 @@ function updateModelConfigToVertex(fromObject, parentObject) {
|
|
|
14530
14617
|
}
|
|
14531
14618
|
return toObject;
|
|
14532
14619
|
}
|
|
14533
|
-
function updateModelParametersToMldev(apiClient, fromObject) {
|
|
14620
|
+
function updateModelParametersToMldev(apiClient, fromObject, rootObject) {
|
|
14534
14621
|
const toObject = {};
|
|
14535
14622
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14536
14623
|
if (fromModel != null) {
|
|
@@ -14542,7 +14629,7 @@ function updateModelParametersToMldev(apiClient, fromObject) {
|
|
|
14542
14629
|
}
|
|
14543
14630
|
return toObject;
|
|
14544
14631
|
}
|
|
14545
|
-
function updateModelParametersToVertex(apiClient, fromObject) {
|
|
14632
|
+
function updateModelParametersToVertex(apiClient, fromObject, rootObject) {
|
|
14546
14633
|
const toObject = {};
|
|
14547
14634
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14548
14635
|
if (fromModel != null) {
|
|
@@ -14554,7 +14641,7 @@ function updateModelParametersToVertex(apiClient, fromObject) {
|
|
|
14554
14641
|
}
|
|
14555
14642
|
return toObject;
|
|
14556
14643
|
}
|
|
14557
|
-
function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject) {
|
|
14644
|
+
function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject, _rootObject) {
|
|
14558
14645
|
const toObject = {};
|
|
14559
14646
|
const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);
|
|
14560
14647
|
if (parentObject !== undefined && fromOutputGcsUri != null) {
|
|
@@ -14618,7 +14705,7 @@ function upscaleImageAPIConfigInternalToVertex(fromObject, parentObject) {
|
|
|
14618
14705
|
}
|
|
14619
14706
|
return toObject;
|
|
14620
14707
|
}
|
|
14621
|
-
function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject) {
|
|
14708
|
+
function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject, rootObject) {
|
|
14622
14709
|
const toObject = {};
|
|
14623
14710
|
const fromModel = getValueByPath(fromObject, ['model']);
|
|
14624
14711
|
if (fromModel != null) {
|
|
@@ -14640,7 +14727,7 @@ function upscaleImageAPIParametersInternalToVertex(apiClient, fromObject) {
|
|
|
14640
14727
|
}
|
|
14641
14728
|
return toObject;
|
|
14642
14729
|
}
|
|
14643
|
-
function upscaleImageResponseFromVertex(fromObject) {
|
|
14730
|
+
function upscaleImageResponseFromVertex(fromObject, rootObject) {
|
|
14644
14731
|
const toObject = {};
|
|
14645
14732
|
const fromSdkHttpResponse = getValueByPath(fromObject, [
|
|
14646
14733
|
'sdkHttpResponse',
|
|
@@ -14662,7 +14749,7 @@ function upscaleImageResponseFromVertex(fromObject) {
|
|
|
14662
14749
|
}
|
|
14663
14750
|
return toObject;
|
|
14664
14751
|
}
|
|
14665
|
-
function videoFromMldev(fromObject) {
|
|
14752
|
+
function videoFromMldev(fromObject, _rootObject) {
|
|
14666
14753
|
const toObject = {};
|
|
14667
14754
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14668
14755
|
if (fromUri != null) {
|
|
@@ -14678,7 +14765,7 @@ function videoFromMldev(fromObject) {
|
|
|
14678
14765
|
}
|
|
14679
14766
|
return toObject;
|
|
14680
14767
|
}
|
|
14681
|
-
function videoFromVertex(fromObject) {
|
|
14768
|
+
function videoFromVertex(fromObject, _rootObject) {
|
|
14682
14769
|
const toObject = {};
|
|
14683
14770
|
const fromUri = getValueByPath(fromObject, ['gcsUri']);
|
|
14684
14771
|
if (fromUri != null) {
|
|
@@ -14696,7 +14783,7 @@ function videoFromVertex(fromObject) {
|
|
|
14696
14783
|
}
|
|
14697
14784
|
return toObject;
|
|
14698
14785
|
}
|
|
14699
|
-
function videoGenerationMaskToVertex(fromObject) {
|
|
14786
|
+
function videoGenerationMaskToVertex(fromObject, rootObject) {
|
|
14700
14787
|
const toObject = {};
|
|
14701
14788
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14702
14789
|
if (fromImage != null) {
|
|
@@ -14708,7 +14795,7 @@ function videoGenerationMaskToVertex(fromObject) {
|
|
|
14708
14795
|
}
|
|
14709
14796
|
return toObject;
|
|
14710
14797
|
}
|
|
14711
|
-
function videoGenerationReferenceImageToMldev(fromObject) {
|
|
14798
|
+
function videoGenerationReferenceImageToMldev(fromObject, rootObject) {
|
|
14712
14799
|
const toObject = {};
|
|
14713
14800
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14714
14801
|
if (fromImage != null) {
|
|
@@ -14722,7 +14809,7 @@ function videoGenerationReferenceImageToMldev(fromObject) {
|
|
|
14722
14809
|
}
|
|
14723
14810
|
return toObject;
|
|
14724
14811
|
}
|
|
14725
|
-
function videoGenerationReferenceImageToVertex(fromObject) {
|
|
14812
|
+
function videoGenerationReferenceImageToVertex(fromObject, rootObject) {
|
|
14726
14813
|
const toObject = {};
|
|
14727
14814
|
const fromImage = getValueByPath(fromObject, ['image']);
|
|
14728
14815
|
if (fromImage != null) {
|
|
@@ -14736,7 +14823,7 @@ function videoGenerationReferenceImageToVertex(fromObject) {
|
|
|
14736
14823
|
}
|
|
14737
14824
|
return toObject;
|
|
14738
14825
|
}
|
|
14739
|
-
function videoToMldev(fromObject) {
|
|
14826
|
+
function videoToMldev(fromObject, _rootObject) {
|
|
14740
14827
|
const toObject = {};
|
|
14741
14828
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14742
14829
|
if (fromUri != null) {
|
|
@@ -14752,7 +14839,7 @@ function videoToMldev(fromObject) {
|
|
|
14752
14839
|
}
|
|
14753
14840
|
return toObject;
|
|
14754
14841
|
}
|
|
14755
|
-
function videoToVertex(fromObject) {
|
|
14842
|
+
function videoToVertex(fromObject, _rootObject) {
|
|
14756
14843
|
const toObject = {};
|
|
14757
14844
|
const fromUri = getValueByPath(fromObject, ['uri']);
|
|
14758
14845
|
if (fromUri != null) {
|
|
@@ -16308,7 +16395,7 @@ class Models extends BaseModule {
|
|
|
16308
16395
|
_c = apiResponse_1_1.value;
|
|
16309
16396
|
_d = false;
|
|
16310
16397
|
const chunk = _c;
|
|
16311
|
-
const resp = generateContentResponseFromVertex((yield __await(chunk.json())));
|
|
16398
|
+
const resp = generateContentResponseFromVertex((yield __await(chunk.json())), params);
|
|
16312
16399
|
resp['sdkHttpResponse'] = {
|
|
16313
16400
|
headers: chunk.headers,
|
|
16314
16401
|
};
|
|
@@ -16350,7 +16437,7 @@ class Models extends BaseModule {
|
|
|
16350
16437
|
_c = apiResponse_2_1.value;
|
|
16351
16438
|
_d = false;
|
|
16352
16439
|
const chunk = _c;
|
|
16353
|
-
const resp = generateContentResponseFromMldev((yield __await(chunk.json())));
|
|
16440
|
+
const resp = generateContentResponseFromMldev((yield __await(chunk.json())), params);
|
|
16354
16441
|
resp['sdkHttpResponse'] = {
|
|
16355
16442
|
headers: chunk.headers,
|
|
16356
16443
|
};
|
|
@@ -18124,6 +18211,12 @@ function createTuningJobConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
|
18124
18211
|
if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {
|
|
18125
18212
|
throw new Error('adapterSize parameter is not supported in Gemini API.');
|
|
18126
18213
|
}
|
|
18214
|
+
if (getValueByPath(fromObject, ['tuningMode']) !== undefined) {
|
|
18215
|
+
throw new Error('tuningMode parameter is not supported in Gemini API.');
|
|
18216
|
+
}
|
|
18217
|
+
if (getValueByPath(fromObject, ['customBaseModel']) !== undefined) {
|
|
18218
|
+
throw new Error('customBaseModel parameter is not supported in Gemini API.');
|
|
18219
|
+
}
|
|
18127
18220
|
const fromBatchSize = getValueByPath(fromObject, ['batchSize']);
|
|
18128
18221
|
if (parentObject !== undefined && fromBatchSize != null) {
|
|
18129
18222
|
setValueByPath(parentObject, ['tuningTask', 'hyperparameters', 'batchSize'], fromBatchSize);
|
|
@@ -18138,6 +18231,18 @@ function createTuningJobConfigToMldev(fromObject, parentObject, _rootObject) {
|
|
|
18138
18231
|
if (getValueByPath(fromObject, ['beta']) !== undefined) {
|
|
18139
18232
|
throw new Error('beta parameter is not supported in Gemini API.');
|
|
18140
18233
|
}
|
|
18234
|
+
if (getValueByPath(fromObject, ['baseTeacherModel']) !== undefined) {
|
|
18235
|
+
throw new Error('baseTeacherModel parameter is not supported in Gemini API.');
|
|
18236
|
+
}
|
|
18237
|
+
if (getValueByPath(fromObject, ['tunedTeacherModelSource']) !== undefined) {
|
|
18238
|
+
throw new Error('tunedTeacherModelSource parameter is not supported in Gemini API.');
|
|
18239
|
+
}
|
|
18240
|
+
if (getValueByPath(fromObject, ['sftLossWeightMultiplier']) !== undefined) {
|
|
18241
|
+
throw new Error('sftLossWeightMultiplier parameter is not supported in Gemini API.');
|
|
18242
|
+
}
|
|
18243
|
+
if (getValueByPath(fromObject, ['outputUri']) !== undefined) {
|
|
18244
|
+
throw new Error('outputUri parameter is not supported in Gemini API.');
|
|
18245
|
+
}
|
|
18141
18246
|
return toObject;
|
|
18142
18247
|
}
|
|
18143
18248
|
function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
@@ -18165,6 +18270,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18165
18270
|
setValueByPath(parentObject, ['preferenceOptimizationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));
|
|
18166
18271
|
}
|
|
18167
18272
|
}
|
|
18273
|
+
else if (discriminatorValidationDataset === 'DISTILLATION') {
|
|
18274
|
+
const fromValidationDataset = getValueByPath(fromObject, [
|
|
18275
|
+
'validationDataset',
|
|
18276
|
+
]);
|
|
18277
|
+
if (parentObject !== undefined && fromValidationDataset != null) {
|
|
18278
|
+
setValueByPath(parentObject, ['distillationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));
|
|
18279
|
+
}
|
|
18280
|
+
}
|
|
18168
18281
|
const fromTunedModelDisplayName = getValueByPath(fromObject, [
|
|
18169
18282
|
'tunedModelDisplayName',
|
|
18170
18283
|
]);
|
|
@@ -18194,6 +18307,12 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18194
18307
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);
|
|
18195
18308
|
}
|
|
18196
18309
|
}
|
|
18310
|
+
else if (discriminatorEpochCount === 'DISTILLATION') {
|
|
18311
|
+
const fromEpochCount = getValueByPath(fromObject, ['epochCount']);
|
|
18312
|
+
if (parentObject !== undefined && fromEpochCount != null) {
|
|
18313
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);
|
|
18314
|
+
}
|
|
18315
|
+
}
|
|
18197
18316
|
let discriminatorLearningRateMultiplier = getValueByPath(rootObject, [
|
|
18198
18317
|
'config',
|
|
18199
18318
|
'method',
|
|
@@ -18221,6 +18340,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18221
18340
|
], fromLearningRateMultiplier);
|
|
18222
18341
|
}
|
|
18223
18342
|
}
|
|
18343
|
+
else if (discriminatorLearningRateMultiplier === 'DISTILLATION') {
|
|
18344
|
+
const fromLearningRateMultiplier = getValueByPath(fromObject, [
|
|
18345
|
+
'learningRateMultiplier',
|
|
18346
|
+
]);
|
|
18347
|
+
if (parentObject !== undefined && fromLearningRateMultiplier != null) {
|
|
18348
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'learningRateMultiplier'], fromLearningRateMultiplier);
|
|
18349
|
+
}
|
|
18350
|
+
}
|
|
18224
18351
|
let discriminatorExportLastCheckpointOnly = getValueByPath(rootObject, ['config', 'method']);
|
|
18225
18352
|
if (discriminatorExportLastCheckpointOnly === undefined) {
|
|
18226
18353
|
discriminatorExportLastCheckpointOnly = 'SUPERVISED_FINE_TUNING';
|
|
@@ -18241,6 +18368,14 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18241
18368
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
18242
18369
|
}
|
|
18243
18370
|
}
|
|
18371
|
+
else if (discriminatorExportLastCheckpointOnly === 'DISTILLATION') {
|
|
18372
|
+
const fromExportLastCheckpointOnly = getValueByPath(fromObject, [
|
|
18373
|
+
'exportLastCheckpointOnly',
|
|
18374
|
+
]);
|
|
18375
|
+
if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {
|
|
18376
|
+
setValueByPath(parentObject, ['distillationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);
|
|
18377
|
+
}
|
|
18378
|
+
}
|
|
18244
18379
|
let discriminatorAdapterSize = getValueByPath(rootObject, [
|
|
18245
18380
|
'config',
|
|
18246
18381
|
'method',
|
|
@@ -18260,11 +18395,58 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18260
18395
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
18261
18396
|
}
|
|
18262
18397
|
}
|
|
18263
|
-
if (
|
|
18264
|
-
|
|
18398
|
+
else if (discriminatorAdapterSize === 'DISTILLATION') {
|
|
18399
|
+
const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);
|
|
18400
|
+
if (parentObject !== undefined && fromAdapterSize != null) {
|
|
18401
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);
|
|
18402
|
+
}
|
|
18265
18403
|
}
|
|
18266
|
-
|
|
18267
|
-
|
|
18404
|
+
let discriminatorTuningMode = getValueByPath(rootObject, [
|
|
18405
|
+
'config',
|
|
18406
|
+
'method',
|
|
18407
|
+
]);
|
|
18408
|
+
if (discriminatorTuningMode === undefined) {
|
|
18409
|
+
discriminatorTuningMode = 'SUPERVISED_FINE_TUNING';
|
|
18410
|
+
}
|
|
18411
|
+
if (discriminatorTuningMode === 'SUPERVISED_FINE_TUNING') {
|
|
18412
|
+
const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);
|
|
18413
|
+
if (parentObject !== undefined && fromTuningMode != null) {
|
|
18414
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'tuningMode'], fromTuningMode);
|
|
18415
|
+
}
|
|
18416
|
+
}
|
|
18417
|
+
const fromCustomBaseModel = getValueByPath(fromObject, [
|
|
18418
|
+
'customBaseModel',
|
|
18419
|
+
]);
|
|
18420
|
+
if (parentObject !== undefined && fromCustomBaseModel != null) {
|
|
18421
|
+
setValueByPath(parentObject, ['customBaseModel'], fromCustomBaseModel);
|
|
18422
|
+
}
|
|
18423
|
+
let discriminatorBatchSize = getValueByPath(rootObject, [
|
|
18424
|
+
'config',
|
|
18425
|
+
'method',
|
|
18426
|
+
]);
|
|
18427
|
+
if (discriminatorBatchSize === undefined) {
|
|
18428
|
+
discriminatorBatchSize = 'SUPERVISED_FINE_TUNING';
|
|
18429
|
+
}
|
|
18430
|
+
if (discriminatorBatchSize === 'SUPERVISED_FINE_TUNING') {
|
|
18431
|
+
const fromBatchSize = getValueByPath(fromObject, ['batchSize']);
|
|
18432
|
+
if (parentObject !== undefined && fromBatchSize != null) {
|
|
18433
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'batchSize'], fromBatchSize);
|
|
18434
|
+
}
|
|
18435
|
+
}
|
|
18436
|
+
let discriminatorLearningRate = getValueByPath(rootObject, [
|
|
18437
|
+
'config',
|
|
18438
|
+
'method',
|
|
18439
|
+
]);
|
|
18440
|
+
if (discriminatorLearningRate === undefined) {
|
|
18441
|
+
discriminatorLearningRate = 'SUPERVISED_FINE_TUNING';
|
|
18442
|
+
}
|
|
18443
|
+
if (discriminatorLearningRate === 'SUPERVISED_FINE_TUNING') {
|
|
18444
|
+
const fromLearningRate = getValueByPath(fromObject, [
|
|
18445
|
+
'learningRate',
|
|
18446
|
+
]);
|
|
18447
|
+
if (parentObject !== undefined && fromLearningRate != null) {
|
|
18448
|
+
setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'learningRate'], fromLearningRate);
|
|
18449
|
+
}
|
|
18268
18450
|
}
|
|
18269
18451
|
const fromLabels = getValueByPath(fromObject, ['labels']);
|
|
18270
18452
|
if (parentObject !== undefined && fromLabels != null) {
|
|
@@ -18274,6 +18456,28 @@ function createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {
|
|
|
18274
18456
|
if (parentObject !== undefined && fromBeta != null) {
|
|
18275
18457
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'beta'], fromBeta);
|
|
18276
18458
|
}
|
|
18459
|
+
const fromBaseTeacherModel = getValueByPath(fromObject, [
|
|
18460
|
+
'baseTeacherModel',
|
|
18461
|
+
]);
|
|
18462
|
+
if (parentObject !== undefined && fromBaseTeacherModel != null) {
|
|
18463
|
+
setValueByPath(parentObject, ['distillationSpec', 'baseTeacherModel'], fromBaseTeacherModel);
|
|
18464
|
+
}
|
|
18465
|
+
const fromTunedTeacherModelSource = getValueByPath(fromObject, [
|
|
18466
|
+
'tunedTeacherModelSource',
|
|
18467
|
+
]);
|
|
18468
|
+
if (parentObject !== undefined && fromTunedTeacherModelSource != null) {
|
|
18469
|
+
setValueByPath(parentObject, ['distillationSpec', 'tunedTeacherModelSource'], fromTunedTeacherModelSource);
|
|
18470
|
+
}
|
|
18471
|
+
const fromSftLossWeightMultiplier = getValueByPath(fromObject, [
|
|
18472
|
+
'sftLossWeightMultiplier',
|
|
18473
|
+
]);
|
|
18474
|
+
if (parentObject !== undefined && fromSftLossWeightMultiplier != null) {
|
|
18475
|
+
setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'sftLossWeightMultiplier'], fromSftLossWeightMultiplier);
|
|
18476
|
+
}
|
|
18477
|
+
const fromOutputUri = getValueByPath(fromObject, ['outputUri']);
|
|
18478
|
+
if (parentObject !== undefined && fromOutputUri != null) {
|
|
18479
|
+
setValueByPath(parentObject, ['outputUri'], fromOutputUri);
|
|
18480
|
+
}
|
|
18277
18481
|
return toObject;
|
|
18278
18482
|
}
|
|
18279
18483
|
function createTuningJobParametersPrivateToMldev(fromObject, rootObject) {
|
|
@@ -18493,6 +18697,12 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
|
|
|
18493
18697
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromGcsUri);
|
|
18494
18698
|
}
|
|
18495
18699
|
}
|
|
18700
|
+
else if (discriminatorGcsUri === 'DISTILLATION') {
|
|
18701
|
+
const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);
|
|
18702
|
+
if (parentObject !== undefined && fromGcsUri != null) {
|
|
18703
|
+
setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromGcsUri);
|
|
18704
|
+
}
|
|
18705
|
+
}
|
|
18496
18706
|
let discriminatorVertexDatasetResource = getValueByPath(rootObject, [
|
|
18497
18707
|
'config',
|
|
18498
18708
|
'method',
|
|
@@ -18516,6 +18726,14 @@ function tuningDatasetToVertex(fromObject, parentObject, rootObject) {
|
|
|
18516
18726
|
setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromVertexDatasetResource);
|
|
18517
18727
|
}
|
|
18518
18728
|
}
|
|
18729
|
+
else if (discriminatorVertexDatasetResource === 'DISTILLATION') {
|
|
18730
|
+
const fromVertexDatasetResource = getValueByPath(fromObject, [
|
|
18731
|
+
'vertexDatasetResource',
|
|
18732
|
+
]);
|
|
18733
|
+
if (parentObject !== undefined && fromVertexDatasetResource != null) {
|
|
18734
|
+
setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromVertexDatasetResource);
|
|
18735
|
+
}
|
|
18736
|
+
}
|
|
18519
18737
|
if (getValueByPath(fromObject, ['examples']) !== undefined) {
|
|
18520
18738
|
throw new Error('examples parameter is not supported in Vertex AI.');
|
|
18521
18739
|
}
|
|
@@ -18639,6 +18857,12 @@ function tuningJobFromVertex(fromObject, _rootObject) {
|
|
|
18639
18857
|
if (fromPreferenceOptimizationSpec != null) {
|
|
18640
18858
|
setValueByPath(toObject, ['preferenceOptimizationSpec'], fromPreferenceOptimizationSpec);
|
|
18641
18859
|
}
|
|
18860
|
+
const fromDistillationSpec = getValueByPath(fromObject, [
|
|
18861
|
+
'distillationSpec',
|
|
18862
|
+
]);
|
|
18863
|
+
if (fromDistillationSpec != null) {
|
|
18864
|
+
setValueByPath(toObject, ['distillationSpec'], fromDistillationSpec);
|
|
18865
|
+
}
|
|
18642
18866
|
const fromTuningDataStats = getValueByPath(fromObject, [
|
|
18643
18867
|
'tuningDataStats',
|
|
18644
18868
|
]);
|
|
@@ -19237,5 +19461,5 @@ class GoogleGenAI {
|
|
|
19237
19461
|
}
|
|
19238
19462
|
}
|
|
19239
19463
|
|
|
19240
|
-
export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, RawReferenceImage, RecontextImageResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
19464
|
+
export { ActivityHandling, AdapterSize, ApiError, ApiSpec, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EndSensitivity, Environment, FeatureSelectionPreference, FileSource, FileState, Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MediaModality, MediaResolution, Modality, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReplayResponse, ResourceScope, SafetyFilterLevel, Scale, SegmentImageResponse, SegmentMode, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, ThinkingLevel, Tokens, TrafficType, TuningMethod, TuningMode, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };
|
|
19241
19465
|
//# sourceMappingURL=index.mjs.map
|