@adaline/vertex 1.8.0 → 1.9.1
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/index.d.mts +1762 -73
- package/dist/index.d.ts +1762 -73
- package/dist/index.js +97 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -180,6 +180,29 @@ declare const Gemini1_5Flash001Schema: {
|
|
|
180
180
|
title: string;
|
|
181
181
|
description: string;
|
|
182
182
|
objectSchema?: any;
|
|
183
|
+
} | {
|
|
184
|
+
type: "paired-select";
|
|
185
|
+
param: string;
|
|
186
|
+
title: string;
|
|
187
|
+
description: string;
|
|
188
|
+
fields: [{
|
|
189
|
+
label: string;
|
|
190
|
+
key: string;
|
|
191
|
+
choices: {
|
|
192
|
+
value: string;
|
|
193
|
+
label: string;
|
|
194
|
+
}[];
|
|
195
|
+
description?: string | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
label: string;
|
|
198
|
+
key: string;
|
|
199
|
+
choices: {
|
|
200
|
+
value: string;
|
|
201
|
+
label: string;
|
|
202
|
+
}[];
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
}];
|
|
205
|
+
uniqueByField?: string | undefined;
|
|
183
206
|
} | {
|
|
184
207
|
type: "range";
|
|
185
208
|
param: string;
|
|
@@ -368,6 +391,29 @@ declare const Gemini1_5Flash002Schema: {
|
|
|
368
391
|
title: string;
|
|
369
392
|
description: string;
|
|
370
393
|
objectSchema?: any;
|
|
394
|
+
} | {
|
|
395
|
+
type: "paired-select";
|
|
396
|
+
param: string;
|
|
397
|
+
title: string;
|
|
398
|
+
description: string;
|
|
399
|
+
fields: [{
|
|
400
|
+
label: string;
|
|
401
|
+
key: string;
|
|
402
|
+
choices: {
|
|
403
|
+
value: string;
|
|
404
|
+
label: string;
|
|
405
|
+
}[];
|
|
406
|
+
description?: string | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
label: string;
|
|
409
|
+
key: string;
|
|
410
|
+
choices: {
|
|
411
|
+
value: string;
|
|
412
|
+
label: string;
|
|
413
|
+
}[];
|
|
414
|
+
description?: string | undefined;
|
|
415
|
+
}];
|
|
416
|
+
uniqueByField?: string | undefined;
|
|
371
417
|
} | {
|
|
372
418
|
type: "range";
|
|
373
419
|
param: string;
|
|
@@ -675,6 +721,29 @@ declare const Gemini1_5Pro001Schema: {
|
|
|
675
721
|
title: string;
|
|
676
722
|
description: string;
|
|
677
723
|
objectSchema?: any;
|
|
724
|
+
} | {
|
|
725
|
+
type: "paired-select";
|
|
726
|
+
param: string;
|
|
727
|
+
title: string;
|
|
728
|
+
description: string;
|
|
729
|
+
fields: [{
|
|
730
|
+
label: string;
|
|
731
|
+
key: string;
|
|
732
|
+
choices: {
|
|
733
|
+
value: string;
|
|
734
|
+
label: string;
|
|
735
|
+
}[];
|
|
736
|
+
description?: string | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
label: string;
|
|
739
|
+
key: string;
|
|
740
|
+
choices: {
|
|
741
|
+
value: string;
|
|
742
|
+
label: string;
|
|
743
|
+
}[];
|
|
744
|
+
description?: string | undefined;
|
|
745
|
+
}];
|
|
746
|
+
uniqueByField?: string | undefined;
|
|
678
747
|
} | {
|
|
679
748
|
type: "range";
|
|
680
749
|
param: string;
|
|
@@ -863,6 +932,29 @@ declare const Gemini1_5Pro002Schema: {
|
|
|
863
932
|
title: string;
|
|
864
933
|
description: string;
|
|
865
934
|
objectSchema?: any;
|
|
935
|
+
} | {
|
|
936
|
+
type: "paired-select";
|
|
937
|
+
param: string;
|
|
938
|
+
title: string;
|
|
939
|
+
description: string;
|
|
940
|
+
fields: [{
|
|
941
|
+
label: string;
|
|
942
|
+
key: string;
|
|
943
|
+
choices: {
|
|
944
|
+
value: string;
|
|
945
|
+
label: string;
|
|
946
|
+
}[];
|
|
947
|
+
description?: string | undefined;
|
|
948
|
+
}, {
|
|
949
|
+
label: string;
|
|
950
|
+
key: string;
|
|
951
|
+
choices: {
|
|
952
|
+
value: string;
|
|
953
|
+
label: string;
|
|
954
|
+
}[];
|
|
955
|
+
description?: string | undefined;
|
|
956
|
+
}];
|
|
957
|
+
uniqueByField?: string | undefined;
|
|
866
958
|
} | {
|
|
867
959
|
type: "range";
|
|
868
960
|
param: string;
|
|
@@ -1051,6 +1143,29 @@ declare const Gemini1_5ProSchema: {
|
|
|
1051
1143
|
title: string;
|
|
1052
1144
|
description: string;
|
|
1053
1145
|
objectSchema?: any;
|
|
1146
|
+
} | {
|
|
1147
|
+
type: "paired-select";
|
|
1148
|
+
param: string;
|
|
1149
|
+
title: string;
|
|
1150
|
+
description: string;
|
|
1151
|
+
fields: [{
|
|
1152
|
+
label: string;
|
|
1153
|
+
key: string;
|
|
1154
|
+
choices: {
|
|
1155
|
+
value: string;
|
|
1156
|
+
label: string;
|
|
1157
|
+
}[];
|
|
1158
|
+
description?: string | undefined;
|
|
1159
|
+
}, {
|
|
1160
|
+
label: string;
|
|
1161
|
+
key: string;
|
|
1162
|
+
choices: {
|
|
1163
|
+
value: string;
|
|
1164
|
+
label: string;
|
|
1165
|
+
}[];
|
|
1166
|
+
description?: string | undefined;
|
|
1167
|
+
}];
|
|
1168
|
+
uniqueByField?: string | undefined;
|
|
1054
1169
|
} | {
|
|
1055
1170
|
type: "range";
|
|
1056
1171
|
param: string;
|
|
@@ -1195,12 +1310,21 @@ declare class Gemini1_5Pro extends BaseChatModelVertex {
|
|
|
1195
1310
|
constructor(options: Gemini1_5ProOptionsType);
|
|
1196
1311
|
}
|
|
1197
1312
|
|
|
1198
|
-
declare const
|
|
1199
|
-
declare const
|
|
1313
|
+
declare const Gemini1_5FlashLatestLiteral: "gemini-1.5-flash-latest";
|
|
1314
|
+
declare const Gemini1_5FlashLatestSchema: {
|
|
1200
1315
|
readonly price: {
|
|
1201
1316
|
modelName: string;
|
|
1202
1317
|
currency: string;
|
|
1203
|
-
tokenRanges: {
|
|
1318
|
+
tokenRanges: ({
|
|
1319
|
+
minTokens: number;
|
|
1320
|
+
maxTokens: number;
|
|
1321
|
+
prices: {
|
|
1322
|
+
base: {
|
|
1323
|
+
inputPricePerMillion: number;
|
|
1324
|
+
outputPricePerMillion: number;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
} | {
|
|
1204
1328
|
minTokens: number;
|
|
1205
1329
|
maxTokens: null;
|
|
1206
1330
|
prices: {
|
|
@@ -1209,7 +1333,7 @@ declare const Gemini2_0FlashExpSchema: {
|
|
|
1209
1333
|
outputPricePerMillion: number;
|
|
1210
1334
|
};
|
|
1211
1335
|
};
|
|
1212
|
-
}[];
|
|
1336
|
+
})[];
|
|
1213
1337
|
};
|
|
1214
1338
|
readonly description: string;
|
|
1215
1339
|
readonly maxOutputTokens: number;
|
|
@@ -1230,6 +1354,29 @@ declare const Gemini2_0FlashExpSchema: {
|
|
|
1230
1354
|
title: string;
|
|
1231
1355
|
description: string;
|
|
1232
1356
|
objectSchema?: any;
|
|
1357
|
+
} | {
|
|
1358
|
+
type: "paired-select";
|
|
1359
|
+
param: string;
|
|
1360
|
+
title: string;
|
|
1361
|
+
description: string;
|
|
1362
|
+
fields: [{
|
|
1363
|
+
label: string;
|
|
1364
|
+
key: string;
|
|
1365
|
+
choices: {
|
|
1366
|
+
value: string;
|
|
1367
|
+
label: string;
|
|
1368
|
+
}[];
|
|
1369
|
+
description?: string | undefined;
|
|
1370
|
+
}, {
|
|
1371
|
+
label: string;
|
|
1372
|
+
key: string;
|
|
1373
|
+
choices: {
|
|
1374
|
+
value: string;
|
|
1375
|
+
label: string;
|
|
1376
|
+
}[];
|
|
1377
|
+
description?: string | undefined;
|
|
1378
|
+
}];
|
|
1379
|
+
uniqueByField?: string | undefined;
|
|
1233
1380
|
} | {
|
|
1234
1381
|
type: "range";
|
|
1235
1382
|
param: string;
|
|
@@ -1257,7 +1404,7 @@ declare const Gemini2_0FlashExpSchema: {
|
|
|
1257
1404
|
};
|
|
1258
1405
|
readonly maxReasoningTokens?: number | undefined;
|
|
1259
1406
|
};
|
|
1260
|
-
declare const
|
|
1407
|
+
declare const Gemini1_5FlashLatestOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1261
1408
|
authType: z.ZodLiteral<"accessToken">;
|
|
1262
1409
|
accessToken: z.ZodString;
|
|
1263
1410
|
modelName: z.ZodString;
|
|
@@ -1369,14 +1516,106 @@ declare const Gemini2_0FlashExpOptions: z.ZodDiscriminatedUnion<"authType", [z.Z
|
|
|
1369
1516
|
publisher?: string | undefined;
|
|
1370
1517
|
tokenLifetimeHours?: number | undefined;
|
|
1371
1518
|
}>]>;
|
|
1372
|
-
type
|
|
1373
|
-
declare class
|
|
1374
|
-
constructor(options:
|
|
1519
|
+
type Gemini1_5FlashLatestOptionsType = z.infer<typeof Gemini1_5FlashLatestOptions>;
|
|
1520
|
+
declare class Gemini1_5FlashLatest extends BaseChatModelVertex {
|
|
1521
|
+
constructor(options: Gemini1_5FlashLatestOptionsType);
|
|
1375
1522
|
}
|
|
1376
1523
|
|
|
1377
|
-
declare const
|
|
1378
|
-
declare const
|
|
1379
|
-
|
|
1524
|
+
declare const Gemini1_5ProLatestLiteral: "gemini-1.5-pro-latest";
|
|
1525
|
+
declare const Gemini1_5ProLatestSchema: {
|
|
1526
|
+
readonly price: {
|
|
1527
|
+
modelName: string;
|
|
1528
|
+
currency: string;
|
|
1529
|
+
tokenRanges: ({
|
|
1530
|
+
minTokens: number;
|
|
1531
|
+
maxTokens: number;
|
|
1532
|
+
prices: {
|
|
1533
|
+
base: {
|
|
1534
|
+
inputPricePerMillion: number;
|
|
1535
|
+
outputPricePerMillion: number;
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
} | {
|
|
1539
|
+
minTokens: number;
|
|
1540
|
+
maxTokens: null;
|
|
1541
|
+
prices: {
|
|
1542
|
+
base: {
|
|
1543
|
+
inputPricePerMillion: number;
|
|
1544
|
+
outputPricePerMillion: number;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
})[];
|
|
1548
|
+
};
|
|
1549
|
+
readonly description: string;
|
|
1550
|
+
readonly maxOutputTokens: number;
|
|
1551
|
+
readonly name: string;
|
|
1552
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
1553
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
1554
|
+
readonly maxInputTokens: number;
|
|
1555
|
+
readonly config: {
|
|
1556
|
+
def: Record<string, {
|
|
1557
|
+
type: "multi-string";
|
|
1558
|
+
param: string;
|
|
1559
|
+
title: string;
|
|
1560
|
+
description: string;
|
|
1561
|
+
max: number;
|
|
1562
|
+
} | {
|
|
1563
|
+
type: "object-schema";
|
|
1564
|
+
param: string;
|
|
1565
|
+
title: string;
|
|
1566
|
+
description: string;
|
|
1567
|
+
objectSchema?: any;
|
|
1568
|
+
} | {
|
|
1569
|
+
type: "paired-select";
|
|
1570
|
+
param: string;
|
|
1571
|
+
title: string;
|
|
1572
|
+
description: string;
|
|
1573
|
+
fields: [{
|
|
1574
|
+
label: string;
|
|
1575
|
+
key: string;
|
|
1576
|
+
choices: {
|
|
1577
|
+
value: string;
|
|
1578
|
+
label: string;
|
|
1579
|
+
}[];
|
|
1580
|
+
description?: string | undefined;
|
|
1581
|
+
}, {
|
|
1582
|
+
label: string;
|
|
1583
|
+
key: string;
|
|
1584
|
+
choices: {
|
|
1585
|
+
value: string;
|
|
1586
|
+
label: string;
|
|
1587
|
+
}[];
|
|
1588
|
+
description?: string | undefined;
|
|
1589
|
+
}];
|
|
1590
|
+
uniqueByField?: string | undefined;
|
|
1591
|
+
} | {
|
|
1592
|
+
type: "range";
|
|
1593
|
+
param: string;
|
|
1594
|
+
title: string;
|
|
1595
|
+
description: string;
|
|
1596
|
+
max: number;
|
|
1597
|
+
default: number;
|
|
1598
|
+
min: number;
|
|
1599
|
+
step: number;
|
|
1600
|
+
} | {
|
|
1601
|
+
type: "select-boolean";
|
|
1602
|
+
param: string;
|
|
1603
|
+
title: string;
|
|
1604
|
+
description: string;
|
|
1605
|
+
default: boolean | null;
|
|
1606
|
+
} | {
|
|
1607
|
+
type: "select-string";
|
|
1608
|
+
param: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
description: string;
|
|
1611
|
+
default: string;
|
|
1612
|
+
choices: string[];
|
|
1613
|
+
}>;
|
|
1614
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
1615
|
+
};
|
|
1616
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
1617
|
+
};
|
|
1618
|
+
declare const Gemini1_5ProLatestOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1380
1619
|
authType: z.ZodLiteral<"accessToken">;
|
|
1381
1620
|
accessToken: z.ZodString;
|
|
1382
1621
|
modelName: z.ZodString;
|
|
@@ -1488,14 +1727,97 @@ declare const Gemini2_0FlashOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodO
|
|
|
1488
1727
|
publisher?: string | undefined;
|
|
1489
1728
|
tokenLifetimeHours?: number | undefined;
|
|
1490
1729
|
}>]>;
|
|
1491
|
-
type
|
|
1492
|
-
declare class
|
|
1493
|
-
constructor(options:
|
|
1730
|
+
type Gemini1_5ProLatestOptionsType = z.infer<typeof Gemini1_5ProLatestOptions>;
|
|
1731
|
+
declare class Gemini1_5ProLatest extends BaseChatModelVertex {
|
|
1732
|
+
constructor(options: Gemini1_5ProLatestOptionsType);
|
|
1494
1733
|
}
|
|
1495
1734
|
|
|
1496
|
-
declare const
|
|
1497
|
-
declare const
|
|
1498
|
-
|
|
1735
|
+
declare const Gemini2_0FlashExpLiteral: "gemini-2.0-flash-exp";
|
|
1736
|
+
declare const Gemini2_0FlashExpSchema: {
|
|
1737
|
+
readonly price: {
|
|
1738
|
+
modelName: string;
|
|
1739
|
+
currency: string;
|
|
1740
|
+
tokenRanges: {
|
|
1741
|
+
minTokens: number;
|
|
1742
|
+
maxTokens: null;
|
|
1743
|
+
prices: {
|
|
1744
|
+
base: {
|
|
1745
|
+
inputPricePerMillion: number;
|
|
1746
|
+
outputPricePerMillion: number;
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1749
|
+
}[];
|
|
1750
|
+
};
|
|
1751
|
+
readonly description: string;
|
|
1752
|
+
readonly maxOutputTokens: number;
|
|
1753
|
+
readonly name: string;
|
|
1754
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
1755
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
1756
|
+
readonly maxInputTokens: number;
|
|
1757
|
+
readonly config: {
|
|
1758
|
+
def: Record<string, {
|
|
1759
|
+
type: "multi-string";
|
|
1760
|
+
param: string;
|
|
1761
|
+
title: string;
|
|
1762
|
+
description: string;
|
|
1763
|
+
max: number;
|
|
1764
|
+
} | {
|
|
1765
|
+
type: "object-schema";
|
|
1766
|
+
param: string;
|
|
1767
|
+
title: string;
|
|
1768
|
+
description: string;
|
|
1769
|
+
objectSchema?: any;
|
|
1770
|
+
} | {
|
|
1771
|
+
type: "paired-select";
|
|
1772
|
+
param: string;
|
|
1773
|
+
title: string;
|
|
1774
|
+
description: string;
|
|
1775
|
+
fields: [{
|
|
1776
|
+
label: string;
|
|
1777
|
+
key: string;
|
|
1778
|
+
choices: {
|
|
1779
|
+
value: string;
|
|
1780
|
+
label: string;
|
|
1781
|
+
}[];
|
|
1782
|
+
description?: string | undefined;
|
|
1783
|
+
}, {
|
|
1784
|
+
label: string;
|
|
1785
|
+
key: string;
|
|
1786
|
+
choices: {
|
|
1787
|
+
value: string;
|
|
1788
|
+
label: string;
|
|
1789
|
+
}[];
|
|
1790
|
+
description?: string | undefined;
|
|
1791
|
+
}];
|
|
1792
|
+
uniqueByField?: string | undefined;
|
|
1793
|
+
} | {
|
|
1794
|
+
type: "range";
|
|
1795
|
+
param: string;
|
|
1796
|
+
title: string;
|
|
1797
|
+
description: string;
|
|
1798
|
+
max: number;
|
|
1799
|
+
default: number;
|
|
1800
|
+
min: number;
|
|
1801
|
+
step: number;
|
|
1802
|
+
} | {
|
|
1803
|
+
type: "select-boolean";
|
|
1804
|
+
param: string;
|
|
1805
|
+
title: string;
|
|
1806
|
+
description: string;
|
|
1807
|
+
default: boolean | null;
|
|
1808
|
+
} | {
|
|
1809
|
+
type: "select-string";
|
|
1810
|
+
param: string;
|
|
1811
|
+
title: string;
|
|
1812
|
+
description: string;
|
|
1813
|
+
default: string;
|
|
1814
|
+
choices: string[];
|
|
1815
|
+
}>;
|
|
1816
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
1817
|
+
};
|
|
1818
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
1819
|
+
};
|
|
1820
|
+
declare const Gemini2_0FlashExpOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1499
1821
|
authType: z.ZodLiteral<"accessToken">;
|
|
1500
1822
|
accessToken: z.ZodString;
|
|
1501
1823
|
modelName: z.ZodString;
|
|
@@ -1607,12 +1929,15 @@ declare const Gemini2_5FlashLiteOptions: z.ZodDiscriminatedUnion<"authType", [z.
|
|
|
1607
1929
|
publisher?: string | undefined;
|
|
1608
1930
|
tokenLifetimeHours?: number | undefined;
|
|
1609
1931
|
}>]>;
|
|
1610
|
-
type
|
|
1611
|
-
declare class
|
|
1612
|
-
constructor(options:
|
|
1932
|
+
type Gemini2_0FlashExpOptionsType = z.infer<typeof Gemini2_0FlashExpOptions>;
|
|
1933
|
+
declare class Gemini2_0FlashExp extends BaseChatModelVertex {
|
|
1934
|
+
constructor(options: Gemini2_0FlashExpOptionsType);
|
|
1613
1935
|
}
|
|
1614
1936
|
|
|
1615
|
-
declare const
|
|
1937
|
+
declare const Gemini2_0FlashLiteral: "gemini-2.0-flash";
|
|
1938
|
+
declare const Gemini2_0FlashSchema: ChatModelSchemaType;
|
|
1939
|
+
declare const Gemini2_0FlashOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
1940
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
1616
1941
|
accessToken: z.ZodString;
|
|
1617
1942
|
modelName: z.ZodString;
|
|
1618
1943
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1620,6 +1945,7 @@ declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
|
1620
1945
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1621
1946
|
publisher: z.ZodOptional<z.ZodString>;
|
|
1622
1947
|
}, "strip", z.ZodTypeAny, {
|
|
1948
|
+
authType: "accessToken";
|
|
1623
1949
|
accessToken: string;
|
|
1624
1950
|
modelName: string;
|
|
1625
1951
|
baseUrl?: string | undefined;
|
|
@@ -1627,66 +1953,1360 @@ declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
|
1627
1953
|
projectId?: string | undefined;
|
|
1628
1954
|
publisher?: string | undefined;
|
|
1629
1955
|
}, {
|
|
1956
|
+
authType: "accessToken";
|
|
1630
1957
|
accessToken: string;
|
|
1631
1958
|
modelName: string;
|
|
1632
1959
|
baseUrl?: string | undefined;
|
|
1633
1960
|
location?: string | undefined;
|
|
1634
1961
|
projectId?: string | undefined;
|
|
1635
1962
|
publisher?: string | undefined;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1963
|
+
}>, z.ZodObject<{
|
|
1964
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
1965
|
+
serviceAccount: z.ZodObject<{
|
|
1966
|
+
client_email: z.ZodString;
|
|
1967
|
+
private_key: z.ZodString;
|
|
1968
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
1974
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1975
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
1976
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
1977
|
+
}, "strip", z.ZodTypeAny, {
|
|
1978
|
+
client_email: string;
|
|
1979
|
+
private_key: string;
|
|
1980
|
+
type?: string | undefined;
|
|
1981
|
+
project_id?: string | undefined;
|
|
1982
|
+
private_key_id?: string | undefined;
|
|
1983
|
+
client_id?: string | undefined;
|
|
1984
|
+
auth_uri?: string | undefined;
|
|
1985
|
+
token_uri?: string | undefined;
|
|
1986
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1987
|
+
client_x509_cert_url?: string | undefined;
|
|
1988
|
+
universe_domain?: string | undefined;
|
|
1989
|
+
}, {
|
|
1990
|
+
client_email: string;
|
|
1991
|
+
private_key: string;
|
|
1992
|
+
type?: string | undefined;
|
|
1993
|
+
project_id?: string | undefined;
|
|
1994
|
+
private_key_id?: string | undefined;
|
|
1995
|
+
client_id?: string | undefined;
|
|
1996
|
+
auth_uri?: string | undefined;
|
|
1997
|
+
token_uri?: string | undefined;
|
|
1998
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
1999
|
+
client_x509_cert_url?: string | undefined;
|
|
2000
|
+
universe_domain?: string | undefined;
|
|
2001
|
+
}>;
|
|
2002
|
+
modelName: z.ZodString;
|
|
2003
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2008
|
+
}, "strip", z.ZodTypeAny, {
|
|
2009
|
+
authType: "serviceAccount";
|
|
2010
|
+
modelName: string;
|
|
2011
|
+
serviceAccount: {
|
|
2012
|
+
client_email: string;
|
|
2013
|
+
private_key: string;
|
|
2014
|
+
type?: string | undefined;
|
|
2015
|
+
project_id?: string | undefined;
|
|
2016
|
+
private_key_id?: string | undefined;
|
|
2017
|
+
client_id?: string | undefined;
|
|
2018
|
+
auth_uri?: string | undefined;
|
|
2019
|
+
token_uri?: string | undefined;
|
|
2020
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2021
|
+
client_x509_cert_url?: string | undefined;
|
|
2022
|
+
universe_domain?: string | undefined;
|
|
2023
|
+
};
|
|
2024
|
+
tokenLifetimeHours: number;
|
|
2025
|
+
baseUrl?: string | undefined;
|
|
2026
|
+
location?: string | undefined;
|
|
2027
|
+
projectId?: string | undefined;
|
|
2028
|
+
publisher?: string | undefined;
|
|
2029
|
+
}, {
|
|
2030
|
+
authType: "serviceAccount";
|
|
2031
|
+
modelName: string;
|
|
2032
|
+
serviceAccount: {
|
|
2033
|
+
client_email: string;
|
|
2034
|
+
private_key: string;
|
|
2035
|
+
type?: string | undefined;
|
|
2036
|
+
project_id?: string | undefined;
|
|
2037
|
+
private_key_id?: string | undefined;
|
|
2038
|
+
client_id?: string | undefined;
|
|
2039
|
+
auth_uri?: string | undefined;
|
|
2040
|
+
token_uri?: string | undefined;
|
|
2041
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2042
|
+
client_x509_cert_url?: string | undefined;
|
|
2043
|
+
universe_domain?: string | undefined;
|
|
2044
|
+
};
|
|
2045
|
+
baseUrl?: string | undefined;
|
|
2046
|
+
location?: string | undefined;
|
|
2047
|
+
projectId?: string | undefined;
|
|
2048
|
+
publisher?: string | undefined;
|
|
2049
|
+
tokenLifetimeHours?: number | undefined;
|
|
2050
|
+
}>]>;
|
|
2051
|
+
type Gemini2_0FlashOptionsType = z.infer<typeof Gemini2_0FlashOptions>;
|
|
2052
|
+
declare class Gemini2_0Flash extends BaseChatModelVertex {
|
|
2053
|
+
constructor(options: Gemini2_0FlashOptionsType);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
declare const Gemini2_5FlashLiteLiteral: "gemini-2.5-flash-lite";
|
|
2057
|
+
declare const Gemini2_5FlashLiteSchema: ChatModelSchemaType;
|
|
2058
|
+
declare const Gemini2_5FlashLiteOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
2059
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
2060
|
+
accessToken: z.ZodString;
|
|
2061
|
+
modelName: z.ZodString;
|
|
2062
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2063
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
}, "strip", z.ZodTypeAny, {
|
|
2067
|
+
authType: "accessToken";
|
|
2068
|
+
accessToken: string;
|
|
2069
|
+
modelName: string;
|
|
2070
|
+
baseUrl?: string | undefined;
|
|
2071
|
+
location?: string | undefined;
|
|
2072
|
+
projectId?: string | undefined;
|
|
2073
|
+
publisher?: string | undefined;
|
|
2074
|
+
}, {
|
|
2075
|
+
authType: "accessToken";
|
|
2076
|
+
accessToken: string;
|
|
2077
|
+
modelName: string;
|
|
2078
|
+
baseUrl?: string | undefined;
|
|
2079
|
+
location?: string | undefined;
|
|
2080
|
+
projectId?: string | undefined;
|
|
2081
|
+
publisher?: string | undefined;
|
|
2082
|
+
}>, z.ZodObject<{
|
|
2083
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
2084
|
+
serviceAccount: z.ZodObject<{
|
|
2085
|
+
client_email: z.ZodString;
|
|
2086
|
+
private_key: z.ZodString;
|
|
2087
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2088
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
2089
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
2092
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
2093
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2095
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
2096
|
+
}, "strip", z.ZodTypeAny, {
|
|
2097
|
+
client_email: string;
|
|
2098
|
+
private_key: string;
|
|
2099
|
+
type?: string | undefined;
|
|
2100
|
+
project_id?: string | undefined;
|
|
2101
|
+
private_key_id?: string | undefined;
|
|
2102
|
+
client_id?: string | undefined;
|
|
2103
|
+
auth_uri?: string | undefined;
|
|
2104
|
+
token_uri?: string | undefined;
|
|
2105
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2106
|
+
client_x509_cert_url?: string | undefined;
|
|
2107
|
+
universe_domain?: string | undefined;
|
|
2108
|
+
}, {
|
|
2109
|
+
client_email: string;
|
|
2110
|
+
private_key: string;
|
|
2111
|
+
type?: string | undefined;
|
|
2112
|
+
project_id?: string | undefined;
|
|
2113
|
+
private_key_id?: string | undefined;
|
|
2114
|
+
client_id?: string | undefined;
|
|
2115
|
+
auth_uri?: string | undefined;
|
|
2116
|
+
token_uri?: string | undefined;
|
|
2117
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2118
|
+
client_x509_cert_url?: string | undefined;
|
|
2119
|
+
universe_domain?: string | undefined;
|
|
2120
|
+
}>;
|
|
2121
|
+
modelName: z.ZodString;
|
|
2122
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2126
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2127
|
+
}, "strip", z.ZodTypeAny, {
|
|
2128
|
+
authType: "serviceAccount";
|
|
2129
|
+
modelName: string;
|
|
2130
|
+
serviceAccount: {
|
|
2131
|
+
client_email: string;
|
|
2132
|
+
private_key: string;
|
|
2133
|
+
type?: string | undefined;
|
|
2134
|
+
project_id?: string | undefined;
|
|
2135
|
+
private_key_id?: string | undefined;
|
|
2136
|
+
client_id?: string | undefined;
|
|
2137
|
+
auth_uri?: string | undefined;
|
|
2138
|
+
token_uri?: string | undefined;
|
|
2139
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2140
|
+
client_x509_cert_url?: string | undefined;
|
|
2141
|
+
universe_domain?: string | undefined;
|
|
2142
|
+
};
|
|
2143
|
+
tokenLifetimeHours: number;
|
|
2144
|
+
baseUrl?: string | undefined;
|
|
2145
|
+
location?: string | undefined;
|
|
2146
|
+
projectId?: string | undefined;
|
|
2147
|
+
publisher?: string | undefined;
|
|
2148
|
+
}, {
|
|
2149
|
+
authType: "serviceAccount";
|
|
2150
|
+
modelName: string;
|
|
2151
|
+
serviceAccount: {
|
|
2152
|
+
client_email: string;
|
|
2153
|
+
private_key: string;
|
|
2154
|
+
type?: string | undefined;
|
|
2155
|
+
project_id?: string | undefined;
|
|
2156
|
+
private_key_id?: string | undefined;
|
|
2157
|
+
client_id?: string | undefined;
|
|
2158
|
+
auth_uri?: string | undefined;
|
|
2159
|
+
token_uri?: string | undefined;
|
|
2160
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2161
|
+
client_x509_cert_url?: string | undefined;
|
|
2162
|
+
universe_domain?: string | undefined;
|
|
2163
|
+
};
|
|
2164
|
+
baseUrl?: string | undefined;
|
|
2165
|
+
location?: string | undefined;
|
|
2166
|
+
projectId?: string | undefined;
|
|
2167
|
+
publisher?: string | undefined;
|
|
2168
|
+
tokenLifetimeHours?: number | undefined;
|
|
2169
|
+
}>]>;
|
|
2170
|
+
type Gemini2_5FlashLiteOptionsType = z.infer<typeof Gemini2_5FlashLiteOptions>;
|
|
2171
|
+
declare class Gemini2_5FlashLite extends BaseChatModelVertex {
|
|
2172
|
+
constructor(options: Gemini2_5FlashLiteOptionsType);
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
declare const Gemini2_5FlashPreview0417Literal: "gemini-2.5-flash-preview-04-17";
|
|
2176
|
+
declare const Gemini2_5FlashPreview0417Schema: {
|
|
2177
|
+
readonly price: {
|
|
2178
|
+
modelName: string;
|
|
2179
|
+
currency: string;
|
|
2180
|
+
tokenRanges: {
|
|
2181
|
+
minTokens: number;
|
|
2182
|
+
maxTokens: null;
|
|
2183
|
+
prices: {
|
|
2184
|
+
base: {
|
|
2185
|
+
inputPricePerMillion: number;
|
|
2186
|
+
outputPricePerMillion: number;
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
}[];
|
|
2190
|
+
};
|
|
2191
|
+
readonly description: string;
|
|
2192
|
+
readonly maxOutputTokens: number;
|
|
2193
|
+
readonly name: string;
|
|
2194
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2195
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
2196
|
+
readonly maxInputTokens: number;
|
|
2197
|
+
readonly config: {
|
|
2198
|
+
def: Record<string, {
|
|
2199
|
+
type: "multi-string";
|
|
2200
|
+
param: string;
|
|
2201
|
+
title: string;
|
|
2202
|
+
description: string;
|
|
2203
|
+
max: number;
|
|
2204
|
+
} | {
|
|
2205
|
+
type: "object-schema";
|
|
2206
|
+
param: string;
|
|
2207
|
+
title: string;
|
|
2208
|
+
description: string;
|
|
2209
|
+
objectSchema?: any;
|
|
2210
|
+
} | {
|
|
2211
|
+
type: "paired-select";
|
|
2212
|
+
param: string;
|
|
2213
|
+
title: string;
|
|
2214
|
+
description: string;
|
|
2215
|
+
fields: [{
|
|
2216
|
+
label: string;
|
|
2217
|
+
key: string;
|
|
2218
|
+
choices: {
|
|
2219
|
+
value: string;
|
|
2220
|
+
label: string;
|
|
2221
|
+
}[];
|
|
2222
|
+
description?: string | undefined;
|
|
2223
|
+
}, {
|
|
2224
|
+
label: string;
|
|
2225
|
+
key: string;
|
|
2226
|
+
choices: {
|
|
2227
|
+
value: string;
|
|
2228
|
+
label: string;
|
|
2229
|
+
}[];
|
|
2230
|
+
description?: string | undefined;
|
|
2231
|
+
}];
|
|
2232
|
+
uniqueByField?: string | undefined;
|
|
2233
|
+
} | {
|
|
2234
|
+
type: "range";
|
|
2235
|
+
param: string;
|
|
2236
|
+
title: string;
|
|
2237
|
+
description: string;
|
|
2238
|
+
max: number;
|
|
2239
|
+
default: number;
|
|
2240
|
+
min: number;
|
|
2241
|
+
step: number;
|
|
2242
|
+
} | {
|
|
2243
|
+
type: "select-boolean";
|
|
2244
|
+
param: string;
|
|
2245
|
+
title: string;
|
|
2246
|
+
description: string;
|
|
2247
|
+
default: boolean | null;
|
|
2248
|
+
} | {
|
|
2249
|
+
type: "select-string";
|
|
2250
|
+
param: string;
|
|
2251
|
+
title: string;
|
|
2252
|
+
description: string;
|
|
2253
|
+
default: string;
|
|
2254
|
+
choices: string[];
|
|
2255
|
+
}>;
|
|
2256
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2257
|
+
};
|
|
2258
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
2259
|
+
};
|
|
2260
|
+
declare const Gemini2_5FlashPreview0417Options: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
2261
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
2262
|
+
accessToken: z.ZodString;
|
|
2263
|
+
modelName: z.ZodString;
|
|
2264
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2267
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2268
|
+
}, "strip", z.ZodTypeAny, {
|
|
2269
|
+
authType: "accessToken";
|
|
2270
|
+
accessToken: string;
|
|
2271
|
+
modelName: string;
|
|
2272
|
+
baseUrl?: string | undefined;
|
|
2273
|
+
location?: string | undefined;
|
|
2274
|
+
projectId?: string | undefined;
|
|
2275
|
+
publisher?: string | undefined;
|
|
2276
|
+
}, {
|
|
2277
|
+
authType: "accessToken";
|
|
2278
|
+
accessToken: string;
|
|
2279
|
+
modelName: string;
|
|
2280
|
+
baseUrl?: string | undefined;
|
|
2281
|
+
location?: string | undefined;
|
|
2282
|
+
projectId?: string | undefined;
|
|
2283
|
+
publisher?: string | undefined;
|
|
2284
|
+
}>, z.ZodObject<{
|
|
2285
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
2286
|
+
serviceAccount: z.ZodObject<{
|
|
2287
|
+
client_email: z.ZodString;
|
|
2288
|
+
private_key: z.ZodString;
|
|
2289
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
2291
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
2295
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2296
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
2298
|
+
}, "strip", z.ZodTypeAny, {
|
|
2299
|
+
client_email: string;
|
|
2300
|
+
private_key: string;
|
|
2301
|
+
type?: string | undefined;
|
|
2302
|
+
project_id?: string | undefined;
|
|
2303
|
+
private_key_id?: string | undefined;
|
|
2304
|
+
client_id?: string | undefined;
|
|
2305
|
+
auth_uri?: string | undefined;
|
|
2306
|
+
token_uri?: string | undefined;
|
|
2307
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2308
|
+
client_x509_cert_url?: string | undefined;
|
|
2309
|
+
universe_domain?: string | undefined;
|
|
2310
|
+
}, {
|
|
2311
|
+
client_email: string;
|
|
2312
|
+
private_key: string;
|
|
2313
|
+
type?: string | undefined;
|
|
2314
|
+
project_id?: string | undefined;
|
|
2315
|
+
private_key_id?: string | undefined;
|
|
2316
|
+
client_id?: string | undefined;
|
|
2317
|
+
auth_uri?: string | undefined;
|
|
2318
|
+
token_uri?: string | undefined;
|
|
2319
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2320
|
+
client_x509_cert_url?: string | undefined;
|
|
2321
|
+
universe_domain?: string | undefined;
|
|
2322
|
+
}>;
|
|
2323
|
+
modelName: z.ZodString;
|
|
2324
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2325
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2326
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2327
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2328
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2329
|
+
}, "strip", z.ZodTypeAny, {
|
|
2330
|
+
authType: "serviceAccount";
|
|
2331
|
+
modelName: string;
|
|
2332
|
+
serviceAccount: {
|
|
2333
|
+
client_email: string;
|
|
2334
|
+
private_key: string;
|
|
2335
|
+
type?: string | undefined;
|
|
2336
|
+
project_id?: string | undefined;
|
|
2337
|
+
private_key_id?: string | undefined;
|
|
2338
|
+
client_id?: string | undefined;
|
|
2339
|
+
auth_uri?: string | undefined;
|
|
2340
|
+
token_uri?: string | undefined;
|
|
2341
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2342
|
+
client_x509_cert_url?: string | undefined;
|
|
2343
|
+
universe_domain?: string | undefined;
|
|
2344
|
+
};
|
|
2345
|
+
tokenLifetimeHours: number;
|
|
2346
|
+
baseUrl?: string | undefined;
|
|
2347
|
+
location?: string | undefined;
|
|
2348
|
+
projectId?: string | undefined;
|
|
2349
|
+
publisher?: string | undefined;
|
|
2350
|
+
}, {
|
|
2351
|
+
authType: "serviceAccount";
|
|
2352
|
+
modelName: string;
|
|
2353
|
+
serviceAccount: {
|
|
2354
|
+
client_email: string;
|
|
2355
|
+
private_key: string;
|
|
2356
|
+
type?: string | undefined;
|
|
2357
|
+
project_id?: string | undefined;
|
|
2358
|
+
private_key_id?: string | undefined;
|
|
2359
|
+
client_id?: string | undefined;
|
|
2360
|
+
auth_uri?: string | undefined;
|
|
2361
|
+
token_uri?: string | undefined;
|
|
2362
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2363
|
+
client_x509_cert_url?: string | undefined;
|
|
2364
|
+
universe_domain?: string | undefined;
|
|
2365
|
+
};
|
|
2366
|
+
baseUrl?: string | undefined;
|
|
2367
|
+
location?: string | undefined;
|
|
2368
|
+
projectId?: string | undefined;
|
|
2369
|
+
publisher?: string | undefined;
|
|
2370
|
+
tokenLifetimeHours?: number | undefined;
|
|
2371
|
+
}>]>;
|
|
2372
|
+
type Gemini2_5FlashPreview0417OptionsType = z.infer<typeof Gemini2_5FlashPreview0417Options>;
|
|
2373
|
+
declare class Gemini2_5FlashPreview0417 extends BaseChatModelVertex {
|
|
2374
|
+
constructor(options: Gemini2_5FlashPreview0417OptionsType);
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
declare const Gemini2_5FlashLiteral: "gemini-2.5-flash";
|
|
2378
|
+
declare const Gemini2_5FlashSchema: {
|
|
2379
|
+
readonly price: {
|
|
2380
|
+
modelName: string;
|
|
2381
|
+
currency: string;
|
|
2382
|
+
tokenRanges: {
|
|
2383
|
+
minTokens: number;
|
|
2384
|
+
maxTokens: null;
|
|
2385
|
+
prices: {
|
|
2386
|
+
base: {
|
|
2387
|
+
inputPricePerMillion: number;
|
|
2388
|
+
outputPricePerMillion: number;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
}[];
|
|
2392
|
+
};
|
|
2393
|
+
readonly description: string;
|
|
2394
|
+
readonly maxOutputTokens: number;
|
|
2395
|
+
readonly name: string;
|
|
2396
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2397
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
2398
|
+
readonly maxInputTokens: number;
|
|
2399
|
+
readonly config: {
|
|
2400
|
+
def: Record<string, {
|
|
2401
|
+
type: "multi-string";
|
|
2402
|
+
param: string;
|
|
2403
|
+
title: string;
|
|
2404
|
+
description: string;
|
|
2405
|
+
max: number;
|
|
2406
|
+
} | {
|
|
2407
|
+
type: "object-schema";
|
|
2408
|
+
param: string;
|
|
2409
|
+
title: string;
|
|
2410
|
+
description: string;
|
|
2411
|
+
objectSchema?: any;
|
|
2412
|
+
} | {
|
|
2413
|
+
type: "paired-select";
|
|
2414
|
+
param: string;
|
|
2415
|
+
title: string;
|
|
2416
|
+
description: string;
|
|
2417
|
+
fields: [{
|
|
2418
|
+
label: string;
|
|
2419
|
+
key: string;
|
|
2420
|
+
choices: {
|
|
2421
|
+
value: string;
|
|
2422
|
+
label: string;
|
|
2423
|
+
}[];
|
|
2424
|
+
description?: string | undefined;
|
|
2425
|
+
}, {
|
|
2426
|
+
label: string;
|
|
2427
|
+
key: string;
|
|
2428
|
+
choices: {
|
|
2429
|
+
value: string;
|
|
2430
|
+
label: string;
|
|
2431
|
+
}[];
|
|
2432
|
+
description?: string | undefined;
|
|
2433
|
+
}];
|
|
2434
|
+
uniqueByField?: string | undefined;
|
|
2435
|
+
} | {
|
|
2436
|
+
type: "range";
|
|
2437
|
+
param: string;
|
|
2438
|
+
title: string;
|
|
2439
|
+
description: string;
|
|
2440
|
+
max: number;
|
|
2441
|
+
default: number;
|
|
2442
|
+
min: number;
|
|
2443
|
+
step: number;
|
|
2444
|
+
} | {
|
|
2445
|
+
type: "select-boolean";
|
|
2446
|
+
param: string;
|
|
2447
|
+
title: string;
|
|
2448
|
+
description: string;
|
|
2449
|
+
default: boolean | null;
|
|
2450
|
+
} | {
|
|
2451
|
+
type: "select-string";
|
|
2452
|
+
param: string;
|
|
2453
|
+
title: string;
|
|
2454
|
+
description: string;
|
|
2455
|
+
default: string;
|
|
2456
|
+
choices: string[];
|
|
2457
|
+
}>;
|
|
2458
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2459
|
+
};
|
|
2460
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
declare const Gemini2_5FlashOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
2463
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
2464
|
+
accessToken: z.ZodString;
|
|
2465
|
+
modelName: z.ZodString;
|
|
2466
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2467
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2468
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2469
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
}, "strip", z.ZodTypeAny, {
|
|
2471
|
+
authType: "accessToken";
|
|
2472
|
+
accessToken: string;
|
|
2473
|
+
modelName: string;
|
|
2474
|
+
baseUrl?: string | undefined;
|
|
2475
|
+
location?: string | undefined;
|
|
2476
|
+
projectId?: string | undefined;
|
|
2477
|
+
publisher?: string | undefined;
|
|
2478
|
+
}, {
|
|
2479
|
+
authType: "accessToken";
|
|
2480
|
+
accessToken: string;
|
|
2481
|
+
modelName: string;
|
|
2482
|
+
baseUrl?: string | undefined;
|
|
2483
|
+
location?: string | undefined;
|
|
2484
|
+
projectId?: string | undefined;
|
|
2485
|
+
publisher?: string | undefined;
|
|
2486
|
+
}>, z.ZodObject<{
|
|
2487
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
2488
|
+
serviceAccount: z.ZodObject<{
|
|
2489
|
+
client_email: z.ZodString;
|
|
2490
|
+
private_key: z.ZodString;
|
|
2491
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2492
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
2493
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
2494
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2495
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
2496
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
2497
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
2500
|
+
}, "strip", z.ZodTypeAny, {
|
|
2501
|
+
client_email: string;
|
|
2502
|
+
private_key: string;
|
|
2503
|
+
type?: string | undefined;
|
|
2504
|
+
project_id?: string | undefined;
|
|
2505
|
+
private_key_id?: string | undefined;
|
|
2506
|
+
client_id?: string | undefined;
|
|
2507
|
+
auth_uri?: string | undefined;
|
|
2508
|
+
token_uri?: string | undefined;
|
|
2509
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2510
|
+
client_x509_cert_url?: string | undefined;
|
|
2511
|
+
universe_domain?: string | undefined;
|
|
2512
|
+
}, {
|
|
2513
|
+
client_email: string;
|
|
2514
|
+
private_key: string;
|
|
2515
|
+
type?: string | undefined;
|
|
2516
|
+
project_id?: string | undefined;
|
|
2517
|
+
private_key_id?: string | undefined;
|
|
2518
|
+
client_id?: string | undefined;
|
|
2519
|
+
auth_uri?: string | undefined;
|
|
2520
|
+
token_uri?: string | undefined;
|
|
2521
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2522
|
+
client_x509_cert_url?: string | undefined;
|
|
2523
|
+
universe_domain?: string | undefined;
|
|
2524
|
+
}>;
|
|
2525
|
+
modelName: z.ZodString;
|
|
2526
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2529
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2530
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2531
|
+
}, "strip", z.ZodTypeAny, {
|
|
2532
|
+
authType: "serviceAccount";
|
|
2533
|
+
modelName: string;
|
|
2534
|
+
serviceAccount: {
|
|
2535
|
+
client_email: string;
|
|
2536
|
+
private_key: string;
|
|
2537
|
+
type?: string | undefined;
|
|
2538
|
+
project_id?: string | undefined;
|
|
2539
|
+
private_key_id?: string | undefined;
|
|
2540
|
+
client_id?: string | undefined;
|
|
2541
|
+
auth_uri?: string | undefined;
|
|
2542
|
+
token_uri?: string | undefined;
|
|
2543
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2544
|
+
client_x509_cert_url?: string | undefined;
|
|
2545
|
+
universe_domain?: string | undefined;
|
|
2546
|
+
};
|
|
2547
|
+
tokenLifetimeHours: number;
|
|
2548
|
+
baseUrl?: string | undefined;
|
|
2549
|
+
location?: string | undefined;
|
|
2550
|
+
projectId?: string | undefined;
|
|
2551
|
+
publisher?: string | undefined;
|
|
2552
|
+
}, {
|
|
2553
|
+
authType: "serviceAccount";
|
|
2554
|
+
modelName: string;
|
|
2555
|
+
serviceAccount: {
|
|
2556
|
+
client_email: string;
|
|
2557
|
+
private_key: string;
|
|
2558
|
+
type?: string | undefined;
|
|
2559
|
+
project_id?: string | undefined;
|
|
2560
|
+
private_key_id?: string | undefined;
|
|
2561
|
+
client_id?: string | undefined;
|
|
2562
|
+
auth_uri?: string | undefined;
|
|
2563
|
+
token_uri?: string | undefined;
|
|
2564
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2565
|
+
client_x509_cert_url?: string | undefined;
|
|
2566
|
+
universe_domain?: string | undefined;
|
|
2567
|
+
};
|
|
2568
|
+
baseUrl?: string | undefined;
|
|
2569
|
+
location?: string | undefined;
|
|
2570
|
+
projectId?: string | undefined;
|
|
2571
|
+
publisher?: string | undefined;
|
|
2572
|
+
tokenLifetimeHours?: number | undefined;
|
|
2573
|
+
}>]>;
|
|
2574
|
+
type Gemini2_5FlashOptionsType = z.infer<typeof Gemini2_5FlashOptions>;
|
|
2575
|
+
declare class Gemini2_5Flash extends BaseChatModelVertex {
|
|
2576
|
+
constructor(options: Gemini2_5FlashOptionsType);
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
declare const Gemini2_5ProPreview0325Literal: "gemini-2.5-pro-preview-03-25";
|
|
2580
|
+
declare const Gemini2_5ProPreview0325Schema: {
|
|
2581
|
+
readonly price: {
|
|
2582
|
+
modelName: string;
|
|
2583
|
+
currency: string;
|
|
2584
|
+
tokenRanges: ({
|
|
2585
|
+
minTokens: number;
|
|
2586
|
+
maxTokens: number;
|
|
2587
|
+
prices: {
|
|
2588
|
+
base: {
|
|
2589
|
+
inputPricePerMillion: number;
|
|
2590
|
+
outputPricePerMillion: number;
|
|
2591
|
+
};
|
|
2592
|
+
};
|
|
2593
|
+
} | {
|
|
2594
|
+
minTokens: number;
|
|
2595
|
+
maxTokens: null;
|
|
2596
|
+
prices: {
|
|
2597
|
+
base: {
|
|
2598
|
+
inputPricePerMillion: number;
|
|
2599
|
+
outputPricePerMillion: number;
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
})[];
|
|
2603
|
+
};
|
|
2604
|
+
readonly description: string;
|
|
2605
|
+
readonly maxOutputTokens: number;
|
|
2606
|
+
readonly name: string;
|
|
2607
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2608
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
2609
|
+
readonly maxInputTokens: number;
|
|
2610
|
+
readonly config: {
|
|
2611
|
+
def: Record<string, {
|
|
2612
|
+
type: "multi-string";
|
|
2613
|
+
param: string;
|
|
2614
|
+
title: string;
|
|
2615
|
+
description: string;
|
|
2616
|
+
max: number;
|
|
2617
|
+
} | {
|
|
2618
|
+
type: "object-schema";
|
|
2619
|
+
param: string;
|
|
2620
|
+
title: string;
|
|
2621
|
+
description: string;
|
|
2622
|
+
objectSchema?: any;
|
|
2623
|
+
} | {
|
|
2624
|
+
type: "paired-select";
|
|
2625
|
+
param: string;
|
|
2626
|
+
title: string;
|
|
2627
|
+
description: string;
|
|
2628
|
+
fields: [{
|
|
2629
|
+
label: string;
|
|
2630
|
+
key: string;
|
|
2631
|
+
choices: {
|
|
2632
|
+
value: string;
|
|
2633
|
+
label: string;
|
|
2634
|
+
}[];
|
|
2635
|
+
description?: string | undefined;
|
|
2636
|
+
}, {
|
|
2637
|
+
label: string;
|
|
2638
|
+
key: string;
|
|
2639
|
+
choices: {
|
|
2640
|
+
value: string;
|
|
2641
|
+
label: string;
|
|
2642
|
+
}[];
|
|
2643
|
+
description?: string | undefined;
|
|
2644
|
+
}];
|
|
2645
|
+
uniqueByField?: string | undefined;
|
|
2646
|
+
} | {
|
|
2647
|
+
type: "range";
|
|
2648
|
+
param: string;
|
|
2649
|
+
title: string;
|
|
2650
|
+
description: string;
|
|
2651
|
+
max: number;
|
|
2652
|
+
default: number;
|
|
2653
|
+
min: number;
|
|
2654
|
+
step: number;
|
|
2655
|
+
} | {
|
|
2656
|
+
type: "select-boolean";
|
|
2657
|
+
param: string;
|
|
2658
|
+
title: string;
|
|
2659
|
+
description: string;
|
|
2660
|
+
default: boolean | null;
|
|
2661
|
+
} | {
|
|
2662
|
+
type: "select-string";
|
|
2663
|
+
param: string;
|
|
2664
|
+
title: string;
|
|
2665
|
+
description: string;
|
|
2666
|
+
default: string;
|
|
2667
|
+
choices: string[];
|
|
2668
|
+
}>;
|
|
2669
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2670
|
+
};
|
|
2671
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
2672
|
+
};
|
|
2673
|
+
declare const Gemini2_5ProPreview0325Options: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
2674
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
2675
|
+
accessToken: z.ZodString;
|
|
2676
|
+
modelName: z.ZodString;
|
|
2677
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2678
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2679
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2680
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2681
|
+
}, "strip", z.ZodTypeAny, {
|
|
2682
|
+
authType: "accessToken";
|
|
2683
|
+
accessToken: string;
|
|
2684
|
+
modelName: string;
|
|
2685
|
+
baseUrl?: string | undefined;
|
|
2686
|
+
location?: string | undefined;
|
|
2687
|
+
projectId?: string | undefined;
|
|
2688
|
+
publisher?: string | undefined;
|
|
2689
|
+
}, {
|
|
2690
|
+
authType: "accessToken";
|
|
2691
|
+
accessToken: string;
|
|
2692
|
+
modelName: string;
|
|
2693
|
+
baseUrl?: string | undefined;
|
|
2694
|
+
location?: string | undefined;
|
|
2695
|
+
projectId?: string | undefined;
|
|
2696
|
+
publisher?: string | undefined;
|
|
2697
|
+
}>, z.ZodObject<{
|
|
2698
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
2699
|
+
serviceAccount: z.ZodObject<{
|
|
2700
|
+
client_email: z.ZodString;
|
|
2701
|
+
private_key: z.ZodString;
|
|
2702
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
2704
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
2705
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2706
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
2707
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
2708
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2709
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2710
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
2711
|
+
}, "strip", z.ZodTypeAny, {
|
|
2712
|
+
client_email: string;
|
|
2713
|
+
private_key: string;
|
|
2714
|
+
type?: string | undefined;
|
|
2715
|
+
project_id?: string | undefined;
|
|
2716
|
+
private_key_id?: string | undefined;
|
|
2717
|
+
client_id?: string | undefined;
|
|
2718
|
+
auth_uri?: string | undefined;
|
|
2719
|
+
token_uri?: string | undefined;
|
|
2720
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2721
|
+
client_x509_cert_url?: string | undefined;
|
|
2722
|
+
universe_domain?: string | undefined;
|
|
2723
|
+
}, {
|
|
2724
|
+
client_email: string;
|
|
2725
|
+
private_key: string;
|
|
2726
|
+
type?: string | undefined;
|
|
2727
|
+
project_id?: string | undefined;
|
|
2728
|
+
private_key_id?: string | undefined;
|
|
2729
|
+
client_id?: string | undefined;
|
|
2730
|
+
auth_uri?: string | undefined;
|
|
2731
|
+
token_uri?: string | undefined;
|
|
2732
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2733
|
+
client_x509_cert_url?: string | undefined;
|
|
2734
|
+
universe_domain?: string | undefined;
|
|
2735
|
+
}>;
|
|
2736
|
+
modelName: z.ZodString;
|
|
2737
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2738
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2739
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2742
|
+
}, "strip", z.ZodTypeAny, {
|
|
2743
|
+
authType: "serviceAccount";
|
|
2744
|
+
modelName: string;
|
|
2745
|
+
serviceAccount: {
|
|
2746
|
+
client_email: string;
|
|
2747
|
+
private_key: string;
|
|
2748
|
+
type?: string | undefined;
|
|
2749
|
+
project_id?: string | undefined;
|
|
2750
|
+
private_key_id?: string | undefined;
|
|
2751
|
+
client_id?: string | undefined;
|
|
2752
|
+
auth_uri?: string | undefined;
|
|
2753
|
+
token_uri?: string | undefined;
|
|
2754
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2755
|
+
client_x509_cert_url?: string | undefined;
|
|
2756
|
+
universe_domain?: string | undefined;
|
|
2757
|
+
};
|
|
2758
|
+
tokenLifetimeHours: number;
|
|
2759
|
+
baseUrl?: string | undefined;
|
|
2760
|
+
location?: string | undefined;
|
|
2761
|
+
projectId?: string | undefined;
|
|
2762
|
+
publisher?: string | undefined;
|
|
2763
|
+
}, {
|
|
2764
|
+
authType: "serviceAccount";
|
|
2765
|
+
modelName: string;
|
|
2766
|
+
serviceAccount: {
|
|
2767
|
+
client_email: string;
|
|
2768
|
+
private_key: string;
|
|
2769
|
+
type?: string | undefined;
|
|
2770
|
+
project_id?: string | undefined;
|
|
2771
|
+
private_key_id?: string | undefined;
|
|
2772
|
+
client_id?: string | undefined;
|
|
2773
|
+
auth_uri?: string | undefined;
|
|
2774
|
+
token_uri?: string | undefined;
|
|
2775
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2776
|
+
client_x509_cert_url?: string | undefined;
|
|
2777
|
+
universe_domain?: string | undefined;
|
|
2778
|
+
};
|
|
2779
|
+
baseUrl?: string | undefined;
|
|
2780
|
+
location?: string | undefined;
|
|
2781
|
+
projectId?: string | undefined;
|
|
2782
|
+
publisher?: string | undefined;
|
|
2783
|
+
tokenLifetimeHours?: number | undefined;
|
|
2784
|
+
}>]>;
|
|
2785
|
+
type Gemini2_5ProPreview0325OptionsType = z.infer<typeof Gemini2_5ProPreview0325Options>;
|
|
2786
|
+
declare class Gemini2_5ProPreview0325 extends BaseChatModelVertex {
|
|
2787
|
+
constructor(options: Gemini2_5ProPreview0325OptionsType);
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
declare const Gemini2_5ProLiteral: "gemini-2.5-pro";
|
|
2791
|
+
declare const Gemini2_5ProSchema: {
|
|
2792
|
+
readonly price: {
|
|
2793
|
+
modelName: string;
|
|
2794
|
+
currency: string;
|
|
2795
|
+
tokenRanges: ({
|
|
2796
|
+
minTokens: number;
|
|
2797
|
+
maxTokens: number;
|
|
2798
|
+
prices: {
|
|
2799
|
+
base: {
|
|
2800
|
+
inputPricePerMillion: number;
|
|
2801
|
+
outputPricePerMillion: number;
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
} | {
|
|
2805
|
+
minTokens: number;
|
|
2806
|
+
maxTokens: null;
|
|
2807
|
+
prices: {
|
|
2808
|
+
base: {
|
|
2809
|
+
inputPricePerMillion: number;
|
|
2810
|
+
outputPricePerMillion: number;
|
|
2811
|
+
};
|
|
2812
|
+
};
|
|
2813
|
+
})[];
|
|
2814
|
+
};
|
|
2815
|
+
readonly description: string;
|
|
2816
|
+
readonly maxOutputTokens: number;
|
|
2817
|
+
readonly name: string;
|
|
2818
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2819
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
2820
|
+
readonly maxInputTokens: number;
|
|
2821
|
+
readonly config: {
|
|
2822
|
+
def: Record<string, {
|
|
2823
|
+
type: "multi-string";
|
|
2824
|
+
param: string;
|
|
2825
|
+
title: string;
|
|
2826
|
+
description: string;
|
|
2827
|
+
max: number;
|
|
2828
|
+
} | {
|
|
2829
|
+
type: "object-schema";
|
|
2830
|
+
param: string;
|
|
2831
|
+
title: string;
|
|
2832
|
+
description: string;
|
|
2833
|
+
objectSchema?: any;
|
|
2834
|
+
} | {
|
|
2835
|
+
type: "paired-select";
|
|
2836
|
+
param: string;
|
|
2837
|
+
title: string;
|
|
2838
|
+
description: string;
|
|
2839
|
+
fields: [{
|
|
2840
|
+
label: string;
|
|
2841
|
+
key: string;
|
|
2842
|
+
choices: {
|
|
2843
|
+
value: string;
|
|
2844
|
+
label: string;
|
|
2845
|
+
}[];
|
|
2846
|
+
description?: string | undefined;
|
|
2847
|
+
}, {
|
|
2848
|
+
label: string;
|
|
2849
|
+
key: string;
|
|
2850
|
+
choices: {
|
|
2851
|
+
value: string;
|
|
2852
|
+
label: string;
|
|
2853
|
+
}[];
|
|
2854
|
+
description?: string | undefined;
|
|
2855
|
+
}];
|
|
2856
|
+
uniqueByField?: string | undefined;
|
|
2857
|
+
} | {
|
|
2858
|
+
type: "range";
|
|
2859
|
+
param: string;
|
|
2860
|
+
title: string;
|
|
2861
|
+
description: string;
|
|
2862
|
+
max: number;
|
|
2863
|
+
default: number;
|
|
2864
|
+
min: number;
|
|
2865
|
+
step: number;
|
|
2866
|
+
} | {
|
|
2867
|
+
type: "select-boolean";
|
|
2868
|
+
param: string;
|
|
2869
|
+
title: string;
|
|
2870
|
+
description: string;
|
|
2871
|
+
default: boolean | null;
|
|
2872
|
+
} | {
|
|
2873
|
+
type: "select-string";
|
|
2874
|
+
param: string;
|
|
2875
|
+
title: string;
|
|
2876
|
+
description: string;
|
|
2877
|
+
default: string;
|
|
2878
|
+
choices: string[];
|
|
2879
|
+
}>;
|
|
2880
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2881
|
+
};
|
|
2882
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
2883
|
+
};
|
|
2884
|
+
declare const Gemini2_5ProOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
2885
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
2886
|
+
accessToken: z.ZodString;
|
|
2887
|
+
modelName: z.ZodString;
|
|
2888
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2889
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2890
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2892
|
+
}, "strip", z.ZodTypeAny, {
|
|
2893
|
+
authType: "accessToken";
|
|
2894
|
+
accessToken: string;
|
|
2895
|
+
modelName: string;
|
|
2896
|
+
baseUrl?: string | undefined;
|
|
2897
|
+
location?: string | undefined;
|
|
2898
|
+
projectId?: string | undefined;
|
|
2899
|
+
publisher?: string | undefined;
|
|
2900
|
+
}, {
|
|
2901
|
+
authType: "accessToken";
|
|
2902
|
+
accessToken: string;
|
|
2903
|
+
modelName: string;
|
|
2904
|
+
baseUrl?: string | undefined;
|
|
2905
|
+
location?: string | undefined;
|
|
2906
|
+
projectId?: string | undefined;
|
|
2907
|
+
publisher?: string | undefined;
|
|
2908
|
+
}>, z.ZodObject<{
|
|
2909
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
2910
|
+
serviceAccount: z.ZodObject<{
|
|
2911
|
+
client_email: z.ZodString;
|
|
2912
|
+
private_key: z.ZodString;
|
|
2913
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2914
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
2915
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
2916
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2917
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
2918
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2920
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
2921
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
2922
|
+
}, "strip", z.ZodTypeAny, {
|
|
2923
|
+
client_email: string;
|
|
2924
|
+
private_key: string;
|
|
2925
|
+
type?: string | undefined;
|
|
2926
|
+
project_id?: string | undefined;
|
|
2927
|
+
private_key_id?: string | undefined;
|
|
2928
|
+
client_id?: string | undefined;
|
|
2929
|
+
auth_uri?: string | undefined;
|
|
2930
|
+
token_uri?: string | undefined;
|
|
2931
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2932
|
+
client_x509_cert_url?: string | undefined;
|
|
2933
|
+
universe_domain?: string | undefined;
|
|
2934
|
+
}, {
|
|
2935
|
+
client_email: string;
|
|
2936
|
+
private_key: string;
|
|
2937
|
+
type?: string | undefined;
|
|
2938
|
+
project_id?: string | undefined;
|
|
2939
|
+
private_key_id?: string | undefined;
|
|
2940
|
+
client_id?: string | undefined;
|
|
2941
|
+
auth_uri?: string | undefined;
|
|
2942
|
+
token_uri?: string | undefined;
|
|
2943
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2944
|
+
client_x509_cert_url?: string | undefined;
|
|
2945
|
+
universe_domain?: string | undefined;
|
|
2946
|
+
}>;
|
|
2947
|
+
modelName: z.ZodString;
|
|
2948
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2949
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2950
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2951
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2952
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
2953
|
+
}, "strip", z.ZodTypeAny, {
|
|
2954
|
+
authType: "serviceAccount";
|
|
2955
|
+
modelName: string;
|
|
2956
|
+
serviceAccount: {
|
|
2957
|
+
client_email: string;
|
|
2958
|
+
private_key: string;
|
|
2959
|
+
type?: string | undefined;
|
|
2960
|
+
project_id?: string | undefined;
|
|
2961
|
+
private_key_id?: string | undefined;
|
|
2962
|
+
client_id?: string | undefined;
|
|
2963
|
+
auth_uri?: string | undefined;
|
|
2964
|
+
token_uri?: string | undefined;
|
|
2965
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2966
|
+
client_x509_cert_url?: string | undefined;
|
|
2967
|
+
universe_domain?: string | undefined;
|
|
2968
|
+
};
|
|
2969
|
+
tokenLifetimeHours: number;
|
|
2970
|
+
baseUrl?: string | undefined;
|
|
2971
|
+
location?: string | undefined;
|
|
2972
|
+
projectId?: string | undefined;
|
|
2973
|
+
publisher?: string | undefined;
|
|
2974
|
+
}, {
|
|
2975
|
+
authType: "serviceAccount";
|
|
2976
|
+
modelName: string;
|
|
2977
|
+
serviceAccount: {
|
|
2978
|
+
client_email: string;
|
|
2979
|
+
private_key: string;
|
|
2980
|
+
type?: string | undefined;
|
|
2981
|
+
project_id?: string | undefined;
|
|
2982
|
+
private_key_id?: string | undefined;
|
|
2983
|
+
client_id?: string | undefined;
|
|
2984
|
+
auth_uri?: string | undefined;
|
|
2985
|
+
token_uri?: string | undefined;
|
|
2986
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
2987
|
+
client_x509_cert_url?: string | undefined;
|
|
2988
|
+
universe_domain?: string | undefined;
|
|
2989
|
+
};
|
|
2990
|
+
baseUrl?: string | undefined;
|
|
2991
|
+
location?: string | undefined;
|
|
2992
|
+
projectId?: string | undefined;
|
|
2993
|
+
publisher?: string | undefined;
|
|
2994
|
+
tokenLifetimeHours?: number | undefined;
|
|
2995
|
+
}>]>;
|
|
2996
|
+
type Gemini2_5ProOptionsType = z.infer<typeof Gemini2_5ProOptions>;
|
|
2997
|
+
declare class Gemini2_5Pro extends BaseChatModelVertex {
|
|
2998
|
+
constructor(options: Gemini2_5ProOptionsType);
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
declare const Gemini3ProPreviewLiteral: "gemini-3-pro-preview";
|
|
3002
|
+
declare const Gemini3ProPreviewSchema: {
|
|
3003
|
+
readonly price: {
|
|
3004
|
+
modelName: string;
|
|
3005
|
+
currency: string;
|
|
3006
|
+
tokenRanges: ({
|
|
3007
|
+
minTokens: number;
|
|
3008
|
+
maxTokens: number;
|
|
3009
|
+
prices: {
|
|
3010
|
+
base: {
|
|
3011
|
+
inputPricePerMillion: number;
|
|
3012
|
+
outputPricePerMillion: number;
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
} | {
|
|
3016
|
+
minTokens: number;
|
|
3017
|
+
maxTokens: null;
|
|
3018
|
+
prices: {
|
|
3019
|
+
base: {
|
|
3020
|
+
inputPricePerMillion: number;
|
|
3021
|
+
outputPricePerMillion: number;
|
|
3022
|
+
};
|
|
3023
|
+
};
|
|
3024
|
+
})[];
|
|
3025
|
+
};
|
|
3026
|
+
readonly description: string;
|
|
3027
|
+
readonly maxOutputTokens: number;
|
|
3028
|
+
readonly name: string;
|
|
3029
|
+
readonly roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3030
|
+
readonly modalities: ["text" | "image" | "pdf" | "tool-call" | "tool-response", ...("text" | "image" | "pdf" | "tool-call" | "tool-response")[]];
|
|
3031
|
+
readonly maxInputTokens: number;
|
|
3032
|
+
readonly config: {
|
|
3033
|
+
def: Record<string, {
|
|
3034
|
+
type: "multi-string";
|
|
3035
|
+
param: string;
|
|
3036
|
+
title: string;
|
|
3037
|
+
description: string;
|
|
3038
|
+
max: number;
|
|
3039
|
+
} | {
|
|
3040
|
+
type: "object-schema";
|
|
3041
|
+
param: string;
|
|
3042
|
+
title: string;
|
|
3043
|
+
description: string;
|
|
3044
|
+
objectSchema?: any;
|
|
3045
|
+
} | {
|
|
3046
|
+
type: "paired-select";
|
|
3047
|
+
param: string;
|
|
3048
|
+
title: string;
|
|
3049
|
+
description: string;
|
|
3050
|
+
fields: [{
|
|
3051
|
+
label: string;
|
|
3052
|
+
key: string;
|
|
3053
|
+
choices: {
|
|
3054
|
+
value: string;
|
|
3055
|
+
label: string;
|
|
3056
|
+
}[];
|
|
3057
|
+
description?: string | undefined;
|
|
3058
|
+
}, {
|
|
3059
|
+
label: string;
|
|
3060
|
+
key: string;
|
|
3061
|
+
choices: {
|
|
3062
|
+
value: string;
|
|
3063
|
+
label: string;
|
|
3064
|
+
}[];
|
|
3065
|
+
description?: string | undefined;
|
|
3066
|
+
}];
|
|
3067
|
+
uniqueByField?: string | undefined;
|
|
3068
|
+
} | {
|
|
3069
|
+
type: "range";
|
|
3070
|
+
param: string;
|
|
3071
|
+
title: string;
|
|
3072
|
+
description: string;
|
|
3073
|
+
max: number;
|
|
3074
|
+
default: number;
|
|
3075
|
+
min: number;
|
|
3076
|
+
step: number;
|
|
3077
|
+
} | {
|
|
3078
|
+
type: "select-boolean";
|
|
3079
|
+
param: string;
|
|
3080
|
+
title: string;
|
|
3081
|
+
description: string;
|
|
3082
|
+
default: boolean | null;
|
|
3083
|
+
} | {
|
|
3084
|
+
type: "select-string";
|
|
3085
|
+
param: string;
|
|
3086
|
+
title: string;
|
|
3087
|
+
description: string;
|
|
3088
|
+
default: string;
|
|
3089
|
+
choices: string[];
|
|
3090
|
+
}>;
|
|
3091
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3092
|
+
};
|
|
3093
|
+
readonly maxReasoningTokens?: number | undefined;
|
|
3094
|
+
};
|
|
3095
|
+
declare const Gemini3ProPreviewOptions: z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{
|
|
3096
|
+
authType: z.ZodLiteral<"accessToken">;
|
|
3097
|
+
accessToken: z.ZodString;
|
|
3098
|
+
modelName: z.ZodString;
|
|
3099
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3100
|
+
location: z.ZodOptional<z.ZodString>;
|
|
3101
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
3103
|
+
}, "strip", z.ZodTypeAny, {
|
|
3104
|
+
authType: "accessToken";
|
|
3105
|
+
accessToken: string;
|
|
3106
|
+
modelName: string;
|
|
3107
|
+
baseUrl?: string | undefined;
|
|
3108
|
+
location?: string | undefined;
|
|
3109
|
+
projectId?: string | undefined;
|
|
3110
|
+
publisher?: string | undefined;
|
|
3111
|
+
}, {
|
|
3112
|
+
authType: "accessToken";
|
|
3113
|
+
accessToken: string;
|
|
3114
|
+
modelName: string;
|
|
3115
|
+
baseUrl?: string | undefined;
|
|
3116
|
+
location?: string | undefined;
|
|
3117
|
+
projectId?: string | undefined;
|
|
3118
|
+
publisher?: string | undefined;
|
|
3119
|
+
}>, z.ZodObject<{
|
|
3120
|
+
authType: z.ZodLiteral<"serviceAccount">;
|
|
3121
|
+
serviceAccount: z.ZodObject<{
|
|
3122
|
+
client_email: z.ZodString;
|
|
3123
|
+
private_key: z.ZodString;
|
|
3124
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3125
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
private_key_id: z.ZodOptional<z.ZodString>;
|
|
3127
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
3128
|
+
auth_uri: z.ZodOptional<z.ZodString>;
|
|
3129
|
+
token_uri: z.ZodOptional<z.ZodString>;
|
|
3130
|
+
auth_provider_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
3131
|
+
client_x509_cert_url: z.ZodOptional<z.ZodString>;
|
|
3132
|
+
universe_domain: z.ZodOptional<z.ZodString>;
|
|
3133
|
+
}, "strip", z.ZodTypeAny, {
|
|
3134
|
+
client_email: string;
|
|
3135
|
+
private_key: string;
|
|
3136
|
+
type?: string | undefined;
|
|
3137
|
+
project_id?: string | undefined;
|
|
3138
|
+
private_key_id?: string | undefined;
|
|
3139
|
+
client_id?: string | undefined;
|
|
3140
|
+
auth_uri?: string | undefined;
|
|
3141
|
+
token_uri?: string | undefined;
|
|
3142
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
3143
|
+
client_x509_cert_url?: string | undefined;
|
|
3144
|
+
universe_domain?: string | undefined;
|
|
3145
|
+
}, {
|
|
3146
|
+
client_email: string;
|
|
3147
|
+
private_key: string;
|
|
3148
|
+
type?: string | undefined;
|
|
3149
|
+
project_id?: string | undefined;
|
|
3150
|
+
private_key_id?: string | undefined;
|
|
3151
|
+
client_id?: string | undefined;
|
|
3152
|
+
auth_uri?: string | undefined;
|
|
3153
|
+
token_uri?: string | undefined;
|
|
3154
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
3155
|
+
client_x509_cert_url?: string | undefined;
|
|
3156
|
+
universe_domain?: string | undefined;
|
|
3157
|
+
}>;
|
|
3158
|
+
modelName: z.ZodString;
|
|
3159
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3160
|
+
location: z.ZodOptional<z.ZodString>;
|
|
3161
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
3162
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
3163
|
+
tokenLifetimeHours: z.ZodDefault<z.ZodNumber>;
|
|
3164
|
+
}, "strip", z.ZodTypeAny, {
|
|
3165
|
+
authType: "serviceAccount";
|
|
3166
|
+
modelName: string;
|
|
3167
|
+
serviceAccount: {
|
|
3168
|
+
client_email: string;
|
|
3169
|
+
private_key: string;
|
|
3170
|
+
type?: string | undefined;
|
|
3171
|
+
project_id?: string | undefined;
|
|
3172
|
+
private_key_id?: string | undefined;
|
|
3173
|
+
client_id?: string | undefined;
|
|
3174
|
+
auth_uri?: string | undefined;
|
|
3175
|
+
token_uri?: string | undefined;
|
|
3176
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
3177
|
+
client_x509_cert_url?: string | undefined;
|
|
3178
|
+
universe_domain?: string | undefined;
|
|
3179
|
+
};
|
|
3180
|
+
tokenLifetimeHours: number;
|
|
3181
|
+
baseUrl?: string | undefined;
|
|
3182
|
+
location?: string | undefined;
|
|
3183
|
+
projectId?: string | undefined;
|
|
3184
|
+
publisher?: string | undefined;
|
|
3185
|
+
}, {
|
|
3186
|
+
authType: "serviceAccount";
|
|
3187
|
+
modelName: string;
|
|
3188
|
+
serviceAccount: {
|
|
3189
|
+
client_email: string;
|
|
3190
|
+
private_key: string;
|
|
3191
|
+
type?: string | undefined;
|
|
3192
|
+
project_id?: string | undefined;
|
|
3193
|
+
private_key_id?: string | undefined;
|
|
3194
|
+
client_id?: string | undefined;
|
|
3195
|
+
auth_uri?: string | undefined;
|
|
3196
|
+
token_uri?: string | undefined;
|
|
3197
|
+
auth_provider_x509_cert_url?: string | undefined;
|
|
3198
|
+
client_x509_cert_url?: string | undefined;
|
|
3199
|
+
universe_domain?: string | undefined;
|
|
3200
|
+
};
|
|
3201
|
+
baseUrl?: string | undefined;
|
|
3202
|
+
location?: string | undefined;
|
|
3203
|
+
projectId?: string | undefined;
|
|
3204
|
+
publisher?: string | undefined;
|
|
3205
|
+
tokenLifetimeHours?: number | undefined;
|
|
3206
|
+
}>]>;
|
|
3207
|
+
type Gemini3ProPreviewOptionsType = z.infer<typeof Gemini3ProPreviewOptions>;
|
|
3208
|
+
declare class Gemini3ProPreview extends BaseChatModelVertex {
|
|
3209
|
+
constructor(options: Gemini3ProPreviewOptionsType);
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
3213
|
+
accessToken: z.ZodString;
|
|
3214
|
+
modelName: z.ZodString;
|
|
3215
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
3216
|
+
location: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
}, "strip", z.ZodTypeAny, {
|
|
3220
|
+
accessToken: string;
|
|
3221
|
+
modelName: string;
|
|
3222
|
+
baseUrl?: string | undefined;
|
|
3223
|
+
location?: string | undefined;
|
|
3224
|
+
projectId?: string | undefined;
|
|
3225
|
+
publisher?: string | undefined;
|
|
3226
|
+
}, {
|
|
3227
|
+
accessToken: string;
|
|
3228
|
+
modelName: string;
|
|
3229
|
+
baseUrl?: string | undefined;
|
|
3230
|
+
location?: string | undefined;
|
|
3231
|
+
projectId?: string | undefined;
|
|
3232
|
+
publisher?: string | undefined;
|
|
3233
|
+
}>;
|
|
3234
|
+
type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
|
|
3235
|
+
declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchemaType> {
|
|
3236
|
+
readonly version: "v1";
|
|
3237
|
+
modelSchema: EmbeddingModelSchemaType;
|
|
3238
|
+
modelName: string;
|
|
3239
|
+
private readonly accessToken;
|
|
3240
|
+
private readonly baseUrl;
|
|
3241
|
+
private readonly getEmbeddingsUrl;
|
|
3242
|
+
private readonly location;
|
|
3243
|
+
private readonly projectId;
|
|
3244
|
+
private readonly publisher;
|
|
3245
|
+
constructor(modelSchema: EmbeddingModelSchemaType, options: BaseEmbeddingModelOptionsType);
|
|
3246
|
+
getDefaultBaseUrl(): UrlType;
|
|
3247
|
+
getDefaultHeaders(): HeadersType;
|
|
3248
|
+
getDefaultParams(): ParamsType;
|
|
3249
|
+
getRetryDelay(responseHeaders: HeadersType): {
|
|
3250
|
+
shouldRetry: boolean;
|
|
3251
|
+
delayMs: number;
|
|
3252
|
+
};
|
|
3253
|
+
getTokenCount(requests: EmbeddingRequestsType): number;
|
|
3254
|
+
transformModelRequest(request: any): {
|
|
3255
|
+
modelName: string | undefined;
|
|
3256
|
+
config: ConfigType;
|
|
3257
|
+
embeddingRequests: EmbeddingRequestsType;
|
|
3258
|
+
};
|
|
3259
|
+
transformConfig(config: ConfigType, requests?: EmbeddingRequestsType): ParamsType;
|
|
3260
|
+
transformEmbeddingRequests(requests: EmbeddingRequestsType): ParamsType;
|
|
3261
|
+
getGetEmbeddingsUrl(config?: ConfigType, requests?: EmbeddingRequestsType): Promise<UrlType>;
|
|
3262
|
+
getGetEmbeddingsHeaders(config?: ConfigType, requests?: EmbeddingRequestsType): Promise<HeadersType>;
|
|
3263
|
+
getGetEmbeddingsData(config: ConfigType, requests: EmbeddingRequestsType): Promise<ParamsType>;
|
|
3264
|
+
transformGetEmbeddingsResponse(response: any): EmbeddingResponseType;
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
declare const Text_Embedding_004Literal = "text-embedding-004";
|
|
3268
|
+
declare const Text_Embedding_004Schema: {
|
|
3269
|
+
description: string;
|
|
3270
|
+
name: string;
|
|
3271
|
+
modalities: ["text", ..."text"[]];
|
|
3272
|
+
maxInputTokens: number;
|
|
3273
|
+
maxOutputTokens: number;
|
|
3274
|
+
config: {
|
|
3275
|
+
def: Record<string, {
|
|
3276
|
+
type: "multi-string";
|
|
3277
|
+
param: string;
|
|
3278
|
+
title: string;
|
|
3279
|
+
description: string;
|
|
3280
|
+
max: number;
|
|
3281
|
+
} | {
|
|
3282
|
+
type: "object-schema";
|
|
3283
|
+
param: string;
|
|
1687
3284
|
title: string;
|
|
1688
3285
|
description: string;
|
|
1689
3286
|
objectSchema?: any;
|
|
3287
|
+
} | {
|
|
3288
|
+
type: "paired-select";
|
|
3289
|
+
param: string;
|
|
3290
|
+
title: string;
|
|
3291
|
+
description: string;
|
|
3292
|
+
fields: [{
|
|
3293
|
+
label: string;
|
|
3294
|
+
key: string;
|
|
3295
|
+
choices: {
|
|
3296
|
+
value: string;
|
|
3297
|
+
label: string;
|
|
3298
|
+
}[];
|
|
3299
|
+
description?: string | undefined;
|
|
3300
|
+
}, {
|
|
3301
|
+
label: string;
|
|
3302
|
+
key: string;
|
|
3303
|
+
choices: {
|
|
3304
|
+
value: string;
|
|
3305
|
+
label: string;
|
|
3306
|
+
}[];
|
|
3307
|
+
description?: string | undefined;
|
|
3308
|
+
}];
|
|
3309
|
+
uniqueByField?: string | undefined;
|
|
1690
3310
|
} | {
|
|
1691
3311
|
type: "range";
|
|
1692
3312
|
param: string;
|
|
@@ -1760,6 +3380,29 @@ declare const Text_Multilingual_Embedding_002Schema: {
|
|
|
1760
3380
|
title: string;
|
|
1761
3381
|
description: string;
|
|
1762
3382
|
objectSchema?: any;
|
|
3383
|
+
} | {
|
|
3384
|
+
type: "paired-select";
|
|
3385
|
+
param: string;
|
|
3386
|
+
title: string;
|
|
3387
|
+
description: string;
|
|
3388
|
+
fields: [{
|
|
3389
|
+
label: string;
|
|
3390
|
+
key: string;
|
|
3391
|
+
choices: {
|
|
3392
|
+
value: string;
|
|
3393
|
+
label: string;
|
|
3394
|
+
}[];
|
|
3395
|
+
description?: string | undefined;
|
|
3396
|
+
}, {
|
|
3397
|
+
label: string;
|
|
3398
|
+
key: string;
|
|
3399
|
+
choices: {
|
|
3400
|
+
value: string;
|
|
3401
|
+
label: string;
|
|
3402
|
+
}[];
|
|
3403
|
+
description?: string | undefined;
|
|
3404
|
+
}];
|
|
3405
|
+
uniqueByField?: string | undefined;
|
|
1763
3406
|
} | {
|
|
1764
3407
|
type: "range";
|
|
1765
3408
|
param: string;
|
|
@@ -1833,6 +3476,29 @@ declare const Text_Embedding_Gecko_Multilingual_001Schema: {
|
|
|
1833
3476
|
title: string;
|
|
1834
3477
|
description: string;
|
|
1835
3478
|
objectSchema?: any;
|
|
3479
|
+
} | {
|
|
3480
|
+
type: "paired-select";
|
|
3481
|
+
param: string;
|
|
3482
|
+
title: string;
|
|
3483
|
+
description: string;
|
|
3484
|
+
fields: [{
|
|
3485
|
+
label: string;
|
|
3486
|
+
key: string;
|
|
3487
|
+
choices: {
|
|
3488
|
+
value: string;
|
|
3489
|
+
label: string;
|
|
3490
|
+
}[];
|
|
3491
|
+
description?: string | undefined;
|
|
3492
|
+
}, {
|
|
3493
|
+
label: string;
|
|
3494
|
+
key: string;
|
|
3495
|
+
choices: {
|
|
3496
|
+
value: string;
|
|
3497
|
+
label: string;
|
|
3498
|
+
}[];
|
|
3499
|
+
description?: string | undefined;
|
|
3500
|
+
}];
|
|
3501
|
+
uniqueByField?: string | undefined;
|
|
1836
3502
|
} | {
|
|
1837
3503
|
type: "range";
|
|
1838
3504
|
param: string;
|
|
@@ -1906,6 +3572,29 @@ declare const Text_Embedding_Gecko_003Schema: {
|
|
|
1906
3572
|
title: string;
|
|
1907
3573
|
description: string;
|
|
1908
3574
|
objectSchema?: any;
|
|
3575
|
+
} | {
|
|
3576
|
+
type: "paired-select";
|
|
3577
|
+
param: string;
|
|
3578
|
+
title: string;
|
|
3579
|
+
description: string;
|
|
3580
|
+
fields: [{
|
|
3581
|
+
label: string;
|
|
3582
|
+
key: string;
|
|
3583
|
+
choices: {
|
|
3584
|
+
value: string;
|
|
3585
|
+
label: string;
|
|
3586
|
+
}[];
|
|
3587
|
+
description?: string | undefined;
|
|
3588
|
+
}, {
|
|
3589
|
+
label: string;
|
|
3590
|
+
key: string;
|
|
3591
|
+
choices: {
|
|
3592
|
+
value: string;
|
|
3593
|
+
label: string;
|
|
3594
|
+
}[];
|
|
3595
|
+
description?: string | undefined;
|
|
3596
|
+
}];
|
|
3597
|
+
uniqueByField?: string | undefined;
|
|
1909
3598
|
} | {
|
|
1910
3599
|
type: "range";
|
|
1911
3600
|
param: string;
|
|
@@ -1973,4 +3662,4 @@ declare class Vertex<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
1973
3662
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
1974
3663
|
}
|
|
1975
3664
|
|
|
1976
|
-
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0Flash, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Gemini2_0FlashLiteral, Gemini2_0FlashOptions, type Gemini2_0FlashOptionsType, Gemini2_0FlashSchema, Gemini2_5FlashLite, Gemini2_5FlashLiteLiteral, Gemini2_5FlashLiteOptions, type Gemini2_5FlashLiteOptionsType, Gemini2_5FlashLiteSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|
|
3665
|
+
export { BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelVertex, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLatest, Gemini1_5FlashLatestLiteral, Gemini1_5FlashLatestOptions, type Gemini1_5FlashLatestOptionsType, Gemini1_5FlashLatestSchema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLatest, Gemini1_5ProLatestLiteral, Gemini1_5ProLatestOptions, type Gemini1_5ProLatestOptionsType, Gemini1_5ProLatestSchema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Gemini2_0Flash, Gemini2_0FlashExp, Gemini2_0FlashExpLiteral, Gemini2_0FlashExpOptions, type Gemini2_0FlashExpOptionsType, Gemini2_0FlashExpSchema, Gemini2_0FlashLiteral, Gemini2_0FlashOptions, type Gemini2_0FlashOptionsType, Gemini2_0FlashSchema, Gemini2_5Flash, Gemini2_5FlashLite, Gemini2_5FlashLiteLiteral, Gemini2_5FlashLiteOptions, type Gemini2_5FlashLiteOptionsType, Gemini2_5FlashLiteSchema, Gemini2_5FlashLiteral, Gemini2_5FlashOptions, type Gemini2_5FlashOptionsType, Gemini2_5FlashPreview0417, Gemini2_5FlashPreview0417Literal, Gemini2_5FlashPreview0417Options, type Gemini2_5FlashPreview0417OptionsType, Gemini2_5FlashPreview0417Schema, Gemini2_5FlashSchema, Gemini2_5Pro, Gemini2_5ProLiteral, Gemini2_5ProOptions, type Gemini2_5ProOptionsType, Gemini2_5ProPreview0325, Gemini2_5ProPreview0325Literal, Gemini2_5ProPreview0325Options, type Gemini2_5ProPreview0325OptionsType, Gemini2_5ProPreview0325Schema, Gemini2_5ProSchema, Gemini3ProPreview, Gemini3ProPreviewLiteral, Gemini3ProPreviewOptions, type Gemini3ProPreviewOptionsType, Gemini3ProPreviewSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };
|