@adaline/gateway 1.7.0 → 1.8.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/index.d.mts +786 -330
- package/dist/index.d.ts +786 -330
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -272,10 +272,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
272
272
|
role: "system" | "user" | "assistant" | "tool";
|
|
273
273
|
content: ({
|
|
274
274
|
modality: "tool-response";
|
|
275
|
+
name: string;
|
|
276
|
+
id: string;
|
|
275
277
|
data: string;
|
|
276
278
|
index: number;
|
|
277
|
-
id: string;
|
|
278
|
-
name: string;
|
|
279
279
|
metadata?: any;
|
|
280
280
|
apiResponse?: {
|
|
281
281
|
statusCode: number;
|
|
@@ -305,7 +305,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
305
305
|
url: string;
|
|
306
306
|
};
|
|
307
307
|
modality: "pdf";
|
|
308
|
-
|
|
308
|
+
file: {
|
|
309
|
+
name: string;
|
|
310
|
+
id: string;
|
|
311
|
+
size?: number | undefined;
|
|
312
|
+
};
|
|
309
313
|
metadata?: undefined;
|
|
310
314
|
} | {
|
|
311
315
|
id: string;
|
|
@@ -372,10 +376,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
372
376
|
metadata?: undefined;
|
|
373
377
|
} | {
|
|
374
378
|
modality: "tool-response";
|
|
379
|
+
name: string;
|
|
380
|
+
id: string;
|
|
375
381
|
data: string;
|
|
376
382
|
index: number;
|
|
377
|
-
id: string;
|
|
378
|
-
name: string;
|
|
379
383
|
metadata?: any;
|
|
380
384
|
apiResponse?: {
|
|
381
385
|
statusCode: number;
|
|
@@ -405,13 +409,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
405
409
|
url: string;
|
|
406
410
|
};
|
|
407
411
|
modality: "pdf";
|
|
408
|
-
|
|
412
|
+
file: {
|
|
413
|
+
name: string;
|
|
414
|
+
id: string;
|
|
415
|
+
size?: number | undefined;
|
|
416
|
+
};
|
|
409
417
|
metadata?: undefined;
|
|
410
418
|
} | {
|
|
411
419
|
modality: "tool-call";
|
|
412
|
-
index: number;
|
|
413
|
-
id: string;
|
|
414
420
|
name: string;
|
|
421
|
+
id: string;
|
|
422
|
+
index: number;
|
|
415
423
|
arguments: string;
|
|
416
424
|
metadata?: undefined;
|
|
417
425
|
})[];
|
|
@@ -447,10 +455,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
447
455
|
role: "system" | "user" | "assistant" | "tool";
|
|
448
456
|
content: ({
|
|
449
457
|
modality: "tool-response";
|
|
458
|
+
name: string;
|
|
459
|
+
id: string;
|
|
450
460
|
data: string;
|
|
451
461
|
index: number;
|
|
452
|
-
id: string;
|
|
453
|
-
name: string;
|
|
454
462
|
metadata?: any;
|
|
455
463
|
apiResponse?: {
|
|
456
464
|
statusCode: number;
|
|
@@ -480,7 +488,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
480
488
|
url: string;
|
|
481
489
|
};
|
|
482
490
|
modality: "pdf";
|
|
483
|
-
|
|
491
|
+
file: {
|
|
492
|
+
name: string;
|
|
493
|
+
id: string;
|
|
494
|
+
size?: number | undefined;
|
|
495
|
+
};
|
|
484
496
|
metadata?: undefined;
|
|
485
497
|
} | {
|
|
486
498
|
id: string;
|
|
@@ -547,10 +559,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
547
559
|
metadata?: undefined;
|
|
548
560
|
} | {
|
|
549
561
|
modality: "tool-response";
|
|
562
|
+
name: string;
|
|
563
|
+
id: string;
|
|
550
564
|
data: string;
|
|
551
565
|
index: number;
|
|
552
|
-
id: string;
|
|
553
|
-
name: string;
|
|
554
566
|
metadata?: any;
|
|
555
567
|
apiResponse?: {
|
|
556
568
|
statusCode: number;
|
|
@@ -580,13 +592,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
580
592
|
url: string;
|
|
581
593
|
};
|
|
582
594
|
modality: "pdf";
|
|
583
|
-
|
|
595
|
+
file: {
|
|
596
|
+
name: string;
|
|
597
|
+
id: string;
|
|
598
|
+
size?: number | undefined;
|
|
599
|
+
};
|
|
584
600
|
metadata?: undefined;
|
|
585
601
|
} | {
|
|
586
602
|
modality: "tool-call";
|
|
587
|
-
index: number;
|
|
588
|
-
id: string;
|
|
589
603
|
name: string;
|
|
604
|
+
id: string;
|
|
605
|
+
index: number;
|
|
590
606
|
arguments: string;
|
|
591
607
|
metadata?: undefined;
|
|
592
608
|
})[];
|
|
@@ -823,7 +839,19 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
823
839
|
type: "url";
|
|
824
840
|
url: string;
|
|
825
841
|
}>]>;
|
|
826
|
-
|
|
842
|
+
file: z.ZodObject<{
|
|
843
|
+
name: z.ZodString;
|
|
844
|
+
id: z.ZodString;
|
|
845
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
name: string;
|
|
848
|
+
id: string;
|
|
849
|
+
size?: number | undefined;
|
|
850
|
+
}, {
|
|
851
|
+
name: string;
|
|
852
|
+
id: string;
|
|
853
|
+
size?: number | undefined;
|
|
854
|
+
}>;
|
|
827
855
|
metadata: z.ZodUndefined;
|
|
828
856
|
}, "strip", z.ZodTypeAny, {
|
|
829
857
|
value: {
|
|
@@ -834,7 +862,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
834
862
|
url: string;
|
|
835
863
|
};
|
|
836
864
|
modality: "pdf";
|
|
837
|
-
|
|
865
|
+
file: {
|
|
866
|
+
name: string;
|
|
867
|
+
id: string;
|
|
868
|
+
size?: number | undefined;
|
|
869
|
+
};
|
|
838
870
|
metadata?: undefined;
|
|
839
871
|
}, {
|
|
840
872
|
value: {
|
|
@@ -845,7 +877,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
845
877
|
url: string;
|
|
846
878
|
};
|
|
847
879
|
modality: "pdf";
|
|
848
|
-
|
|
880
|
+
file: {
|
|
881
|
+
name: string;
|
|
882
|
+
id: string;
|
|
883
|
+
size?: number | undefined;
|
|
884
|
+
};
|
|
849
885
|
metadata?: undefined;
|
|
850
886
|
}>, z.ZodObject<{
|
|
851
887
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -884,20 +920,20 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
884
920
|
metadata: z.ZodTypeAny;
|
|
885
921
|
}, "strip", z.ZodTypeAny, {
|
|
886
922
|
modality: "tool-response";
|
|
923
|
+
name: string;
|
|
924
|
+
id: string;
|
|
887
925
|
data: string;
|
|
888
926
|
index: number;
|
|
889
|
-
id: string;
|
|
890
|
-
name: string;
|
|
891
927
|
metadata?: any;
|
|
892
928
|
apiResponse?: {
|
|
893
929
|
statusCode: number;
|
|
894
930
|
} | undefined;
|
|
895
931
|
}, {
|
|
896
932
|
modality: "tool-response";
|
|
933
|
+
name: string;
|
|
934
|
+
id: string;
|
|
897
935
|
data: string;
|
|
898
936
|
index: number;
|
|
899
|
-
id: string;
|
|
900
|
-
name: string;
|
|
901
937
|
metadata?: any;
|
|
902
938
|
apiResponse?: {
|
|
903
939
|
statusCode: number;
|
|
@@ -955,10 +991,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
955
991
|
role: "system" | "user" | "assistant" | "tool";
|
|
956
992
|
content: ({
|
|
957
993
|
modality: "tool-response";
|
|
994
|
+
name: string;
|
|
995
|
+
id: string;
|
|
958
996
|
data: string;
|
|
959
997
|
index: number;
|
|
960
|
-
id: string;
|
|
961
|
-
name: string;
|
|
962
998
|
metadata?: any;
|
|
963
999
|
apiResponse?: {
|
|
964
1000
|
statusCode: number;
|
|
@@ -988,7 +1024,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
988
1024
|
url: string;
|
|
989
1025
|
};
|
|
990
1026
|
modality: "pdf";
|
|
991
|
-
|
|
1027
|
+
file: {
|
|
1028
|
+
name: string;
|
|
1029
|
+
id: string;
|
|
1030
|
+
size?: number | undefined;
|
|
1031
|
+
};
|
|
992
1032
|
metadata?: undefined;
|
|
993
1033
|
} | {
|
|
994
1034
|
id: string;
|
|
@@ -1014,10 +1054,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1014
1054
|
role: "system" | "user" | "assistant" | "tool";
|
|
1015
1055
|
content: ({
|
|
1016
1056
|
modality: "tool-response";
|
|
1057
|
+
name: string;
|
|
1058
|
+
id: string;
|
|
1017
1059
|
data: string;
|
|
1018
1060
|
index: number;
|
|
1019
|
-
id: string;
|
|
1020
|
-
name: string;
|
|
1021
1061
|
metadata?: any;
|
|
1022
1062
|
apiResponse?: {
|
|
1023
1063
|
statusCode: number;
|
|
@@ -1047,7 +1087,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1047
1087
|
url: string;
|
|
1048
1088
|
};
|
|
1049
1089
|
modality: "pdf";
|
|
1050
|
-
|
|
1090
|
+
file: {
|
|
1091
|
+
name: string;
|
|
1092
|
+
id: string;
|
|
1093
|
+
size?: number | undefined;
|
|
1094
|
+
};
|
|
1051
1095
|
metadata?: undefined;
|
|
1052
1096
|
} | {
|
|
1053
1097
|
id: string;
|
|
@@ -1281,10 +1325,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1281
1325
|
role: "system" | "user" | "assistant" | "tool";
|
|
1282
1326
|
content: ({
|
|
1283
1327
|
modality: "tool-response";
|
|
1328
|
+
name: string;
|
|
1329
|
+
id: string;
|
|
1284
1330
|
data: string;
|
|
1285
1331
|
index: number;
|
|
1286
|
-
id: string;
|
|
1287
|
-
name: string;
|
|
1288
1332
|
metadata?: any;
|
|
1289
1333
|
apiResponse?: {
|
|
1290
1334
|
statusCode: number;
|
|
@@ -1314,7 +1358,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1314
1358
|
url: string;
|
|
1315
1359
|
};
|
|
1316
1360
|
modality: "pdf";
|
|
1317
|
-
|
|
1361
|
+
file: {
|
|
1362
|
+
name: string;
|
|
1363
|
+
id: string;
|
|
1364
|
+
size?: number | undefined;
|
|
1365
|
+
};
|
|
1318
1366
|
metadata?: undefined;
|
|
1319
1367
|
} | {
|
|
1320
1368
|
id: string;
|
|
@@ -1345,10 +1393,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1345
1393
|
role: "system" | "user" | "assistant" | "tool";
|
|
1346
1394
|
content: ({
|
|
1347
1395
|
modality: "tool-response";
|
|
1396
|
+
name: string;
|
|
1397
|
+
id: string;
|
|
1348
1398
|
data: string;
|
|
1349
1399
|
index: number;
|
|
1350
|
-
id: string;
|
|
1351
|
-
name: string;
|
|
1352
1400
|
metadata?: any;
|
|
1353
1401
|
apiResponse?: {
|
|
1354
1402
|
statusCode: number;
|
|
@@ -1378,7 +1426,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1378
1426
|
url: string;
|
|
1379
1427
|
};
|
|
1380
1428
|
modality: "pdf";
|
|
1381
|
-
|
|
1429
|
+
file: {
|
|
1430
|
+
name: string;
|
|
1431
|
+
id: string;
|
|
1432
|
+
size?: number | undefined;
|
|
1433
|
+
};
|
|
1382
1434
|
metadata?: undefined;
|
|
1383
1435
|
} | {
|
|
1384
1436
|
id: string;
|
|
@@ -1445,10 +1497,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1445
1497
|
metadata?: undefined;
|
|
1446
1498
|
} | {
|
|
1447
1499
|
modality: "tool-response";
|
|
1500
|
+
name: string;
|
|
1501
|
+
id: string;
|
|
1448
1502
|
data: string;
|
|
1449
1503
|
index: number;
|
|
1450
|
-
id: string;
|
|
1451
|
-
name: string;
|
|
1452
1504
|
metadata?: any;
|
|
1453
1505
|
apiResponse?: {
|
|
1454
1506
|
statusCode: number;
|
|
@@ -1478,13 +1530,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1478
1530
|
url: string;
|
|
1479
1531
|
};
|
|
1480
1532
|
modality: "pdf";
|
|
1481
|
-
|
|
1533
|
+
file: {
|
|
1534
|
+
name: string;
|
|
1535
|
+
id: string;
|
|
1536
|
+
size?: number | undefined;
|
|
1537
|
+
};
|
|
1482
1538
|
metadata?: undefined;
|
|
1483
1539
|
} | {
|
|
1484
1540
|
modality: "tool-call";
|
|
1485
|
-
index: number;
|
|
1486
|
-
id: string;
|
|
1487
1541
|
name: string;
|
|
1542
|
+
id: string;
|
|
1543
|
+
index: number;
|
|
1488
1544
|
arguments: string;
|
|
1489
1545
|
metadata?: undefined;
|
|
1490
1546
|
})[];
|
|
@@ -1611,10 +1667,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1611
1667
|
role: "system" | "user" | "assistant" | "tool";
|
|
1612
1668
|
content: ({
|
|
1613
1669
|
modality: "tool-response";
|
|
1670
|
+
name: string;
|
|
1671
|
+
id: string;
|
|
1614
1672
|
data: string;
|
|
1615
1673
|
index: number;
|
|
1616
|
-
id: string;
|
|
1617
|
-
name: string;
|
|
1618
1674
|
metadata?: any;
|
|
1619
1675
|
apiResponse?: {
|
|
1620
1676
|
statusCode: number;
|
|
@@ -1644,7 +1700,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1644
1700
|
url: string;
|
|
1645
1701
|
};
|
|
1646
1702
|
modality: "pdf";
|
|
1647
|
-
|
|
1703
|
+
file: {
|
|
1704
|
+
name: string;
|
|
1705
|
+
id: string;
|
|
1706
|
+
size?: number | undefined;
|
|
1707
|
+
};
|
|
1648
1708
|
metadata?: undefined;
|
|
1649
1709
|
} | {
|
|
1650
1710
|
id: string;
|
|
@@ -1675,10 +1735,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1675
1735
|
role: "system" | "user" | "assistant" | "tool";
|
|
1676
1736
|
content: ({
|
|
1677
1737
|
modality: "tool-response";
|
|
1738
|
+
name: string;
|
|
1739
|
+
id: string;
|
|
1678
1740
|
data: string;
|
|
1679
1741
|
index: number;
|
|
1680
|
-
id: string;
|
|
1681
|
-
name: string;
|
|
1682
1742
|
metadata?: any;
|
|
1683
1743
|
apiResponse?: {
|
|
1684
1744
|
statusCode: number;
|
|
@@ -1708,7 +1768,11 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1708
1768
|
url: string;
|
|
1709
1769
|
};
|
|
1710
1770
|
modality: "pdf";
|
|
1711
|
-
|
|
1771
|
+
file: {
|
|
1772
|
+
name: string;
|
|
1773
|
+
id: string;
|
|
1774
|
+
size?: number | undefined;
|
|
1775
|
+
};
|
|
1712
1776
|
metadata?: undefined;
|
|
1713
1777
|
} | {
|
|
1714
1778
|
id: string;
|
|
@@ -1775,10 +1839,10 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1775
1839
|
metadata?: undefined;
|
|
1776
1840
|
} | {
|
|
1777
1841
|
modality: "tool-response";
|
|
1842
|
+
name: string;
|
|
1843
|
+
id: string;
|
|
1778
1844
|
data: string;
|
|
1779
1845
|
index: number;
|
|
1780
|
-
id: string;
|
|
1781
|
-
name: string;
|
|
1782
1846
|
metadata?: any;
|
|
1783
1847
|
apiResponse?: {
|
|
1784
1848
|
statusCode: number;
|
|
@@ -1808,13 +1872,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1808
1872
|
url: string;
|
|
1809
1873
|
};
|
|
1810
1874
|
modality: "pdf";
|
|
1811
|
-
|
|
1875
|
+
file: {
|
|
1876
|
+
name: string;
|
|
1877
|
+
id: string;
|
|
1878
|
+
size?: number | undefined;
|
|
1879
|
+
};
|
|
1812
1880
|
metadata?: undefined;
|
|
1813
1881
|
} | {
|
|
1814
1882
|
modality: "tool-call";
|
|
1815
|
-
index: number;
|
|
1816
|
-
id: string;
|
|
1817
1883
|
name: string;
|
|
1884
|
+
id: string;
|
|
1885
|
+
index: number;
|
|
1818
1886
|
arguments: string;
|
|
1819
1887
|
metadata?: undefined;
|
|
1820
1888
|
})[];
|
|
@@ -1964,7 +2032,19 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1964
2032
|
type: "url";
|
|
1965
2033
|
url: string;
|
|
1966
2034
|
}>]>;
|
|
1967
|
-
|
|
2035
|
+
file: z.ZodObject<{
|
|
2036
|
+
name: z.ZodString;
|
|
2037
|
+
id: z.ZodString;
|
|
2038
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
2039
|
+
}, "strip", z.ZodTypeAny, {
|
|
2040
|
+
name: string;
|
|
2041
|
+
id: string;
|
|
2042
|
+
size?: number | undefined;
|
|
2043
|
+
}, {
|
|
2044
|
+
name: string;
|
|
2045
|
+
id: string;
|
|
2046
|
+
size?: number | undefined;
|
|
2047
|
+
}>;
|
|
1968
2048
|
metadata: z.ZodUndefined;
|
|
1969
2049
|
}, "strip", z.ZodTypeAny, {
|
|
1970
2050
|
value: {
|
|
@@ -1975,7 +2055,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1975
2055
|
url: string;
|
|
1976
2056
|
};
|
|
1977
2057
|
modality: "pdf";
|
|
1978
|
-
|
|
2058
|
+
file: {
|
|
2059
|
+
name: string;
|
|
2060
|
+
id: string;
|
|
2061
|
+
size?: number | undefined;
|
|
2062
|
+
};
|
|
1979
2063
|
metadata?: undefined;
|
|
1980
2064
|
}, {
|
|
1981
2065
|
value: {
|
|
@@ -1986,7 +2070,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1986
2070
|
url: string;
|
|
1987
2071
|
};
|
|
1988
2072
|
modality: "pdf";
|
|
1989
|
-
|
|
2073
|
+
file: {
|
|
2074
|
+
name: string;
|
|
2075
|
+
id: string;
|
|
2076
|
+
size?: number | undefined;
|
|
2077
|
+
};
|
|
1990
2078
|
metadata?: undefined;
|
|
1991
2079
|
}>, z.ZodObject<{
|
|
1992
2080
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -2025,20 +2113,20 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2025
2113
|
metadata: z.ZodTypeAny;
|
|
2026
2114
|
}, "strip", z.ZodTypeAny, {
|
|
2027
2115
|
modality: "tool-response";
|
|
2116
|
+
name: string;
|
|
2117
|
+
id: string;
|
|
2028
2118
|
data: string;
|
|
2029
2119
|
index: number;
|
|
2030
|
-
id: string;
|
|
2031
|
-
name: string;
|
|
2032
2120
|
metadata?: any;
|
|
2033
2121
|
apiResponse?: {
|
|
2034
2122
|
statusCode: number;
|
|
2035
2123
|
} | undefined;
|
|
2036
2124
|
}, {
|
|
2037
2125
|
modality: "tool-response";
|
|
2126
|
+
name: string;
|
|
2127
|
+
id: string;
|
|
2038
2128
|
data: string;
|
|
2039
2129
|
index: number;
|
|
2040
|
-
id: string;
|
|
2041
|
-
name: string;
|
|
2042
2130
|
metadata?: any;
|
|
2043
2131
|
apiResponse?: {
|
|
2044
2132
|
statusCode: number;
|
|
@@ -2096,10 +2184,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2096
2184
|
role: "system" | "user" | "assistant" | "tool";
|
|
2097
2185
|
content: ({
|
|
2098
2186
|
modality: "tool-response";
|
|
2187
|
+
name: string;
|
|
2188
|
+
id: string;
|
|
2099
2189
|
data: string;
|
|
2100
2190
|
index: number;
|
|
2101
|
-
id: string;
|
|
2102
|
-
name: string;
|
|
2103
2191
|
metadata?: any;
|
|
2104
2192
|
apiResponse?: {
|
|
2105
2193
|
statusCode: number;
|
|
@@ -2129,7 +2217,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2129
2217
|
url: string;
|
|
2130
2218
|
};
|
|
2131
2219
|
modality: "pdf";
|
|
2132
|
-
|
|
2220
|
+
file: {
|
|
2221
|
+
name: string;
|
|
2222
|
+
id: string;
|
|
2223
|
+
size?: number | undefined;
|
|
2224
|
+
};
|
|
2133
2225
|
metadata?: undefined;
|
|
2134
2226
|
} | {
|
|
2135
2227
|
id: string;
|
|
@@ -2155,10 +2247,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2155
2247
|
role: "system" | "user" | "assistant" | "tool";
|
|
2156
2248
|
content: ({
|
|
2157
2249
|
modality: "tool-response";
|
|
2250
|
+
name: string;
|
|
2251
|
+
id: string;
|
|
2158
2252
|
data: string;
|
|
2159
2253
|
index: number;
|
|
2160
|
-
id: string;
|
|
2161
|
-
name: string;
|
|
2162
2254
|
metadata?: any;
|
|
2163
2255
|
apiResponse?: {
|
|
2164
2256
|
statusCode: number;
|
|
@@ -2188,7 +2280,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2188
2280
|
url: string;
|
|
2189
2281
|
};
|
|
2190
2282
|
modality: "pdf";
|
|
2191
|
-
|
|
2283
|
+
file: {
|
|
2284
|
+
name: string;
|
|
2285
|
+
id: string;
|
|
2286
|
+
size?: number | undefined;
|
|
2287
|
+
};
|
|
2192
2288
|
metadata?: undefined;
|
|
2193
2289
|
} | {
|
|
2194
2290
|
id: string;
|
|
@@ -2357,10 +2453,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2357
2453
|
role: "system" | "user" | "assistant" | "tool";
|
|
2358
2454
|
content: ({
|
|
2359
2455
|
modality: "tool-response";
|
|
2456
|
+
name: string;
|
|
2457
|
+
id: string;
|
|
2360
2458
|
data: string;
|
|
2361
2459
|
index: number;
|
|
2362
|
-
id: string;
|
|
2363
|
-
name: string;
|
|
2364
2460
|
metadata?: any;
|
|
2365
2461
|
apiResponse?: {
|
|
2366
2462
|
statusCode: number;
|
|
@@ -2390,7 +2486,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2390
2486
|
url: string;
|
|
2391
2487
|
};
|
|
2392
2488
|
modality: "pdf";
|
|
2393
|
-
|
|
2489
|
+
file: {
|
|
2490
|
+
name: string;
|
|
2491
|
+
id: string;
|
|
2492
|
+
size?: number | undefined;
|
|
2493
|
+
};
|
|
2394
2494
|
metadata?: undefined;
|
|
2395
2495
|
} | {
|
|
2396
2496
|
id: string;
|
|
@@ -2446,10 +2546,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2446
2546
|
role: "system" | "user" | "assistant" | "tool";
|
|
2447
2547
|
content: ({
|
|
2448
2548
|
modality: "tool-response";
|
|
2549
|
+
name: string;
|
|
2550
|
+
id: string;
|
|
2449
2551
|
data: string;
|
|
2450
2552
|
index: number;
|
|
2451
|
-
id: string;
|
|
2452
|
-
name: string;
|
|
2453
2553
|
metadata?: any;
|
|
2454
2554
|
apiResponse?: {
|
|
2455
2555
|
statusCode: number;
|
|
@@ -2479,7 +2579,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2479
2579
|
url: string;
|
|
2480
2580
|
};
|
|
2481
2581
|
modality: "pdf";
|
|
2482
|
-
|
|
2582
|
+
file: {
|
|
2583
|
+
name: string;
|
|
2584
|
+
id: string;
|
|
2585
|
+
size?: number | undefined;
|
|
2586
|
+
};
|
|
2483
2587
|
metadata?: undefined;
|
|
2484
2588
|
} | {
|
|
2485
2589
|
id: string;
|
|
@@ -2616,7 +2720,19 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2616
2720
|
type: "url";
|
|
2617
2721
|
url: string;
|
|
2618
2722
|
}>]>;
|
|
2619
|
-
|
|
2723
|
+
file: z.ZodObject<{
|
|
2724
|
+
name: z.ZodString;
|
|
2725
|
+
id: z.ZodString;
|
|
2726
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
2727
|
+
}, "strip", z.ZodTypeAny, {
|
|
2728
|
+
name: string;
|
|
2729
|
+
id: string;
|
|
2730
|
+
size?: number | undefined;
|
|
2731
|
+
}, {
|
|
2732
|
+
name: string;
|
|
2733
|
+
id: string;
|
|
2734
|
+
size?: number | undefined;
|
|
2735
|
+
}>;
|
|
2620
2736
|
metadata: z.ZodUndefined;
|
|
2621
2737
|
}, "strip", z.ZodTypeAny, {
|
|
2622
2738
|
value: {
|
|
@@ -2627,7 +2743,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2627
2743
|
url: string;
|
|
2628
2744
|
};
|
|
2629
2745
|
modality: "pdf";
|
|
2630
|
-
|
|
2746
|
+
file: {
|
|
2747
|
+
name: string;
|
|
2748
|
+
id: string;
|
|
2749
|
+
size?: number | undefined;
|
|
2750
|
+
};
|
|
2631
2751
|
metadata?: undefined;
|
|
2632
2752
|
}, {
|
|
2633
2753
|
value: {
|
|
@@ -2638,7 +2758,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2638
2758
|
url: string;
|
|
2639
2759
|
};
|
|
2640
2760
|
modality: "pdf";
|
|
2641
|
-
|
|
2761
|
+
file: {
|
|
2762
|
+
name: string;
|
|
2763
|
+
id: string;
|
|
2764
|
+
size?: number | undefined;
|
|
2765
|
+
};
|
|
2642
2766
|
metadata?: undefined;
|
|
2643
2767
|
}>, z.ZodObject<{
|
|
2644
2768
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -2649,16 +2773,16 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2649
2773
|
metadata: z.ZodUndefined;
|
|
2650
2774
|
}, "strip", z.ZodTypeAny, {
|
|
2651
2775
|
modality: "tool-call";
|
|
2652
|
-
index: number;
|
|
2653
|
-
id: string;
|
|
2654
2776
|
name: string;
|
|
2777
|
+
id: string;
|
|
2778
|
+
index: number;
|
|
2655
2779
|
arguments: string;
|
|
2656
2780
|
metadata?: undefined;
|
|
2657
2781
|
}, {
|
|
2658
2782
|
modality: "tool-call";
|
|
2659
|
-
index: number;
|
|
2660
|
-
id: string;
|
|
2661
2783
|
name: string;
|
|
2784
|
+
id: string;
|
|
2785
|
+
index: number;
|
|
2662
2786
|
arguments: string;
|
|
2663
2787
|
metadata?: undefined;
|
|
2664
2788
|
}>, z.ZodObject<{
|
|
@@ -2677,20 +2801,20 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2677
2801
|
metadata: z.ZodTypeAny;
|
|
2678
2802
|
}, "strip", z.ZodTypeAny, {
|
|
2679
2803
|
modality: "tool-response";
|
|
2804
|
+
name: string;
|
|
2805
|
+
id: string;
|
|
2680
2806
|
data: string;
|
|
2681
2807
|
index: number;
|
|
2682
|
-
id: string;
|
|
2683
|
-
name: string;
|
|
2684
2808
|
metadata?: any;
|
|
2685
2809
|
apiResponse?: {
|
|
2686
2810
|
statusCode: number;
|
|
2687
2811
|
} | undefined;
|
|
2688
2812
|
}, {
|
|
2689
2813
|
modality: "tool-response";
|
|
2814
|
+
name: string;
|
|
2815
|
+
id: string;
|
|
2690
2816
|
data: string;
|
|
2691
2817
|
index: number;
|
|
2692
|
-
id: string;
|
|
2693
|
-
name: string;
|
|
2694
2818
|
metadata?: any;
|
|
2695
2819
|
apiResponse?: {
|
|
2696
2820
|
statusCode: number;
|
|
@@ -2759,10 +2883,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2759
2883
|
metadata?: undefined;
|
|
2760
2884
|
} | {
|
|
2761
2885
|
modality: "tool-response";
|
|
2886
|
+
name: string;
|
|
2887
|
+
id: string;
|
|
2762
2888
|
data: string;
|
|
2763
2889
|
index: number;
|
|
2764
|
-
id: string;
|
|
2765
|
-
name: string;
|
|
2766
2890
|
metadata?: any;
|
|
2767
2891
|
apiResponse?: {
|
|
2768
2892
|
statusCode: number;
|
|
@@ -2792,13 +2916,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2792
2916
|
url: string;
|
|
2793
2917
|
};
|
|
2794
2918
|
modality: "pdf";
|
|
2795
|
-
|
|
2919
|
+
file: {
|
|
2920
|
+
name: string;
|
|
2921
|
+
id: string;
|
|
2922
|
+
size?: number | undefined;
|
|
2923
|
+
};
|
|
2796
2924
|
metadata?: undefined;
|
|
2797
2925
|
} | {
|
|
2798
2926
|
modality: "tool-call";
|
|
2799
|
-
index: number;
|
|
2800
|
-
id: string;
|
|
2801
2927
|
name: string;
|
|
2928
|
+
id: string;
|
|
2929
|
+
index: number;
|
|
2802
2930
|
arguments: string;
|
|
2803
2931
|
metadata?: undefined;
|
|
2804
2932
|
})[];
|
|
@@ -2818,10 +2946,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2818
2946
|
metadata?: undefined;
|
|
2819
2947
|
} | {
|
|
2820
2948
|
modality: "tool-response";
|
|
2949
|
+
name: string;
|
|
2950
|
+
id: string;
|
|
2821
2951
|
data: string;
|
|
2822
2952
|
index: number;
|
|
2823
|
-
id: string;
|
|
2824
|
-
name: string;
|
|
2825
2953
|
metadata?: any;
|
|
2826
2954
|
apiResponse?: {
|
|
2827
2955
|
statusCode: number;
|
|
@@ -2851,13 +2979,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2851
2979
|
url: string;
|
|
2852
2980
|
};
|
|
2853
2981
|
modality: "pdf";
|
|
2854
|
-
|
|
2982
|
+
file: {
|
|
2983
|
+
name: string;
|
|
2984
|
+
id: string;
|
|
2985
|
+
size?: number | undefined;
|
|
2986
|
+
};
|
|
2855
2987
|
metadata?: undefined;
|
|
2856
2988
|
} | {
|
|
2857
2989
|
modality: "tool-call";
|
|
2858
|
-
index: number;
|
|
2859
|
-
id: string;
|
|
2860
2990
|
name: string;
|
|
2991
|
+
id: string;
|
|
2992
|
+
index: number;
|
|
2861
2993
|
arguments: string;
|
|
2862
2994
|
metadata?: undefined;
|
|
2863
2995
|
})[];
|
|
@@ -2929,10 +3061,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2929
3061
|
metadata?: undefined;
|
|
2930
3062
|
} | {
|
|
2931
3063
|
modality: "tool-response";
|
|
3064
|
+
name: string;
|
|
3065
|
+
id: string;
|
|
2932
3066
|
data: string;
|
|
2933
3067
|
index: number;
|
|
2934
|
-
id: string;
|
|
2935
|
-
name: string;
|
|
2936
3068
|
metadata?: any;
|
|
2937
3069
|
apiResponse?: {
|
|
2938
3070
|
statusCode: number;
|
|
@@ -2962,13 +3094,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2962
3094
|
url: string;
|
|
2963
3095
|
};
|
|
2964
3096
|
modality: "pdf";
|
|
2965
|
-
|
|
3097
|
+
file: {
|
|
3098
|
+
name: string;
|
|
3099
|
+
id: string;
|
|
3100
|
+
size?: number | undefined;
|
|
3101
|
+
};
|
|
2966
3102
|
metadata?: undefined;
|
|
2967
3103
|
} | {
|
|
2968
3104
|
modality: "tool-call";
|
|
2969
|
-
index: number;
|
|
2970
|
-
id: string;
|
|
2971
3105
|
name: string;
|
|
3106
|
+
id: string;
|
|
3107
|
+
index: number;
|
|
2972
3108
|
arguments: string;
|
|
2973
3109
|
metadata?: undefined;
|
|
2974
3110
|
})[];
|
|
@@ -3005,10 +3141,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3005
3141
|
metadata?: undefined;
|
|
3006
3142
|
} | {
|
|
3007
3143
|
modality: "tool-response";
|
|
3144
|
+
name: string;
|
|
3145
|
+
id: string;
|
|
3008
3146
|
data: string;
|
|
3009
3147
|
index: number;
|
|
3010
|
-
id: string;
|
|
3011
|
-
name: string;
|
|
3012
3148
|
metadata?: any;
|
|
3013
3149
|
apiResponse?: {
|
|
3014
3150
|
statusCode: number;
|
|
@@ -3038,13 +3174,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3038
3174
|
url: string;
|
|
3039
3175
|
};
|
|
3040
3176
|
modality: "pdf";
|
|
3041
|
-
|
|
3177
|
+
file: {
|
|
3178
|
+
name: string;
|
|
3179
|
+
id: string;
|
|
3180
|
+
size?: number | undefined;
|
|
3181
|
+
};
|
|
3042
3182
|
metadata?: undefined;
|
|
3043
3183
|
} | {
|
|
3044
3184
|
modality: "tool-call";
|
|
3045
|
-
index: number;
|
|
3046
|
-
id: string;
|
|
3047
3185
|
name: string;
|
|
3186
|
+
id: string;
|
|
3187
|
+
index: number;
|
|
3048
3188
|
arguments: string;
|
|
3049
3189
|
metadata?: undefined;
|
|
3050
3190
|
})[];
|
|
@@ -3086,10 +3226,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3086
3226
|
role: "system" | "user" | "assistant" | "tool";
|
|
3087
3227
|
content: ({
|
|
3088
3228
|
modality: "tool-response";
|
|
3229
|
+
name: string;
|
|
3230
|
+
id: string;
|
|
3089
3231
|
data: string;
|
|
3090
3232
|
index: number;
|
|
3091
|
-
id: string;
|
|
3092
|
-
name: string;
|
|
3093
3233
|
metadata?: any;
|
|
3094
3234
|
apiResponse?: {
|
|
3095
3235
|
statusCode: number;
|
|
@@ -3119,7 +3259,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3119
3259
|
url: string;
|
|
3120
3260
|
};
|
|
3121
3261
|
modality: "pdf";
|
|
3122
|
-
|
|
3262
|
+
file: {
|
|
3263
|
+
name: string;
|
|
3264
|
+
id: string;
|
|
3265
|
+
size?: number | undefined;
|
|
3266
|
+
};
|
|
3123
3267
|
metadata?: undefined;
|
|
3124
3268
|
} | {
|
|
3125
3269
|
id: string;
|
|
@@ -3186,10 +3330,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3186
3330
|
metadata?: undefined;
|
|
3187
3331
|
} | {
|
|
3188
3332
|
modality: "tool-response";
|
|
3333
|
+
name: string;
|
|
3334
|
+
id: string;
|
|
3189
3335
|
data: string;
|
|
3190
3336
|
index: number;
|
|
3191
|
-
id: string;
|
|
3192
|
-
name: string;
|
|
3193
3337
|
metadata?: any;
|
|
3194
3338
|
apiResponse?: {
|
|
3195
3339
|
statusCode: number;
|
|
@@ -3219,13 +3363,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3219
3363
|
url: string;
|
|
3220
3364
|
};
|
|
3221
3365
|
modality: "pdf";
|
|
3222
|
-
|
|
3366
|
+
file: {
|
|
3367
|
+
name: string;
|
|
3368
|
+
id: string;
|
|
3369
|
+
size?: number | undefined;
|
|
3370
|
+
};
|
|
3223
3371
|
metadata?: undefined;
|
|
3224
3372
|
} | {
|
|
3225
3373
|
modality: "tool-call";
|
|
3226
|
-
index: number;
|
|
3227
|
-
id: string;
|
|
3228
3374
|
name: string;
|
|
3375
|
+
id: string;
|
|
3376
|
+
index: number;
|
|
3229
3377
|
arguments: string;
|
|
3230
3378
|
metadata?: undefined;
|
|
3231
3379
|
})[];
|
|
@@ -3261,10 +3409,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3261
3409
|
role: "system" | "user" | "assistant" | "tool";
|
|
3262
3410
|
content: ({
|
|
3263
3411
|
modality: "tool-response";
|
|
3412
|
+
name: string;
|
|
3413
|
+
id: string;
|
|
3264
3414
|
data: string;
|
|
3265
3415
|
index: number;
|
|
3266
|
-
id: string;
|
|
3267
|
-
name: string;
|
|
3268
3416
|
metadata?: any;
|
|
3269
3417
|
apiResponse?: {
|
|
3270
3418
|
statusCode: number;
|
|
@@ -3294,7 +3442,11 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3294
3442
|
url: string;
|
|
3295
3443
|
};
|
|
3296
3444
|
modality: "pdf";
|
|
3297
|
-
|
|
3445
|
+
file: {
|
|
3446
|
+
name: string;
|
|
3447
|
+
id: string;
|
|
3448
|
+
size?: number | undefined;
|
|
3449
|
+
};
|
|
3298
3450
|
metadata?: undefined;
|
|
3299
3451
|
} | {
|
|
3300
3452
|
id: string;
|
|
@@ -3361,10 +3513,10 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3361
3513
|
metadata?: undefined;
|
|
3362
3514
|
} | {
|
|
3363
3515
|
modality: "tool-response";
|
|
3516
|
+
name: string;
|
|
3517
|
+
id: string;
|
|
3364
3518
|
data: string;
|
|
3365
3519
|
index: number;
|
|
3366
|
-
id: string;
|
|
3367
|
-
name: string;
|
|
3368
3520
|
metadata?: any;
|
|
3369
3521
|
apiResponse?: {
|
|
3370
3522
|
statusCode: number;
|
|
@@ -3394,13 +3546,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3394
3546
|
url: string;
|
|
3395
3547
|
};
|
|
3396
3548
|
modality: "pdf";
|
|
3397
|
-
|
|
3549
|
+
file: {
|
|
3550
|
+
name: string;
|
|
3551
|
+
id: string;
|
|
3552
|
+
size?: number | undefined;
|
|
3553
|
+
};
|
|
3398
3554
|
metadata?: undefined;
|
|
3399
3555
|
} | {
|
|
3400
3556
|
modality: "tool-call";
|
|
3401
|
-
index: number;
|
|
3402
|
-
id: string;
|
|
3403
3557
|
name: string;
|
|
3558
|
+
id: string;
|
|
3559
|
+
index: number;
|
|
3404
3560
|
arguments: string;
|
|
3405
3561
|
metadata?: undefined;
|
|
3406
3562
|
})[];
|
|
@@ -4724,10 +4880,22 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4724
4880
|
type: "url";
|
|
4725
4881
|
url: string;
|
|
4726
4882
|
}, {
|
|
4727
|
-
type: "url";
|
|
4728
|
-
url: string;
|
|
4729
|
-
}>]>;
|
|
4730
|
-
|
|
4883
|
+
type: "url";
|
|
4884
|
+
url: string;
|
|
4885
|
+
}>]>;
|
|
4886
|
+
file: z.ZodObject<{
|
|
4887
|
+
name: z.ZodString;
|
|
4888
|
+
id: z.ZodString;
|
|
4889
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4890
|
+
}, "strip", z.ZodTypeAny, {
|
|
4891
|
+
name: string;
|
|
4892
|
+
id: string;
|
|
4893
|
+
size?: number | undefined;
|
|
4894
|
+
}, {
|
|
4895
|
+
name: string;
|
|
4896
|
+
id: string;
|
|
4897
|
+
size?: number | undefined;
|
|
4898
|
+
}>;
|
|
4731
4899
|
metadata: z.ZodUndefined;
|
|
4732
4900
|
}, "strip", z.ZodTypeAny, {
|
|
4733
4901
|
value: {
|
|
@@ -4738,7 +4906,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4738
4906
|
url: string;
|
|
4739
4907
|
};
|
|
4740
4908
|
modality: "pdf";
|
|
4741
|
-
|
|
4909
|
+
file: {
|
|
4910
|
+
name: string;
|
|
4911
|
+
id: string;
|
|
4912
|
+
size?: number | undefined;
|
|
4913
|
+
};
|
|
4742
4914
|
metadata?: undefined;
|
|
4743
4915
|
}, {
|
|
4744
4916
|
value: {
|
|
@@ -4749,7 +4921,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4749
4921
|
url: string;
|
|
4750
4922
|
};
|
|
4751
4923
|
modality: "pdf";
|
|
4752
|
-
|
|
4924
|
+
file: {
|
|
4925
|
+
name: string;
|
|
4926
|
+
id: string;
|
|
4927
|
+
size?: number | undefined;
|
|
4928
|
+
};
|
|
4753
4929
|
metadata?: undefined;
|
|
4754
4930
|
}>, z.ZodObject<{
|
|
4755
4931
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -4788,20 +4964,20 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4788
4964
|
metadata: z.ZodTypeAny;
|
|
4789
4965
|
}, "strip", z.ZodTypeAny, {
|
|
4790
4966
|
modality: "tool-response";
|
|
4967
|
+
name: string;
|
|
4968
|
+
id: string;
|
|
4791
4969
|
data: string;
|
|
4792
4970
|
index: number;
|
|
4793
|
-
id: string;
|
|
4794
|
-
name: string;
|
|
4795
4971
|
metadata?: any;
|
|
4796
4972
|
apiResponse?: {
|
|
4797
4973
|
statusCode: number;
|
|
4798
4974
|
} | undefined;
|
|
4799
4975
|
}, {
|
|
4800
4976
|
modality: "tool-response";
|
|
4977
|
+
name: string;
|
|
4978
|
+
id: string;
|
|
4801
4979
|
data: string;
|
|
4802
4980
|
index: number;
|
|
4803
|
-
id: string;
|
|
4804
|
-
name: string;
|
|
4805
4981
|
metadata?: any;
|
|
4806
4982
|
apiResponse?: {
|
|
4807
4983
|
statusCode: number;
|
|
@@ -4859,10 +5035,10 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4859
5035
|
role: "system" | "user" | "assistant" | "tool";
|
|
4860
5036
|
content: ({
|
|
4861
5037
|
modality: "tool-response";
|
|
5038
|
+
name: string;
|
|
5039
|
+
id: string;
|
|
4862
5040
|
data: string;
|
|
4863
5041
|
index: number;
|
|
4864
|
-
id: string;
|
|
4865
|
-
name: string;
|
|
4866
5042
|
metadata?: any;
|
|
4867
5043
|
apiResponse?: {
|
|
4868
5044
|
statusCode: number;
|
|
@@ -4892,7 +5068,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4892
5068
|
url: string;
|
|
4893
5069
|
};
|
|
4894
5070
|
modality: "pdf";
|
|
4895
|
-
|
|
5071
|
+
file: {
|
|
5072
|
+
name: string;
|
|
5073
|
+
id: string;
|
|
5074
|
+
size?: number | undefined;
|
|
5075
|
+
};
|
|
4896
5076
|
metadata?: undefined;
|
|
4897
5077
|
} | {
|
|
4898
5078
|
id: string;
|
|
@@ -4918,10 +5098,10 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4918
5098
|
role: "system" | "user" | "assistant" | "tool";
|
|
4919
5099
|
content: ({
|
|
4920
5100
|
modality: "tool-response";
|
|
5101
|
+
name: string;
|
|
5102
|
+
id: string;
|
|
4921
5103
|
data: string;
|
|
4922
5104
|
index: number;
|
|
4923
|
-
id: string;
|
|
4924
|
-
name: string;
|
|
4925
5105
|
metadata?: any;
|
|
4926
5106
|
apiResponse?: {
|
|
4927
5107
|
statusCode: number;
|
|
@@ -4951,7 +5131,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
4951
5131
|
url: string;
|
|
4952
5132
|
};
|
|
4953
5133
|
modality: "pdf";
|
|
4954
|
-
|
|
5134
|
+
file: {
|
|
5135
|
+
name: string;
|
|
5136
|
+
id: string;
|
|
5137
|
+
size?: number | undefined;
|
|
5138
|
+
};
|
|
4955
5139
|
metadata?: undefined;
|
|
4956
5140
|
} | {
|
|
4957
5141
|
id: string;
|
|
@@ -5123,10 +5307,10 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
5123
5307
|
role: "system" | "user" | "assistant" | "tool";
|
|
5124
5308
|
content: ({
|
|
5125
5309
|
modality: "tool-response";
|
|
5310
|
+
name: string;
|
|
5311
|
+
id: string;
|
|
5126
5312
|
data: string;
|
|
5127
5313
|
index: number;
|
|
5128
|
-
id: string;
|
|
5129
|
-
name: string;
|
|
5130
5314
|
metadata?: any;
|
|
5131
5315
|
apiResponse?: {
|
|
5132
5316
|
statusCode: number;
|
|
@@ -5156,7 +5340,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
5156
5340
|
url: string;
|
|
5157
5341
|
};
|
|
5158
5342
|
modality: "pdf";
|
|
5159
|
-
|
|
5343
|
+
file: {
|
|
5344
|
+
name: string;
|
|
5345
|
+
id: string;
|
|
5346
|
+
size?: number | undefined;
|
|
5347
|
+
};
|
|
5160
5348
|
metadata?: undefined;
|
|
5161
5349
|
} | {
|
|
5162
5350
|
id: string;
|
|
@@ -5215,10 +5403,10 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
5215
5403
|
role: "system" | "user" | "assistant" | "tool";
|
|
5216
5404
|
content: ({
|
|
5217
5405
|
modality: "tool-response";
|
|
5406
|
+
name: string;
|
|
5407
|
+
id: string;
|
|
5218
5408
|
data: string;
|
|
5219
5409
|
index: number;
|
|
5220
|
-
id: string;
|
|
5221
|
-
name: string;
|
|
5222
5410
|
metadata?: any;
|
|
5223
5411
|
apiResponse?: {
|
|
5224
5412
|
statusCode: number;
|
|
@@ -5248,7 +5436,11 @@ declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
|
5248
5436
|
url: string;
|
|
5249
5437
|
};
|
|
5250
5438
|
modality: "pdf";
|
|
5251
|
-
|
|
5439
|
+
file: {
|
|
5440
|
+
name: string;
|
|
5441
|
+
id: string;
|
|
5442
|
+
size?: number | undefined;
|
|
5443
|
+
};
|
|
5252
5444
|
metadata?: undefined;
|
|
5253
5445
|
} | {
|
|
5254
5446
|
id: string;
|
|
@@ -5743,7 +5935,19 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5743
5935
|
type: "url";
|
|
5744
5936
|
url: string;
|
|
5745
5937
|
}>]>;
|
|
5746
|
-
|
|
5938
|
+
file: z.ZodObject<{
|
|
5939
|
+
name: z.ZodString;
|
|
5940
|
+
id: z.ZodString;
|
|
5941
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5942
|
+
}, "strip", z.ZodTypeAny, {
|
|
5943
|
+
name: string;
|
|
5944
|
+
id: string;
|
|
5945
|
+
size?: number | undefined;
|
|
5946
|
+
}, {
|
|
5947
|
+
name: string;
|
|
5948
|
+
id: string;
|
|
5949
|
+
size?: number | undefined;
|
|
5950
|
+
}>;
|
|
5747
5951
|
metadata: z.ZodUndefined;
|
|
5748
5952
|
}, "strip", z.ZodTypeAny, {
|
|
5749
5953
|
value: {
|
|
@@ -5754,7 +5958,11 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5754
5958
|
url: string;
|
|
5755
5959
|
};
|
|
5756
5960
|
modality: "pdf";
|
|
5757
|
-
|
|
5961
|
+
file: {
|
|
5962
|
+
name: string;
|
|
5963
|
+
id: string;
|
|
5964
|
+
size?: number | undefined;
|
|
5965
|
+
};
|
|
5758
5966
|
metadata?: undefined;
|
|
5759
5967
|
}, {
|
|
5760
5968
|
value: {
|
|
@@ -5765,7 +5973,11 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5765
5973
|
url: string;
|
|
5766
5974
|
};
|
|
5767
5975
|
modality: "pdf";
|
|
5768
|
-
|
|
5976
|
+
file: {
|
|
5977
|
+
name: string;
|
|
5978
|
+
id: string;
|
|
5979
|
+
size?: number | undefined;
|
|
5980
|
+
};
|
|
5769
5981
|
metadata?: undefined;
|
|
5770
5982
|
}>, z.ZodObject<{
|
|
5771
5983
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -5776,16 +5988,16 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5776
5988
|
metadata: z.ZodUndefined;
|
|
5777
5989
|
}, "strip", z.ZodTypeAny, {
|
|
5778
5990
|
modality: "tool-call";
|
|
5779
|
-
index: number;
|
|
5780
|
-
id: string;
|
|
5781
5991
|
name: string;
|
|
5992
|
+
id: string;
|
|
5993
|
+
index: number;
|
|
5782
5994
|
arguments: string;
|
|
5783
5995
|
metadata?: undefined;
|
|
5784
5996
|
}, {
|
|
5785
5997
|
modality: "tool-call";
|
|
5786
|
-
index: number;
|
|
5787
|
-
id: string;
|
|
5788
5998
|
name: string;
|
|
5999
|
+
id: string;
|
|
6000
|
+
index: number;
|
|
5789
6001
|
arguments: string;
|
|
5790
6002
|
metadata?: undefined;
|
|
5791
6003
|
}>, z.ZodObject<{
|
|
@@ -5804,20 +6016,20 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5804
6016
|
metadata: z.ZodTypeAny;
|
|
5805
6017
|
}, "strip", z.ZodTypeAny, {
|
|
5806
6018
|
modality: "tool-response";
|
|
6019
|
+
name: string;
|
|
6020
|
+
id: string;
|
|
5807
6021
|
data: string;
|
|
5808
6022
|
index: number;
|
|
5809
|
-
id: string;
|
|
5810
|
-
name: string;
|
|
5811
6023
|
metadata?: any;
|
|
5812
6024
|
apiResponse?: {
|
|
5813
6025
|
statusCode: number;
|
|
5814
6026
|
} | undefined;
|
|
5815
6027
|
}, {
|
|
5816
6028
|
modality: "tool-response";
|
|
6029
|
+
name: string;
|
|
6030
|
+
id: string;
|
|
5817
6031
|
data: string;
|
|
5818
6032
|
index: number;
|
|
5819
|
-
id: string;
|
|
5820
|
-
name: string;
|
|
5821
6033
|
metadata?: any;
|
|
5822
6034
|
apiResponse?: {
|
|
5823
6035
|
statusCode: number;
|
|
@@ -5886,10 +6098,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5886
6098
|
metadata?: undefined;
|
|
5887
6099
|
} | {
|
|
5888
6100
|
modality: "tool-response";
|
|
6101
|
+
name: string;
|
|
6102
|
+
id: string;
|
|
5889
6103
|
data: string;
|
|
5890
6104
|
index: number;
|
|
5891
|
-
id: string;
|
|
5892
|
-
name: string;
|
|
5893
6105
|
metadata?: any;
|
|
5894
6106
|
apiResponse?: {
|
|
5895
6107
|
statusCode: number;
|
|
@@ -5919,13 +6131,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5919
6131
|
url: string;
|
|
5920
6132
|
};
|
|
5921
6133
|
modality: "pdf";
|
|
5922
|
-
|
|
6134
|
+
file: {
|
|
6135
|
+
name: string;
|
|
6136
|
+
id: string;
|
|
6137
|
+
size?: number | undefined;
|
|
6138
|
+
};
|
|
5923
6139
|
metadata?: undefined;
|
|
5924
6140
|
} | {
|
|
5925
6141
|
modality: "tool-call";
|
|
5926
|
-
index: number;
|
|
5927
|
-
id: string;
|
|
5928
6142
|
name: string;
|
|
6143
|
+
id: string;
|
|
6144
|
+
index: number;
|
|
5929
6145
|
arguments: string;
|
|
5930
6146
|
metadata?: undefined;
|
|
5931
6147
|
})[];
|
|
@@ -5945,10 +6161,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5945
6161
|
metadata?: undefined;
|
|
5946
6162
|
} | {
|
|
5947
6163
|
modality: "tool-response";
|
|
6164
|
+
name: string;
|
|
6165
|
+
id: string;
|
|
5948
6166
|
data: string;
|
|
5949
6167
|
index: number;
|
|
5950
|
-
id: string;
|
|
5951
|
-
name: string;
|
|
5952
6168
|
metadata?: any;
|
|
5953
6169
|
apiResponse?: {
|
|
5954
6170
|
statusCode: number;
|
|
@@ -5978,13 +6194,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
5978
6194
|
url: string;
|
|
5979
6195
|
};
|
|
5980
6196
|
modality: "pdf";
|
|
5981
|
-
|
|
6197
|
+
file: {
|
|
6198
|
+
name: string;
|
|
6199
|
+
id: string;
|
|
6200
|
+
size?: number | undefined;
|
|
6201
|
+
};
|
|
5982
6202
|
metadata?: undefined;
|
|
5983
6203
|
} | {
|
|
5984
6204
|
modality: "tool-call";
|
|
5985
|
-
index: number;
|
|
5986
|
-
id: string;
|
|
5987
6205
|
name: string;
|
|
6206
|
+
id: string;
|
|
6207
|
+
index: number;
|
|
5988
6208
|
arguments: string;
|
|
5989
6209
|
metadata?: undefined;
|
|
5990
6210
|
})[];
|
|
@@ -6056,10 +6276,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6056
6276
|
metadata?: undefined;
|
|
6057
6277
|
} | {
|
|
6058
6278
|
modality: "tool-response";
|
|
6279
|
+
name: string;
|
|
6280
|
+
id: string;
|
|
6059
6281
|
data: string;
|
|
6060
6282
|
index: number;
|
|
6061
|
-
id: string;
|
|
6062
|
-
name: string;
|
|
6063
6283
|
metadata?: any;
|
|
6064
6284
|
apiResponse?: {
|
|
6065
6285
|
statusCode: number;
|
|
@@ -6089,13 +6309,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6089
6309
|
url: string;
|
|
6090
6310
|
};
|
|
6091
6311
|
modality: "pdf";
|
|
6092
|
-
|
|
6312
|
+
file: {
|
|
6313
|
+
name: string;
|
|
6314
|
+
id: string;
|
|
6315
|
+
size?: number | undefined;
|
|
6316
|
+
};
|
|
6093
6317
|
metadata?: undefined;
|
|
6094
6318
|
} | {
|
|
6095
6319
|
modality: "tool-call";
|
|
6096
|
-
index: number;
|
|
6097
|
-
id: string;
|
|
6098
6320
|
name: string;
|
|
6321
|
+
id: string;
|
|
6322
|
+
index: number;
|
|
6099
6323
|
arguments: string;
|
|
6100
6324
|
metadata?: undefined;
|
|
6101
6325
|
})[];
|
|
@@ -6132,10 +6356,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6132
6356
|
metadata?: undefined;
|
|
6133
6357
|
} | {
|
|
6134
6358
|
modality: "tool-response";
|
|
6359
|
+
name: string;
|
|
6360
|
+
id: string;
|
|
6135
6361
|
data: string;
|
|
6136
6362
|
index: number;
|
|
6137
|
-
id: string;
|
|
6138
|
-
name: string;
|
|
6139
6363
|
metadata?: any;
|
|
6140
6364
|
apiResponse?: {
|
|
6141
6365
|
statusCode: number;
|
|
@@ -6165,13 +6389,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6165
6389
|
url: string;
|
|
6166
6390
|
};
|
|
6167
6391
|
modality: "pdf";
|
|
6168
|
-
|
|
6392
|
+
file: {
|
|
6393
|
+
name: string;
|
|
6394
|
+
id: string;
|
|
6395
|
+
size?: number | undefined;
|
|
6396
|
+
};
|
|
6169
6397
|
metadata?: undefined;
|
|
6170
6398
|
} | {
|
|
6171
6399
|
modality: "tool-call";
|
|
6172
|
-
index: number;
|
|
6173
|
-
id: string;
|
|
6174
6400
|
name: string;
|
|
6401
|
+
id: string;
|
|
6402
|
+
index: number;
|
|
6175
6403
|
arguments: string;
|
|
6176
6404
|
metadata?: undefined;
|
|
6177
6405
|
})[];
|
|
@@ -6217,10 +6445,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6217
6445
|
metadata?: undefined;
|
|
6218
6446
|
} | {
|
|
6219
6447
|
modality: "tool-response";
|
|
6448
|
+
name: string;
|
|
6449
|
+
id: string;
|
|
6220
6450
|
data: string;
|
|
6221
6451
|
index: number;
|
|
6222
|
-
id: string;
|
|
6223
|
-
name: string;
|
|
6224
6452
|
metadata?: any;
|
|
6225
6453
|
apiResponse?: {
|
|
6226
6454
|
statusCode: number;
|
|
@@ -6250,13 +6478,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6250
6478
|
url: string;
|
|
6251
6479
|
};
|
|
6252
6480
|
modality: "pdf";
|
|
6253
|
-
|
|
6481
|
+
file: {
|
|
6482
|
+
name: string;
|
|
6483
|
+
id: string;
|
|
6484
|
+
size?: number | undefined;
|
|
6485
|
+
};
|
|
6254
6486
|
metadata?: undefined;
|
|
6255
6487
|
} | {
|
|
6256
6488
|
modality: "tool-call";
|
|
6257
|
-
index: number;
|
|
6258
|
-
id: string;
|
|
6259
6489
|
name: string;
|
|
6490
|
+
id: string;
|
|
6491
|
+
index: number;
|
|
6260
6492
|
arguments: string;
|
|
6261
6493
|
metadata?: undefined;
|
|
6262
6494
|
})[];
|
|
@@ -6302,10 +6534,10 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6302
6534
|
metadata?: undefined;
|
|
6303
6535
|
} | {
|
|
6304
6536
|
modality: "tool-response";
|
|
6537
|
+
name: string;
|
|
6538
|
+
id: string;
|
|
6305
6539
|
data: string;
|
|
6306
6540
|
index: number;
|
|
6307
|
-
id: string;
|
|
6308
|
-
name: string;
|
|
6309
6541
|
metadata?: any;
|
|
6310
6542
|
apiResponse?: {
|
|
6311
6543
|
statusCode: number;
|
|
@@ -6335,13 +6567,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
6335
6567
|
url: string;
|
|
6336
6568
|
};
|
|
6337
6569
|
modality: "pdf";
|
|
6338
|
-
|
|
6570
|
+
file: {
|
|
6571
|
+
name: string;
|
|
6572
|
+
id: string;
|
|
6573
|
+
size?: number | undefined;
|
|
6574
|
+
};
|
|
6339
6575
|
metadata?: undefined;
|
|
6340
6576
|
} | {
|
|
6341
6577
|
modality: "tool-call";
|
|
6342
|
-
index: number;
|
|
6343
|
-
id: string;
|
|
6344
6578
|
name: string;
|
|
6579
|
+
id: string;
|
|
6580
|
+
index: number;
|
|
6345
6581
|
arguments: string;
|
|
6346
6582
|
metadata?: undefined;
|
|
6347
6583
|
})[];
|
|
@@ -7010,15 +7246,15 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7010
7246
|
modality: "partial-tool-call";
|
|
7011
7247
|
index: number;
|
|
7012
7248
|
metadata?: undefined;
|
|
7013
|
-
id?: string | undefined;
|
|
7014
7249
|
name?: string | undefined;
|
|
7250
|
+
id?: string | undefined;
|
|
7015
7251
|
arguments?: string | undefined;
|
|
7016
7252
|
}, {
|
|
7017
7253
|
modality: "partial-tool-call";
|
|
7018
7254
|
index: number;
|
|
7019
7255
|
metadata?: undefined;
|
|
7020
|
-
id?: string | undefined;
|
|
7021
7256
|
name?: string | undefined;
|
|
7257
|
+
id?: string | undefined;
|
|
7022
7258
|
arguments?: string | undefined;
|
|
7023
7259
|
}>, z.ZodObject<{
|
|
7024
7260
|
modality: z.ZodLiteral<"partial-reasoning">;
|
|
@@ -7090,8 +7326,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7090
7326
|
modality: "partial-tool-call";
|
|
7091
7327
|
index: number;
|
|
7092
7328
|
metadata?: undefined;
|
|
7093
|
-
id?: string | undefined;
|
|
7094
7329
|
name?: string | undefined;
|
|
7330
|
+
id?: string | undefined;
|
|
7095
7331
|
arguments?: string | undefined;
|
|
7096
7332
|
};
|
|
7097
7333
|
metadata?: undefined;
|
|
@@ -7116,8 +7352,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7116
7352
|
modality: "partial-tool-call";
|
|
7117
7353
|
index: number;
|
|
7118
7354
|
metadata?: undefined;
|
|
7119
|
-
id?: string | undefined;
|
|
7120
7355
|
name?: string | undefined;
|
|
7356
|
+
id?: string | undefined;
|
|
7121
7357
|
arguments?: string | undefined;
|
|
7122
7358
|
};
|
|
7123
7359
|
metadata?: undefined;
|
|
@@ -7194,8 +7430,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7194
7430
|
modality: "partial-tool-call";
|
|
7195
7431
|
index: number;
|
|
7196
7432
|
metadata?: undefined;
|
|
7197
|
-
id?: string | undefined;
|
|
7198
7433
|
name?: string | undefined;
|
|
7434
|
+
id?: string | undefined;
|
|
7199
7435
|
arguments?: string | undefined;
|
|
7200
7436
|
};
|
|
7201
7437
|
metadata?: undefined;
|
|
@@ -7237,8 +7473,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7237
7473
|
modality: "partial-tool-call";
|
|
7238
7474
|
index: number;
|
|
7239
7475
|
metadata?: undefined;
|
|
7240
|
-
id?: string | undefined;
|
|
7241
7476
|
name?: string | undefined;
|
|
7477
|
+
id?: string | undefined;
|
|
7242
7478
|
arguments?: string | undefined;
|
|
7243
7479
|
};
|
|
7244
7480
|
metadata?: undefined;
|
|
@@ -7289,8 +7525,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7289
7525
|
modality: "partial-tool-call";
|
|
7290
7526
|
index: number;
|
|
7291
7527
|
metadata?: undefined;
|
|
7292
|
-
id?: string | undefined;
|
|
7293
7528
|
name?: string | undefined;
|
|
7529
|
+
id?: string | undefined;
|
|
7294
7530
|
arguments?: string | undefined;
|
|
7295
7531
|
};
|
|
7296
7532
|
metadata?: undefined;
|
|
@@ -7341,8 +7577,8 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
7341
7577
|
modality: "partial-tool-call";
|
|
7342
7578
|
index: number;
|
|
7343
7579
|
metadata?: undefined;
|
|
7344
|
-
id?: string | undefined;
|
|
7345
7580
|
name?: string | undefined;
|
|
7581
|
+
id?: string | undefined;
|
|
7346
7582
|
arguments?: string | undefined;
|
|
7347
7583
|
};
|
|
7348
7584
|
metadata?: undefined;
|
|
@@ -7576,7 +7812,19 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7576
7812
|
type: "url";
|
|
7577
7813
|
url: string;
|
|
7578
7814
|
}>]>;
|
|
7579
|
-
|
|
7815
|
+
file: z.ZodObject<{
|
|
7816
|
+
name: z.ZodString;
|
|
7817
|
+
id: z.ZodString;
|
|
7818
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7819
|
+
}, "strip", z.ZodTypeAny, {
|
|
7820
|
+
name: string;
|
|
7821
|
+
id: string;
|
|
7822
|
+
size?: number | undefined;
|
|
7823
|
+
}, {
|
|
7824
|
+
name: string;
|
|
7825
|
+
id: string;
|
|
7826
|
+
size?: number | undefined;
|
|
7827
|
+
}>;
|
|
7580
7828
|
metadata: z.ZodUndefined;
|
|
7581
7829
|
}, "strip", z.ZodTypeAny, {
|
|
7582
7830
|
value: {
|
|
@@ -7587,7 +7835,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7587
7835
|
url: string;
|
|
7588
7836
|
};
|
|
7589
7837
|
modality: "pdf";
|
|
7590
|
-
|
|
7838
|
+
file: {
|
|
7839
|
+
name: string;
|
|
7840
|
+
id: string;
|
|
7841
|
+
size?: number | undefined;
|
|
7842
|
+
};
|
|
7591
7843
|
metadata?: undefined;
|
|
7592
7844
|
}, {
|
|
7593
7845
|
value: {
|
|
@@ -7598,7 +7850,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7598
7850
|
url: string;
|
|
7599
7851
|
};
|
|
7600
7852
|
modality: "pdf";
|
|
7601
|
-
|
|
7853
|
+
file: {
|
|
7854
|
+
name: string;
|
|
7855
|
+
id: string;
|
|
7856
|
+
size?: number | undefined;
|
|
7857
|
+
};
|
|
7602
7858
|
metadata?: undefined;
|
|
7603
7859
|
}>, z.ZodObject<{
|
|
7604
7860
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -7637,20 +7893,20 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7637
7893
|
metadata: z.ZodTypeAny;
|
|
7638
7894
|
}, "strip", z.ZodTypeAny, {
|
|
7639
7895
|
modality: "tool-response";
|
|
7896
|
+
name: string;
|
|
7897
|
+
id: string;
|
|
7640
7898
|
data: string;
|
|
7641
7899
|
index: number;
|
|
7642
|
-
id: string;
|
|
7643
|
-
name: string;
|
|
7644
7900
|
metadata?: any;
|
|
7645
7901
|
apiResponse?: {
|
|
7646
7902
|
statusCode: number;
|
|
7647
7903
|
} | undefined;
|
|
7648
7904
|
}, {
|
|
7649
7905
|
modality: "tool-response";
|
|
7906
|
+
name: string;
|
|
7907
|
+
id: string;
|
|
7650
7908
|
data: string;
|
|
7651
7909
|
index: number;
|
|
7652
|
-
id: string;
|
|
7653
|
-
name: string;
|
|
7654
7910
|
metadata?: any;
|
|
7655
7911
|
apiResponse?: {
|
|
7656
7912
|
statusCode: number;
|
|
@@ -7708,10 +7964,10 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7708
7964
|
role: "system" | "user" | "assistant" | "tool";
|
|
7709
7965
|
content: ({
|
|
7710
7966
|
modality: "tool-response";
|
|
7967
|
+
name: string;
|
|
7968
|
+
id: string;
|
|
7711
7969
|
data: string;
|
|
7712
7970
|
index: number;
|
|
7713
|
-
id: string;
|
|
7714
|
-
name: string;
|
|
7715
7971
|
metadata?: any;
|
|
7716
7972
|
apiResponse?: {
|
|
7717
7973
|
statusCode: number;
|
|
@@ -7741,7 +7997,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7741
7997
|
url: string;
|
|
7742
7998
|
};
|
|
7743
7999
|
modality: "pdf";
|
|
7744
|
-
|
|
8000
|
+
file: {
|
|
8001
|
+
name: string;
|
|
8002
|
+
id: string;
|
|
8003
|
+
size?: number | undefined;
|
|
8004
|
+
};
|
|
7745
8005
|
metadata?: undefined;
|
|
7746
8006
|
} | {
|
|
7747
8007
|
id: string;
|
|
@@ -7767,10 +8027,10 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7767
8027
|
role: "system" | "user" | "assistant" | "tool";
|
|
7768
8028
|
content: ({
|
|
7769
8029
|
modality: "tool-response";
|
|
8030
|
+
name: string;
|
|
8031
|
+
id: string;
|
|
7770
8032
|
data: string;
|
|
7771
8033
|
index: number;
|
|
7772
|
-
id: string;
|
|
7773
|
-
name: string;
|
|
7774
8034
|
metadata?: any;
|
|
7775
8035
|
apiResponse?: {
|
|
7776
8036
|
statusCode: number;
|
|
@@ -7800,7 +8060,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
7800
8060
|
url: string;
|
|
7801
8061
|
};
|
|
7802
8062
|
modality: "pdf";
|
|
7803
|
-
|
|
8063
|
+
file: {
|
|
8064
|
+
name: string;
|
|
8065
|
+
id: string;
|
|
8066
|
+
size?: number | undefined;
|
|
8067
|
+
};
|
|
7804
8068
|
metadata?: undefined;
|
|
7805
8069
|
} | {
|
|
7806
8070
|
id: string;
|
|
@@ -8034,10 +8298,10 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
8034
8298
|
role: "system" | "user" | "assistant" | "tool";
|
|
8035
8299
|
content: ({
|
|
8036
8300
|
modality: "tool-response";
|
|
8301
|
+
name: string;
|
|
8302
|
+
id: string;
|
|
8037
8303
|
data: string;
|
|
8038
8304
|
index: number;
|
|
8039
|
-
id: string;
|
|
8040
|
-
name: string;
|
|
8041
8305
|
metadata?: any;
|
|
8042
8306
|
apiResponse?: {
|
|
8043
8307
|
statusCode: number;
|
|
@@ -8067,7 +8331,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
8067
8331
|
url: string;
|
|
8068
8332
|
};
|
|
8069
8333
|
modality: "pdf";
|
|
8070
|
-
|
|
8334
|
+
file: {
|
|
8335
|
+
name: string;
|
|
8336
|
+
id: string;
|
|
8337
|
+
size?: number | undefined;
|
|
8338
|
+
};
|
|
8071
8339
|
metadata?: undefined;
|
|
8072
8340
|
} | {
|
|
8073
8341
|
id: string;
|
|
@@ -8188,10 +8456,10 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
8188
8456
|
role: "system" | "user" | "assistant" | "tool";
|
|
8189
8457
|
content: ({
|
|
8190
8458
|
modality: "tool-response";
|
|
8459
|
+
name: string;
|
|
8460
|
+
id: string;
|
|
8191
8461
|
data: string;
|
|
8192
8462
|
index: number;
|
|
8193
|
-
id: string;
|
|
8194
|
-
name: string;
|
|
8195
8463
|
metadata?: any;
|
|
8196
8464
|
apiResponse?: {
|
|
8197
8465
|
statusCode: number;
|
|
@@ -8221,7 +8489,11 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
8221
8489
|
url: string;
|
|
8222
8490
|
};
|
|
8223
8491
|
modality: "pdf";
|
|
8224
|
-
|
|
8492
|
+
file: {
|
|
8493
|
+
name: string;
|
|
8494
|
+
id: string;
|
|
8495
|
+
size?: number | undefined;
|
|
8496
|
+
};
|
|
8225
8497
|
metadata?: undefined;
|
|
8226
8498
|
} | {
|
|
8227
8499
|
id: string;
|
|
@@ -8365,7 +8637,19 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8365
8637
|
type: "url";
|
|
8366
8638
|
url: string;
|
|
8367
8639
|
}>]>;
|
|
8368
|
-
|
|
8640
|
+
file: z.ZodObject<{
|
|
8641
|
+
name: z.ZodString;
|
|
8642
|
+
id: z.ZodString;
|
|
8643
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
8644
|
+
}, "strip", z.ZodTypeAny, {
|
|
8645
|
+
name: string;
|
|
8646
|
+
id: string;
|
|
8647
|
+
size?: number | undefined;
|
|
8648
|
+
}, {
|
|
8649
|
+
name: string;
|
|
8650
|
+
id: string;
|
|
8651
|
+
size?: number | undefined;
|
|
8652
|
+
}>;
|
|
8369
8653
|
metadata: z.ZodUndefined;
|
|
8370
8654
|
}, "strip", z.ZodTypeAny, {
|
|
8371
8655
|
value: {
|
|
@@ -8376,7 +8660,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8376
8660
|
url: string;
|
|
8377
8661
|
};
|
|
8378
8662
|
modality: "pdf";
|
|
8379
|
-
|
|
8663
|
+
file: {
|
|
8664
|
+
name: string;
|
|
8665
|
+
id: string;
|
|
8666
|
+
size?: number | undefined;
|
|
8667
|
+
};
|
|
8380
8668
|
metadata?: undefined;
|
|
8381
8669
|
}, {
|
|
8382
8670
|
value: {
|
|
@@ -8387,7 +8675,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8387
8675
|
url: string;
|
|
8388
8676
|
};
|
|
8389
8677
|
modality: "pdf";
|
|
8390
|
-
|
|
8678
|
+
file: {
|
|
8679
|
+
name: string;
|
|
8680
|
+
id: string;
|
|
8681
|
+
size?: number | undefined;
|
|
8682
|
+
};
|
|
8391
8683
|
metadata?: undefined;
|
|
8392
8684
|
}>, z.ZodObject<{
|
|
8393
8685
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -8426,20 +8718,20 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8426
8718
|
metadata: z.ZodTypeAny;
|
|
8427
8719
|
}, "strip", z.ZodTypeAny, {
|
|
8428
8720
|
modality: "tool-response";
|
|
8721
|
+
name: string;
|
|
8722
|
+
id: string;
|
|
8429
8723
|
data: string;
|
|
8430
8724
|
index: number;
|
|
8431
|
-
id: string;
|
|
8432
|
-
name: string;
|
|
8433
8725
|
metadata?: any;
|
|
8434
8726
|
apiResponse?: {
|
|
8435
8727
|
statusCode: number;
|
|
8436
8728
|
} | undefined;
|
|
8437
8729
|
}, {
|
|
8438
8730
|
modality: "tool-response";
|
|
8731
|
+
name: string;
|
|
8732
|
+
id: string;
|
|
8439
8733
|
data: string;
|
|
8440
8734
|
index: number;
|
|
8441
|
-
id: string;
|
|
8442
|
-
name: string;
|
|
8443
8735
|
metadata?: any;
|
|
8444
8736
|
apiResponse?: {
|
|
8445
8737
|
statusCode: number;
|
|
@@ -8497,10 +8789,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8497
8789
|
role: "system" | "user" | "assistant" | "tool";
|
|
8498
8790
|
content: ({
|
|
8499
8791
|
modality: "tool-response";
|
|
8792
|
+
name: string;
|
|
8793
|
+
id: string;
|
|
8500
8794
|
data: string;
|
|
8501
8795
|
index: number;
|
|
8502
|
-
id: string;
|
|
8503
|
-
name: string;
|
|
8504
8796
|
metadata?: any;
|
|
8505
8797
|
apiResponse?: {
|
|
8506
8798
|
statusCode: number;
|
|
@@ -8530,7 +8822,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8530
8822
|
url: string;
|
|
8531
8823
|
};
|
|
8532
8824
|
modality: "pdf";
|
|
8533
|
-
|
|
8825
|
+
file: {
|
|
8826
|
+
name: string;
|
|
8827
|
+
id: string;
|
|
8828
|
+
size?: number | undefined;
|
|
8829
|
+
};
|
|
8534
8830
|
metadata?: undefined;
|
|
8535
8831
|
} | {
|
|
8536
8832
|
id: string;
|
|
@@ -8556,10 +8852,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8556
8852
|
role: "system" | "user" | "assistant" | "tool";
|
|
8557
8853
|
content: ({
|
|
8558
8854
|
modality: "tool-response";
|
|
8855
|
+
name: string;
|
|
8856
|
+
id: string;
|
|
8559
8857
|
data: string;
|
|
8560
8858
|
index: number;
|
|
8561
|
-
id: string;
|
|
8562
|
-
name: string;
|
|
8563
8859
|
metadata?: any;
|
|
8564
8860
|
apiResponse?: {
|
|
8565
8861
|
statusCode: number;
|
|
@@ -8589,7 +8885,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8589
8885
|
url: string;
|
|
8590
8886
|
};
|
|
8591
8887
|
modality: "pdf";
|
|
8592
|
-
|
|
8888
|
+
file: {
|
|
8889
|
+
name: string;
|
|
8890
|
+
id: string;
|
|
8891
|
+
size?: number | undefined;
|
|
8892
|
+
};
|
|
8593
8893
|
metadata?: undefined;
|
|
8594
8894
|
} | {
|
|
8595
8895
|
id: string;
|
|
@@ -8758,10 +9058,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8758
9058
|
role: "system" | "user" | "assistant" | "tool";
|
|
8759
9059
|
content: ({
|
|
8760
9060
|
modality: "tool-response";
|
|
9061
|
+
name: string;
|
|
9062
|
+
id: string;
|
|
8761
9063
|
data: string;
|
|
8762
9064
|
index: number;
|
|
8763
|
-
id: string;
|
|
8764
|
-
name: string;
|
|
8765
9065
|
metadata?: any;
|
|
8766
9066
|
apiResponse?: {
|
|
8767
9067
|
statusCode: number;
|
|
@@ -8790,8 +9090,12 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8790
9090
|
type: "url";
|
|
8791
9091
|
url: string;
|
|
8792
9092
|
};
|
|
8793
|
-
modality: "pdf";
|
|
8794
|
-
|
|
9093
|
+
modality: "pdf";
|
|
9094
|
+
file: {
|
|
9095
|
+
name: string;
|
|
9096
|
+
id: string;
|
|
9097
|
+
size?: number | undefined;
|
|
9098
|
+
};
|
|
8795
9099
|
metadata?: undefined;
|
|
8796
9100
|
} | {
|
|
8797
9101
|
id: string;
|
|
@@ -8847,10 +9151,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8847
9151
|
role: "system" | "user" | "assistant" | "tool";
|
|
8848
9152
|
content: ({
|
|
8849
9153
|
modality: "tool-response";
|
|
9154
|
+
name: string;
|
|
9155
|
+
id: string;
|
|
8850
9156
|
data: string;
|
|
8851
9157
|
index: number;
|
|
8852
|
-
id: string;
|
|
8853
|
-
name: string;
|
|
8854
9158
|
metadata?: any;
|
|
8855
9159
|
apiResponse?: {
|
|
8856
9160
|
statusCode: number;
|
|
@@ -8880,7 +9184,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8880
9184
|
url: string;
|
|
8881
9185
|
};
|
|
8882
9186
|
modality: "pdf";
|
|
8883
|
-
|
|
9187
|
+
file: {
|
|
9188
|
+
name: string;
|
|
9189
|
+
id: string;
|
|
9190
|
+
size?: number | undefined;
|
|
9191
|
+
};
|
|
8884
9192
|
metadata?: undefined;
|
|
8885
9193
|
} | {
|
|
8886
9194
|
id: string;
|
|
@@ -8957,15 +9265,15 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
8957
9265
|
modality: "partial-tool-call";
|
|
8958
9266
|
index: number;
|
|
8959
9267
|
metadata?: undefined;
|
|
8960
|
-
id?: string | undefined;
|
|
8961
9268
|
name?: string | undefined;
|
|
9269
|
+
id?: string | undefined;
|
|
8962
9270
|
arguments?: string | undefined;
|
|
8963
9271
|
}, {
|
|
8964
9272
|
modality: "partial-tool-call";
|
|
8965
9273
|
index: number;
|
|
8966
9274
|
metadata?: undefined;
|
|
8967
|
-
id?: string | undefined;
|
|
8968
9275
|
name?: string | undefined;
|
|
9276
|
+
id?: string | undefined;
|
|
8969
9277
|
arguments?: string | undefined;
|
|
8970
9278
|
}>, z.ZodObject<{
|
|
8971
9279
|
modality: z.ZodLiteral<"partial-reasoning">;
|
|
@@ -9037,8 +9345,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9037
9345
|
modality: "partial-tool-call";
|
|
9038
9346
|
index: number;
|
|
9039
9347
|
metadata?: undefined;
|
|
9040
|
-
id?: string | undefined;
|
|
9041
9348
|
name?: string | undefined;
|
|
9349
|
+
id?: string | undefined;
|
|
9042
9350
|
arguments?: string | undefined;
|
|
9043
9351
|
};
|
|
9044
9352
|
metadata?: undefined;
|
|
@@ -9063,8 +9371,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9063
9371
|
modality: "partial-tool-call";
|
|
9064
9372
|
index: number;
|
|
9065
9373
|
metadata?: undefined;
|
|
9066
|
-
id?: string | undefined;
|
|
9067
9374
|
name?: string | undefined;
|
|
9375
|
+
id?: string | undefined;
|
|
9068
9376
|
arguments?: string | undefined;
|
|
9069
9377
|
};
|
|
9070
9378
|
metadata?: undefined;
|
|
@@ -9141,8 +9449,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9141
9449
|
modality: "partial-tool-call";
|
|
9142
9450
|
index: number;
|
|
9143
9451
|
metadata?: undefined;
|
|
9144
|
-
id?: string | undefined;
|
|
9145
9452
|
name?: string | undefined;
|
|
9453
|
+
id?: string | undefined;
|
|
9146
9454
|
arguments?: string | undefined;
|
|
9147
9455
|
};
|
|
9148
9456
|
metadata?: undefined;
|
|
@@ -9184,8 +9492,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9184
9492
|
modality: "partial-tool-call";
|
|
9185
9493
|
index: number;
|
|
9186
9494
|
metadata?: undefined;
|
|
9187
|
-
id?: string | undefined;
|
|
9188
9495
|
name?: string | undefined;
|
|
9496
|
+
id?: string | undefined;
|
|
9189
9497
|
arguments?: string | undefined;
|
|
9190
9498
|
};
|
|
9191
9499
|
metadata?: undefined;
|
|
@@ -9224,10 +9532,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9224
9532
|
role: "system" | "user" | "assistant" | "tool";
|
|
9225
9533
|
content: ({
|
|
9226
9534
|
modality: "tool-response";
|
|
9535
|
+
name: string;
|
|
9536
|
+
id: string;
|
|
9227
9537
|
data: string;
|
|
9228
9538
|
index: number;
|
|
9229
|
-
id: string;
|
|
9230
|
-
name: string;
|
|
9231
9539
|
metadata?: any;
|
|
9232
9540
|
apiResponse?: {
|
|
9233
9541
|
statusCode: number;
|
|
@@ -9257,7 +9565,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9257
9565
|
url: string;
|
|
9258
9566
|
};
|
|
9259
9567
|
modality: "pdf";
|
|
9260
|
-
|
|
9568
|
+
file: {
|
|
9569
|
+
name: string;
|
|
9570
|
+
id: string;
|
|
9571
|
+
size?: number | undefined;
|
|
9572
|
+
};
|
|
9261
9573
|
metadata?: undefined;
|
|
9262
9574
|
} | {
|
|
9263
9575
|
id: string;
|
|
@@ -9330,8 +9642,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9330
9642
|
modality: "partial-tool-call";
|
|
9331
9643
|
index: number;
|
|
9332
9644
|
metadata?: undefined;
|
|
9333
|
-
id?: string | undefined;
|
|
9334
9645
|
name?: string | undefined;
|
|
9646
|
+
id?: string | undefined;
|
|
9335
9647
|
arguments?: string | undefined;
|
|
9336
9648
|
};
|
|
9337
9649
|
metadata?: undefined;
|
|
@@ -9364,10 +9676,10 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9364
9676
|
role: "system" | "user" | "assistant" | "tool";
|
|
9365
9677
|
content: ({
|
|
9366
9678
|
modality: "tool-response";
|
|
9679
|
+
name: string;
|
|
9680
|
+
id: string;
|
|
9367
9681
|
data: string;
|
|
9368
9682
|
index: number;
|
|
9369
|
-
id: string;
|
|
9370
|
-
name: string;
|
|
9371
9683
|
metadata?: any;
|
|
9372
9684
|
apiResponse?: {
|
|
9373
9685
|
statusCode: number;
|
|
@@ -9397,7 +9709,11 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9397
9709
|
url: string;
|
|
9398
9710
|
};
|
|
9399
9711
|
modality: "pdf";
|
|
9400
|
-
|
|
9712
|
+
file: {
|
|
9713
|
+
name: string;
|
|
9714
|
+
id: string;
|
|
9715
|
+
size?: number | undefined;
|
|
9716
|
+
};
|
|
9401
9717
|
metadata?: undefined;
|
|
9402
9718
|
} | {
|
|
9403
9719
|
id: string;
|
|
@@ -9470,8 +9786,8 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
9470
9786
|
modality: "partial-tool-call";
|
|
9471
9787
|
index: number;
|
|
9472
9788
|
metadata?: undefined;
|
|
9473
|
-
id?: string | undefined;
|
|
9474
9789
|
name?: string | undefined;
|
|
9790
|
+
id?: string | undefined;
|
|
9475
9791
|
arguments?: string | undefined;
|
|
9476
9792
|
};
|
|
9477
9793
|
metadata?: undefined;
|
|
@@ -9550,10 +9866,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9550
9866
|
role: "system" | "user" | "assistant" | "tool";
|
|
9551
9867
|
content: ({
|
|
9552
9868
|
modality: "tool-response";
|
|
9869
|
+
name: string;
|
|
9870
|
+
id: string;
|
|
9553
9871
|
data: string;
|
|
9554
9872
|
index: number;
|
|
9555
|
-
id: string;
|
|
9556
|
-
name: string;
|
|
9557
9873
|
metadata?: any;
|
|
9558
9874
|
apiResponse?: {
|
|
9559
9875
|
statusCode: number;
|
|
@@ -9583,7 +9899,11 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9583
9899
|
url: string;
|
|
9584
9900
|
};
|
|
9585
9901
|
modality: "pdf";
|
|
9586
|
-
|
|
9902
|
+
file: {
|
|
9903
|
+
name: string;
|
|
9904
|
+
id: string;
|
|
9905
|
+
size?: number | undefined;
|
|
9906
|
+
};
|
|
9587
9907
|
metadata?: undefined;
|
|
9588
9908
|
} | {
|
|
9589
9909
|
id: string;
|
|
@@ -9650,10 +9970,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9650
9970
|
metadata?: undefined;
|
|
9651
9971
|
} | {
|
|
9652
9972
|
modality: "tool-response";
|
|
9973
|
+
name: string;
|
|
9974
|
+
id: string;
|
|
9653
9975
|
data: string;
|
|
9654
9976
|
index: number;
|
|
9655
|
-
id: string;
|
|
9656
|
-
name: string;
|
|
9657
9977
|
metadata?: any;
|
|
9658
9978
|
apiResponse?: {
|
|
9659
9979
|
statusCode: number;
|
|
@@ -9683,13 +10003,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9683
10003
|
url: string;
|
|
9684
10004
|
};
|
|
9685
10005
|
modality: "pdf";
|
|
9686
|
-
|
|
10006
|
+
file: {
|
|
10007
|
+
name: string;
|
|
10008
|
+
id: string;
|
|
10009
|
+
size?: number | undefined;
|
|
10010
|
+
};
|
|
9687
10011
|
metadata?: undefined;
|
|
9688
10012
|
} | {
|
|
9689
10013
|
modality: "tool-call";
|
|
9690
|
-
index: number;
|
|
9691
|
-
id: string;
|
|
9692
10014
|
name: string;
|
|
10015
|
+
id: string;
|
|
10016
|
+
index: number;
|
|
9693
10017
|
arguments: string;
|
|
9694
10018
|
metadata?: undefined;
|
|
9695
10019
|
})[];
|
|
@@ -9725,10 +10049,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9725
10049
|
role: "system" | "user" | "assistant" | "tool";
|
|
9726
10050
|
content: ({
|
|
9727
10051
|
modality: "tool-response";
|
|
10052
|
+
name: string;
|
|
10053
|
+
id: string;
|
|
9728
10054
|
data: string;
|
|
9729
10055
|
index: number;
|
|
9730
|
-
id: string;
|
|
9731
|
-
name: string;
|
|
9732
10056
|
metadata?: any;
|
|
9733
10057
|
apiResponse?: {
|
|
9734
10058
|
statusCode: number;
|
|
@@ -9758,7 +10082,11 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9758
10082
|
url: string;
|
|
9759
10083
|
};
|
|
9760
10084
|
modality: "pdf";
|
|
9761
|
-
|
|
10085
|
+
file: {
|
|
10086
|
+
name: string;
|
|
10087
|
+
id: string;
|
|
10088
|
+
size?: number | undefined;
|
|
10089
|
+
};
|
|
9762
10090
|
metadata?: undefined;
|
|
9763
10091
|
} | {
|
|
9764
10092
|
id: string;
|
|
@@ -9825,10 +10153,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9825
10153
|
metadata?: undefined;
|
|
9826
10154
|
} | {
|
|
9827
10155
|
modality: "tool-response";
|
|
10156
|
+
name: string;
|
|
10157
|
+
id: string;
|
|
9828
10158
|
data: string;
|
|
9829
10159
|
index: number;
|
|
9830
|
-
id: string;
|
|
9831
|
-
name: string;
|
|
9832
10160
|
metadata?: any;
|
|
9833
10161
|
apiResponse?: {
|
|
9834
10162
|
statusCode: number;
|
|
@@ -9858,13 +10186,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
9858
10186
|
url: string;
|
|
9859
10187
|
};
|
|
9860
10188
|
modality: "pdf";
|
|
9861
|
-
|
|
10189
|
+
file: {
|
|
10190
|
+
name: string;
|
|
10191
|
+
id: string;
|
|
10192
|
+
size?: number | undefined;
|
|
10193
|
+
};
|
|
9862
10194
|
metadata?: undefined;
|
|
9863
10195
|
} | {
|
|
9864
10196
|
modality: "tool-call";
|
|
9865
|
-
index: number;
|
|
9866
|
-
id: string;
|
|
9867
10197
|
name: string;
|
|
10198
|
+
id: string;
|
|
10199
|
+
index: number;
|
|
9868
10200
|
arguments: string;
|
|
9869
10201
|
metadata?: undefined;
|
|
9870
10202
|
})[];
|
|
@@ -10041,10 +10373,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10041
10373
|
role: "system" | "user" | "assistant" | "tool";
|
|
10042
10374
|
content: ({
|
|
10043
10375
|
modality: "tool-response";
|
|
10376
|
+
name: string;
|
|
10377
|
+
id: string;
|
|
10044
10378
|
data: string;
|
|
10045
10379
|
index: number;
|
|
10046
|
-
id: string;
|
|
10047
|
-
name: string;
|
|
10048
10380
|
metadata?: any;
|
|
10049
10381
|
apiResponse?: {
|
|
10050
10382
|
statusCode: number;
|
|
@@ -10074,7 +10406,11 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10074
10406
|
url: string;
|
|
10075
10407
|
};
|
|
10076
10408
|
modality: "pdf";
|
|
10077
|
-
|
|
10409
|
+
file: {
|
|
10410
|
+
name: string;
|
|
10411
|
+
id: string;
|
|
10412
|
+
size?: number | undefined;
|
|
10413
|
+
};
|
|
10078
10414
|
metadata?: undefined;
|
|
10079
10415
|
} | {
|
|
10080
10416
|
id: string;
|
|
@@ -10141,10 +10477,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10141
10477
|
metadata?: undefined;
|
|
10142
10478
|
} | {
|
|
10143
10479
|
modality: "tool-response";
|
|
10480
|
+
name: string;
|
|
10481
|
+
id: string;
|
|
10144
10482
|
data: string;
|
|
10145
10483
|
index: number;
|
|
10146
|
-
id: string;
|
|
10147
|
-
name: string;
|
|
10148
10484
|
metadata?: any;
|
|
10149
10485
|
apiResponse?: {
|
|
10150
10486
|
statusCode: number;
|
|
@@ -10174,13 +10510,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10174
10510
|
url: string;
|
|
10175
10511
|
};
|
|
10176
10512
|
modality: "pdf";
|
|
10177
|
-
|
|
10513
|
+
file: {
|
|
10514
|
+
name: string;
|
|
10515
|
+
id: string;
|
|
10516
|
+
size?: number | undefined;
|
|
10517
|
+
};
|
|
10178
10518
|
metadata?: undefined;
|
|
10179
10519
|
} | {
|
|
10180
10520
|
modality: "tool-call";
|
|
10181
|
-
index: number;
|
|
10182
|
-
id: string;
|
|
10183
10521
|
name: string;
|
|
10522
|
+
id: string;
|
|
10523
|
+
index: number;
|
|
10184
10524
|
arguments: string;
|
|
10185
10525
|
metadata?: undefined;
|
|
10186
10526
|
})[];
|
|
@@ -10296,10 +10636,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10296
10636
|
role: "system" | "user" | "assistant" | "tool";
|
|
10297
10637
|
content: ({
|
|
10298
10638
|
modality: "tool-response";
|
|
10639
|
+
name: string;
|
|
10640
|
+
id: string;
|
|
10299
10641
|
data: string;
|
|
10300
10642
|
index: number;
|
|
10301
|
-
id: string;
|
|
10302
|
-
name: string;
|
|
10303
10643
|
metadata?: any;
|
|
10304
10644
|
apiResponse?: {
|
|
10305
10645
|
statusCode: number;
|
|
@@ -10329,7 +10669,11 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10329
10669
|
url: string;
|
|
10330
10670
|
};
|
|
10331
10671
|
modality: "pdf";
|
|
10332
|
-
|
|
10672
|
+
file: {
|
|
10673
|
+
name: string;
|
|
10674
|
+
id: string;
|
|
10675
|
+
size?: number | undefined;
|
|
10676
|
+
};
|
|
10333
10677
|
metadata?: undefined;
|
|
10334
10678
|
} | {
|
|
10335
10679
|
id: string;
|
|
@@ -10396,10 +10740,10 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10396
10740
|
metadata?: undefined;
|
|
10397
10741
|
} | {
|
|
10398
10742
|
modality: "tool-response";
|
|
10743
|
+
name: string;
|
|
10744
|
+
id: string;
|
|
10399
10745
|
data: string;
|
|
10400
10746
|
index: number;
|
|
10401
|
-
id: string;
|
|
10402
|
-
name: string;
|
|
10403
10747
|
metadata?: any;
|
|
10404
10748
|
apiResponse?: {
|
|
10405
10749
|
statusCode: number;
|
|
@@ -10429,13 +10773,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
10429
10773
|
url: string;
|
|
10430
10774
|
};
|
|
10431
10775
|
modality: "pdf";
|
|
10432
|
-
|
|
10776
|
+
file: {
|
|
10777
|
+
name: string;
|
|
10778
|
+
id: string;
|
|
10779
|
+
size?: number | undefined;
|
|
10780
|
+
};
|
|
10433
10781
|
metadata?: undefined;
|
|
10434
10782
|
} | {
|
|
10435
10783
|
modality: "tool-call";
|
|
10436
|
-
index: number;
|
|
10437
|
-
id: string;
|
|
10438
10784
|
name: string;
|
|
10785
|
+
id: string;
|
|
10786
|
+
index: number;
|
|
10439
10787
|
arguments: string;
|
|
10440
10788
|
metadata?: undefined;
|
|
10441
10789
|
})[];
|
|
@@ -10741,7 +11089,19 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10741
11089
|
type: "url";
|
|
10742
11090
|
url: string;
|
|
10743
11091
|
}>]>;
|
|
10744
|
-
|
|
11092
|
+
file: z.ZodObject<{
|
|
11093
|
+
name: z.ZodString;
|
|
11094
|
+
id: z.ZodString;
|
|
11095
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
11096
|
+
}, "strip", z.ZodTypeAny, {
|
|
11097
|
+
name: string;
|
|
11098
|
+
id: string;
|
|
11099
|
+
size?: number | undefined;
|
|
11100
|
+
}, {
|
|
11101
|
+
name: string;
|
|
11102
|
+
id: string;
|
|
11103
|
+
size?: number | undefined;
|
|
11104
|
+
}>;
|
|
10745
11105
|
metadata: z.ZodUndefined;
|
|
10746
11106
|
}, "strip", z.ZodTypeAny, {
|
|
10747
11107
|
value: {
|
|
@@ -10752,7 +11112,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10752
11112
|
url: string;
|
|
10753
11113
|
};
|
|
10754
11114
|
modality: "pdf";
|
|
10755
|
-
|
|
11115
|
+
file: {
|
|
11116
|
+
name: string;
|
|
11117
|
+
id: string;
|
|
11118
|
+
size?: number | undefined;
|
|
11119
|
+
};
|
|
10756
11120
|
metadata?: undefined;
|
|
10757
11121
|
}, {
|
|
10758
11122
|
value: {
|
|
@@ -10763,7 +11127,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10763
11127
|
url: string;
|
|
10764
11128
|
};
|
|
10765
11129
|
modality: "pdf";
|
|
10766
|
-
|
|
11130
|
+
file: {
|
|
11131
|
+
name: string;
|
|
11132
|
+
id: string;
|
|
11133
|
+
size?: number | undefined;
|
|
11134
|
+
};
|
|
10767
11135
|
metadata?: undefined;
|
|
10768
11136
|
}>, z.ZodObject<{
|
|
10769
11137
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -10802,20 +11170,20 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10802
11170
|
metadata: z.ZodTypeAny;
|
|
10803
11171
|
}, "strip", z.ZodTypeAny, {
|
|
10804
11172
|
modality: "tool-response";
|
|
11173
|
+
name: string;
|
|
11174
|
+
id: string;
|
|
10805
11175
|
data: string;
|
|
10806
11176
|
index: number;
|
|
10807
|
-
id: string;
|
|
10808
|
-
name: string;
|
|
10809
11177
|
metadata?: any;
|
|
10810
11178
|
apiResponse?: {
|
|
10811
11179
|
statusCode: number;
|
|
10812
11180
|
} | undefined;
|
|
10813
11181
|
}, {
|
|
10814
11182
|
modality: "tool-response";
|
|
11183
|
+
name: string;
|
|
11184
|
+
id: string;
|
|
10815
11185
|
data: string;
|
|
10816
11186
|
index: number;
|
|
10817
|
-
id: string;
|
|
10818
|
-
name: string;
|
|
10819
11187
|
metadata?: any;
|
|
10820
11188
|
apiResponse?: {
|
|
10821
11189
|
statusCode: number;
|
|
@@ -10873,10 +11241,10 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10873
11241
|
role: "system" | "user" | "assistant" | "tool";
|
|
10874
11242
|
content: ({
|
|
10875
11243
|
modality: "tool-response";
|
|
11244
|
+
name: string;
|
|
11245
|
+
id: string;
|
|
10876
11246
|
data: string;
|
|
10877
11247
|
index: number;
|
|
10878
|
-
id: string;
|
|
10879
|
-
name: string;
|
|
10880
11248
|
metadata?: any;
|
|
10881
11249
|
apiResponse?: {
|
|
10882
11250
|
statusCode: number;
|
|
@@ -10906,7 +11274,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10906
11274
|
url: string;
|
|
10907
11275
|
};
|
|
10908
11276
|
modality: "pdf";
|
|
10909
|
-
|
|
11277
|
+
file: {
|
|
11278
|
+
name: string;
|
|
11279
|
+
id: string;
|
|
11280
|
+
size?: number | undefined;
|
|
11281
|
+
};
|
|
10910
11282
|
metadata?: undefined;
|
|
10911
11283
|
} | {
|
|
10912
11284
|
id: string;
|
|
@@ -10932,10 +11304,10 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10932
11304
|
role: "system" | "user" | "assistant" | "tool";
|
|
10933
11305
|
content: ({
|
|
10934
11306
|
modality: "tool-response";
|
|
11307
|
+
name: string;
|
|
11308
|
+
id: string;
|
|
10935
11309
|
data: string;
|
|
10936
11310
|
index: number;
|
|
10937
|
-
id: string;
|
|
10938
|
-
name: string;
|
|
10939
11311
|
metadata?: any;
|
|
10940
11312
|
apiResponse?: {
|
|
10941
11313
|
statusCode: number;
|
|
@@ -10965,7 +11337,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
10965
11337
|
url: string;
|
|
10966
11338
|
};
|
|
10967
11339
|
modality: "pdf";
|
|
10968
|
-
|
|
11340
|
+
file: {
|
|
11341
|
+
name: string;
|
|
11342
|
+
id: string;
|
|
11343
|
+
size?: number | undefined;
|
|
11344
|
+
};
|
|
10969
11345
|
metadata?: undefined;
|
|
10970
11346
|
} | {
|
|
10971
11347
|
id: string;
|
|
@@ -11208,10 +11584,10 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
11208
11584
|
role: "system" | "user" | "assistant" | "tool";
|
|
11209
11585
|
content: ({
|
|
11210
11586
|
modality: "tool-response";
|
|
11587
|
+
name: string;
|
|
11588
|
+
id: string;
|
|
11211
11589
|
data: string;
|
|
11212
11590
|
index: number;
|
|
11213
|
-
id: string;
|
|
11214
|
-
name: string;
|
|
11215
11591
|
metadata?: any;
|
|
11216
11592
|
apiResponse?: {
|
|
11217
11593
|
statusCode: number;
|
|
@@ -11241,7 +11617,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
11241
11617
|
url: string;
|
|
11242
11618
|
};
|
|
11243
11619
|
modality: "pdf";
|
|
11244
|
-
|
|
11620
|
+
file: {
|
|
11621
|
+
name: string;
|
|
11622
|
+
id: string;
|
|
11623
|
+
size?: number | undefined;
|
|
11624
|
+
};
|
|
11245
11625
|
metadata?: undefined;
|
|
11246
11626
|
} | {
|
|
11247
11627
|
id: string;
|
|
@@ -11363,10 +11743,10 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
11363
11743
|
role: "system" | "user" | "assistant" | "tool";
|
|
11364
11744
|
content: ({
|
|
11365
11745
|
modality: "tool-response";
|
|
11746
|
+
name: string;
|
|
11747
|
+
id: string;
|
|
11366
11748
|
data: string;
|
|
11367
11749
|
index: number;
|
|
11368
|
-
id: string;
|
|
11369
|
-
name: string;
|
|
11370
11750
|
metadata?: any;
|
|
11371
11751
|
apiResponse?: {
|
|
11372
11752
|
statusCode: number;
|
|
@@ -11396,7 +11776,11 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
11396
11776
|
url: string;
|
|
11397
11777
|
};
|
|
11398
11778
|
modality: "pdf";
|
|
11399
|
-
|
|
11779
|
+
file: {
|
|
11780
|
+
name: string;
|
|
11781
|
+
id: string;
|
|
11782
|
+
size?: number | undefined;
|
|
11783
|
+
};
|
|
11400
11784
|
metadata?: undefined;
|
|
11401
11785
|
} | {
|
|
11402
11786
|
id: string;
|
|
@@ -11661,7 +12045,19 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11661
12045
|
type: "url";
|
|
11662
12046
|
url: string;
|
|
11663
12047
|
}>]>;
|
|
11664
|
-
|
|
12048
|
+
file: z.ZodObject<{
|
|
12049
|
+
name: z.ZodString;
|
|
12050
|
+
id: z.ZodString;
|
|
12051
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
12052
|
+
}, "strip", z.ZodTypeAny, {
|
|
12053
|
+
name: string;
|
|
12054
|
+
id: string;
|
|
12055
|
+
size?: number | undefined;
|
|
12056
|
+
}, {
|
|
12057
|
+
name: string;
|
|
12058
|
+
id: string;
|
|
12059
|
+
size?: number | undefined;
|
|
12060
|
+
}>;
|
|
11665
12061
|
metadata: z.ZodUndefined;
|
|
11666
12062
|
}, "strip", z.ZodTypeAny, {
|
|
11667
12063
|
value: {
|
|
@@ -11672,7 +12068,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11672
12068
|
url: string;
|
|
11673
12069
|
};
|
|
11674
12070
|
modality: "pdf";
|
|
11675
|
-
|
|
12071
|
+
file: {
|
|
12072
|
+
name: string;
|
|
12073
|
+
id: string;
|
|
12074
|
+
size?: number | undefined;
|
|
12075
|
+
};
|
|
11676
12076
|
metadata?: undefined;
|
|
11677
12077
|
}, {
|
|
11678
12078
|
value: {
|
|
@@ -11683,7 +12083,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11683
12083
|
url: string;
|
|
11684
12084
|
};
|
|
11685
12085
|
modality: "pdf";
|
|
11686
|
-
|
|
12086
|
+
file: {
|
|
12087
|
+
name: string;
|
|
12088
|
+
id: string;
|
|
12089
|
+
size?: number | undefined;
|
|
12090
|
+
};
|
|
11687
12091
|
metadata?: undefined;
|
|
11688
12092
|
}>, z.ZodObject<{
|
|
11689
12093
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -11722,20 +12126,20 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11722
12126
|
metadata: z.ZodTypeAny;
|
|
11723
12127
|
}, "strip", z.ZodTypeAny, {
|
|
11724
12128
|
modality: "tool-response";
|
|
12129
|
+
name: string;
|
|
12130
|
+
id: string;
|
|
11725
12131
|
data: string;
|
|
11726
12132
|
index: number;
|
|
11727
|
-
id: string;
|
|
11728
|
-
name: string;
|
|
11729
12133
|
metadata?: any;
|
|
11730
12134
|
apiResponse?: {
|
|
11731
12135
|
statusCode: number;
|
|
11732
12136
|
} | undefined;
|
|
11733
12137
|
}, {
|
|
11734
12138
|
modality: "tool-response";
|
|
12139
|
+
name: string;
|
|
12140
|
+
id: string;
|
|
11735
12141
|
data: string;
|
|
11736
12142
|
index: number;
|
|
11737
|
-
id: string;
|
|
11738
|
-
name: string;
|
|
11739
12143
|
metadata?: any;
|
|
11740
12144
|
apiResponse?: {
|
|
11741
12145
|
statusCode: number;
|
|
@@ -11793,10 +12197,10 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11793
12197
|
role: "system" | "user" | "assistant" | "tool";
|
|
11794
12198
|
content: ({
|
|
11795
12199
|
modality: "tool-response";
|
|
12200
|
+
name: string;
|
|
12201
|
+
id: string;
|
|
11796
12202
|
data: string;
|
|
11797
12203
|
index: number;
|
|
11798
|
-
id: string;
|
|
11799
|
-
name: string;
|
|
11800
12204
|
metadata?: any;
|
|
11801
12205
|
apiResponse?: {
|
|
11802
12206
|
statusCode: number;
|
|
@@ -11826,7 +12230,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11826
12230
|
url: string;
|
|
11827
12231
|
};
|
|
11828
12232
|
modality: "pdf";
|
|
11829
|
-
|
|
12233
|
+
file: {
|
|
12234
|
+
name: string;
|
|
12235
|
+
id: string;
|
|
12236
|
+
size?: number | undefined;
|
|
12237
|
+
};
|
|
11830
12238
|
metadata?: undefined;
|
|
11831
12239
|
} | {
|
|
11832
12240
|
id: string;
|
|
@@ -11852,10 +12260,10 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11852
12260
|
role: "system" | "user" | "assistant" | "tool";
|
|
11853
12261
|
content: ({
|
|
11854
12262
|
modality: "tool-response";
|
|
12263
|
+
name: string;
|
|
12264
|
+
id: string;
|
|
11855
12265
|
data: string;
|
|
11856
12266
|
index: number;
|
|
11857
|
-
id: string;
|
|
11858
|
-
name: string;
|
|
11859
12267
|
metadata?: any;
|
|
11860
12268
|
apiResponse?: {
|
|
11861
12269
|
statusCode: number;
|
|
@@ -11885,7 +12293,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
11885
12293
|
url: string;
|
|
11886
12294
|
};
|
|
11887
12295
|
modality: "pdf";
|
|
11888
|
-
|
|
12296
|
+
file: {
|
|
12297
|
+
name: string;
|
|
12298
|
+
id: string;
|
|
12299
|
+
size?: number | undefined;
|
|
12300
|
+
};
|
|
11889
12301
|
metadata?: undefined;
|
|
11890
12302
|
} | {
|
|
11891
12303
|
id: string;
|
|
@@ -12126,10 +12538,10 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
12126
12538
|
role: "system" | "user" | "assistant" | "tool";
|
|
12127
12539
|
content: ({
|
|
12128
12540
|
modality: "tool-response";
|
|
12541
|
+
name: string;
|
|
12542
|
+
id: string;
|
|
12129
12543
|
data: string;
|
|
12130
12544
|
index: number;
|
|
12131
|
-
id: string;
|
|
12132
|
-
name: string;
|
|
12133
12545
|
metadata?: any;
|
|
12134
12546
|
apiResponse?: {
|
|
12135
12547
|
statusCode: number;
|
|
@@ -12159,7 +12571,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
12159
12571
|
url: string;
|
|
12160
12572
|
};
|
|
12161
12573
|
modality: "pdf";
|
|
12162
|
-
|
|
12574
|
+
file: {
|
|
12575
|
+
name: string;
|
|
12576
|
+
id: string;
|
|
12577
|
+
size?: number | undefined;
|
|
12578
|
+
};
|
|
12163
12579
|
metadata?: undefined;
|
|
12164
12580
|
} | {
|
|
12165
12581
|
id: string;
|
|
@@ -12281,10 +12697,10 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
12281
12697
|
role: "system" | "user" | "assistant" | "tool";
|
|
12282
12698
|
content: ({
|
|
12283
12699
|
modality: "tool-response";
|
|
12700
|
+
name: string;
|
|
12701
|
+
id: string;
|
|
12284
12702
|
data: string;
|
|
12285
12703
|
index: number;
|
|
12286
|
-
id: string;
|
|
12287
|
-
name: string;
|
|
12288
12704
|
metadata?: any;
|
|
12289
12705
|
apiResponse?: {
|
|
12290
12706
|
statusCode: number;
|
|
@@ -12314,7 +12730,11 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
12314
12730
|
url: string;
|
|
12315
12731
|
};
|
|
12316
12732
|
modality: "pdf";
|
|
12317
|
-
|
|
12733
|
+
file: {
|
|
12734
|
+
name: string;
|
|
12735
|
+
id: string;
|
|
12736
|
+
size?: number | undefined;
|
|
12737
|
+
};
|
|
12318
12738
|
metadata?: undefined;
|
|
12319
12739
|
} | {
|
|
12320
12740
|
id: string;
|
|
@@ -14041,7 +14461,19 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14041
14461
|
type: "url";
|
|
14042
14462
|
url: string;
|
|
14043
14463
|
}>]>;
|
|
14044
|
-
|
|
14464
|
+
file: z.ZodObject<{
|
|
14465
|
+
name: z.ZodString;
|
|
14466
|
+
id: z.ZodString;
|
|
14467
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
14468
|
+
}, "strip", z.ZodTypeAny, {
|
|
14469
|
+
name: string;
|
|
14470
|
+
id: string;
|
|
14471
|
+
size?: number | undefined;
|
|
14472
|
+
}, {
|
|
14473
|
+
name: string;
|
|
14474
|
+
id: string;
|
|
14475
|
+
size?: number | undefined;
|
|
14476
|
+
}>;
|
|
14045
14477
|
metadata: z.ZodUndefined;
|
|
14046
14478
|
}, "strip", z.ZodTypeAny, {
|
|
14047
14479
|
value: {
|
|
@@ -14052,7 +14484,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14052
14484
|
url: string;
|
|
14053
14485
|
};
|
|
14054
14486
|
modality: "pdf";
|
|
14055
|
-
|
|
14487
|
+
file: {
|
|
14488
|
+
name: string;
|
|
14489
|
+
id: string;
|
|
14490
|
+
size?: number | undefined;
|
|
14491
|
+
};
|
|
14056
14492
|
metadata?: undefined;
|
|
14057
14493
|
}, {
|
|
14058
14494
|
value: {
|
|
@@ -14063,7 +14499,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14063
14499
|
url: string;
|
|
14064
14500
|
};
|
|
14065
14501
|
modality: "pdf";
|
|
14066
|
-
|
|
14502
|
+
file: {
|
|
14503
|
+
name: string;
|
|
14504
|
+
id: string;
|
|
14505
|
+
size?: number | undefined;
|
|
14506
|
+
};
|
|
14067
14507
|
metadata?: undefined;
|
|
14068
14508
|
}>, z.ZodObject<{
|
|
14069
14509
|
modality: z.ZodLiteral<"tool-call">;
|
|
@@ -14102,20 +14542,20 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14102
14542
|
metadata: z.ZodTypeAny;
|
|
14103
14543
|
}, "strip", z.ZodTypeAny, {
|
|
14104
14544
|
modality: "tool-response";
|
|
14545
|
+
name: string;
|
|
14546
|
+
id: string;
|
|
14105
14547
|
data: string;
|
|
14106
14548
|
index: number;
|
|
14107
|
-
id: string;
|
|
14108
|
-
name: string;
|
|
14109
14549
|
metadata?: any;
|
|
14110
14550
|
apiResponse?: {
|
|
14111
14551
|
statusCode: number;
|
|
14112
14552
|
} | undefined;
|
|
14113
14553
|
}, {
|
|
14114
14554
|
modality: "tool-response";
|
|
14555
|
+
name: string;
|
|
14556
|
+
id: string;
|
|
14115
14557
|
data: string;
|
|
14116
14558
|
index: number;
|
|
14117
|
-
id: string;
|
|
14118
|
-
name: string;
|
|
14119
14559
|
metadata?: any;
|
|
14120
14560
|
apiResponse?: {
|
|
14121
14561
|
statusCode: number;
|
|
@@ -14173,10 +14613,10 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14173
14613
|
role: "system" | "user" | "assistant" | "tool";
|
|
14174
14614
|
content: ({
|
|
14175
14615
|
modality: "tool-response";
|
|
14616
|
+
name: string;
|
|
14617
|
+
id: string;
|
|
14176
14618
|
data: string;
|
|
14177
14619
|
index: number;
|
|
14178
|
-
id: string;
|
|
14179
|
-
name: string;
|
|
14180
14620
|
metadata?: any;
|
|
14181
14621
|
apiResponse?: {
|
|
14182
14622
|
statusCode: number;
|
|
@@ -14206,7 +14646,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14206
14646
|
url: string;
|
|
14207
14647
|
};
|
|
14208
14648
|
modality: "pdf";
|
|
14209
|
-
|
|
14649
|
+
file: {
|
|
14650
|
+
name: string;
|
|
14651
|
+
id: string;
|
|
14652
|
+
size?: number | undefined;
|
|
14653
|
+
};
|
|
14210
14654
|
metadata?: undefined;
|
|
14211
14655
|
} | {
|
|
14212
14656
|
id: string;
|
|
@@ -14232,10 +14676,10 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14232
14676
|
role: "system" | "user" | "assistant" | "tool";
|
|
14233
14677
|
content: ({
|
|
14234
14678
|
modality: "tool-response";
|
|
14679
|
+
name: string;
|
|
14680
|
+
id: string;
|
|
14235
14681
|
data: string;
|
|
14236
14682
|
index: number;
|
|
14237
|
-
id: string;
|
|
14238
|
-
name: string;
|
|
14239
14683
|
metadata?: any;
|
|
14240
14684
|
apiResponse?: {
|
|
14241
14685
|
statusCode: number;
|
|
@@ -14265,7 +14709,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14265
14709
|
url: string;
|
|
14266
14710
|
};
|
|
14267
14711
|
modality: "pdf";
|
|
14268
|
-
|
|
14712
|
+
file: {
|
|
14713
|
+
name: string;
|
|
14714
|
+
id: string;
|
|
14715
|
+
size?: number | undefined;
|
|
14716
|
+
};
|
|
14269
14717
|
metadata?: undefined;
|
|
14270
14718
|
} | {
|
|
14271
14719
|
id: string;
|
|
@@ -14304,10 +14752,10 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14304
14752
|
role: "system" | "user" | "assistant" | "tool";
|
|
14305
14753
|
content: ({
|
|
14306
14754
|
modality: "tool-response";
|
|
14755
|
+
name: string;
|
|
14756
|
+
id: string;
|
|
14307
14757
|
data: string;
|
|
14308
14758
|
index: number;
|
|
14309
|
-
id: string;
|
|
14310
|
-
name: string;
|
|
14311
14759
|
metadata?: any;
|
|
14312
14760
|
apiResponse?: {
|
|
14313
14761
|
statusCode: number;
|
|
@@ -14337,7 +14785,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14337
14785
|
url: string;
|
|
14338
14786
|
};
|
|
14339
14787
|
modality: "pdf";
|
|
14340
|
-
|
|
14788
|
+
file: {
|
|
14789
|
+
name: string;
|
|
14790
|
+
id: string;
|
|
14791
|
+
size?: number | undefined;
|
|
14792
|
+
};
|
|
14341
14793
|
metadata?: undefined;
|
|
14342
14794
|
} | {
|
|
14343
14795
|
id: string;
|
|
@@ -14397,10 +14849,10 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14397
14849
|
role: "system" | "user" | "assistant" | "tool";
|
|
14398
14850
|
content: ({
|
|
14399
14851
|
modality: "tool-response";
|
|
14852
|
+
name: string;
|
|
14853
|
+
id: string;
|
|
14400
14854
|
data: string;
|
|
14401
14855
|
index: number;
|
|
14402
|
-
id: string;
|
|
14403
|
-
name: string;
|
|
14404
14856
|
metadata?: any;
|
|
14405
14857
|
apiResponse?: {
|
|
14406
14858
|
statusCode: number;
|
|
@@ -14430,7 +14882,11 @@ declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
|
14430
14882
|
url: string;
|
|
14431
14883
|
};
|
|
14432
14884
|
modality: "pdf";
|
|
14433
|
-
|
|
14885
|
+
file: {
|
|
14886
|
+
name: string;
|
|
14887
|
+
id: string;
|
|
14888
|
+
size?: number | undefined;
|
|
14889
|
+
};
|
|
14434
14890
|
metadata?: undefined;
|
|
14435
14891
|
} | {
|
|
14436
14892
|
id: string;
|