@adaline/gateway 0.30.0 → 0.32.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 +1356 -106
- package/dist/index.d.ts +1356 -106
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -264,6 +264,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
264
264
|
messages: {
|
|
265
265
|
role: "system" | "user" | "assistant" | "tool";
|
|
266
266
|
content: ({
|
|
267
|
+
value: {
|
|
268
|
+
type: "thinking";
|
|
269
|
+
thinking: string;
|
|
270
|
+
signature: string;
|
|
271
|
+
} | {
|
|
272
|
+
type: "redacted";
|
|
273
|
+
data: string;
|
|
274
|
+
};
|
|
275
|
+
modality: "reasoning";
|
|
276
|
+
metadata?: any;
|
|
277
|
+
} | {
|
|
267
278
|
value: string;
|
|
268
279
|
modality: "text";
|
|
269
280
|
metadata?: undefined;
|
|
@@ -313,6 +324,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
313
324
|
messages: {
|
|
314
325
|
role: "system" | "user" | "assistant" | "tool";
|
|
315
326
|
content: ({
|
|
327
|
+
value: {
|
|
328
|
+
type: "thinking";
|
|
329
|
+
thinking: string;
|
|
330
|
+
signature: string;
|
|
331
|
+
} | {
|
|
332
|
+
type: "redacted";
|
|
333
|
+
data: string;
|
|
334
|
+
};
|
|
335
|
+
modality: "reasoning";
|
|
336
|
+
metadata?: any;
|
|
337
|
+
} | {
|
|
316
338
|
value: string;
|
|
317
339
|
modality: "text";
|
|
318
340
|
metadata?: undefined;
|
|
@@ -338,9 +360,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
338
360
|
} | {
|
|
339
361
|
name: string;
|
|
340
362
|
modality: "tool-response";
|
|
363
|
+
data: string;
|
|
341
364
|
index: number;
|
|
342
365
|
id: string;
|
|
343
|
-
data: string;
|
|
344
366
|
metadata?: undefined;
|
|
345
367
|
})[];
|
|
346
368
|
metadata?: undefined;
|
|
@@ -374,6 +396,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
374
396
|
messages: {
|
|
375
397
|
role: "system" | "user" | "assistant" | "tool";
|
|
376
398
|
content: ({
|
|
399
|
+
value: {
|
|
400
|
+
type: "thinking";
|
|
401
|
+
thinking: string;
|
|
402
|
+
signature: string;
|
|
403
|
+
} | {
|
|
404
|
+
type: "redacted";
|
|
405
|
+
data: string;
|
|
406
|
+
};
|
|
407
|
+
modality: "reasoning";
|
|
408
|
+
metadata?: any;
|
|
409
|
+
} | {
|
|
377
410
|
value: string;
|
|
378
411
|
modality: "text";
|
|
379
412
|
metadata?: undefined;
|
|
@@ -423,6 +456,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
423
456
|
messages: {
|
|
424
457
|
role: "system" | "user" | "assistant" | "tool";
|
|
425
458
|
content: ({
|
|
459
|
+
value: {
|
|
460
|
+
type: "thinking";
|
|
461
|
+
thinking: string;
|
|
462
|
+
signature: string;
|
|
463
|
+
} | {
|
|
464
|
+
type: "redacted";
|
|
465
|
+
data: string;
|
|
466
|
+
};
|
|
467
|
+
modality: "reasoning";
|
|
468
|
+
metadata?: any;
|
|
469
|
+
} | {
|
|
426
470
|
value: string;
|
|
427
471
|
modality: "text";
|
|
428
472
|
metadata?: undefined;
|
|
@@ -448,9 +492,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
448
492
|
} | {
|
|
449
493
|
name: string;
|
|
450
494
|
modality: "tool-response";
|
|
495
|
+
data: string;
|
|
451
496
|
index: number;
|
|
452
497
|
id: string;
|
|
453
|
-
data: string;
|
|
454
498
|
metadata?: undefined;
|
|
455
499
|
})[];
|
|
456
500
|
metadata?: undefined;
|
|
@@ -483,7 +527,7 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
483
527
|
name: string;
|
|
484
528
|
description: string;
|
|
485
529
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
486
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
530
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
487
531
|
maxInputTokens: number;
|
|
488
532
|
maxOutputTokens: number;
|
|
489
533
|
config: {
|
|
@@ -519,16 +563,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
519
563
|
param: string;
|
|
520
564
|
title: string;
|
|
521
565
|
description: string;
|
|
522
|
-
default: string
|
|
566
|
+
default: string;
|
|
523
567
|
choices: string[];
|
|
524
568
|
}>;
|
|
525
569
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
526
570
|
};
|
|
571
|
+
maxReasoningTokens?: number | undefined;
|
|
527
572
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
528
573
|
name: string;
|
|
529
574
|
description: string;
|
|
530
575
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
531
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
576
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
532
577
|
maxInputTokens: number;
|
|
533
578
|
maxOutputTokens: number;
|
|
534
579
|
config: {
|
|
@@ -564,11 +609,12 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
564
609
|
param: string;
|
|
565
610
|
title: string;
|
|
566
611
|
description: string;
|
|
567
|
-
default: string
|
|
612
|
+
default: string;
|
|
568
613
|
choices: string[];
|
|
569
614
|
}>;
|
|
570
615
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
571
616
|
};
|
|
617
|
+
maxReasoningTokens?: number | undefined;
|
|
572
618
|
}>>;
|
|
573
619
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
574
620
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -677,11 +723,69 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
677
723
|
modality: "tool-response";
|
|
678
724
|
index: number;
|
|
679
725
|
metadata?: undefined;
|
|
726
|
+
}>, z.ZodObject<{
|
|
727
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
728
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
729
|
+
type: z.ZodLiteral<"thinking">;
|
|
730
|
+
thinking: z.ZodString;
|
|
731
|
+
signature: z.ZodString;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
type: "thinking";
|
|
734
|
+
thinking: string;
|
|
735
|
+
signature: string;
|
|
736
|
+
}, {
|
|
737
|
+
type: "thinking";
|
|
738
|
+
thinking: string;
|
|
739
|
+
signature: string;
|
|
740
|
+
}>, z.ZodObject<{
|
|
741
|
+
type: z.ZodLiteral<"redacted">;
|
|
742
|
+
data: z.ZodString;
|
|
743
|
+
}, "strip", z.ZodTypeAny, {
|
|
744
|
+
type: "redacted";
|
|
745
|
+
data: string;
|
|
746
|
+
}, {
|
|
747
|
+
type: "redacted";
|
|
748
|
+
data: string;
|
|
749
|
+
}>]>;
|
|
750
|
+
metadata: z.ZodTypeAny;
|
|
751
|
+
}, "strip", z.ZodTypeAny, {
|
|
752
|
+
value: {
|
|
753
|
+
type: "thinking";
|
|
754
|
+
thinking: string;
|
|
755
|
+
signature: string;
|
|
756
|
+
} | {
|
|
757
|
+
type: "redacted";
|
|
758
|
+
data: string;
|
|
759
|
+
};
|
|
760
|
+
modality: "reasoning";
|
|
761
|
+
metadata?: any;
|
|
762
|
+
}, {
|
|
763
|
+
value: {
|
|
764
|
+
type: "thinking";
|
|
765
|
+
thinking: string;
|
|
766
|
+
signature: string;
|
|
767
|
+
} | {
|
|
768
|
+
type: "redacted";
|
|
769
|
+
data: string;
|
|
770
|
+
};
|
|
771
|
+
modality: "reasoning";
|
|
772
|
+
metadata?: any;
|
|
680
773
|
}>]>, "many">;
|
|
681
774
|
metadata: z.ZodUndefined;
|
|
682
775
|
}, "strip", z.ZodTypeAny, {
|
|
683
776
|
role: "system" | "user" | "assistant" | "tool";
|
|
684
777
|
content: ({
|
|
778
|
+
value: {
|
|
779
|
+
type: "thinking";
|
|
780
|
+
thinking: string;
|
|
781
|
+
signature: string;
|
|
782
|
+
} | {
|
|
783
|
+
type: "redacted";
|
|
784
|
+
data: string;
|
|
785
|
+
};
|
|
786
|
+
modality: "reasoning";
|
|
787
|
+
metadata?: any;
|
|
788
|
+
} | {
|
|
685
789
|
value: string;
|
|
686
790
|
modality: "text";
|
|
687
791
|
metadata?: undefined;
|
|
@@ -716,6 +820,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
716
820
|
}, {
|
|
717
821
|
role: "system" | "user" | "assistant" | "tool";
|
|
718
822
|
content: ({
|
|
823
|
+
value: {
|
|
824
|
+
type: "thinking";
|
|
825
|
+
thinking: string;
|
|
826
|
+
signature: string;
|
|
827
|
+
} | {
|
|
828
|
+
type: "redacted";
|
|
829
|
+
data: string;
|
|
830
|
+
};
|
|
831
|
+
modality: "reasoning";
|
|
832
|
+
metadata?: any;
|
|
833
|
+
} | {
|
|
719
834
|
value: string;
|
|
720
835
|
modality: "text";
|
|
721
836
|
metadata?: undefined;
|
|
@@ -817,7 +932,7 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
817
932
|
name: string;
|
|
818
933
|
description: string;
|
|
819
934
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
820
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
935
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
821
936
|
maxInputTokens: number;
|
|
822
937
|
maxOutputTokens: number;
|
|
823
938
|
config: {
|
|
@@ -853,15 +968,27 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
853
968
|
param: string;
|
|
854
969
|
title: string;
|
|
855
970
|
description: string;
|
|
856
|
-
default: string
|
|
971
|
+
default: string;
|
|
857
972
|
choices: string[];
|
|
858
973
|
}>;
|
|
859
974
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
860
975
|
};
|
|
976
|
+
maxReasoningTokens?: number | undefined;
|
|
861
977
|
}>;
|
|
862
978
|
messages: {
|
|
863
979
|
role: "system" | "user" | "assistant" | "tool";
|
|
864
980
|
content: ({
|
|
981
|
+
value: {
|
|
982
|
+
type: "thinking";
|
|
983
|
+
thinking: string;
|
|
984
|
+
signature: string;
|
|
985
|
+
} | {
|
|
986
|
+
type: "redacted";
|
|
987
|
+
data: string;
|
|
988
|
+
};
|
|
989
|
+
modality: "reasoning";
|
|
990
|
+
metadata?: any;
|
|
991
|
+
} | {
|
|
865
992
|
value: string;
|
|
866
993
|
modality: "text";
|
|
867
994
|
metadata?: undefined;
|
|
@@ -901,6 +1028,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
901
1028
|
messages: {
|
|
902
1029
|
role: "system" | "user" | "assistant" | "tool";
|
|
903
1030
|
content: ({
|
|
1031
|
+
value: {
|
|
1032
|
+
type: "thinking";
|
|
1033
|
+
thinking: string;
|
|
1034
|
+
signature: string;
|
|
1035
|
+
} | {
|
|
1036
|
+
type: "redacted";
|
|
1037
|
+
data: string;
|
|
1038
|
+
};
|
|
1039
|
+
modality: "reasoning";
|
|
1040
|
+
metadata?: any;
|
|
1041
|
+
} | {
|
|
904
1042
|
value: string;
|
|
905
1043
|
modality: "text";
|
|
906
1044
|
metadata?: undefined;
|
|
@@ -950,6 +1088,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
950
1088
|
messages: {
|
|
951
1089
|
role: "system" | "user" | "assistant" | "tool";
|
|
952
1090
|
content: ({
|
|
1091
|
+
value: {
|
|
1092
|
+
type: "thinking";
|
|
1093
|
+
thinking: string;
|
|
1094
|
+
signature: string;
|
|
1095
|
+
} | {
|
|
1096
|
+
type: "redacted";
|
|
1097
|
+
data: string;
|
|
1098
|
+
};
|
|
1099
|
+
modality: "reasoning";
|
|
1100
|
+
metadata?: any;
|
|
1101
|
+
} | {
|
|
953
1102
|
value: string;
|
|
954
1103
|
modality: "text";
|
|
955
1104
|
metadata?: undefined;
|
|
@@ -975,9 +1124,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
975
1124
|
} | {
|
|
976
1125
|
name: string;
|
|
977
1126
|
modality: "tool-response";
|
|
1127
|
+
data: string;
|
|
978
1128
|
index: number;
|
|
979
1129
|
id: string;
|
|
980
|
-
data: string;
|
|
981
1130
|
metadata?: undefined;
|
|
982
1131
|
})[];
|
|
983
1132
|
metadata?: undefined;
|
|
@@ -1027,7 +1176,7 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1027
1176
|
name: string;
|
|
1028
1177
|
description: string;
|
|
1029
1178
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
1030
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
1179
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
1031
1180
|
maxInputTokens: number;
|
|
1032
1181
|
maxOutputTokens: number;
|
|
1033
1182
|
config: {
|
|
@@ -1063,15 +1212,27 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1063
1212
|
param: string;
|
|
1064
1213
|
title: string;
|
|
1065
1214
|
description: string;
|
|
1066
|
-
default: string
|
|
1215
|
+
default: string;
|
|
1067
1216
|
choices: string[];
|
|
1068
1217
|
}>;
|
|
1069
1218
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
1070
1219
|
};
|
|
1220
|
+
maxReasoningTokens?: number | undefined;
|
|
1071
1221
|
}>;
|
|
1072
1222
|
messages: {
|
|
1073
1223
|
role: "system" | "user" | "assistant" | "tool";
|
|
1074
1224
|
content: ({
|
|
1225
|
+
value: {
|
|
1226
|
+
type: "thinking";
|
|
1227
|
+
thinking: string;
|
|
1228
|
+
signature: string;
|
|
1229
|
+
} | {
|
|
1230
|
+
type: "redacted";
|
|
1231
|
+
data: string;
|
|
1232
|
+
};
|
|
1233
|
+
modality: "reasoning";
|
|
1234
|
+
metadata?: any;
|
|
1235
|
+
} | {
|
|
1075
1236
|
value: string;
|
|
1076
1237
|
modality: "text";
|
|
1077
1238
|
metadata?: undefined;
|
|
@@ -1111,6 +1272,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1111
1272
|
messages: {
|
|
1112
1273
|
role: "system" | "user" | "assistant" | "tool";
|
|
1113
1274
|
content: ({
|
|
1275
|
+
value: {
|
|
1276
|
+
type: "thinking";
|
|
1277
|
+
thinking: string;
|
|
1278
|
+
signature: string;
|
|
1279
|
+
} | {
|
|
1280
|
+
type: "redacted";
|
|
1281
|
+
data: string;
|
|
1282
|
+
};
|
|
1283
|
+
modality: "reasoning";
|
|
1284
|
+
metadata?: any;
|
|
1285
|
+
} | {
|
|
1114
1286
|
value: string;
|
|
1115
1287
|
modality: "text";
|
|
1116
1288
|
metadata?: undefined;
|
|
@@ -1160,6 +1332,17 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1160
1332
|
messages: {
|
|
1161
1333
|
role: "system" | "user" | "assistant" | "tool";
|
|
1162
1334
|
content: ({
|
|
1335
|
+
value: {
|
|
1336
|
+
type: "thinking";
|
|
1337
|
+
thinking: string;
|
|
1338
|
+
signature: string;
|
|
1339
|
+
} | {
|
|
1340
|
+
type: "redacted";
|
|
1341
|
+
data: string;
|
|
1342
|
+
};
|
|
1343
|
+
modality: "reasoning";
|
|
1344
|
+
metadata?: any;
|
|
1345
|
+
} | {
|
|
1163
1346
|
value: string;
|
|
1164
1347
|
modality: "text";
|
|
1165
1348
|
metadata?: undefined;
|
|
@@ -1185,9 +1368,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1185
1368
|
} | {
|
|
1186
1369
|
name: string;
|
|
1187
1370
|
modality: "tool-response";
|
|
1371
|
+
data: string;
|
|
1188
1372
|
index: number;
|
|
1189
1373
|
id: string;
|
|
1190
|
-
data: string;
|
|
1191
1374
|
metadata?: undefined;
|
|
1192
1375
|
})[];
|
|
1193
1376
|
metadata?: undefined;
|
|
@@ -1342,11 +1525,69 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1342
1525
|
modality: "tool-response";
|
|
1343
1526
|
index: number;
|
|
1344
1527
|
metadata?: undefined;
|
|
1528
|
+
}>, z.ZodObject<{
|
|
1529
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
1530
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1531
|
+
type: z.ZodLiteral<"thinking">;
|
|
1532
|
+
thinking: z.ZodString;
|
|
1533
|
+
signature: z.ZodString;
|
|
1534
|
+
}, "strip", z.ZodTypeAny, {
|
|
1535
|
+
type: "thinking";
|
|
1536
|
+
thinking: string;
|
|
1537
|
+
signature: string;
|
|
1538
|
+
}, {
|
|
1539
|
+
type: "thinking";
|
|
1540
|
+
thinking: string;
|
|
1541
|
+
signature: string;
|
|
1542
|
+
}>, z.ZodObject<{
|
|
1543
|
+
type: z.ZodLiteral<"redacted">;
|
|
1544
|
+
data: z.ZodString;
|
|
1545
|
+
}, "strip", z.ZodTypeAny, {
|
|
1546
|
+
type: "redacted";
|
|
1547
|
+
data: string;
|
|
1548
|
+
}, {
|
|
1549
|
+
type: "redacted";
|
|
1550
|
+
data: string;
|
|
1551
|
+
}>]>;
|
|
1552
|
+
metadata: z.ZodTypeAny;
|
|
1553
|
+
}, "strip", z.ZodTypeAny, {
|
|
1554
|
+
value: {
|
|
1555
|
+
type: "thinking";
|
|
1556
|
+
thinking: string;
|
|
1557
|
+
signature: string;
|
|
1558
|
+
} | {
|
|
1559
|
+
type: "redacted";
|
|
1560
|
+
data: string;
|
|
1561
|
+
};
|
|
1562
|
+
modality: "reasoning";
|
|
1563
|
+
metadata?: any;
|
|
1564
|
+
}, {
|
|
1565
|
+
value: {
|
|
1566
|
+
type: "thinking";
|
|
1567
|
+
thinking: string;
|
|
1568
|
+
signature: string;
|
|
1569
|
+
} | {
|
|
1570
|
+
type: "redacted";
|
|
1571
|
+
data: string;
|
|
1572
|
+
};
|
|
1573
|
+
modality: "reasoning";
|
|
1574
|
+
metadata?: any;
|
|
1345
1575
|
}>]>, "many">;
|
|
1346
1576
|
metadata: z.ZodUndefined;
|
|
1347
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1348
1578
|
role: "system" | "user" | "assistant" | "tool";
|
|
1349
1579
|
content: ({
|
|
1580
|
+
value: {
|
|
1581
|
+
type: "thinking";
|
|
1582
|
+
thinking: string;
|
|
1583
|
+
signature: string;
|
|
1584
|
+
} | {
|
|
1585
|
+
type: "redacted";
|
|
1586
|
+
data: string;
|
|
1587
|
+
};
|
|
1588
|
+
modality: "reasoning";
|
|
1589
|
+
metadata?: any;
|
|
1590
|
+
} | {
|
|
1350
1591
|
value: string;
|
|
1351
1592
|
modality: "text";
|
|
1352
1593
|
metadata?: undefined;
|
|
@@ -1381,6 +1622,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1381
1622
|
}, {
|
|
1382
1623
|
role: "system" | "user" | "assistant" | "tool";
|
|
1383
1624
|
content: ({
|
|
1625
|
+
value: {
|
|
1626
|
+
type: "thinking";
|
|
1627
|
+
thinking: string;
|
|
1628
|
+
signature: string;
|
|
1629
|
+
} | {
|
|
1630
|
+
type: "redacted";
|
|
1631
|
+
data: string;
|
|
1632
|
+
};
|
|
1633
|
+
modality: "reasoning";
|
|
1634
|
+
metadata?: any;
|
|
1635
|
+
} | {
|
|
1384
1636
|
value: string;
|
|
1385
1637
|
modality: "text";
|
|
1386
1638
|
metadata?: undefined;
|
|
@@ -1477,6 +1729,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1477
1729
|
messages: {
|
|
1478
1730
|
role: "system" | "user" | "assistant" | "tool";
|
|
1479
1731
|
content: ({
|
|
1732
|
+
value: {
|
|
1733
|
+
type: "thinking";
|
|
1734
|
+
thinking: string;
|
|
1735
|
+
signature: string;
|
|
1736
|
+
} | {
|
|
1737
|
+
type: "redacted";
|
|
1738
|
+
data: string;
|
|
1739
|
+
};
|
|
1740
|
+
modality: "reasoning";
|
|
1741
|
+
metadata?: any;
|
|
1742
|
+
} | {
|
|
1480
1743
|
value: string;
|
|
1481
1744
|
modality: "text";
|
|
1482
1745
|
metadata?: undefined;
|
|
@@ -1526,6 +1789,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1526
1789
|
messages: {
|
|
1527
1790
|
role: "system" | "user" | "assistant" | "tool";
|
|
1528
1791
|
content: ({
|
|
1792
|
+
value: {
|
|
1793
|
+
type: "thinking";
|
|
1794
|
+
thinking: string;
|
|
1795
|
+
signature: string;
|
|
1796
|
+
} | {
|
|
1797
|
+
type: "redacted";
|
|
1798
|
+
data: string;
|
|
1799
|
+
};
|
|
1800
|
+
modality: "reasoning";
|
|
1801
|
+
metadata?: any;
|
|
1802
|
+
} | {
|
|
1529
1803
|
value: string;
|
|
1530
1804
|
modality: "text";
|
|
1531
1805
|
metadata?: undefined;
|
|
@@ -1667,22 +1941,80 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1667
1941
|
}, "strip", z.ZodTypeAny, {
|
|
1668
1942
|
name: string;
|
|
1669
1943
|
modality: "tool-response";
|
|
1944
|
+
data: string;
|
|
1670
1945
|
index: number;
|
|
1671
1946
|
id: string;
|
|
1672
|
-
data: string;
|
|
1673
1947
|
metadata?: undefined;
|
|
1674
1948
|
}, {
|
|
1675
1949
|
name: string;
|
|
1676
1950
|
modality: "tool-response";
|
|
1951
|
+
data: string;
|
|
1677
1952
|
index: number;
|
|
1678
1953
|
id: string;
|
|
1679
|
-
data: string;
|
|
1680
1954
|
metadata?: undefined;
|
|
1955
|
+
}>, z.ZodObject<{
|
|
1956
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
1957
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1958
|
+
type: z.ZodLiteral<"thinking">;
|
|
1959
|
+
thinking: z.ZodString;
|
|
1960
|
+
signature: z.ZodString;
|
|
1961
|
+
}, "strip", z.ZodTypeAny, {
|
|
1962
|
+
type: "thinking";
|
|
1963
|
+
thinking: string;
|
|
1964
|
+
signature: string;
|
|
1965
|
+
}, {
|
|
1966
|
+
type: "thinking";
|
|
1967
|
+
thinking: string;
|
|
1968
|
+
signature: string;
|
|
1969
|
+
}>, z.ZodObject<{
|
|
1970
|
+
type: z.ZodLiteral<"redacted">;
|
|
1971
|
+
data: z.ZodString;
|
|
1972
|
+
}, "strip", z.ZodTypeAny, {
|
|
1973
|
+
type: "redacted";
|
|
1974
|
+
data: string;
|
|
1975
|
+
}, {
|
|
1976
|
+
type: "redacted";
|
|
1977
|
+
data: string;
|
|
1978
|
+
}>]>;
|
|
1979
|
+
metadata: z.ZodTypeAny;
|
|
1980
|
+
}, "strip", z.ZodTypeAny, {
|
|
1981
|
+
value: {
|
|
1982
|
+
type: "thinking";
|
|
1983
|
+
thinking: string;
|
|
1984
|
+
signature: string;
|
|
1985
|
+
} | {
|
|
1986
|
+
type: "redacted";
|
|
1987
|
+
data: string;
|
|
1988
|
+
};
|
|
1989
|
+
modality: "reasoning";
|
|
1990
|
+
metadata?: any;
|
|
1991
|
+
}, {
|
|
1992
|
+
value: {
|
|
1993
|
+
type: "thinking";
|
|
1994
|
+
thinking: string;
|
|
1995
|
+
signature: string;
|
|
1996
|
+
} | {
|
|
1997
|
+
type: "redacted";
|
|
1998
|
+
data: string;
|
|
1999
|
+
};
|
|
2000
|
+
modality: "reasoning";
|
|
2001
|
+
metadata?: any;
|
|
1681
2002
|
}>]>, "many">;
|
|
1682
2003
|
metadata: z.ZodUndefined;
|
|
1683
2004
|
}, "strip", z.ZodTypeAny, {
|
|
1684
2005
|
role: "system" | "user" | "assistant" | "tool";
|
|
1685
2006
|
content: ({
|
|
2007
|
+
value: {
|
|
2008
|
+
type: "thinking";
|
|
2009
|
+
thinking: string;
|
|
2010
|
+
signature: string;
|
|
2011
|
+
} | {
|
|
2012
|
+
type: "redacted";
|
|
2013
|
+
data: string;
|
|
2014
|
+
};
|
|
2015
|
+
modality: "reasoning";
|
|
2016
|
+
metadata?: any;
|
|
2017
|
+
} | {
|
|
1686
2018
|
value: string;
|
|
1687
2019
|
modality: "text";
|
|
1688
2020
|
metadata?: undefined;
|
|
@@ -1708,15 +2040,26 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1708
2040
|
} | {
|
|
1709
2041
|
name: string;
|
|
1710
2042
|
modality: "tool-response";
|
|
2043
|
+
data: string;
|
|
1711
2044
|
index: number;
|
|
1712
2045
|
id: string;
|
|
1713
|
-
data: string;
|
|
1714
2046
|
metadata?: undefined;
|
|
1715
2047
|
})[];
|
|
1716
2048
|
metadata?: undefined;
|
|
1717
2049
|
}, {
|
|
1718
2050
|
role: "system" | "user" | "assistant" | "tool";
|
|
1719
2051
|
content: ({
|
|
2052
|
+
value: {
|
|
2053
|
+
type: "thinking";
|
|
2054
|
+
thinking: string;
|
|
2055
|
+
signature: string;
|
|
2056
|
+
} | {
|
|
2057
|
+
type: "redacted";
|
|
2058
|
+
data: string;
|
|
2059
|
+
};
|
|
2060
|
+
modality: "reasoning";
|
|
2061
|
+
metadata?: any;
|
|
2062
|
+
} | {
|
|
1720
2063
|
value: string;
|
|
1721
2064
|
modality: "text";
|
|
1722
2065
|
metadata?: undefined;
|
|
@@ -1742,9 +2085,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1742
2085
|
} | {
|
|
1743
2086
|
name: string;
|
|
1744
2087
|
modality: "tool-response";
|
|
2088
|
+
data: string;
|
|
1745
2089
|
index: number;
|
|
1746
2090
|
id: string;
|
|
1747
|
-
data: string;
|
|
1748
2091
|
metadata?: undefined;
|
|
1749
2092
|
})[];
|
|
1750
2093
|
metadata?: undefined;
|
|
@@ -1803,6 +2146,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1803
2146
|
messages: {
|
|
1804
2147
|
role: "system" | "user" | "assistant" | "tool";
|
|
1805
2148
|
content: ({
|
|
2149
|
+
value: {
|
|
2150
|
+
type: "thinking";
|
|
2151
|
+
thinking: string;
|
|
2152
|
+
signature: string;
|
|
2153
|
+
} | {
|
|
2154
|
+
type: "redacted";
|
|
2155
|
+
data: string;
|
|
2156
|
+
};
|
|
2157
|
+
modality: "reasoning";
|
|
2158
|
+
metadata?: any;
|
|
2159
|
+
} | {
|
|
1806
2160
|
value: string;
|
|
1807
2161
|
modality: "text";
|
|
1808
2162
|
metadata?: undefined;
|
|
@@ -1828,9 +2182,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1828
2182
|
} | {
|
|
1829
2183
|
name: string;
|
|
1830
2184
|
modality: "tool-response";
|
|
2185
|
+
data: string;
|
|
1831
2186
|
index: number;
|
|
1832
2187
|
id: string;
|
|
1833
|
-
data: string;
|
|
1834
2188
|
metadata?: undefined;
|
|
1835
2189
|
})[];
|
|
1836
2190
|
metadata?: undefined;
|
|
@@ -1854,6 +2208,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1854
2208
|
messages: {
|
|
1855
2209
|
role: "system" | "user" | "assistant" | "tool";
|
|
1856
2210
|
content: ({
|
|
2211
|
+
value: {
|
|
2212
|
+
type: "thinking";
|
|
2213
|
+
thinking: string;
|
|
2214
|
+
signature: string;
|
|
2215
|
+
} | {
|
|
2216
|
+
type: "redacted";
|
|
2217
|
+
data: string;
|
|
2218
|
+
};
|
|
2219
|
+
modality: "reasoning";
|
|
2220
|
+
metadata?: any;
|
|
2221
|
+
} | {
|
|
1857
2222
|
value: string;
|
|
1858
2223
|
modality: "text";
|
|
1859
2224
|
metadata?: undefined;
|
|
@@ -1879,9 +2244,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1879
2244
|
} | {
|
|
1880
2245
|
name: string;
|
|
1881
2246
|
modality: "tool-response";
|
|
2247
|
+
data: string;
|
|
1882
2248
|
index: number;
|
|
1883
2249
|
id: string;
|
|
1884
|
-
data: string;
|
|
1885
2250
|
metadata?: undefined;
|
|
1886
2251
|
})[];
|
|
1887
2252
|
metadata?: undefined;
|
|
@@ -1921,6 +2286,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1921
2286
|
messages: {
|
|
1922
2287
|
role: "system" | "user" | "assistant" | "tool";
|
|
1923
2288
|
content: ({
|
|
2289
|
+
value: {
|
|
2290
|
+
type: "thinking";
|
|
2291
|
+
thinking: string;
|
|
2292
|
+
signature: string;
|
|
2293
|
+
} | {
|
|
2294
|
+
type: "redacted";
|
|
2295
|
+
data: string;
|
|
2296
|
+
};
|
|
2297
|
+
modality: "reasoning";
|
|
2298
|
+
metadata?: any;
|
|
2299
|
+
} | {
|
|
1924
2300
|
value: string;
|
|
1925
2301
|
modality: "text";
|
|
1926
2302
|
metadata?: undefined;
|
|
@@ -1970,6 +2346,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1970
2346
|
messages: {
|
|
1971
2347
|
role: "system" | "user" | "assistant" | "tool";
|
|
1972
2348
|
content: ({
|
|
2349
|
+
value: {
|
|
2350
|
+
type: "thinking";
|
|
2351
|
+
thinking: string;
|
|
2352
|
+
signature: string;
|
|
2353
|
+
} | {
|
|
2354
|
+
type: "redacted";
|
|
2355
|
+
data: string;
|
|
2356
|
+
};
|
|
2357
|
+
modality: "reasoning";
|
|
2358
|
+
metadata?: any;
|
|
2359
|
+
} | {
|
|
1973
2360
|
value: string;
|
|
1974
2361
|
modality: "text";
|
|
1975
2362
|
metadata?: undefined;
|
|
@@ -1995,9 +2382,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1995
2382
|
} | {
|
|
1996
2383
|
name: string;
|
|
1997
2384
|
modality: "tool-response";
|
|
2385
|
+
data: string;
|
|
1998
2386
|
index: number;
|
|
1999
2387
|
id: string;
|
|
2000
|
-
data: string;
|
|
2001
2388
|
metadata?: undefined;
|
|
2002
2389
|
})[];
|
|
2003
2390
|
metadata?: undefined;
|
|
@@ -2031,6 +2418,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2031
2418
|
messages: {
|
|
2032
2419
|
role: "system" | "user" | "assistant" | "tool";
|
|
2033
2420
|
content: ({
|
|
2421
|
+
value: {
|
|
2422
|
+
type: "thinking";
|
|
2423
|
+
thinking: string;
|
|
2424
|
+
signature: string;
|
|
2425
|
+
} | {
|
|
2426
|
+
type: "redacted";
|
|
2427
|
+
data: string;
|
|
2428
|
+
};
|
|
2429
|
+
modality: "reasoning";
|
|
2430
|
+
metadata?: any;
|
|
2431
|
+
} | {
|
|
2034
2432
|
value: string;
|
|
2035
2433
|
modality: "text";
|
|
2036
2434
|
metadata?: undefined;
|
|
@@ -2080,6 +2478,17 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2080
2478
|
messages: {
|
|
2081
2479
|
role: "system" | "user" | "assistant" | "tool";
|
|
2082
2480
|
content: ({
|
|
2481
|
+
value: {
|
|
2482
|
+
type: "thinking";
|
|
2483
|
+
thinking: string;
|
|
2484
|
+
signature: string;
|
|
2485
|
+
} | {
|
|
2486
|
+
type: "redacted";
|
|
2487
|
+
data: string;
|
|
2488
|
+
};
|
|
2489
|
+
modality: "reasoning";
|
|
2490
|
+
metadata?: any;
|
|
2491
|
+
} | {
|
|
2083
2492
|
value: string;
|
|
2084
2493
|
modality: "text";
|
|
2085
2494
|
metadata?: undefined;
|
|
@@ -2105,9 +2514,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2105
2514
|
} | {
|
|
2106
2515
|
name: string;
|
|
2107
2516
|
modality: "tool-response";
|
|
2517
|
+
data: string;
|
|
2108
2518
|
index: number;
|
|
2109
2519
|
id: string;
|
|
2110
|
-
data: string;
|
|
2111
2520
|
metadata?: undefined;
|
|
2112
2521
|
})[];
|
|
2113
2522
|
metadata?: undefined;
|
|
@@ -2265,7 +2674,7 @@ declare const GetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
2265
2674
|
param: string;
|
|
2266
2675
|
title: string;
|
|
2267
2676
|
description: string;
|
|
2268
|
-
default: string
|
|
2677
|
+
default: string;
|
|
2269
2678
|
choices: string[];
|
|
2270
2679
|
}>;
|
|
2271
2680
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2309,7 +2718,7 @@ declare const GetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
2309
2718
|
param: string;
|
|
2310
2719
|
title: string;
|
|
2311
2720
|
description: string;
|
|
2312
|
-
default: string
|
|
2721
|
+
default: string;
|
|
2313
2722
|
choices: string[];
|
|
2314
2723
|
}>;
|
|
2315
2724
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2386,7 +2795,7 @@ declare const GetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
2386
2795
|
param: string;
|
|
2387
2796
|
title: string;
|
|
2388
2797
|
description: string;
|
|
2389
|
-
default: string
|
|
2798
|
+
default: string;
|
|
2390
2799
|
choices: string[];
|
|
2391
2800
|
}>;
|
|
2392
2801
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2486,7 +2895,7 @@ declare const GetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
2486
2895
|
param: string;
|
|
2487
2896
|
title: string;
|
|
2488
2897
|
description: string;
|
|
2489
|
-
default: string
|
|
2898
|
+
default: string;
|
|
2490
2899
|
choices: string[];
|
|
2491
2900
|
}>;
|
|
2492
2901
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2780,7 +3189,7 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2780
3189
|
name: string;
|
|
2781
3190
|
description: string;
|
|
2782
3191
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2783
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
3192
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
2784
3193
|
maxInputTokens: number;
|
|
2785
3194
|
maxOutputTokens: number;
|
|
2786
3195
|
config: {
|
|
@@ -2816,16 +3225,17 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2816
3225
|
param: string;
|
|
2817
3226
|
title: string;
|
|
2818
3227
|
description: string;
|
|
2819
|
-
default: string
|
|
3228
|
+
default: string;
|
|
2820
3229
|
choices: string[];
|
|
2821
3230
|
}>;
|
|
2822
3231
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2823
3232
|
};
|
|
3233
|
+
maxReasoningTokens?: number | undefined;
|
|
2824
3234
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
2825
3235
|
name: string;
|
|
2826
3236
|
description: string;
|
|
2827
3237
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2828
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
3238
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
2829
3239
|
maxInputTokens: number;
|
|
2830
3240
|
maxOutputTokens: number;
|
|
2831
3241
|
config: {
|
|
@@ -2861,11 +3271,12 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2861
3271
|
param: string;
|
|
2862
3272
|
title: string;
|
|
2863
3273
|
description: string;
|
|
2864
|
-
default: string
|
|
3274
|
+
default: string;
|
|
2865
3275
|
choices: string[];
|
|
2866
3276
|
}>;
|
|
2867
3277
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2868
3278
|
};
|
|
3279
|
+
maxReasoningTokens?: number | undefined;
|
|
2869
3280
|
}>>;
|
|
2870
3281
|
data: z.ZodAny;
|
|
2871
3282
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -2876,7 +3287,7 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2876
3287
|
name: string;
|
|
2877
3288
|
description: string;
|
|
2878
3289
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2879
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
3290
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
2880
3291
|
maxInputTokens: number;
|
|
2881
3292
|
maxOutputTokens: number;
|
|
2882
3293
|
config: {
|
|
@@ -2912,11 +3323,12 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2912
3323
|
param: string;
|
|
2913
3324
|
title: string;
|
|
2914
3325
|
description: string;
|
|
2915
|
-
default: string
|
|
3326
|
+
default: string;
|
|
2916
3327
|
choices: string[];
|
|
2917
3328
|
}>;
|
|
2918
3329
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2919
3330
|
};
|
|
3331
|
+
maxReasoningTokens?: number | undefined;
|
|
2920
3332
|
}>;
|
|
2921
3333
|
data?: any;
|
|
2922
3334
|
query?: Record<string, string> | undefined;
|
|
@@ -2926,7 +3338,7 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2926
3338
|
name: string;
|
|
2927
3339
|
description: string;
|
|
2928
3340
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2929
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
3341
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
2930
3342
|
maxInputTokens: number;
|
|
2931
3343
|
maxOutputTokens: number;
|
|
2932
3344
|
config: {
|
|
@@ -2962,11 +3374,12 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
2962
3374
|
param: string;
|
|
2963
3375
|
title: string;
|
|
2964
3376
|
description: string;
|
|
2965
|
-
default: string
|
|
3377
|
+
default: string;
|
|
2966
3378
|
choices: string[];
|
|
2967
3379
|
}>;
|
|
2968
3380
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2969
3381
|
};
|
|
3382
|
+
maxReasoningTokens?: number | undefined;
|
|
2970
3383
|
}>;
|
|
2971
3384
|
data?: any;
|
|
2972
3385
|
query?: Record<string, string> | undefined;
|
|
@@ -3084,22 +3497,80 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3084
3497
|
}, "strip", z.ZodTypeAny, {
|
|
3085
3498
|
name: string;
|
|
3086
3499
|
modality: "tool-response";
|
|
3500
|
+
data: string;
|
|
3087
3501
|
index: number;
|
|
3088
3502
|
id: string;
|
|
3089
|
-
data: string;
|
|
3090
3503
|
metadata?: undefined;
|
|
3091
3504
|
}, {
|
|
3092
3505
|
name: string;
|
|
3093
3506
|
modality: "tool-response";
|
|
3507
|
+
data: string;
|
|
3094
3508
|
index: number;
|
|
3095
3509
|
id: string;
|
|
3096
|
-
data: string;
|
|
3097
3510
|
metadata?: undefined;
|
|
3511
|
+
}>, z.ZodObject<{
|
|
3512
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
3513
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3514
|
+
type: z.ZodLiteral<"thinking">;
|
|
3515
|
+
thinking: z.ZodString;
|
|
3516
|
+
signature: z.ZodString;
|
|
3517
|
+
}, "strip", z.ZodTypeAny, {
|
|
3518
|
+
type: "thinking";
|
|
3519
|
+
thinking: string;
|
|
3520
|
+
signature: string;
|
|
3521
|
+
}, {
|
|
3522
|
+
type: "thinking";
|
|
3523
|
+
thinking: string;
|
|
3524
|
+
signature: string;
|
|
3525
|
+
}>, z.ZodObject<{
|
|
3526
|
+
type: z.ZodLiteral<"redacted">;
|
|
3527
|
+
data: z.ZodString;
|
|
3528
|
+
}, "strip", z.ZodTypeAny, {
|
|
3529
|
+
type: "redacted";
|
|
3530
|
+
data: string;
|
|
3531
|
+
}, {
|
|
3532
|
+
type: "redacted";
|
|
3533
|
+
data: string;
|
|
3534
|
+
}>]>;
|
|
3535
|
+
metadata: z.ZodTypeAny;
|
|
3536
|
+
}, "strip", z.ZodTypeAny, {
|
|
3537
|
+
value: {
|
|
3538
|
+
type: "thinking";
|
|
3539
|
+
thinking: string;
|
|
3540
|
+
signature: string;
|
|
3541
|
+
} | {
|
|
3542
|
+
type: "redacted";
|
|
3543
|
+
data: string;
|
|
3544
|
+
};
|
|
3545
|
+
modality: "reasoning";
|
|
3546
|
+
metadata?: any;
|
|
3547
|
+
}, {
|
|
3548
|
+
value: {
|
|
3549
|
+
type: "thinking";
|
|
3550
|
+
thinking: string;
|
|
3551
|
+
signature: string;
|
|
3552
|
+
} | {
|
|
3553
|
+
type: "redacted";
|
|
3554
|
+
data: string;
|
|
3555
|
+
};
|
|
3556
|
+
modality: "reasoning";
|
|
3557
|
+
metadata?: any;
|
|
3098
3558
|
}>]>, "many">;
|
|
3099
3559
|
metadata: z.ZodUndefined;
|
|
3100
3560
|
}, "strip", z.ZodTypeAny, {
|
|
3101
3561
|
role: "system" | "user" | "assistant" | "tool";
|
|
3102
3562
|
content: ({
|
|
3563
|
+
value: {
|
|
3564
|
+
type: "thinking";
|
|
3565
|
+
thinking: string;
|
|
3566
|
+
signature: string;
|
|
3567
|
+
} | {
|
|
3568
|
+
type: "redacted";
|
|
3569
|
+
data: string;
|
|
3570
|
+
};
|
|
3571
|
+
modality: "reasoning";
|
|
3572
|
+
metadata?: any;
|
|
3573
|
+
} | {
|
|
3103
3574
|
value: string;
|
|
3104
3575
|
modality: "text";
|
|
3105
3576
|
metadata?: undefined;
|
|
@@ -3125,17 +3596,28 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3125
3596
|
} | {
|
|
3126
3597
|
name: string;
|
|
3127
3598
|
modality: "tool-response";
|
|
3599
|
+
data: string;
|
|
3128
3600
|
index: number;
|
|
3129
3601
|
id: string;
|
|
3130
|
-
data: string;
|
|
3131
3602
|
metadata?: undefined;
|
|
3132
3603
|
})[];
|
|
3133
3604
|
metadata?: undefined;
|
|
3134
3605
|
}, {
|
|
3135
3606
|
role: "system" | "user" | "assistant" | "tool";
|
|
3136
3607
|
content: ({
|
|
3137
|
-
value:
|
|
3138
|
-
|
|
3608
|
+
value: {
|
|
3609
|
+
type: "thinking";
|
|
3610
|
+
thinking: string;
|
|
3611
|
+
signature: string;
|
|
3612
|
+
} | {
|
|
3613
|
+
type: "redacted";
|
|
3614
|
+
data: string;
|
|
3615
|
+
};
|
|
3616
|
+
modality: "reasoning";
|
|
3617
|
+
metadata?: any;
|
|
3618
|
+
} | {
|
|
3619
|
+
value: string;
|
|
3620
|
+
modality: "text";
|
|
3139
3621
|
metadata?: undefined;
|
|
3140
3622
|
} | {
|
|
3141
3623
|
value: {
|
|
@@ -3159,9 +3641,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3159
3641
|
} | {
|
|
3160
3642
|
name: string;
|
|
3161
3643
|
modality: "tool-response";
|
|
3644
|
+
data: string;
|
|
3162
3645
|
index: number;
|
|
3163
3646
|
id: string;
|
|
3164
|
-
data: string;
|
|
3165
3647
|
metadata?: undefined;
|
|
3166
3648
|
})[];
|
|
3167
3649
|
metadata?: undefined;
|
|
@@ -3220,6 +3702,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3220
3702
|
messages: {
|
|
3221
3703
|
role: "system" | "user" | "assistant" | "tool";
|
|
3222
3704
|
content: ({
|
|
3705
|
+
value: {
|
|
3706
|
+
type: "thinking";
|
|
3707
|
+
thinking: string;
|
|
3708
|
+
signature: string;
|
|
3709
|
+
} | {
|
|
3710
|
+
type: "redacted";
|
|
3711
|
+
data: string;
|
|
3712
|
+
};
|
|
3713
|
+
modality: "reasoning";
|
|
3714
|
+
metadata?: any;
|
|
3715
|
+
} | {
|
|
3223
3716
|
value: string;
|
|
3224
3717
|
modality: "text";
|
|
3225
3718
|
metadata?: undefined;
|
|
@@ -3245,9 +3738,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3245
3738
|
} | {
|
|
3246
3739
|
name: string;
|
|
3247
3740
|
modality: "tool-response";
|
|
3741
|
+
data: string;
|
|
3248
3742
|
index: number;
|
|
3249
3743
|
id: string;
|
|
3250
|
-
data: string;
|
|
3251
3744
|
metadata?: undefined;
|
|
3252
3745
|
})[];
|
|
3253
3746
|
metadata?: undefined;
|
|
@@ -3271,6 +3764,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3271
3764
|
messages: {
|
|
3272
3765
|
role: "system" | "user" | "assistant" | "tool";
|
|
3273
3766
|
content: ({
|
|
3767
|
+
value: {
|
|
3768
|
+
type: "thinking";
|
|
3769
|
+
thinking: string;
|
|
3770
|
+
signature: string;
|
|
3771
|
+
} | {
|
|
3772
|
+
type: "redacted";
|
|
3773
|
+
data: string;
|
|
3774
|
+
};
|
|
3775
|
+
modality: "reasoning";
|
|
3776
|
+
metadata?: any;
|
|
3777
|
+
} | {
|
|
3274
3778
|
value: string;
|
|
3275
3779
|
modality: "text";
|
|
3276
3780
|
metadata?: undefined;
|
|
@@ -3296,9 +3800,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3296
3800
|
} | {
|
|
3297
3801
|
name: string;
|
|
3298
3802
|
modality: "tool-response";
|
|
3803
|
+
data: string;
|
|
3299
3804
|
index: number;
|
|
3300
3805
|
id: string;
|
|
3301
|
-
data: string;
|
|
3302
3806
|
metadata?: undefined;
|
|
3303
3807
|
})[];
|
|
3304
3808
|
metadata?: undefined;
|
|
@@ -3331,6 +3835,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3331
3835
|
messages: {
|
|
3332
3836
|
role: "system" | "user" | "assistant" | "tool";
|
|
3333
3837
|
content: ({
|
|
3838
|
+
value: {
|
|
3839
|
+
type: "thinking";
|
|
3840
|
+
thinking: string;
|
|
3841
|
+
signature: string;
|
|
3842
|
+
} | {
|
|
3843
|
+
type: "redacted";
|
|
3844
|
+
data: string;
|
|
3845
|
+
};
|
|
3846
|
+
modality: "reasoning";
|
|
3847
|
+
metadata?: any;
|
|
3848
|
+
} | {
|
|
3334
3849
|
value: string;
|
|
3335
3850
|
modality: "text";
|
|
3336
3851
|
metadata?: undefined;
|
|
@@ -3356,9 +3871,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3356
3871
|
} | {
|
|
3357
3872
|
name: string;
|
|
3358
3873
|
modality: "tool-response";
|
|
3874
|
+
data: string;
|
|
3359
3875
|
index: number;
|
|
3360
3876
|
id: string;
|
|
3361
|
-
data: string;
|
|
3362
3877
|
metadata?: undefined;
|
|
3363
3878
|
})[];
|
|
3364
3879
|
metadata?: undefined;
|
|
@@ -3391,6 +3906,17 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3391
3906
|
messages: {
|
|
3392
3907
|
role: "system" | "user" | "assistant" | "tool";
|
|
3393
3908
|
content: ({
|
|
3909
|
+
value: {
|
|
3910
|
+
type: "thinking";
|
|
3911
|
+
thinking: string;
|
|
3912
|
+
signature: string;
|
|
3913
|
+
} | {
|
|
3914
|
+
type: "redacted";
|
|
3915
|
+
data: string;
|
|
3916
|
+
};
|
|
3917
|
+
modality: "reasoning";
|
|
3918
|
+
metadata?: any;
|
|
3919
|
+
} | {
|
|
3394
3920
|
value: string;
|
|
3395
3921
|
modality: "text";
|
|
3396
3922
|
metadata?: undefined;
|
|
@@ -3416,9 +3942,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
3416
3942
|
} | {
|
|
3417
3943
|
name: string;
|
|
3418
3944
|
modality: "tool-response";
|
|
3945
|
+
data: string;
|
|
3419
3946
|
index: number;
|
|
3420
3947
|
id: string;
|
|
3421
|
-
data: string;
|
|
3422
3948
|
metadata?: undefined;
|
|
3423
3949
|
})[];
|
|
3424
3950
|
metadata?: undefined;
|
|
@@ -3484,7 +4010,7 @@ declare const ProxyGetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
3484
4010
|
param: string;
|
|
3485
4011
|
title: string;
|
|
3486
4012
|
description: string;
|
|
3487
|
-
default: string
|
|
4013
|
+
default: string;
|
|
3488
4014
|
choices: string[];
|
|
3489
4015
|
}>;
|
|
3490
4016
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -3528,7 +4054,7 @@ declare const ProxyGetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
3528
4054
|
param: string;
|
|
3529
4055
|
title: string;
|
|
3530
4056
|
description: string;
|
|
3531
|
-
default: string
|
|
4057
|
+
default: string;
|
|
3532
4058
|
choices: string[];
|
|
3533
4059
|
}>;
|
|
3534
4060
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -3578,7 +4104,7 @@ declare const ProxyGetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
3578
4104
|
param: string;
|
|
3579
4105
|
title: string;
|
|
3580
4106
|
description: string;
|
|
3581
|
-
default: string
|
|
4107
|
+
default: string;
|
|
3582
4108
|
choices: string[];
|
|
3583
4109
|
}>;
|
|
3584
4110
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -3627,7 +4153,7 @@ declare const ProxyGetEmbeddingsHandlerRequest: z.ZodObject<{
|
|
|
3627
4153
|
param: string;
|
|
3628
4154
|
title: string;
|
|
3629
4155
|
description: string;
|
|
3630
|
-
default: string
|
|
4156
|
+
default: string;
|
|
3631
4157
|
choices: string[];
|
|
3632
4158
|
}>;
|
|
3633
4159
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -3792,7 +4318,7 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3792
4318
|
name: string;
|
|
3793
4319
|
description: string;
|
|
3794
4320
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3795
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4321
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
3796
4322
|
maxInputTokens: number;
|
|
3797
4323
|
maxOutputTokens: number;
|
|
3798
4324
|
config: {
|
|
@@ -3828,16 +4354,17 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3828
4354
|
param: string;
|
|
3829
4355
|
title: string;
|
|
3830
4356
|
description: string;
|
|
3831
|
-
default: string
|
|
4357
|
+
default: string;
|
|
3832
4358
|
choices: string[];
|
|
3833
4359
|
}>;
|
|
3834
4360
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3835
4361
|
};
|
|
4362
|
+
maxReasoningTokens?: number | undefined;
|
|
3836
4363
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
3837
4364
|
name: string;
|
|
3838
4365
|
description: string;
|
|
3839
4366
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3840
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4367
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
3841
4368
|
maxInputTokens: number;
|
|
3842
4369
|
maxOutputTokens: number;
|
|
3843
4370
|
config: {
|
|
@@ -3873,11 +4400,12 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3873
4400
|
param: string;
|
|
3874
4401
|
title: string;
|
|
3875
4402
|
description: string;
|
|
3876
|
-
default: string
|
|
4403
|
+
default: string;
|
|
3877
4404
|
choices: string[];
|
|
3878
4405
|
}>;
|
|
3879
4406
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3880
4407
|
};
|
|
4408
|
+
maxReasoningTokens?: number | undefined;
|
|
3881
4409
|
}>>;
|
|
3882
4410
|
data: z.ZodAny;
|
|
3883
4411
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -3888,7 +4416,7 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3888
4416
|
name: string;
|
|
3889
4417
|
description: string;
|
|
3890
4418
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3891
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4419
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
3892
4420
|
maxInputTokens: number;
|
|
3893
4421
|
maxOutputTokens: number;
|
|
3894
4422
|
config: {
|
|
@@ -3924,11 +4452,12 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3924
4452
|
param: string;
|
|
3925
4453
|
title: string;
|
|
3926
4454
|
description: string;
|
|
3927
|
-
default: string
|
|
4455
|
+
default: string;
|
|
3928
4456
|
choices: string[];
|
|
3929
4457
|
}>;
|
|
3930
4458
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3931
4459
|
};
|
|
4460
|
+
maxReasoningTokens?: number | undefined;
|
|
3932
4461
|
}>;
|
|
3933
4462
|
data?: any;
|
|
3934
4463
|
query?: Record<string, string> | undefined;
|
|
@@ -3938,7 +4467,7 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3938
4467
|
name: string;
|
|
3939
4468
|
description: string;
|
|
3940
4469
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3941
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4470
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
3942
4471
|
maxInputTokens: number;
|
|
3943
4472
|
maxOutputTokens: number;
|
|
3944
4473
|
config: {
|
|
@@ -3974,11 +4503,12 @@ declare const ProxyStreamChatHandlerRequest: z.ZodObject<{
|
|
|
3974
4503
|
param: string;
|
|
3975
4504
|
title: string;
|
|
3976
4505
|
description: string;
|
|
3977
|
-
default: string
|
|
4506
|
+
default: string;
|
|
3978
4507
|
choices: string[];
|
|
3979
4508
|
}>;
|
|
3980
4509
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3981
4510
|
};
|
|
4511
|
+
maxReasoningTokens?: number | undefined;
|
|
3982
4512
|
}>;
|
|
3983
4513
|
data?: any;
|
|
3984
4514
|
query?: Record<string, string> | undefined;
|
|
@@ -4036,11 +4566,69 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4036
4566
|
metadata?: undefined;
|
|
4037
4567
|
id?: string | undefined;
|
|
4038
4568
|
arguments?: string | undefined;
|
|
4569
|
+
}>, z.ZodObject<{
|
|
4570
|
+
modality: z.ZodLiteral<"partial-reasoning">;
|
|
4571
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4572
|
+
type: z.ZodLiteral<"thinking">;
|
|
4573
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
4574
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
4575
|
+
}, "strip", z.ZodTypeAny, {
|
|
4576
|
+
type: "thinking";
|
|
4577
|
+
thinking?: string | undefined;
|
|
4578
|
+
signature?: string | undefined;
|
|
4579
|
+
}, {
|
|
4580
|
+
type: "thinking";
|
|
4581
|
+
thinking?: string | undefined;
|
|
4582
|
+
signature?: string | undefined;
|
|
4583
|
+
}>, z.ZodObject<{
|
|
4584
|
+
type: z.ZodLiteral<"redacted">;
|
|
4585
|
+
data: z.ZodString;
|
|
4586
|
+
}, "strip", z.ZodTypeAny, {
|
|
4587
|
+
type: "redacted";
|
|
4588
|
+
data: string;
|
|
4589
|
+
}, {
|
|
4590
|
+
type: "redacted";
|
|
4591
|
+
data: string;
|
|
4592
|
+
}>]>;
|
|
4593
|
+
metadata: z.ZodTypeAny;
|
|
4594
|
+
}, "strip", z.ZodTypeAny, {
|
|
4595
|
+
value: {
|
|
4596
|
+
type: "redacted";
|
|
4597
|
+
data: string;
|
|
4598
|
+
} | {
|
|
4599
|
+
type: "thinking";
|
|
4600
|
+
thinking?: string | undefined;
|
|
4601
|
+
signature?: string | undefined;
|
|
4602
|
+
};
|
|
4603
|
+
modality: "partial-reasoning";
|
|
4604
|
+
metadata?: any;
|
|
4605
|
+
}, {
|
|
4606
|
+
value: {
|
|
4607
|
+
type: "redacted";
|
|
4608
|
+
data: string;
|
|
4609
|
+
} | {
|
|
4610
|
+
type: "thinking";
|
|
4611
|
+
thinking?: string | undefined;
|
|
4612
|
+
signature?: string | undefined;
|
|
4613
|
+
};
|
|
4614
|
+
modality: "partial-reasoning";
|
|
4615
|
+
metadata?: any;
|
|
4039
4616
|
}>]>;
|
|
4040
4617
|
metadata: z.ZodUndefined;
|
|
4041
4618
|
}, "strip", z.ZodTypeAny, {
|
|
4042
4619
|
role: "assistant";
|
|
4043
4620
|
partialContent: {
|
|
4621
|
+
value: {
|
|
4622
|
+
type: "redacted";
|
|
4623
|
+
data: string;
|
|
4624
|
+
} | {
|
|
4625
|
+
type: "thinking";
|
|
4626
|
+
thinking?: string | undefined;
|
|
4627
|
+
signature?: string | undefined;
|
|
4628
|
+
};
|
|
4629
|
+
modality: "partial-reasoning";
|
|
4630
|
+
metadata?: any;
|
|
4631
|
+
} | {
|
|
4044
4632
|
value: string;
|
|
4045
4633
|
modality: "partial-text";
|
|
4046
4634
|
metadata?: undefined;
|
|
@@ -4056,6 +4644,17 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4056
4644
|
}, {
|
|
4057
4645
|
role: "assistant";
|
|
4058
4646
|
partialContent: {
|
|
4647
|
+
value: {
|
|
4648
|
+
type: "redacted";
|
|
4649
|
+
data: string;
|
|
4650
|
+
} | {
|
|
4651
|
+
type: "thinking";
|
|
4652
|
+
thinking?: string | undefined;
|
|
4653
|
+
signature?: string | undefined;
|
|
4654
|
+
};
|
|
4655
|
+
modality: "partial-reasoning";
|
|
4656
|
+
metadata?: any;
|
|
4657
|
+
} | {
|
|
4059
4658
|
value: string;
|
|
4060
4659
|
modality: "partial-text";
|
|
4061
4660
|
metadata?: undefined;
|
|
@@ -4123,6 +4722,17 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4123
4722
|
partialMessages: {
|
|
4124
4723
|
role: "assistant";
|
|
4125
4724
|
partialContent: {
|
|
4725
|
+
value: {
|
|
4726
|
+
type: "redacted";
|
|
4727
|
+
data: string;
|
|
4728
|
+
} | {
|
|
4729
|
+
type: "thinking";
|
|
4730
|
+
thinking?: string | undefined;
|
|
4731
|
+
signature?: string | undefined;
|
|
4732
|
+
};
|
|
4733
|
+
modality: "partial-reasoning";
|
|
4734
|
+
metadata?: any;
|
|
4735
|
+
} | {
|
|
4126
4736
|
value: string;
|
|
4127
4737
|
modality: "partial-text";
|
|
4128
4738
|
metadata?: undefined;
|
|
@@ -4155,6 +4765,17 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4155
4765
|
partialMessages: {
|
|
4156
4766
|
role: "assistant";
|
|
4157
4767
|
partialContent: {
|
|
4768
|
+
value: {
|
|
4769
|
+
type: "redacted";
|
|
4770
|
+
data: string;
|
|
4771
|
+
} | {
|
|
4772
|
+
type: "thinking";
|
|
4773
|
+
thinking?: string | undefined;
|
|
4774
|
+
signature?: string | undefined;
|
|
4775
|
+
};
|
|
4776
|
+
modality: "partial-reasoning";
|
|
4777
|
+
metadata?: any;
|
|
4778
|
+
} | {
|
|
4158
4779
|
value: string;
|
|
4159
4780
|
modality: "partial-text";
|
|
4160
4781
|
metadata?: undefined;
|
|
@@ -4196,6 +4817,17 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4196
4817
|
partialMessages: {
|
|
4197
4818
|
role: "assistant";
|
|
4198
4819
|
partialContent: {
|
|
4820
|
+
value: {
|
|
4821
|
+
type: "redacted";
|
|
4822
|
+
data: string;
|
|
4823
|
+
} | {
|
|
4824
|
+
type: "thinking";
|
|
4825
|
+
thinking?: string | undefined;
|
|
4826
|
+
signature?: string | undefined;
|
|
4827
|
+
};
|
|
4828
|
+
modality: "partial-reasoning";
|
|
4829
|
+
metadata?: any;
|
|
4830
|
+
} | {
|
|
4199
4831
|
value: string;
|
|
4200
4832
|
modality: "partial-text";
|
|
4201
4833
|
metadata?: undefined;
|
|
@@ -4237,6 +4869,17 @@ declare const ProxyStreamChatHandlerResponse: z.ZodObject<{
|
|
|
4237
4869
|
partialMessages: {
|
|
4238
4870
|
role: "assistant";
|
|
4239
4871
|
partialContent: {
|
|
4872
|
+
value: {
|
|
4873
|
+
type: "redacted";
|
|
4874
|
+
data: string;
|
|
4875
|
+
} | {
|
|
4876
|
+
type: "thinking";
|
|
4877
|
+
thinking?: string | undefined;
|
|
4878
|
+
signature?: string | undefined;
|
|
4879
|
+
};
|
|
4880
|
+
modality: "partial-reasoning";
|
|
4881
|
+
metadata?: any;
|
|
4882
|
+
} | {
|
|
4240
4883
|
value: string;
|
|
4241
4884
|
modality: "partial-text";
|
|
4242
4885
|
metadata?: undefined;
|
|
@@ -4276,7 +4919,7 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4276
4919
|
name: string;
|
|
4277
4920
|
description: string;
|
|
4278
4921
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4279
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4922
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
4280
4923
|
maxInputTokens: number;
|
|
4281
4924
|
maxOutputTokens: number;
|
|
4282
4925
|
config: {
|
|
@@ -4312,16 +4955,17 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4312
4955
|
param: string;
|
|
4313
4956
|
title: string;
|
|
4314
4957
|
description: string;
|
|
4315
|
-
default: string
|
|
4958
|
+
default: string;
|
|
4316
4959
|
choices: string[];
|
|
4317
4960
|
}>;
|
|
4318
4961
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4319
4962
|
};
|
|
4963
|
+
maxReasoningTokens?: number | undefined;
|
|
4320
4964
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
4321
4965
|
name: string;
|
|
4322
4966
|
description: string;
|
|
4323
4967
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4324
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4968
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
4325
4969
|
maxInputTokens: number;
|
|
4326
4970
|
maxOutputTokens: number;
|
|
4327
4971
|
config: {
|
|
@@ -4357,11 +5001,12 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4357
5001
|
param: string;
|
|
4358
5002
|
title: string;
|
|
4359
5003
|
description: string;
|
|
4360
|
-
default: string
|
|
5004
|
+
default: string;
|
|
4361
5005
|
choices: string[];
|
|
4362
5006
|
}>;
|
|
4363
5007
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4364
5008
|
};
|
|
5009
|
+
maxReasoningTokens?: number | undefined;
|
|
4365
5010
|
}>>;
|
|
4366
5011
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4367
5012
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -4470,11 +5115,69 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4470
5115
|
modality: "tool-response";
|
|
4471
5116
|
index: number;
|
|
4472
5117
|
metadata?: undefined;
|
|
5118
|
+
}>, z.ZodObject<{
|
|
5119
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
5120
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5121
|
+
type: z.ZodLiteral<"thinking">;
|
|
5122
|
+
thinking: z.ZodString;
|
|
5123
|
+
signature: z.ZodString;
|
|
5124
|
+
}, "strip", z.ZodTypeAny, {
|
|
5125
|
+
type: "thinking";
|
|
5126
|
+
thinking: string;
|
|
5127
|
+
signature: string;
|
|
5128
|
+
}, {
|
|
5129
|
+
type: "thinking";
|
|
5130
|
+
thinking: string;
|
|
5131
|
+
signature: string;
|
|
5132
|
+
}>, z.ZodObject<{
|
|
5133
|
+
type: z.ZodLiteral<"redacted">;
|
|
5134
|
+
data: z.ZodString;
|
|
5135
|
+
}, "strip", z.ZodTypeAny, {
|
|
5136
|
+
type: "redacted";
|
|
5137
|
+
data: string;
|
|
5138
|
+
}, {
|
|
5139
|
+
type: "redacted";
|
|
5140
|
+
data: string;
|
|
5141
|
+
}>]>;
|
|
5142
|
+
metadata: z.ZodTypeAny;
|
|
5143
|
+
}, "strip", z.ZodTypeAny, {
|
|
5144
|
+
value: {
|
|
5145
|
+
type: "thinking";
|
|
5146
|
+
thinking: string;
|
|
5147
|
+
signature: string;
|
|
5148
|
+
} | {
|
|
5149
|
+
type: "redacted";
|
|
5150
|
+
data: string;
|
|
5151
|
+
};
|
|
5152
|
+
modality: "reasoning";
|
|
5153
|
+
metadata?: any;
|
|
5154
|
+
}, {
|
|
5155
|
+
value: {
|
|
5156
|
+
type: "thinking";
|
|
5157
|
+
thinking: string;
|
|
5158
|
+
signature: string;
|
|
5159
|
+
} | {
|
|
5160
|
+
type: "redacted";
|
|
5161
|
+
data: string;
|
|
5162
|
+
};
|
|
5163
|
+
modality: "reasoning";
|
|
5164
|
+
metadata?: any;
|
|
4473
5165
|
}>]>, "many">;
|
|
4474
5166
|
metadata: z.ZodUndefined;
|
|
4475
5167
|
}, "strip", z.ZodTypeAny, {
|
|
4476
5168
|
role: "system" | "user" | "assistant" | "tool";
|
|
4477
5169
|
content: ({
|
|
5170
|
+
value: {
|
|
5171
|
+
type: "thinking";
|
|
5172
|
+
thinking: string;
|
|
5173
|
+
signature: string;
|
|
5174
|
+
} | {
|
|
5175
|
+
type: "redacted";
|
|
5176
|
+
data: string;
|
|
5177
|
+
};
|
|
5178
|
+
modality: "reasoning";
|
|
5179
|
+
metadata?: any;
|
|
5180
|
+
} | {
|
|
4478
5181
|
value: string;
|
|
4479
5182
|
modality: "text";
|
|
4480
5183
|
metadata?: undefined;
|
|
@@ -4509,6 +5212,17 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4509
5212
|
}, {
|
|
4510
5213
|
role: "system" | "user" | "assistant" | "tool";
|
|
4511
5214
|
content: ({
|
|
5215
|
+
value: {
|
|
5216
|
+
type: "thinking";
|
|
5217
|
+
thinking: string;
|
|
5218
|
+
signature: string;
|
|
5219
|
+
} | {
|
|
5220
|
+
type: "redacted";
|
|
5221
|
+
data: string;
|
|
5222
|
+
};
|
|
5223
|
+
modality: "reasoning";
|
|
5224
|
+
metadata?: any;
|
|
5225
|
+
} | {
|
|
4512
5226
|
value: string;
|
|
4513
5227
|
modality: "text";
|
|
4514
5228
|
metadata?: undefined;
|
|
@@ -4610,7 +5324,7 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4610
5324
|
name: string;
|
|
4611
5325
|
description: string;
|
|
4612
5326
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4613
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
5327
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
4614
5328
|
maxInputTokens: number;
|
|
4615
5329
|
maxOutputTokens: number;
|
|
4616
5330
|
config: {
|
|
@@ -4646,15 +5360,27 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4646
5360
|
param: string;
|
|
4647
5361
|
title: string;
|
|
4648
5362
|
description: string;
|
|
4649
|
-
default: string
|
|
5363
|
+
default: string;
|
|
4650
5364
|
choices: string[];
|
|
4651
5365
|
}>;
|
|
4652
5366
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4653
5367
|
};
|
|
5368
|
+
maxReasoningTokens?: number | undefined;
|
|
4654
5369
|
}>;
|
|
4655
5370
|
messages: {
|
|
4656
5371
|
role: "system" | "user" | "assistant" | "tool";
|
|
4657
5372
|
content: ({
|
|
5373
|
+
value: {
|
|
5374
|
+
type: "thinking";
|
|
5375
|
+
thinking: string;
|
|
5376
|
+
signature: string;
|
|
5377
|
+
} | {
|
|
5378
|
+
type: "redacted";
|
|
5379
|
+
data: string;
|
|
5380
|
+
};
|
|
5381
|
+
modality: "reasoning";
|
|
5382
|
+
metadata?: any;
|
|
5383
|
+
} | {
|
|
4658
5384
|
value: string;
|
|
4659
5385
|
modality: "text";
|
|
4660
5386
|
metadata?: undefined;
|
|
@@ -4709,7 +5435,7 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4709
5435
|
name: string;
|
|
4710
5436
|
description: string;
|
|
4711
5437
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4712
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
5438
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
4713
5439
|
maxInputTokens: number;
|
|
4714
5440
|
maxOutputTokens: number;
|
|
4715
5441
|
config: {
|
|
@@ -4745,15 +5471,27 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
4745
5471
|
param: string;
|
|
4746
5472
|
title: string;
|
|
4747
5473
|
description: string;
|
|
4748
|
-
default: string
|
|
5474
|
+
default: string;
|
|
4749
5475
|
choices: string[];
|
|
4750
5476
|
}>;
|
|
4751
5477
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4752
5478
|
};
|
|
5479
|
+
maxReasoningTokens?: number | undefined;
|
|
4753
5480
|
}>;
|
|
4754
5481
|
messages: {
|
|
4755
5482
|
role: "system" | "user" | "assistant" | "tool";
|
|
4756
5483
|
content: ({
|
|
5484
|
+
value: {
|
|
5485
|
+
type: "thinking";
|
|
5486
|
+
thinking: string;
|
|
5487
|
+
signature: string;
|
|
5488
|
+
} | {
|
|
5489
|
+
type: "redacted";
|
|
5490
|
+
data: string;
|
|
5491
|
+
};
|
|
5492
|
+
modality: "reasoning";
|
|
5493
|
+
metadata?: any;
|
|
5494
|
+
} | {
|
|
4757
5495
|
value: string;
|
|
4758
5496
|
modality: "text";
|
|
4759
5497
|
metadata?: undefined;
|
|
@@ -4913,11 +5651,69 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
4913
5651
|
modality: "tool-response";
|
|
4914
5652
|
index: number;
|
|
4915
5653
|
metadata?: undefined;
|
|
5654
|
+
}>, z.ZodObject<{
|
|
5655
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
5656
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5657
|
+
type: z.ZodLiteral<"thinking">;
|
|
5658
|
+
thinking: z.ZodString;
|
|
5659
|
+
signature: z.ZodString;
|
|
5660
|
+
}, "strip", z.ZodTypeAny, {
|
|
5661
|
+
type: "thinking";
|
|
5662
|
+
thinking: string;
|
|
5663
|
+
signature: string;
|
|
5664
|
+
}, {
|
|
5665
|
+
type: "thinking";
|
|
5666
|
+
thinking: string;
|
|
5667
|
+
signature: string;
|
|
5668
|
+
}>, z.ZodObject<{
|
|
5669
|
+
type: z.ZodLiteral<"redacted">;
|
|
5670
|
+
data: z.ZodString;
|
|
5671
|
+
}, "strip", z.ZodTypeAny, {
|
|
5672
|
+
type: "redacted";
|
|
5673
|
+
data: string;
|
|
5674
|
+
}, {
|
|
5675
|
+
type: "redacted";
|
|
5676
|
+
data: string;
|
|
5677
|
+
}>]>;
|
|
5678
|
+
metadata: z.ZodTypeAny;
|
|
5679
|
+
}, "strip", z.ZodTypeAny, {
|
|
5680
|
+
value: {
|
|
5681
|
+
type: "thinking";
|
|
5682
|
+
thinking: string;
|
|
5683
|
+
signature: string;
|
|
5684
|
+
} | {
|
|
5685
|
+
type: "redacted";
|
|
5686
|
+
data: string;
|
|
5687
|
+
};
|
|
5688
|
+
modality: "reasoning";
|
|
5689
|
+
metadata?: any;
|
|
5690
|
+
}, {
|
|
5691
|
+
value: {
|
|
5692
|
+
type: "thinking";
|
|
5693
|
+
thinking: string;
|
|
5694
|
+
signature: string;
|
|
5695
|
+
} | {
|
|
5696
|
+
type: "redacted";
|
|
5697
|
+
data: string;
|
|
5698
|
+
};
|
|
5699
|
+
modality: "reasoning";
|
|
5700
|
+
metadata?: any;
|
|
4916
5701
|
}>]>, "many">;
|
|
4917
5702
|
metadata: z.ZodUndefined;
|
|
4918
5703
|
}, "strip", z.ZodTypeAny, {
|
|
4919
5704
|
role: "system" | "user" | "assistant" | "tool";
|
|
4920
5705
|
content: ({
|
|
5706
|
+
value: {
|
|
5707
|
+
type: "thinking";
|
|
5708
|
+
thinking: string;
|
|
5709
|
+
signature: string;
|
|
5710
|
+
} | {
|
|
5711
|
+
type: "redacted";
|
|
5712
|
+
data: string;
|
|
5713
|
+
};
|
|
5714
|
+
modality: "reasoning";
|
|
5715
|
+
metadata?: any;
|
|
5716
|
+
} | {
|
|
4921
5717
|
value: string;
|
|
4922
5718
|
modality: "text";
|
|
4923
5719
|
metadata?: undefined;
|
|
@@ -4952,6 +5748,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
4952
5748
|
}, {
|
|
4953
5749
|
role: "system" | "user" | "assistant" | "tool";
|
|
4954
5750
|
content: ({
|
|
5751
|
+
value: {
|
|
5752
|
+
type: "thinking";
|
|
5753
|
+
thinking: string;
|
|
5754
|
+
signature: string;
|
|
5755
|
+
} | {
|
|
5756
|
+
type: "redacted";
|
|
5757
|
+
data: string;
|
|
5758
|
+
};
|
|
5759
|
+
modality: "reasoning";
|
|
5760
|
+
metadata?: any;
|
|
5761
|
+
} | {
|
|
4955
5762
|
value: string;
|
|
4956
5763
|
modality: "text";
|
|
4957
5764
|
metadata?: undefined;
|
|
@@ -5048,6 +5855,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5048
5855
|
messages: {
|
|
5049
5856
|
role: "system" | "user" | "assistant" | "tool";
|
|
5050
5857
|
content: ({
|
|
5858
|
+
value: {
|
|
5859
|
+
type: "thinking";
|
|
5860
|
+
thinking: string;
|
|
5861
|
+
signature: string;
|
|
5862
|
+
} | {
|
|
5863
|
+
type: "redacted";
|
|
5864
|
+
data: string;
|
|
5865
|
+
};
|
|
5866
|
+
modality: "reasoning";
|
|
5867
|
+
metadata?: any;
|
|
5868
|
+
} | {
|
|
5051
5869
|
value: string;
|
|
5052
5870
|
modality: "text";
|
|
5053
5871
|
metadata?: undefined;
|
|
@@ -5097,6 +5915,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5097
5915
|
messages: {
|
|
5098
5916
|
role: "system" | "user" | "assistant" | "tool";
|
|
5099
5917
|
content: ({
|
|
5918
|
+
value: {
|
|
5919
|
+
type: "thinking";
|
|
5920
|
+
thinking: string;
|
|
5921
|
+
signature: string;
|
|
5922
|
+
} | {
|
|
5923
|
+
type: "redacted";
|
|
5924
|
+
data: string;
|
|
5925
|
+
};
|
|
5926
|
+
modality: "reasoning";
|
|
5927
|
+
metadata?: any;
|
|
5928
|
+
} | {
|
|
5100
5929
|
value: string;
|
|
5101
5930
|
modality: "text";
|
|
5102
5931
|
metadata?: undefined;
|
|
@@ -5178,11 +6007,69 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5178
6007
|
metadata?: undefined;
|
|
5179
6008
|
id?: string | undefined;
|
|
5180
6009
|
arguments?: string | undefined;
|
|
6010
|
+
}>, z.ZodObject<{
|
|
6011
|
+
modality: z.ZodLiteral<"partial-reasoning">;
|
|
6012
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6013
|
+
type: z.ZodLiteral<"thinking">;
|
|
6014
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
6015
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
6016
|
+
}, "strip", z.ZodTypeAny, {
|
|
6017
|
+
type: "thinking";
|
|
6018
|
+
thinking?: string | undefined;
|
|
6019
|
+
signature?: string | undefined;
|
|
6020
|
+
}, {
|
|
6021
|
+
type: "thinking";
|
|
6022
|
+
thinking?: string | undefined;
|
|
6023
|
+
signature?: string | undefined;
|
|
6024
|
+
}>, z.ZodObject<{
|
|
6025
|
+
type: z.ZodLiteral<"redacted">;
|
|
6026
|
+
data: z.ZodString;
|
|
6027
|
+
}, "strip", z.ZodTypeAny, {
|
|
6028
|
+
type: "redacted";
|
|
6029
|
+
data: string;
|
|
6030
|
+
}, {
|
|
6031
|
+
type: "redacted";
|
|
6032
|
+
data: string;
|
|
6033
|
+
}>]>;
|
|
6034
|
+
metadata: z.ZodTypeAny;
|
|
6035
|
+
}, "strip", z.ZodTypeAny, {
|
|
6036
|
+
value: {
|
|
6037
|
+
type: "redacted";
|
|
6038
|
+
data: string;
|
|
6039
|
+
} | {
|
|
6040
|
+
type: "thinking";
|
|
6041
|
+
thinking?: string | undefined;
|
|
6042
|
+
signature?: string | undefined;
|
|
6043
|
+
};
|
|
6044
|
+
modality: "partial-reasoning";
|
|
6045
|
+
metadata?: any;
|
|
6046
|
+
}, {
|
|
6047
|
+
value: {
|
|
6048
|
+
type: "redacted";
|
|
6049
|
+
data: string;
|
|
6050
|
+
} | {
|
|
6051
|
+
type: "thinking";
|
|
6052
|
+
thinking?: string | undefined;
|
|
6053
|
+
signature?: string | undefined;
|
|
6054
|
+
};
|
|
6055
|
+
modality: "partial-reasoning";
|
|
6056
|
+
metadata?: any;
|
|
5181
6057
|
}>]>;
|
|
5182
6058
|
metadata: z.ZodUndefined;
|
|
5183
6059
|
}, "strip", z.ZodTypeAny, {
|
|
5184
6060
|
role: "assistant";
|
|
5185
6061
|
partialContent: {
|
|
6062
|
+
value: {
|
|
6063
|
+
type: "redacted";
|
|
6064
|
+
data: string;
|
|
6065
|
+
} | {
|
|
6066
|
+
type: "thinking";
|
|
6067
|
+
thinking?: string | undefined;
|
|
6068
|
+
signature?: string | undefined;
|
|
6069
|
+
};
|
|
6070
|
+
modality: "partial-reasoning";
|
|
6071
|
+
metadata?: any;
|
|
6072
|
+
} | {
|
|
5186
6073
|
value: string;
|
|
5187
6074
|
modality: "partial-text";
|
|
5188
6075
|
metadata?: undefined;
|
|
@@ -5198,6 +6085,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5198
6085
|
}, {
|
|
5199
6086
|
role: "assistant";
|
|
5200
6087
|
partialContent: {
|
|
6088
|
+
value: {
|
|
6089
|
+
type: "redacted";
|
|
6090
|
+
data: string;
|
|
6091
|
+
} | {
|
|
6092
|
+
type: "thinking";
|
|
6093
|
+
thinking?: string | undefined;
|
|
6094
|
+
signature?: string | undefined;
|
|
6095
|
+
};
|
|
6096
|
+
modality: "partial-reasoning";
|
|
6097
|
+
metadata?: any;
|
|
6098
|
+
} | {
|
|
5201
6099
|
value: string;
|
|
5202
6100
|
modality: "partial-text";
|
|
5203
6101
|
metadata?: undefined;
|
|
@@ -5265,6 +6163,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5265
6163
|
partialMessages: {
|
|
5266
6164
|
role: "assistant";
|
|
5267
6165
|
partialContent: {
|
|
6166
|
+
value: {
|
|
6167
|
+
type: "redacted";
|
|
6168
|
+
data: string;
|
|
6169
|
+
} | {
|
|
6170
|
+
type: "thinking";
|
|
6171
|
+
thinking?: string | undefined;
|
|
6172
|
+
signature?: string | undefined;
|
|
6173
|
+
};
|
|
6174
|
+
modality: "partial-reasoning";
|
|
6175
|
+
metadata?: any;
|
|
6176
|
+
} | {
|
|
5268
6177
|
value: string;
|
|
5269
6178
|
modality: "partial-text";
|
|
5270
6179
|
metadata?: undefined;
|
|
@@ -5297,6 +6206,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5297
6206
|
partialMessages: {
|
|
5298
6207
|
role: "assistant";
|
|
5299
6208
|
partialContent: {
|
|
6209
|
+
value: {
|
|
6210
|
+
type: "redacted";
|
|
6211
|
+
data: string;
|
|
6212
|
+
} | {
|
|
6213
|
+
type: "thinking";
|
|
6214
|
+
thinking?: string | undefined;
|
|
6215
|
+
signature?: string | undefined;
|
|
6216
|
+
};
|
|
6217
|
+
modality: "partial-reasoning";
|
|
6218
|
+
metadata?: any;
|
|
6219
|
+
} | {
|
|
5300
6220
|
value: string;
|
|
5301
6221
|
modality: "partial-text";
|
|
5302
6222
|
metadata?: undefined;
|
|
@@ -5343,6 +6263,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5343
6263
|
messages: {
|
|
5344
6264
|
role: "system" | "user" | "assistant" | "tool";
|
|
5345
6265
|
content: ({
|
|
6266
|
+
value: {
|
|
6267
|
+
type: "thinking";
|
|
6268
|
+
thinking: string;
|
|
6269
|
+
signature: string;
|
|
6270
|
+
} | {
|
|
6271
|
+
type: "redacted";
|
|
6272
|
+
data: string;
|
|
6273
|
+
};
|
|
6274
|
+
modality: "reasoning";
|
|
6275
|
+
metadata?: any;
|
|
6276
|
+
} | {
|
|
5346
6277
|
value: string;
|
|
5347
6278
|
modality: "text";
|
|
5348
6279
|
metadata?: undefined;
|
|
@@ -5392,6 +6323,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5392
6323
|
partialMessages: {
|
|
5393
6324
|
role: "assistant";
|
|
5394
6325
|
partialContent: {
|
|
6326
|
+
value: {
|
|
6327
|
+
type: "redacted";
|
|
6328
|
+
data: string;
|
|
6329
|
+
} | {
|
|
6330
|
+
type: "thinking";
|
|
6331
|
+
thinking?: string | undefined;
|
|
6332
|
+
signature?: string | undefined;
|
|
6333
|
+
};
|
|
6334
|
+
modality: "partial-reasoning";
|
|
6335
|
+
metadata?: any;
|
|
6336
|
+
} | {
|
|
5395
6337
|
value: string;
|
|
5396
6338
|
modality: "partial-text";
|
|
5397
6339
|
metadata?: undefined;
|
|
@@ -5432,6 +6374,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5432
6374
|
messages: {
|
|
5433
6375
|
role: "system" | "user" | "assistant" | "tool";
|
|
5434
6376
|
content: ({
|
|
6377
|
+
value: {
|
|
6378
|
+
type: "thinking";
|
|
6379
|
+
thinking: string;
|
|
6380
|
+
signature: string;
|
|
6381
|
+
} | {
|
|
6382
|
+
type: "redacted";
|
|
6383
|
+
data: string;
|
|
6384
|
+
};
|
|
6385
|
+
modality: "reasoning";
|
|
6386
|
+
metadata?: any;
|
|
6387
|
+
} | {
|
|
5435
6388
|
value: string;
|
|
5436
6389
|
modality: "text";
|
|
5437
6390
|
metadata?: undefined;
|
|
@@ -5481,6 +6434,17 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
5481
6434
|
partialMessages: {
|
|
5482
6435
|
role: "assistant";
|
|
5483
6436
|
partialContent: {
|
|
6437
|
+
value: {
|
|
6438
|
+
type: "redacted";
|
|
6439
|
+
data: string;
|
|
6440
|
+
} | {
|
|
6441
|
+
type: "thinking";
|
|
6442
|
+
thinking?: string | undefined;
|
|
6443
|
+
signature?: string | undefined;
|
|
6444
|
+
};
|
|
6445
|
+
modality: "partial-reasoning";
|
|
6446
|
+
metadata?: any;
|
|
6447
|
+
} | {
|
|
5484
6448
|
value: string;
|
|
5485
6449
|
modality: "partial-text";
|
|
5486
6450
|
metadata?: undefined;
|
|
@@ -5567,6 +6531,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5567
6531
|
messages: {
|
|
5568
6532
|
role: "system" | "user" | "assistant" | "tool";
|
|
5569
6533
|
content: ({
|
|
6534
|
+
value: {
|
|
6535
|
+
type: "thinking";
|
|
6536
|
+
thinking: string;
|
|
6537
|
+
signature: string;
|
|
6538
|
+
} | {
|
|
6539
|
+
type: "redacted";
|
|
6540
|
+
data: string;
|
|
6541
|
+
};
|
|
6542
|
+
modality: "reasoning";
|
|
6543
|
+
metadata?: any;
|
|
6544
|
+
} | {
|
|
5570
6545
|
value: string;
|
|
5571
6546
|
modality: "text";
|
|
5572
6547
|
metadata?: undefined;
|
|
@@ -5616,6 +6591,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5616
6591
|
messages: {
|
|
5617
6592
|
role: "system" | "user" | "assistant" | "tool";
|
|
5618
6593
|
content: ({
|
|
6594
|
+
value: {
|
|
6595
|
+
type: "thinking";
|
|
6596
|
+
thinking: string;
|
|
6597
|
+
signature: string;
|
|
6598
|
+
} | {
|
|
6599
|
+
type: "redacted";
|
|
6600
|
+
data: string;
|
|
6601
|
+
};
|
|
6602
|
+
modality: "reasoning";
|
|
6603
|
+
metadata?: any;
|
|
6604
|
+
} | {
|
|
5619
6605
|
value: string;
|
|
5620
6606
|
modality: "text";
|
|
5621
6607
|
metadata?: undefined;
|
|
@@ -5641,9 +6627,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5641
6627
|
} | {
|
|
5642
6628
|
name: string;
|
|
5643
6629
|
modality: "tool-response";
|
|
6630
|
+
data: string;
|
|
5644
6631
|
index: number;
|
|
5645
6632
|
id: string;
|
|
5646
|
-
data: string;
|
|
5647
6633
|
metadata?: undefined;
|
|
5648
6634
|
})[];
|
|
5649
6635
|
metadata?: undefined;
|
|
@@ -5677,6 +6663,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5677
6663
|
messages: {
|
|
5678
6664
|
role: "system" | "user" | "assistant" | "tool";
|
|
5679
6665
|
content: ({
|
|
6666
|
+
value: {
|
|
6667
|
+
type: "thinking";
|
|
6668
|
+
thinking: string;
|
|
6669
|
+
signature: string;
|
|
6670
|
+
} | {
|
|
6671
|
+
type: "redacted";
|
|
6672
|
+
data: string;
|
|
6673
|
+
};
|
|
6674
|
+
modality: "reasoning";
|
|
6675
|
+
metadata?: any;
|
|
6676
|
+
} | {
|
|
5680
6677
|
value: string;
|
|
5681
6678
|
modality: "text";
|
|
5682
6679
|
metadata?: undefined;
|
|
@@ -5726,6 +6723,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5726
6723
|
messages: {
|
|
5727
6724
|
role: "system" | "user" | "assistant" | "tool";
|
|
5728
6725
|
content: ({
|
|
6726
|
+
value: {
|
|
6727
|
+
type: "thinking";
|
|
6728
|
+
thinking: string;
|
|
6729
|
+
signature: string;
|
|
6730
|
+
} | {
|
|
6731
|
+
type: "redacted";
|
|
6732
|
+
data: string;
|
|
6733
|
+
};
|
|
6734
|
+
modality: "reasoning";
|
|
6735
|
+
metadata?: any;
|
|
6736
|
+
} | {
|
|
5729
6737
|
value: string;
|
|
5730
6738
|
modality: "text";
|
|
5731
6739
|
metadata?: undefined;
|
|
@@ -5751,9 +6759,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5751
6759
|
} | {
|
|
5752
6760
|
name: string;
|
|
5753
6761
|
modality: "tool-response";
|
|
6762
|
+
data: string;
|
|
5754
6763
|
index: number;
|
|
5755
6764
|
id: string;
|
|
5756
|
-
data: string;
|
|
5757
6765
|
metadata?: undefined;
|
|
5758
6766
|
})[];
|
|
5759
6767
|
metadata?: undefined;
|
|
@@ -5896,6 +6904,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5896
6904
|
messages: {
|
|
5897
6905
|
role: "system" | "user" | "assistant" | "tool";
|
|
5898
6906
|
content: ({
|
|
6907
|
+
value: {
|
|
6908
|
+
type: "thinking";
|
|
6909
|
+
thinking: string;
|
|
6910
|
+
signature: string;
|
|
6911
|
+
} | {
|
|
6912
|
+
type: "redacted";
|
|
6913
|
+
data: string;
|
|
6914
|
+
};
|
|
6915
|
+
modality: "reasoning";
|
|
6916
|
+
metadata?: any;
|
|
6917
|
+
} | {
|
|
5899
6918
|
value: string;
|
|
5900
6919
|
modality: "text";
|
|
5901
6920
|
metadata?: undefined;
|
|
@@ -5945,6 +6964,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5945
6964
|
messages: {
|
|
5946
6965
|
role: "system" | "user" | "assistant" | "tool";
|
|
5947
6966
|
content: ({
|
|
6967
|
+
value: {
|
|
6968
|
+
type: "thinking";
|
|
6969
|
+
thinking: string;
|
|
6970
|
+
signature: string;
|
|
6971
|
+
} | {
|
|
6972
|
+
type: "redacted";
|
|
6973
|
+
data: string;
|
|
6974
|
+
};
|
|
6975
|
+
modality: "reasoning";
|
|
6976
|
+
metadata?: any;
|
|
6977
|
+
} | {
|
|
5948
6978
|
value: string;
|
|
5949
6979
|
modality: "text";
|
|
5950
6980
|
metadata?: undefined;
|
|
@@ -5970,9 +7000,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
5970
7000
|
} | {
|
|
5971
7001
|
name: string;
|
|
5972
7002
|
modality: "tool-response";
|
|
7003
|
+
data: string;
|
|
5973
7004
|
index: number;
|
|
5974
7005
|
id: string;
|
|
5975
|
-
data: string;
|
|
5976
7006
|
metadata?: undefined;
|
|
5977
7007
|
})[];
|
|
5978
7008
|
metadata?: undefined;
|
|
@@ -6069,6 +7099,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
6069
7099
|
messages: {
|
|
6070
7100
|
role: "system" | "user" | "assistant" | "tool";
|
|
6071
7101
|
content: ({
|
|
7102
|
+
value: {
|
|
7103
|
+
type: "thinking";
|
|
7104
|
+
thinking: string;
|
|
7105
|
+
signature: string;
|
|
7106
|
+
} | {
|
|
7107
|
+
type: "redacted";
|
|
7108
|
+
data: string;
|
|
7109
|
+
};
|
|
7110
|
+
modality: "reasoning";
|
|
7111
|
+
metadata?: any;
|
|
7112
|
+
} | {
|
|
6072
7113
|
value: string;
|
|
6073
7114
|
modality: "text";
|
|
6074
7115
|
metadata?: undefined;
|
|
@@ -6118,6 +7159,17 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
6118
7159
|
messages: {
|
|
6119
7160
|
role: "system" | "user" | "assistant" | "tool";
|
|
6120
7161
|
content: ({
|
|
7162
|
+
value: {
|
|
7163
|
+
type: "thinking";
|
|
7164
|
+
thinking: string;
|
|
7165
|
+
signature: string;
|
|
7166
|
+
} | {
|
|
7167
|
+
type: "redacted";
|
|
7168
|
+
data: string;
|
|
7169
|
+
};
|
|
7170
|
+
modality: "reasoning";
|
|
7171
|
+
metadata?: any;
|
|
7172
|
+
} | {
|
|
6121
7173
|
value: string;
|
|
6122
7174
|
modality: "text";
|
|
6123
7175
|
metadata?: undefined;
|
|
@@ -6143,9 +7195,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
6143
7195
|
} | {
|
|
6144
7196
|
name: string;
|
|
6145
7197
|
modality: "tool-response";
|
|
7198
|
+
data: string;
|
|
6146
7199
|
index: number;
|
|
6147
7200
|
id: string;
|
|
6148
|
-
data: string;
|
|
6149
7201
|
metadata?: undefined;
|
|
6150
7202
|
})[];
|
|
6151
7203
|
metadata?: undefined;
|
|
@@ -6230,7 +7282,7 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6230
7282
|
name: string;
|
|
6231
7283
|
description: string;
|
|
6232
7284
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6233
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7285
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6234
7286
|
maxInputTokens: number;
|
|
6235
7287
|
maxOutputTokens: number;
|
|
6236
7288
|
config: {
|
|
@@ -6266,16 +7318,17 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6266
7318
|
param: string;
|
|
6267
7319
|
title: string;
|
|
6268
7320
|
description: string;
|
|
6269
|
-
default: string
|
|
7321
|
+
default: string;
|
|
6270
7322
|
choices: string[];
|
|
6271
7323
|
}>;
|
|
6272
7324
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6273
7325
|
};
|
|
7326
|
+
maxReasoningTokens?: number | undefined;
|
|
6274
7327
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
6275
7328
|
name: string;
|
|
6276
7329
|
description: string;
|
|
6277
7330
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6278
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7331
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6279
7332
|
maxInputTokens: number;
|
|
6280
7333
|
maxOutputTokens: number;
|
|
6281
7334
|
config: {
|
|
@@ -6311,11 +7364,12 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6311
7364
|
param: string;
|
|
6312
7365
|
title: string;
|
|
6313
7366
|
description: string;
|
|
6314
|
-
default: string
|
|
7367
|
+
default: string;
|
|
6315
7368
|
choices: string[];
|
|
6316
7369
|
}>;
|
|
6317
7370
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6318
7371
|
};
|
|
7372
|
+
maxReasoningTokens?: number | undefined;
|
|
6319
7373
|
}>>;
|
|
6320
7374
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
6321
7375
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -6424,11 +7478,69 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6424
7478
|
modality: "tool-response";
|
|
6425
7479
|
index: number;
|
|
6426
7480
|
metadata?: undefined;
|
|
7481
|
+
}>, z.ZodObject<{
|
|
7482
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
7483
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7484
|
+
type: z.ZodLiteral<"thinking">;
|
|
7485
|
+
thinking: z.ZodString;
|
|
7486
|
+
signature: z.ZodString;
|
|
7487
|
+
}, "strip", z.ZodTypeAny, {
|
|
7488
|
+
type: "thinking";
|
|
7489
|
+
thinking: string;
|
|
7490
|
+
signature: string;
|
|
7491
|
+
}, {
|
|
7492
|
+
type: "thinking";
|
|
7493
|
+
thinking: string;
|
|
7494
|
+
signature: string;
|
|
7495
|
+
}>, z.ZodObject<{
|
|
7496
|
+
type: z.ZodLiteral<"redacted">;
|
|
7497
|
+
data: z.ZodString;
|
|
7498
|
+
}, "strip", z.ZodTypeAny, {
|
|
7499
|
+
type: "redacted";
|
|
7500
|
+
data: string;
|
|
7501
|
+
}, {
|
|
7502
|
+
type: "redacted";
|
|
7503
|
+
data: string;
|
|
7504
|
+
}>]>;
|
|
7505
|
+
metadata: z.ZodTypeAny;
|
|
7506
|
+
}, "strip", z.ZodTypeAny, {
|
|
7507
|
+
value: {
|
|
7508
|
+
type: "thinking";
|
|
7509
|
+
thinking: string;
|
|
7510
|
+
signature: string;
|
|
7511
|
+
} | {
|
|
7512
|
+
type: "redacted";
|
|
7513
|
+
data: string;
|
|
7514
|
+
};
|
|
7515
|
+
modality: "reasoning";
|
|
7516
|
+
metadata?: any;
|
|
7517
|
+
}, {
|
|
7518
|
+
value: {
|
|
7519
|
+
type: "thinking";
|
|
7520
|
+
thinking: string;
|
|
7521
|
+
signature: string;
|
|
7522
|
+
} | {
|
|
7523
|
+
type: "redacted";
|
|
7524
|
+
data: string;
|
|
7525
|
+
};
|
|
7526
|
+
modality: "reasoning";
|
|
7527
|
+
metadata?: any;
|
|
6427
7528
|
}>]>, "many">;
|
|
6428
7529
|
metadata: z.ZodUndefined;
|
|
6429
7530
|
}, "strip", z.ZodTypeAny, {
|
|
6430
7531
|
role: "system" | "user" | "assistant" | "tool";
|
|
6431
7532
|
content: ({
|
|
7533
|
+
value: {
|
|
7534
|
+
type: "thinking";
|
|
7535
|
+
thinking: string;
|
|
7536
|
+
signature: string;
|
|
7537
|
+
} | {
|
|
7538
|
+
type: "redacted";
|
|
7539
|
+
data: string;
|
|
7540
|
+
};
|
|
7541
|
+
modality: "reasoning";
|
|
7542
|
+
metadata?: any;
|
|
7543
|
+
} | {
|
|
6432
7544
|
value: string;
|
|
6433
7545
|
modality: "text";
|
|
6434
7546
|
metadata?: undefined;
|
|
@@ -6463,6 +7575,17 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6463
7575
|
}, {
|
|
6464
7576
|
role: "system" | "user" | "assistant" | "tool";
|
|
6465
7577
|
content: ({
|
|
7578
|
+
value: {
|
|
7579
|
+
type: "thinking";
|
|
7580
|
+
thinking: string;
|
|
7581
|
+
signature: string;
|
|
7582
|
+
} | {
|
|
7583
|
+
type: "redacted";
|
|
7584
|
+
data: string;
|
|
7585
|
+
};
|
|
7586
|
+
modality: "reasoning";
|
|
7587
|
+
metadata?: any;
|
|
7588
|
+
} | {
|
|
6466
7589
|
value: string;
|
|
6467
7590
|
modality: "text";
|
|
6468
7591
|
metadata?: undefined;
|
|
@@ -6573,7 +7696,7 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6573
7696
|
name: string;
|
|
6574
7697
|
description: string;
|
|
6575
7698
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6576
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7699
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6577
7700
|
maxInputTokens: number;
|
|
6578
7701
|
maxOutputTokens: number;
|
|
6579
7702
|
config: {
|
|
@@ -6609,15 +7732,27 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6609
7732
|
param: string;
|
|
6610
7733
|
title: string;
|
|
6611
7734
|
description: string;
|
|
6612
|
-
default: string
|
|
7735
|
+
default: string;
|
|
6613
7736
|
choices: string[];
|
|
6614
7737
|
}>;
|
|
6615
7738
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6616
7739
|
};
|
|
7740
|
+
maxReasoningTokens?: number | undefined;
|
|
6617
7741
|
}>;
|
|
6618
7742
|
messages: {
|
|
6619
7743
|
role: "system" | "user" | "assistant" | "tool";
|
|
6620
7744
|
content: ({
|
|
7745
|
+
value: {
|
|
7746
|
+
type: "thinking";
|
|
7747
|
+
thinking: string;
|
|
7748
|
+
signature: string;
|
|
7749
|
+
} | {
|
|
7750
|
+
type: "redacted";
|
|
7751
|
+
data: string;
|
|
7752
|
+
};
|
|
7753
|
+
modality: "reasoning";
|
|
7754
|
+
metadata?: any;
|
|
7755
|
+
} | {
|
|
6621
7756
|
value: string;
|
|
6622
7757
|
modality: "text";
|
|
6623
7758
|
metadata?: undefined;
|
|
@@ -6673,7 +7808,7 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6673
7808
|
name: string;
|
|
6674
7809
|
description: string;
|
|
6675
7810
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6676
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7811
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6677
7812
|
maxInputTokens: number;
|
|
6678
7813
|
maxOutputTokens: number;
|
|
6679
7814
|
config: {
|
|
@@ -6709,15 +7844,27 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
6709
7844
|
param: string;
|
|
6710
7845
|
title: string;
|
|
6711
7846
|
description: string;
|
|
6712
|
-
default: string
|
|
7847
|
+
default: string;
|
|
6713
7848
|
choices: string[];
|
|
6714
7849
|
}>;
|
|
6715
7850
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6716
7851
|
};
|
|
7852
|
+
maxReasoningTokens?: number | undefined;
|
|
6717
7853
|
}>;
|
|
6718
7854
|
messages: {
|
|
6719
7855
|
role: "system" | "user" | "assistant" | "tool";
|
|
6720
7856
|
content: ({
|
|
7857
|
+
value: {
|
|
7858
|
+
type: "thinking";
|
|
7859
|
+
thinking: string;
|
|
7860
|
+
signature: string;
|
|
7861
|
+
} | {
|
|
7862
|
+
type: "redacted";
|
|
7863
|
+
data: string;
|
|
7864
|
+
};
|
|
7865
|
+
modality: "reasoning";
|
|
7866
|
+
metadata?: any;
|
|
7867
|
+
} | {
|
|
6721
7868
|
value: string;
|
|
6722
7869
|
modality: "text";
|
|
6723
7870
|
metadata?: undefined;
|
|
@@ -6774,7 +7921,7 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
6774
7921
|
name: string;
|
|
6775
7922
|
description: string;
|
|
6776
7923
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6777
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7924
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6778
7925
|
maxInputTokens: number;
|
|
6779
7926
|
maxOutputTokens: number;
|
|
6780
7927
|
config: {
|
|
@@ -6810,16 +7957,17 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
6810
7957
|
param: string;
|
|
6811
7958
|
title: string;
|
|
6812
7959
|
description: string;
|
|
6813
|
-
default: string
|
|
7960
|
+
default: string;
|
|
6814
7961
|
choices: string[];
|
|
6815
7962
|
}>;
|
|
6816
7963
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6817
7964
|
};
|
|
7965
|
+
maxReasoningTokens?: number | undefined;
|
|
6818
7966
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
6819
7967
|
name: string;
|
|
6820
7968
|
description: string;
|
|
6821
7969
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
6822
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
7970
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
6823
7971
|
maxInputTokens: number;
|
|
6824
7972
|
maxOutputTokens: number;
|
|
6825
7973
|
config: {
|
|
@@ -6855,11 +8003,12 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
6855
8003
|
param: string;
|
|
6856
8004
|
title: string;
|
|
6857
8005
|
description: string;
|
|
6858
|
-
default: string
|
|
8006
|
+
default: string;
|
|
6859
8007
|
choices: string[];
|
|
6860
8008
|
}>;
|
|
6861
8009
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
6862
8010
|
};
|
|
8011
|
+
maxReasoningTokens?: number | undefined;
|
|
6863
8012
|
}>>;
|
|
6864
8013
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
6865
8014
|
messages: z.ZodArray<z.ZodObject<{
|
|
@@ -6968,11 +8117,69 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
6968
8117
|
modality: "tool-response";
|
|
6969
8118
|
index: number;
|
|
6970
8119
|
metadata?: undefined;
|
|
8120
|
+
}>, z.ZodObject<{
|
|
8121
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
8122
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8123
|
+
type: z.ZodLiteral<"thinking">;
|
|
8124
|
+
thinking: z.ZodString;
|
|
8125
|
+
signature: z.ZodString;
|
|
8126
|
+
}, "strip", z.ZodTypeAny, {
|
|
8127
|
+
type: "thinking";
|
|
8128
|
+
thinking: string;
|
|
8129
|
+
signature: string;
|
|
8130
|
+
}, {
|
|
8131
|
+
type: "thinking";
|
|
8132
|
+
thinking: string;
|
|
8133
|
+
signature: string;
|
|
8134
|
+
}>, z.ZodObject<{
|
|
8135
|
+
type: z.ZodLiteral<"redacted">;
|
|
8136
|
+
data: z.ZodString;
|
|
8137
|
+
}, "strip", z.ZodTypeAny, {
|
|
8138
|
+
type: "redacted";
|
|
8139
|
+
data: string;
|
|
8140
|
+
}, {
|
|
8141
|
+
type: "redacted";
|
|
8142
|
+
data: string;
|
|
8143
|
+
}>]>;
|
|
8144
|
+
metadata: z.ZodTypeAny;
|
|
8145
|
+
}, "strip", z.ZodTypeAny, {
|
|
8146
|
+
value: {
|
|
8147
|
+
type: "thinking";
|
|
8148
|
+
thinking: string;
|
|
8149
|
+
signature: string;
|
|
8150
|
+
} | {
|
|
8151
|
+
type: "redacted";
|
|
8152
|
+
data: string;
|
|
8153
|
+
};
|
|
8154
|
+
modality: "reasoning";
|
|
8155
|
+
metadata?: any;
|
|
8156
|
+
}, {
|
|
8157
|
+
value: {
|
|
8158
|
+
type: "thinking";
|
|
8159
|
+
thinking: string;
|
|
8160
|
+
signature: string;
|
|
8161
|
+
} | {
|
|
8162
|
+
type: "redacted";
|
|
8163
|
+
data: string;
|
|
8164
|
+
};
|
|
8165
|
+
modality: "reasoning";
|
|
8166
|
+
metadata?: any;
|
|
6971
8167
|
}>]>, "many">;
|
|
6972
8168
|
metadata: z.ZodUndefined;
|
|
6973
8169
|
}, "strip", z.ZodTypeAny, {
|
|
6974
8170
|
role: "system" | "user" | "assistant" | "tool";
|
|
6975
8171
|
content: ({
|
|
8172
|
+
value: {
|
|
8173
|
+
type: "thinking";
|
|
8174
|
+
thinking: string;
|
|
8175
|
+
signature: string;
|
|
8176
|
+
} | {
|
|
8177
|
+
type: "redacted";
|
|
8178
|
+
data: string;
|
|
8179
|
+
};
|
|
8180
|
+
modality: "reasoning";
|
|
8181
|
+
metadata?: any;
|
|
8182
|
+
} | {
|
|
6976
8183
|
value: string;
|
|
6977
8184
|
modality: "text";
|
|
6978
8185
|
metadata?: undefined;
|
|
@@ -7007,6 +8214,17 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
7007
8214
|
}, {
|
|
7008
8215
|
role: "system" | "user" | "assistant" | "tool";
|
|
7009
8216
|
content: ({
|
|
8217
|
+
value: {
|
|
8218
|
+
type: "thinking";
|
|
8219
|
+
thinking: string;
|
|
8220
|
+
signature: string;
|
|
8221
|
+
} | {
|
|
8222
|
+
type: "redacted";
|
|
8223
|
+
data: string;
|
|
8224
|
+
};
|
|
8225
|
+
modality: "reasoning";
|
|
8226
|
+
metadata?: any;
|
|
8227
|
+
} | {
|
|
7010
8228
|
value: string;
|
|
7011
8229
|
modality: "text";
|
|
7012
8230
|
metadata?: undefined;
|
|
@@ -7115,7 +8333,7 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
7115
8333
|
name: string;
|
|
7116
8334
|
description: string;
|
|
7117
8335
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7118
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8336
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7119
8337
|
maxInputTokens: number;
|
|
7120
8338
|
maxOutputTokens: number;
|
|
7121
8339
|
config: {
|
|
@@ -7151,15 +8369,27 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
7151
8369
|
param: string;
|
|
7152
8370
|
title: string;
|
|
7153
8371
|
description: string;
|
|
7154
|
-
default: string
|
|
8372
|
+
default: string;
|
|
7155
8373
|
choices: string[];
|
|
7156
8374
|
}>;
|
|
7157
8375
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7158
8376
|
};
|
|
8377
|
+
maxReasoningTokens?: number | undefined;
|
|
7159
8378
|
}>;
|
|
7160
8379
|
messages: {
|
|
7161
8380
|
role: "system" | "user" | "assistant" | "tool";
|
|
7162
8381
|
content: ({
|
|
8382
|
+
value: {
|
|
8383
|
+
type: "thinking";
|
|
8384
|
+
thinking: string;
|
|
8385
|
+
signature: string;
|
|
8386
|
+
} | {
|
|
8387
|
+
type: "redacted";
|
|
8388
|
+
data: string;
|
|
8389
|
+
};
|
|
8390
|
+
modality: "reasoning";
|
|
8391
|
+
metadata?: any;
|
|
8392
|
+
} | {
|
|
7163
8393
|
value: string;
|
|
7164
8394
|
modality: "text";
|
|
7165
8395
|
metadata?: undefined;
|
|
@@ -7215,7 +8445,7 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
7215
8445
|
name: string;
|
|
7216
8446
|
description: string;
|
|
7217
8447
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7218
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8448
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7219
8449
|
maxInputTokens: number;
|
|
7220
8450
|
maxOutputTokens: number;
|
|
7221
8451
|
config: {
|
|
@@ -7251,15 +8481,27 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
7251
8481
|
param: string;
|
|
7252
8482
|
title: string;
|
|
7253
8483
|
description: string;
|
|
7254
|
-
default: string
|
|
8484
|
+
default: string;
|
|
7255
8485
|
choices: string[];
|
|
7256
8486
|
}>;
|
|
7257
8487
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7258
8488
|
};
|
|
8489
|
+
maxReasoningTokens?: number | undefined;
|
|
7259
8490
|
}>;
|
|
7260
8491
|
messages: {
|
|
7261
8492
|
role: "system" | "user" | "assistant" | "tool";
|
|
7262
8493
|
content: ({
|
|
8494
|
+
value: {
|
|
8495
|
+
type: "thinking";
|
|
8496
|
+
thinking: string;
|
|
8497
|
+
signature: string;
|
|
8498
|
+
} | {
|
|
8499
|
+
type: "redacted";
|
|
8500
|
+
data: string;
|
|
8501
|
+
};
|
|
8502
|
+
modality: "reasoning";
|
|
8503
|
+
metadata?: any;
|
|
8504
|
+
} | {
|
|
7263
8505
|
value: string;
|
|
7264
8506
|
modality: "text";
|
|
7265
8507
|
metadata?: undefined;
|
|
@@ -7351,7 +8593,7 @@ declare const GatewayGetEmbeddingsRequest: z.ZodObject<{
|
|
|
7351
8593
|
param: string;
|
|
7352
8594
|
title: string;
|
|
7353
8595
|
description: string;
|
|
7354
|
-
default: string
|
|
8596
|
+
default: string;
|
|
7355
8597
|
choices: string[];
|
|
7356
8598
|
}>;
|
|
7357
8599
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -7395,7 +8637,7 @@ declare const GatewayGetEmbeddingsRequest: z.ZodObject<{
|
|
|
7395
8637
|
param: string;
|
|
7396
8638
|
title: string;
|
|
7397
8639
|
description: string;
|
|
7398
|
-
default: string
|
|
8640
|
+
default: string;
|
|
7399
8641
|
choices: string[];
|
|
7400
8642
|
}>;
|
|
7401
8643
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -7481,7 +8723,7 @@ declare const GatewayGetEmbeddingsRequest: z.ZodObject<{
|
|
|
7481
8723
|
param: string;
|
|
7482
8724
|
title: string;
|
|
7483
8725
|
description: string;
|
|
7484
|
-
default: string
|
|
8726
|
+
default: string;
|
|
7485
8727
|
choices: string[];
|
|
7486
8728
|
}>;
|
|
7487
8729
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -7542,7 +8784,7 @@ declare const GatewayGetEmbeddingsRequest: z.ZodObject<{
|
|
|
7542
8784
|
param: string;
|
|
7543
8785
|
title: string;
|
|
7544
8786
|
description: string;
|
|
7545
|
-
default: string
|
|
8787
|
+
default: string;
|
|
7546
8788
|
choices: string[];
|
|
7547
8789
|
}>;
|
|
7548
8790
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -7569,7 +8811,7 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7569
8811
|
name: string;
|
|
7570
8812
|
description: string;
|
|
7571
8813
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7572
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8814
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7573
8815
|
maxInputTokens: number;
|
|
7574
8816
|
maxOutputTokens: number;
|
|
7575
8817
|
config: {
|
|
@@ -7605,16 +8847,17 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7605
8847
|
param: string;
|
|
7606
8848
|
title: string;
|
|
7607
8849
|
description: string;
|
|
7608
|
-
default: string
|
|
8850
|
+
default: string;
|
|
7609
8851
|
choices: string[];
|
|
7610
8852
|
}>;
|
|
7611
8853
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7612
8854
|
};
|
|
8855
|
+
maxReasoningTokens?: number | undefined;
|
|
7613
8856
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
7614
8857
|
name: string;
|
|
7615
8858
|
description: string;
|
|
7616
8859
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7617
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8860
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7618
8861
|
maxInputTokens: number;
|
|
7619
8862
|
maxOutputTokens: number;
|
|
7620
8863
|
config: {
|
|
@@ -7650,11 +8893,12 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7650
8893
|
param: string;
|
|
7651
8894
|
title: string;
|
|
7652
8895
|
description: string;
|
|
7653
|
-
default: string
|
|
8896
|
+
default: string;
|
|
7654
8897
|
choices: string[];
|
|
7655
8898
|
}>;
|
|
7656
8899
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7657
8900
|
};
|
|
8901
|
+
maxReasoningTokens?: number | undefined;
|
|
7658
8902
|
}>>;
|
|
7659
8903
|
data: z.ZodAny;
|
|
7660
8904
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -7665,7 +8909,7 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7665
8909
|
name: string;
|
|
7666
8910
|
description: string;
|
|
7667
8911
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7668
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8912
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7669
8913
|
maxInputTokens: number;
|
|
7670
8914
|
maxOutputTokens: number;
|
|
7671
8915
|
config: {
|
|
@@ -7701,11 +8945,12 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7701
8945
|
param: string;
|
|
7702
8946
|
title: string;
|
|
7703
8947
|
description: string;
|
|
7704
|
-
default: string
|
|
8948
|
+
default: string;
|
|
7705
8949
|
choices: string[];
|
|
7706
8950
|
}>;
|
|
7707
8951
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7708
8952
|
};
|
|
8953
|
+
maxReasoningTokens?: number | undefined;
|
|
7709
8954
|
}>;
|
|
7710
8955
|
data?: any;
|
|
7711
8956
|
query?: Record<string, string> | undefined;
|
|
@@ -7715,7 +8960,7 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7715
8960
|
name: string;
|
|
7716
8961
|
description: string;
|
|
7717
8962
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7718
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
8963
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7719
8964
|
maxInputTokens: number;
|
|
7720
8965
|
maxOutputTokens: number;
|
|
7721
8966
|
config: {
|
|
@@ -7751,11 +8996,12 @@ declare const GatewayProxyCompleteChatRequest: z.ZodObject<{
|
|
|
7751
8996
|
param: string;
|
|
7752
8997
|
title: string;
|
|
7753
8998
|
description: string;
|
|
7754
|
-
default: string
|
|
8999
|
+
default: string;
|
|
7755
9000
|
choices: string[];
|
|
7756
9001
|
}>;
|
|
7757
9002
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7758
9003
|
};
|
|
9004
|
+
maxReasoningTokens?: number | undefined;
|
|
7759
9005
|
}>;
|
|
7760
9006
|
data?: any;
|
|
7761
9007
|
query?: Record<string, string> | undefined;
|
|
@@ -7766,7 +9012,7 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7766
9012
|
name: string;
|
|
7767
9013
|
description: string;
|
|
7768
9014
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7769
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
9015
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7770
9016
|
maxInputTokens: number;
|
|
7771
9017
|
maxOutputTokens: number;
|
|
7772
9018
|
config: {
|
|
@@ -7802,16 +9048,17 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7802
9048
|
param: string;
|
|
7803
9049
|
title: string;
|
|
7804
9050
|
description: string;
|
|
7805
|
-
default: string
|
|
9051
|
+
default: string;
|
|
7806
9052
|
choices: string[];
|
|
7807
9053
|
}>;
|
|
7808
9054
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7809
9055
|
};
|
|
9056
|
+
maxReasoningTokens?: number | undefined;
|
|
7810
9057
|
}>, z.ZodTypeDef, ChatModelV1<{
|
|
7811
9058
|
name: string;
|
|
7812
9059
|
description: string;
|
|
7813
9060
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7814
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
9061
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7815
9062
|
maxInputTokens: number;
|
|
7816
9063
|
maxOutputTokens: number;
|
|
7817
9064
|
config: {
|
|
@@ -7847,11 +9094,12 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7847
9094
|
param: string;
|
|
7848
9095
|
title: string;
|
|
7849
9096
|
description: string;
|
|
7850
|
-
default: string
|
|
9097
|
+
default: string;
|
|
7851
9098
|
choices: string[];
|
|
7852
9099
|
}>;
|
|
7853
9100
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7854
9101
|
};
|
|
9102
|
+
maxReasoningTokens?: number | undefined;
|
|
7855
9103
|
}>>;
|
|
7856
9104
|
data: z.ZodAny;
|
|
7857
9105
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -7862,7 +9110,7 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7862
9110
|
name: string;
|
|
7863
9111
|
description: string;
|
|
7864
9112
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7865
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
9113
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7866
9114
|
maxInputTokens: number;
|
|
7867
9115
|
maxOutputTokens: number;
|
|
7868
9116
|
config: {
|
|
@@ -7898,11 +9146,12 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7898
9146
|
param: string;
|
|
7899
9147
|
title: string;
|
|
7900
9148
|
description: string;
|
|
7901
|
-
default: string
|
|
9149
|
+
default: string;
|
|
7902
9150
|
choices: string[];
|
|
7903
9151
|
}>;
|
|
7904
9152
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7905
9153
|
};
|
|
9154
|
+
maxReasoningTokens?: number | undefined;
|
|
7906
9155
|
}>;
|
|
7907
9156
|
data?: any;
|
|
7908
9157
|
query?: Record<string, string> | undefined;
|
|
@@ -7912,7 +9161,7 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7912
9161
|
name: string;
|
|
7913
9162
|
description: string;
|
|
7914
9163
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7915
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
9164
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
7916
9165
|
maxInputTokens: number;
|
|
7917
9166
|
maxOutputTokens: number;
|
|
7918
9167
|
config: {
|
|
@@ -7948,11 +9197,12 @@ declare const GatewayProxyStreamChatRequest: z.ZodObject<{
|
|
|
7948
9197
|
param: string;
|
|
7949
9198
|
title: string;
|
|
7950
9199
|
description: string;
|
|
7951
|
-
default: string
|
|
9200
|
+
default: string;
|
|
7952
9201
|
choices: string[];
|
|
7953
9202
|
}>;
|
|
7954
9203
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7955
9204
|
};
|
|
9205
|
+
maxReasoningTokens?: number | undefined;
|
|
7956
9206
|
}>;
|
|
7957
9207
|
data?: any;
|
|
7958
9208
|
query?: Record<string, string> | undefined;
|
|
@@ -7998,7 +9248,7 @@ declare const GatewayProxyGetEmbeddingsRequest: z.ZodObject<{
|
|
|
7998
9248
|
param: string;
|
|
7999
9249
|
title: string;
|
|
8000
9250
|
description: string;
|
|
8001
|
-
default: string
|
|
9251
|
+
default: string;
|
|
8002
9252
|
choices: string[];
|
|
8003
9253
|
}>;
|
|
8004
9254
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -8042,7 +9292,7 @@ declare const GatewayProxyGetEmbeddingsRequest: z.ZodObject<{
|
|
|
8042
9292
|
param: string;
|
|
8043
9293
|
title: string;
|
|
8044
9294
|
description: string;
|
|
8045
|
-
default: string
|
|
9295
|
+
default: string;
|
|
8046
9296
|
choices: string[];
|
|
8047
9297
|
}>;
|
|
8048
9298
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -8092,7 +9342,7 @@ declare const GatewayProxyGetEmbeddingsRequest: z.ZodObject<{
|
|
|
8092
9342
|
param: string;
|
|
8093
9343
|
title: string;
|
|
8094
9344
|
description: string;
|
|
8095
|
-
default: string
|
|
9345
|
+
default: string;
|
|
8096
9346
|
choices: string[];
|
|
8097
9347
|
}>;
|
|
8098
9348
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -8141,7 +9391,7 @@ declare const GatewayProxyGetEmbeddingsRequest: z.ZodObject<{
|
|
|
8141
9391
|
param: string;
|
|
8142
9392
|
title: string;
|
|
8143
9393
|
description: string;
|
|
8144
|
-
default: string
|
|
9394
|
+
default: string;
|
|
8145
9395
|
choices: string[];
|
|
8146
9396
|
}>;
|
|
8147
9397
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|