@vibes.diy/api-types 8.1.0 → 8.1.2
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/app.d.ts +100 -4
- package/chat.d.ts +1038 -297
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite.d.ts +14 -14
- package/package.json +4 -4
- package/prompt.d.ts +164 -8
- package/prompt.js +4 -1
- package/prompt.js.map +1 -1
- package/research.d.ts +110 -0
- package/research.js +262 -0
- package/research.js.map +1 -0
package/chat.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
115
115
|
outerTid: string;
|
|
116
116
|
prompt: {
|
|
117
117
|
model?: string | undefined;
|
|
118
|
-
messages: {
|
|
118
|
+
messages: ({
|
|
119
119
|
role: "assistant" | "system" | "user";
|
|
120
120
|
content: ({
|
|
121
121
|
type: "text";
|
|
@@ -134,7 +134,22 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
134
134
|
originalUploadId?: string | undefined;
|
|
135
135
|
size?: number | undefined;
|
|
136
136
|
})[];
|
|
137
|
-
}
|
|
137
|
+
} | {
|
|
138
|
+
role: "assistant";
|
|
139
|
+
content: string | null;
|
|
140
|
+
tool_calls: {
|
|
141
|
+
id: string;
|
|
142
|
+
type: "function";
|
|
143
|
+
function: {
|
|
144
|
+
name: string;
|
|
145
|
+
arguments: string;
|
|
146
|
+
};
|
|
147
|
+
}[];
|
|
148
|
+
} | {
|
|
149
|
+
role: "tool";
|
|
150
|
+
content: string;
|
|
151
|
+
tool_call_id: string;
|
|
152
|
+
})[];
|
|
138
153
|
stream?: boolean | undefined;
|
|
139
154
|
temperature?: number | undefined;
|
|
140
155
|
max_tokens?: number | undefined;
|
|
@@ -146,6 +161,20 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
146
161
|
stop?: string | string[] | undefined;
|
|
147
162
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
148
163
|
modalities?: string[] | undefined;
|
|
164
|
+
tools?: {
|
|
165
|
+
type: "function";
|
|
166
|
+
function: {
|
|
167
|
+
name: string;
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
parameters: unknown;
|
|
170
|
+
};
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
173
|
+
type: "function";
|
|
174
|
+
function: {
|
|
175
|
+
name: string;
|
|
176
|
+
};
|
|
177
|
+
} | undefined;
|
|
149
178
|
};
|
|
150
179
|
dryRun?: boolean | undefined;
|
|
151
180
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -217,7 +246,7 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
|
|
|
217
246
|
outerTid: string;
|
|
218
247
|
prompt: {
|
|
219
248
|
model?: string | undefined;
|
|
220
|
-
messages: {
|
|
249
|
+
messages: ({
|
|
221
250
|
role: "assistant" | "system" | "user";
|
|
222
251
|
content: ({
|
|
223
252
|
type: "text";
|
|
@@ -236,7 +265,22 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
|
|
|
236
265
|
originalUploadId?: string | undefined;
|
|
237
266
|
size?: number | undefined;
|
|
238
267
|
})[];
|
|
239
|
-
}
|
|
268
|
+
} | {
|
|
269
|
+
role: "assistant";
|
|
270
|
+
content: string | null;
|
|
271
|
+
tool_calls: {
|
|
272
|
+
id: string;
|
|
273
|
+
type: "function";
|
|
274
|
+
function: {
|
|
275
|
+
name: string;
|
|
276
|
+
arguments: string;
|
|
277
|
+
};
|
|
278
|
+
}[];
|
|
279
|
+
} | {
|
|
280
|
+
role: "tool";
|
|
281
|
+
content: string;
|
|
282
|
+
tool_call_id: string;
|
|
283
|
+
})[];
|
|
240
284
|
stream?: boolean | undefined;
|
|
241
285
|
temperature?: number | undefined;
|
|
242
286
|
max_tokens?: number | undefined;
|
|
@@ -248,6 +292,20 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
|
|
|
248
292
|
stop?: string | string[] | undefined;
|
|
249
293
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
250
294
|
modalities?: string[] | undefined;
|
|
295
|
+
tools?: {
|
|
296
|
+
type: "function";
|
|
297
|
+
function: {
|
|
298
|
+
name: string;
|
|
299
|
+
description?: string | undefined;
|
|
300
|
+
parameters: unknown;
|
|
301
|
+
};
|
|
302
|
+
}[] | undefined;
|
|
303
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
304
|
+
type: "function";
|
|
305
|
+
function: {
|
|
306
|
+
name: string;
|
|
307
|
+
};
|
|
308
|
+
} | undefined;
|
|
251
309
|
};
|
|
252
310
|
apiKey?: string | undefined;
|
|
253
311
|
}, {}>;
|
|
@@ -263,7 +321,7 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
|
|
|
263
321
|
outerTid: string;
|
|
264
322
|
prompt: {
|
|
265
323
|
model?: string | undefined;
|
|
266
|
-
messages: {
|
|
324
|
+
messages: ({
|
|
267
325
|
role: "assistant" | "system" | "user";
|
|
268
326
|
content: ({
|
|
269
327
|
type: "text";
|
|
@@ -282,7 +340,22 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
|
|
|
282
340
|
originalUploadId?: string | undefined;
|
|
283
341
|
size?: number | undefined;
|
|
284
342
|
})[];
|
|
285
|
-
}
|
|
343
|
+
} | {
|
|
344
|
+
role: "assistant";
|
|
345
|
+
content: string | null;
|
|
346
|
+
tool_calls: {
|
|
347
|
+
id: string;
|
|
348
|
+
type: "function";
|
|
349
|
+
function: {
|
|
350
|
+
name: string;
|
|
351
|
+
arguments: string;
|
|
352
|
+
};
|
|
353
|
+
}[];
|
|
354
|
+
} | {
|
|
355
|
+
role: "tool";
|
|
356
|
+
content: string;
|
|
357
|
+
tool_call_id: string;
|
|
358
|
+
})[];
|
|
286
359
|
stream?: boolean | undefined;
|
|
287
360
|
temperature?: number | undefined;
|
|
288
361
|
max_tokens?: number | undefined;
|
|
@@ -294,6 +367,20 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
|
|
|
294
367
|
stop?: string | string[] | undefined;
|
|
295
368
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
296
369
|
modalities?: string[] | undefined;
|
|
370
|
+
tools?: {
|
|
371
|
+
type: "function";
|
|
372
|
+
function: {
|
|
373
|
+
name: string;
|
|
374
|
+
description?: string | undefined;
|
|
375
|
+
parameters: unknown;
|
|
376
|
+
};
|
|
377
|
+
}[] | undefined;
|
|
378
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
379
|
+
type: "function";
|
|
380
|
+
function: {
|
|
381
|
+
name: string;
|
|
382
|
+
};
|
|
383
|
+
} | undefined;
|
|
297
384
|
};
|
|
298
385
|
inputImageBase64?: string | undefined;
|
|
299
386
|
imgTarget?: {
|
|
@@ -467,7 +554,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
467
554
|
outerTid: string;
|
|
468
555
|
prompt: {
|
|
469
556
|
model?: string | undefined;
|
|
470
|
-
messages: {
|
|
557
|
+
messages: ({
|
|
471
558
|
role: "assistant" | "system" | "user";
|
|
472
559
|
content: ({
|
|
473
560
|
type: "text";
|
|
@@ -486,7 +573,22 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
486
573
|
originalUploadId?: string | undefined;
|
|
487
574
|
size?: number | undefined;
|
|
488
575
|
})[];
|
|
489
|
-
}
|
|
576
|
+
} | {
|
|
577
|
+
role: "assistant";
|
|
578
|
+
content: string | null;
|
|
579
|
+
tool_calls: {
|
|
580
|
+
id: string;
|
|
581
|
+
type: "function";
|
|
582
|
+
function: {
|
|
583
|
+
name: string;
|
|
584
|
+
arguments: string;
|
|
585
|
+
};
|
|
586
|
+
}[];
|
|
587
|
+
} | {
|
|
588
|
+
role: "tool";
|
|
589
|
+
content: string;
|
|
590
|
+
tool_call_id: string;
|
|
591
|
+
})[];
|
|
490
592
|
stream?: boolean | undefined;
|
|
491
593
|
temperature?: number | undefined;
|
|
492
594
|
max_tokens?: number | undefined;
|
|
@@ -498,6 +600,20 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
498
600
|
stop?: string | string[] | undefined;
|
|
499
601
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
500
602
|
modalities?: string[] | undefined;
|
|
603
|
+
tools?: {
|
|
604
|
+
type: "function";
|
|
605
|
+
function: {
|
|
606
|
+
name: string;
|
|
607
|
+
description?: string | undefined;
|
|
608
|
+
parameters: unknown;
|
|
609
|
+
};
|
|
610
|
+
}[] | undefined;
|
|
611
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
612
|
+
type: "function";
|
|
613
|
+
function: {
|
|
614
|
+
name: string;
|
|
615
|
+
};
|
|
616
|
+
} | undefined;
|
|
501
617
|
};
|
|
502
618
|
dryRun?: boolean | undefined;
|
|
503
619
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -567,7 +683,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
567
683
|
outerTid: string;
|
|
568
684
|
prompt: {
|
|
569
685
|
model?: string | undefined;
|
|
570
|
-
messages: {
|
|
686
|
+
messages: ({
|
|
571
687
|
role: "assistant" | "system" | "user";
|
|
572
688
|
content: ({
|
|
573
689
|
type: "text";
|
|
@@ -586,7 +702,22 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
586
702
|
originalUploadId?: string | undefined;
|
|
587
703
|
size?: number | undefined;
|
|
588
704
|
})[];
|
|
589
|
-
}
|
|
705
|
+
} | {
|
|
706
|
+
role: "assistant";
|
|
707
|
+
content: string | null;
|
|
708
|
+
tool_calls: {
|
|
709
|
+
id: string;
|
|
710
|
+
type: "function";
|
|
711
|
+
function: {
|
|
712
|
+
name: string;
|
|
713
|
+
arguments: string;
|
|
714
|
+
};
|
|
715
|
+
}[];
|
|
716
|
+
} | {
|
|
717
|
+
role: "tool";
|
|
718
|
+
content: string;
|
|
719
|
+
tool_call_id: string;
|
|
720
|
+
})[];
|
|
590
721
|
stream?: boolean | undefined;
|
|
591
722
|
temperature?: number | undefined;
|
|
592
723
|
max_tokens?: number | undefined;
|
|
@@ -598,6 +729,20 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
598
729
|
stop?: string | string[] | undefined;
|
|
599
730
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
600
731
|
modalities?: string[] | undefined;
|
|
732
|
+
tools?: {
|
|
733
|
+
type: "function";
|
|
734
|
+
function: {
|
|
735
|
+
name: string;
|
|
736
|
+
description?: string | undefined;
|
|
737
|
+
parameters: unknown;
|
|
738
|
+
};
|
|
739
|
+
}[] | undefined;
|
|
740
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
741
|
+
type: "function";
|
|
742
|
+
function: {
|
|
743
|
+
name: string;
|
|
744
|
+
};
|
|
745
|
+
} | undefined;
|
|
601
746
|
};
|
|
602
747
|
apiKey?: string | undefined;
|
|
603
748
|
} | {
|
|
@@ -611,7 +756,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
611
756
|
outerTid: string;
|
|
612
757
|
prompt: {
|
|
613
758
|
model?: string | undefined;
|
|
614
|
-
messages: {
|
|
759
|
+
messages: ({
|
|
615
760
|
role: "assistant" | "system" | "user";
|
|
616
761
|
content: ({
|
|
617
762
|
type: "text";
|
|
@@ -630,7 +775,22 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
630
775
|
originalUploadId?: string | undefined;
|
|
631
776
|
size?: number | undefined;
|
|
632
777
|
})[];
|
|
633
|
-
}
|
|
778
|
+
} | {
|
|
779
|
+
role: "assistant";
|
|
780
|
+
content: string | null;
|
|
781
|
+
tool_calls: {
|
|
782
|
+
id: string;
|
|
783
|
+
type: "function";
|
|
784
|
+
function: {
|
|
785
|
+
name: string;
|
|
786
|
+
arguments: string;
|
|
787
|
+
};
|
|
788
|
+
}[];
|
|
789
|
+
} | {
|
|
790
|
+
role: "tool";
|
|
791
|
+
content: string;
|
|
792
|
+
tool_call_id: string;
|
|
793
|
+
})[];
|
|
634
794
|
stream?: boolean | undefined;
|
|
635
795
|
temperature?: number | undefined;
|
|
636
796
|
max_tokens?: number | undefined;
|
|
@@ -642,6 +802,20 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
642
802
|
stop?: string | string[] | undefined;
|
|
643
803
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
644
804
|
modalities?: string[] | undefined;
|
|
805
|
+
tools?: {
|
|
806
|
+
type: "function";
|
|
807
|
+
function: {
|
|
808
|
+
name: string;
|
|
809
|
+
description?: string | undefined;
|
|
810
|
+
parameters: unknown;
|
|
811
|
+
};
|
|
812
|
+
}[] | undefined;
|
|
813
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
814
|
+
type: "function";
|
|
815
|
+
function: {
|
|
816
|
+
name: string;
|
|
817
|
+
};
|
|
818
|
+
} | undefined;
|
|
645
819
|
};
|
|
646
820
|
inputImageBase64?: string | undefined;
|
|
647
821
|
imgTarget?: {
|
|
@@ -768,7 +942,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
768
942
|
outerTid: string;
|
|
769
943
|
prompt: {
|
|
770
944
|
model?: string | undefined;
|
|
771
|
-
messages: {
|
|
945
|
+
messages: ({
|
|
772
946
|
role: "assistant" | "system" | "user";
|
|
773
947
|
content: ({
|
|
774
948
|
type: "text";
|
|
@@ -787,7 +961,22 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
787
961
|
originalUploadId?: string | undefined;
|
|
788
962
|
size?: number | undefined;
|
|
789
963
|
})[];
|
|
790
|
-
}
|
|
964
|
+
} | {
|
|
965
|
+
role: "assistant";
|
|
966
|
+
content: string | null;
|
|
967
|
+
tool_calls: {
|
|
968
|
+
id: string;
|
|
969
|
+
type: "function";
|
|
970
|
+
function: {
|
|
971
|
+
name: string;
|
|
972
|
+
arguments: string;
|
|
973
|
+
};
|
|
974
|
+
}[];
|
|
975
|
+
} | {
|
|
976
|
+
role: "tool";
|
|
977
|
+
content: string;
|
|
978
|
+
tool_call_id: string;
|
|
979
|
+
})[];
|
|
791
980
|
stream?: boolean | undefined;
|
|
792
981
|
temperature?: number | undefined;
|
|
793
982
|
max_tokens?: number | undefined;
|
|
@@ -799,6 +988,20 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
799
988
|
stop?: string | string[] | undefined;
|
|
800
989
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
801
990
|
modalities?: string[] | undefined;
|
|
991
|
+
tools?: {
|
|
992
|
+
type: "function";
|
|
993
|
+
function: {
|
|
994
|
+
name: string;
|
|
995
|
+
description?: string | undefined;
|
|
996
|
+
parameters: unknown;
|
|
997
|
+
};
|
|
998
|
+
}[] | undefined;
|
|
999
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1000
|
+
type: "function";
|
|
1001
|
+
function: {
|
|
1002
|
+
name: string;
|
|
1003
|
+
};
|
|
1004
|
+
} | undefined;
|
|
802
1005
|
};
|
|
803
1006
|
dryRun?: boolean | undefined;
|
|
804
1007
|
dryRunPreAllocate?: boolean | undefined;
|
|
@@ -868,7 +1071,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
868
1071
|
outerTid: string;
|
|
869
1072
|
prompt: {
|
|
870
1073
|
model?: string | undefined;
|
|
871
|
-
messages: {
|
|
1074
|
+
messages: ({
|
|
872
1075
|
role: "assistant" | "system" | "user";
|
|
873
1076
|
content: ({
|
|
874
1077
|
type: "text";
|
|
@@ -887,7 +1090,22 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
887
1090
|
originalUploadId?: string | undefined;
|
|
888
1091
|
size?: number | undefined;
|
|
889
1092
|
})[];
|
|
890
|
-
}
|
|
1093
|
+
} | {
|
|
1094
|
+
role: "assistant";
|
|
1095
|
+
content: string | null;
|
|
1096
|
+
tool_calls: {
|
|
1097
|
+
id: string;
|
|
1098
|
+
type: "function";
|
|
1099
|
+
function: {
|
|
1100
|
+
name: string;
|
|
1101
|
+
arguments: string;
|
|
1102
|
+
};
|
|
1103
|
+
}[];
|
|
1104
|
+
} | {
|
|
1105
|
+
role: "tool";
|
|
1106
|
+
content: string;
|
|
1107
|
+
tool_call_id: string;
|
|
1108
|
+
})[];
|
|
891
1109
|
stream?: boolean | undefined;
|
|
892
1110
|
temperature?: number | undefined;
|
|
893
1111
|
max_tokens?: number | undefined;
|
|
@@ -899,6 +1117,20 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
899
1117
|
stop?: string | string[] | undefined;
|
|
900
1118
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
901
1119
|
modalities?: string[] | undefined;
|
|
1120
|
+
tools?: {
|
|
1121
|
+
type: "function";
|
|
1122
|
+
function: {
|
|
1123
|
+
name: string;
|
|
1124
|
+
description?: string | undefined;
|
|
1125
|
+
parameters: unknown;
|
|
1126
|
+
};
|
|
1127
|
+
}[] | undefined;
|
|
1128
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1129
|
+
type: "function";
|
|
1130
|
+
function: {
|
|
1131
|
+
name: string;
|
|
1132
|
+
};
|
|
1133
|
+
} | undefined;
|
|
902
1134
|
};
|
|
903
1135
|
apiKey?: string | undefined;
|
|
904
1136
|
} | {
|
|
@@ -912,7 +1144,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
912
1144
|
outerTid: string;
|
|
913
1145
|
prompt: {
|
|
914
1146
|
model?: string | undefined;
|
|
915
|
-
messages: {
|
|
1147
|
+
messages: ({
|
|
916
1148
|
role: "assistant" | "system" | "user";
|
|
917
1149
|
content: ({
|
|
918
1150
|
type: "text";
|
|
@@ -931,7 +1163,22 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
931
1163
|
originalUploadId?: string | undefined;
|
|
932
1164
|
size?: number | undefined;
|
|
933
1165
|
})[];
|
|
934
|
-
}
|
|
1166
|
+
} | {
|
|
1167
|
+
role: "assistant";
|
|
1168
|
+
content: string | null;
|
|
1169
|
+
tool_calls: {
|
|
1170
|
+
id: string;
|
|
1171
|
+
type: "function";
|
|
1172
|
+
function: {
|
|
1173
|
+
name: string;
|
|
1174
|
+
arguments: string;
|
|
1175
|
+
};
|
|
1176
|
+
}[];
|
|
1177
|
+
} | {
|
|
1178
|
+
role: "tool";
|
|
1179
|
+
content: string;
|
|
1180
|
+
tool_call_id: string;
|
|
1181
|
+
})[];
|
|
935
1182
|
stream?: boolean | undefined;
|
|
936
1183
|
temperature?: number | undefined;
|
|
937
1184
|
max_tokens?: number | undefined;
|
|
@@ -943,6 +1190,20 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
943
1190
|
stop?: string | string[] | undefined;
|
|
944
1191
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
945
1192
|
modalities?: string[] | undefined;
|
|
1193
|
+
tools?: {
|
|
1194
|
+
type: "function";
|
|
1195
|
+
function: {
|
|
1196
|
+
name: string;
|
|
1197
|
+
description?: string | undefined;
|
|
1198
|
+
parameters: unknown;
|
|
1199
|
+
};
|
|
1200
|
+
}[] | undefined;
|
|
1201
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1202
|
+
type: "function";
|
|
1203
|
+
function: {
|
|
1204
|
+
name: string;
|
|
1205
|
+
};
|
|
1206
|
+
} | undefined;
|
|
946
1207
|
};
|
|
947
1208
|
inputImageBase64?: string | undefined;
|
|
948
1209
|
imgTarget?: {
|
|
@@ -1131,34 +1392,18 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1131
1392
|
seq: number;
|
|
1132
1393
|
blockNr: number;
|
|
1133
1394
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1134
|
-
type: "block.
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
image: {
|
|
1147
|
-
lines: number;
|
|
1148
|
-
bytes: number;
|
|
1149
|
-
cnt?: number | undefined;
|
|
1150
|
-
};
|
|
1151
|
-
total: {
|
|
1152
|
-
lines: number;
|
|
1153
|
-
bytes: number;
|
|
1154
|
-
cnt?: number | undefined;
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
usage: {
|
|
1158
|
-
prompt_tokens: number;
|
|
1159
|
-
completion_tokens: number;
|
|
1160
|
-
total_tokens: number;
|
|
1161
|
-
};
|
|
1395
|
+
type: "block.toplevel.begin";
|
|
1396
|
+
sectionId: string;
|
|
1397
|
+
} | {
|
|
1398
|
+
blockId: string;
|
|
1399
|
+
streamId: string;
|
|
1400
|
+
seq: number;
|
|
1401
|
+
blockNr: number;
|
|
1402
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1403
|
+
lineNr: number;
|
|
1404
|
+
line: string;
|
|
1405
|
+
type: "block.toplevel.line";
|
|
1406
|
+
sectionId: string;
|
|
1162
1407
|
} | {
|
|
1163
1408
|
blockId: string;
|
|
1164
1409
|
streamId: string;
|
|
@@ -1170,14 +1415,8 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1170
1415
|
bytes: number;
|
|
1171
1416
|
cnt?: number | undefined;
|
|
1172
1417
|
};
|
|
1173
|
-
type: "block.
|
|
1418
|
+
type: "block.toplevel.end";
|
|
1174
1419
|
sectionId: string;
|
|
1175
|
-
url?: string | undefined;
|
|
1176
|
-
uploadId?: string | undefined;
|
|
1177
|
-
cid?: string | undefined;
|
|
1178
|
-
mimeType?: string | undefined;
|
|
1179
|
-
size?: number | undefined;
|
|
1180
|
-
docWritten?: boolean | undefined;
|
|
1181
1420
|
} | {
|
|
1182
1421
|
blockId: string;
|
|
1183
1422
|
streamId: string;
|
|
@@ -1235,31 +1474,53 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1235
1474
|
seq: number;
|
|
1236
1475
|
blockNr: number;
|
|
1237
1476
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
blockNr: number;
|
|
1245
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1246
|
-
lineNr: number;
|
|
1247
|
-
line: string;
|
|
1248
|
-
type: "block.toplevel.line";
|
|
1477
|
+
stats: {
|
|
1478
|
+
lines: number;
|
|
1479
|
+
bytes: number;
|
|
1480
|
+
cnt?: number | undefined;
|
|
1481
|
+
};
|
|
1482
|
+
type: "block.image";
|
|
1249
1483
|
sectionId: string;
|
|
1484
|
+
url?: string | undefined;
|
|
1485
|
+
uploadId?: string | undefined;
|
|
1486
|
+
cid?: string | undefined;
|
|
1487
|
+
mimeType?: string | undefined;
|
|
1488
|
+
size?: number | undefined;
|
|
1489
|
+
docWritten?: boolean | undefined;
|
|
1250
1490
|
} | {
|
|
1251
1491
|
blockId: string;
|
|
1252
1492
|
streamId: string;
|
|
1253
1493
|
seq: number;
|
|
1254
1494
|
blockNr: number;
|
|
1255
1495
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1496
|
+
type: "block.stats";
|
|
1256
1497
|
stats: {
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1498
|
+
toplevel: {
|
|
1499
|
+
lines: number;
|
|
1500
|
+
bytes: number;
|
|
1501
|
+
cnt?: number | undefined;
|
|
1502
|
+
};
|
|
1503
|
+
code: {
|
|
1504
|
+
lines: number;
|
|
1505
|
+
bytes: number;
|
|
1506
|
+
cnt?: number | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
image: {
|
|
1509
|
+
lines: number;
|
|
1510
|
+
bytes: number;
|
|
1511
|
+
cnt?: number | undefined;
|
|
1512
|
+
};
|
|
1513
|
+
total: {
|
|
1514
|
+
lines: number;
|
|
1515
|
+
bytes: number;
|
|
1516
|
+
cnt?: number | undefined;
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
usage: {
|
|
1520
|
+
prompt_tokens: number;
|
|
1521
|
+
completion_tokens: number;
|
|
1522
|
+
total_tokens: number;
|
|
1260
1523
|
};
|
|
1261
|
-
type: "block.toplevel.end";
|
|
1262
|
-
sectionId: string;
|
|
1263
1524
|
} | {
|
|
1264
1525
|
streamId: string;
|
|
1265
1526
|
chatId: string;
|
|
@@ -1280,7 +1541,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1280
1541
|
type: "prompt.req";
|
|
1281
1542
|
request: {
|
|
1282
1543
|
model?: string | undefined;
|
|
1283
|
-
messages: {
|
|
1544
|
+
messages: ({
|
|
1284
1545
|
role: "assistant" | "system" | "user";
|
|
1285
1546
|
content: ({
|
|
1286
1547
|
type: "text";
|
|
@@ -1299,7 +1560,22 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1299
1560
|
originalUploadId?: string | undefined;
|
|
1300
1561
|
size?: number | undefined;
|
|
1301
1562
|
})[];
|
|
1302
|
-
}
|
|
1563
|
+
} | {
|
|
1564
|
+
role: "assistant";
|
|
1565
|
+
content: string | null;
|
|
1566
|
+
tool_calls: {
|
|
1567
|
+
id: string;
|
|
1568
|
+
type: "function";
|
|
1569
|
+
function: {
|
|
1570
|
+
name: string;
|
|
1571
|
+
arguments: string;
|
|
1572
|
+
};
|
|
1573
|
+
}[];
|
|
1574
|
+
} | {
|
|
1575
|
+
role: "tool";
|
|
1576
|
+
content: string;
|
|
1577
|
+
tool_call_id: string;
|
|
1578
|
+
})[];
|
|
1303
1579
|
stream?: boolean | undefined;
|
|
1304
1580
|
temperature?: number | undefined;
|
|
1305
1581
|
max_tokens?: number | undefined;
|
|
@@ -1311,6 +1587,20 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1311
1587
|
stop?: string | string[] | undefined;
|
|
1312
1588
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1313
1589
|
modalities?: string[] | undefined;
|
|
1590
|
+
tools?: {
|
|
1591
|
+
type: "function";
|
|
1592
|
+
function: {
|
|
1593
|
+
name: string;
|
|
1594
|
+
description?: string | undefined;
|
|
1595
|
+
parameters: unknown;
|
|
1596
|
+
};
|
|
1597
|
+
}[] | undefined;
|
|
1598
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1599
|
+
type: "function";
|
|
1600
|
+
function: {
|
|
1601
|
+
name: string;
|
|
1602
|
+
};
|
|
1603
|
+
} | undefined;
|
|
1314
1604
|
};
|
|
1315
1605
|
} | {
|
|
1316
1606
|
streamId: string;
|
|
@@ -1371,7 +1661,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1371
1661
|
type: "prompt.dry-run-payload";
|
|
1372
1662
|
request: {
|
|
1373
1663
|
model?: string | undefined;
|
|
1374
|
-
messages: {
|
|
1664
|
+
messages: ({
|
|
1375
1665
|
role: "assistant" | "system" | "user";
|
|
1376
1666
|
content: ({
|
|
1377
1667
|
type: "text";
|
|
@@ -1390,7 +1680,22 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1390
1680
|
originalUploadId?: string | undefined;
|
|
1391
1681
|
size?: number | undefined;
|
|
1392
1682
|
})[];
|
|
1393
|
-
}
|
|
1683
|
+
} | {
|
|
1684
|
+
role: "assistant";
|
|
1685
|
+
content: string | null;
|
|
1686
|
+
tool_calls: {
|
|
1687
|
+
id: string;
|
|
1688
|
+
type: "function";
|
|
1689
|
+
function: {
|
|
1690
|
+
name: string;
|
|
1691
|
+
arguments: string;
|
|
1692
|
+
};
|
|
1693
|
+
}[];
|
|
1694
|
+
} | {
|
|
1695
|
+
role: "tool";
|
|
1696
|
+
content: string;
|
|
1697
|
+
tool_call_id: string;
|
|
1698
|
+
})[];
|
|
1394
1699
|
stream?: boolean | undefined;
|
|
1395
1700
|
temperature?: number | undefined;
|
|
1396
1701
|
max_tokens?: number | undefined;
|
|
@@ -1402,6 +1707,20 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1402
1707
|
stop?: string | string[] | undefined;
|
|
1403
1708
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1404
1709
|
modalities?: string[] | undefined;
|
|
1710
|
+
tools?: {
|
|
1711
|
+
type: "function";
|
|
1712
|
+
function: {
|
|
1713
|
+
name: string;
|
|
1714
|
+
description?: string | undefined;
|
|
1715
|
+
parameters: unknown;
|
|
1716
|
+
};
|
|
1717
|
+
}[] | undefined;
|
|
1718
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1719
|
+
type: "function";
|
|
1720
|
+
function: {
|
|
1721
|
+
name: string;
|
|
1722
|
+
};
|
|
1723
|
+
} | undefined;
|
|
1405
1724
|
};
|
|
1406
1725
|
} | {
|
|
1407
1726
|
streamId: string;
|
|
@@ -1435,6 +1754,44 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1435
1754
|
fsId: string;
|
|
1436
1755
|
ownerHandle: string;
|
|
1437
1756
|
}>;
|
|
1757
|
+
} | {
|
|
1758
|
+
type: "prompt.research";
|
|
1759
|
+
version: 1;
|
|
1760
|
+
streamId: string;
|
|
1761
|
+
chatId: string;
|
|
1762
|
+
seq: number;
|
|
1763
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1764
|
+
researchId: string;
|
|
1765
|
+
status: "complete" | "failed" | "partial";
|
|
1766
|
+
brief: string;
|
|
1767
|
+
sources: {
|
|
1768
|
+
url: string;
|
|
1769
|
+
finalUrl: string | null;
|
|
1770
|
+
contentType: string | null;
|
|
1771
|
+
httpStatus: number | null;
|
|
1772
|
+
backendFetchable: boolean;
|
|
1773
|
+
fetched: boolean;
|
|
1774
|
+
errorCode?: string | undefined;
|
|
1775
|
+
}[];
|
|
1776
|
+
api: {
|
|
1777
|
+
method: string;
|
|
1778
|
+
path: string;
|
|
1779
|
+
description: string;
|
|
1780
|
+
fields: string[];
|
|
1781
|
+
}[];
|
|
1782
|
+
excerpts: {
|
|
1783
|
+
sourceUrl: string;
|
|
1784
|
+
text: string;
|
|
1785
|
+
locator?: string | undefined;
|
|
1786
|
+
}[];
|
|
1787
|
+
seedRows: {
|
|
1788
|
+
sourceUrl: string;
|
|
1789
|
+
dbName: string;
|
|
1790
|
+
key: string;
|
|
1791
|
+
item: unknown;
|
|
1792
|
+
}[];
|
|
1793
|
+
completedAt: string;
|
|
1794
|
+
errorCode?: string | undefined;
|
|
1438
1795
|
}, {}>;
|
|
1439
1796
|
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
1440
1797
|
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -1509,34 +1866,18 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1509
1866
|
seq: number;
|
|
1510
1867
|
blockNr: number;
|
|
1511
1868
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1512
|
-
type: "block.
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
image: {
|
|
1525
|
-
lines: number;
|
|
1526
|
-
bytes: number;
|
|
1527
|
-
cnt?: number | undefined;
|
|
1528
|
-
};
|
|
1529
|
-
total: {
|
|
1530
|
-
lines: number;
|
|
1531
|
-
bytes: number;
|
|
1532
|
-
cnt?: number | undefined;
|
|
1533
|
-
};
|
|
1534
|
-
};
|
|
1535
|
-
usage: {
|
|
1536
|
-
prompt_tokens: number;
|
|
1537
|
-
completion_tokens: number;
|
|
1538
|
-
total_tokens: number;
|
|
1539
|
-
};
|
|
1869
|
+
type: "block.toplevel.begin";
|
|
1870
|
+
sectionId: string;
|
|
1871
|
+
} | {
|
|
1872
|
+
blockId: string;
|
|
1873
|
+
streamId: string;
|
|
1874
|
+
seq: number;
|
|
1875
|
+
blockNr: number;
|
|
1876
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1877
|
+
lineNr: number;
|
|
1878
|
+
line: string;
|
|
1879
|
+
type: "block.toplevel.line";
|
|
1880
|
+
sectionId: string;
|
|
1540
1881
|
} | {
|
|
1541
1882
|
blockId: string;
|
|
1542
1883
|
streamId: string;
|
|
@@ -1548,14 +1889,8 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1548
1889
|
bytes: number;
|
|
1549
1890
|
cnt?: number | undefined;
|
|
1550
1891
|
};
|
|
1551
|
-
type: "block.
|
|
1892
|
+
type: "block.toplevel.end";
|
|
1552
1893
|
sectionId: string;
|
|
1553
|
-
url?: string | undefined;
|
|
1554
|
-
uploadId?: string | undefined;
|
|
1555
|
-
cid?: string | undefined;
|
|
1556
|
-
mimeType?: string | undefined;
|
|
1557
|
-
size?: number | undefined;
|
|
1558
|
-
docWritten?: boolean | undefined;
|
|
1559
1894
|
} | {
|
|
1560
1895
|
blockId: string;
|
|
1561
1896
|
streamId: string;
|
|
@@ -1613,31 +1948,53 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1613
1948
|
seq: number;
|
|
1614
1949
|
blockNr: number;
|
|
1615
1950
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
blockNr: number;
|
|
1623
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1624
|
-
lineNr: number;
|
|
1625
|
-
line: string;
|
|
1626
|
-
type: "block.toplevel.line";
|
|
1951
|
+
stats: {
|
|
1952
|
+
lines: number;
|
|
1953
|
+
bytes: number;
|
|
1954
|
+
cnt?: number | undefined;
|
|
1955
|
+
};
|
|
1956
|
+
type: "block.image";
|
|
1627
1957
|
sectionId: string;
|
|
1958
|
+
url?: string | undefined;
|
|
1959
|
+
uploadId?: string | undefined;
|
|
1960
|
+
cid?: string | undefined;
|
|
1961
|
+
mimeType?: string | undefined;
|
|
1962
|
+
size?: number | undefined;
|
|
1963
|
+
docWritten?: boolean | undefined;
|
|
1628
1964
|
} | {
|
|
1629
1965
|
blockId: string;
|
|
1630
1966
|
streamId: string;
|
|
1631
1967
|
seq: number;
|
|
1632
1968
|
blockNr: number;
|
|
1633
1969
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1970
|
+
type: "block.stats";
|
|
1634
1971
|
stats: {
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1972
|
+
toplevel: {
|
|
1973
|
+
lines: number;
|
|
1974
|
+
bytes: number;
|
|
1975
|
+
cnt?: number | undefined;
|
|
1976
|
+
};
|
|
1977
|
+
code: {
|
|
1978
|
+
lines: number;
|
|
1979
|
+
bytes: number;
|
|
1980
|
+
cnt?: number | undefined;
|
|
1981
|
+
};
|
|
1982
|
+
image: {
|
|
1983
|
+
lines: number;
|
|
1984
|
+
bytes: number;
|
|
1985
|
+
cnt?: number | undefined;
|
|
1986
|
+
};
|
|
1987
|
+
total: {
|
|
1988
|
+
lines: number;
|
|
1989
|
+
bytes: number;
|
|
1990
|
+
cnt?: number | undefined;
|
|
1991
|
+
};
|
|
1992
|
+
};
|
|
1993
|
+
usage: {
|
|
1994
|
+
prompt_tokens: number;
|
|
1995
|
+
completion_tokens: number;
|
|
1996
|
+
total_tokens: number;
|
|
1638
1997
|
};
|
|
1639
|
-
type: "block.toplevel.end";
|
|
1640
|
-
sectionId: string;
|
|
1641
1998
|
} | {
|
|
1642
1999
|
streamId: string;
|
|
1643
2000
|
chatId: string;
|
|
@@ -1658,7 +2015,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1658
2015
|
type: "prompt.req";
|
|
1659
2016
|
request: {
|
|
1660
2017
|
model?: string | undefined;
|
|
1661
|
-
messages: {
|
|
2018
|
+
messages: ({
|
|
1662
2019
|
role: "assistant" | "system" | "user";
|
|
1663
2020
|
content: ({
|
|
1664
2021
|
type: "text";
|
|
@@ -1677,7 +2034,22 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1677
2034
|
originalUploadId?: string | undefined;
|
|
1678
2035
|
size?: number | undefined;
|
|
1679
2036
|
})[];
|
|
1680
|
-
}
|
|
2037
|
+
} | {
|
|
2038
|
+
role: "assistant";
|
|
2039
|
+
content: string | null;
|
|
2040
|
+
tool_calls: {
|
|
2041
|
+
id: string;
|
|
2042
|
+
type: "function";
|
|
2043
|
+
function: {
|
|
2044
|
+
name: string;
|
|
2045
|
+
arguments: string;
|
|
2046
|
+
};
|
|
2047
|
+
}[];
|
|
2048
|
+
} | {
|
|
2049
|
+
role: "tool";
|
|
2050
|
+
content: string;
|
|
2051
|
+
tool_call_id: string;
|
|
2052
|
+
})[];
|
|
1681
2053
|
stream?: boolean | undefined;
|
|
1682
2054
|
temperature?: number | undefined;
|
|
1683
2055
|
max_tokens?: number | undefined;
|
|
@@ -1689,6 +2061,20 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1689
2061
|
stop?: string | string[] | undefined;
|
|
1690
2062
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1691
2063
|
modalities?: string[] | undefined;
|
|
2064
|
+
tools?: {
|
|
2065
|
+
type: "function";
|
|
2066
|
+
function: {
|
|
2067
|
+
name: string;
|
|
2068
|
+
description?: string | undefined;
|
|
2069
|
+
parameters: unknown;
|
|
2070
|
+
};
|
|
2071
|
+
}[] | undefined;
|
|
2072
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2073
|
+
type: "function";
|
|
2074
|
+
function: {
|
|
2075
|
+
name: string;
|
|
2076
|
+
};
|
|
2077
|
+
} | undefined;
|
|
1692
2078
|
};
|
|
1693
2079
|
} | {
|
|
1694
2080
|
streamId: string;
|
|
@@ -1749,7 +2135,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1749
2135
|
type: "prompt.dry-run-payload";
|
|
1750
2136
|
request: {
|
|
1751
2137
|
model?: string | undefined;
|
|
1752
|
-
messages: {
|
|
2138
|
+
messages: ({
|
|
1753
2139
|
role: "assistant" | "system" | "user";
|
|
1754
2140
|
content: ({
|
|
1755
2141
|
type: "text";
|
|
@@ -1768,7 +2154,22 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1768
2154
|
originalUploadId?: string | undefined;
|
|
1769
2155
|
size?: number | undefined;
|
|
1770
2156
|
})[];
|
|
1771
|
-
}
|
|
2157
|
+
} | {
|
|
2158
|
+
role: "assistant";
|
|
2159
|
+
content: string | null;
|
|
2160
|
+
tool_calls: {
|
|
2161
|
+
id: string;
|
|
2162
|
+
type: "function";
|
|
2163
|
+
function: {
|
|
2164
|
+
name: string;
|
|
2165
|
+
arguments: string;
|
|
2166
|
+
};
|
|
2167
|
+
}[];
|
|
2168
|
+
} | {
|
|
2169
|
+
role: "tool";
|
|
2170
|
+
content: string;
|
|
2171
|
+
tool_call_id: string;
|
|
2172
|
+
})[];
|
|
1772
2173
|
stream?: boolean | undefined;
|
|
1773
2174
|
temperature?: number | undefined;
|
|
1774
2175
|
max_tokens?: number | undefined;
|
|
@@ -1780,6 +2181,20 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1780
2181
|
stop?: string | string[] | undefined;
|
|
1781
2182
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1782
2183
|
modalities?: string[] | undefined;
|
|
2184
|
+
tools?: {
|
|
2185
|
+
type: "function";
|
|
2186
|
+
function: {
|
|
2187
|
+
name: string;
|
|
2188
|
+
description?: string | undefined;
|
|
2189
|
+
parameters: unknown;
|
|
2190
|
+
};
|
|
2191
|
+
}[] | undefined;
|
|
2192
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2193
|
+
type: "function";
|
|
2194
|
+
function: {
|
|
2195
|
+
name: string;
|
|
2196
|
+
};
|
|
2197
|
+
} | undefined;
|
|
1783
2198
|
};
|
|
1784
2199
|
} | {
|
|
1785
2200
|
streamId: string;
|
|
@@ -1813,6 +2228,44 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
1813
2228
|
fsId: string;
|
|
1814
2229
|
ownerHandle: string;
|
|
1815
2230
|
}>;
|
|
2231
|
+
} | {
|
|
2232
|
+
type: "prompt.research";
|
|
2233
|
+
version: 1;
|
|
2234
|
+
streamId: string;
|
|
2235
|
+
chatId: string;
|
|
2236
|
+
seq: number;
|
|
2237
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2238
|
+
researchId: string;
|
|
2239
|
+
status: "complete" | "failed" | "partial";
|
|
2240
|
+
brief: string;
|
|
2241
|
+
sources: {
|
|
2242
|
+
url: string;
|
|
2243
|
+
finalUrl: string | null;
|
|
2244
|
+
contentType: string | null;
|
|
2245
|
+
httpStatus: number | null;
|
|
2246
|
+
backendFetchable: boolean;
|
|
2247
|
+
fetched: boolean;
|
|
2248
|
+
errorCode?: string | undefined;
|
|
2249
|
+
}[];
|
|
2250
|
+
api: {
|
|
2251
|
+
method: string;
|
|
2252
|
+
path: string;
|
|
2253
|
+
description: string;
|
|
2254
|
+
fields: string[];
|
|
2255
|
+
}[];
|
|
2256
|
+
excerpts: {
|
|
2257
|
+
sourceUrl: string;
|
|
2258
|
+
text: string;
|
|
2259
|
+
locator?: string | undefined;
|
|
2260
|
+
}[];
|
|
2261
|
+
seedRows: {
|
|
2262
|
+
sourceUrl: string;
|
|
2263
|
+
dbName: string;
|
|
2264
|
+
key: string;
|
|
2265
|
+
item: unknown;
|
|
2266
|
+
}[];
|
|
2267
|
+
completedAt: string;
|
|
2268
|
+
errorCode?: string | undefined;
|
|
1816
2269
|
})[];
|
|
1817
2270
|
}, {}>;
|
|
1818
2271
|
export type SectionEvent = typeof sectionEvent.infer;
|
|
@@ -1898,34 +2351,18 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
1898
2351
|
seq: number;
|
|
1899
2352
|
blockNr: number;
|
|
1900
2353
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1901
|
-
type: "block.
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
image: {
|
|
1914
|
-
lines: number;
|
|
1915
|
-
bytes: number;
|
|
1916
|
-
cnt?: number | undefined;
|
|
1917
|
-
};
|
|
1918
|
-
total: {
|
|
1919
|
-
lines: number;
|
|
1920
|
-
bytes: number;
|
|
1921
|
-
cnt?: number | undefined;
|
|
1922
|
-
};
|
|
1923
|
-
};
|
|
1924
|
-
usage: {
|
|
1925
|
-
prompt_tokens: number;
|
|
1926
|
-
completion_tokens: number;
|
|
1927
|
-
total_tokens: number;
|
|
1928
|
-
};
|
|
2354
|
+
type: "block.toplevel.begin";
|
|
2355
|
+
sectionId: string;
|
|
2356
|
+
} | {
|
|
2357
|
+
blockId: string;
|
|
2358
|
+
streamId: string;
|
|
2359
|
+
seq: number;
|
|
2360
|
+
blockNr: number;
|
|
2361
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2362
|
+
lineNr: number;
|
|
2363
|
+
line: string;
|
|
2364
|
+
type: "block.toplevel.line";
|
|
2365
|
+
sectionId: string;
|
|
1929
2366
|
} | {
|
|
1930
2367
|
blockId: string;
|
|
1931
2368
|
streamId: string;
|
|
@@ -1937,14 +2374,8 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
1937
2374
|
bytes: number;
|
|
1938
2375
|
cnt?: number | undefined;
|
|
1939
2376
|
};
|
|
1940
|
-
type: "block.
|
|
2377
|
+
type: "block.toplevel.end";
|
|
1941
2378
|
sectionId: string;
|
|
1942
|
-
url?: string | undefined;
|
|
1943
|
-
uploadId?: string | undefined;
|
|
1944
|
-
cid?: string | undefined;
|
|
1945
|
-
mimeType?: string | undefined;
|
|
1946
|
-
size?: number | undefined;
|
|
1947
|
-
docWritten?: boolean | undefined;
|
|
1948
2379
|
} | {
|
|
1949
2380
|
blockId: string;
|
|
1950
2381
|
streamId: string;
|
|
@@ -2002,31 +2433,53 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2002
2433
|
seq: number;
|
|
2003
2434
|
blockNr: number;
|
|
2004
2435
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
blockNr: number;
|
|
2012
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2013
|
-
lineNr: number;
|
|
2014
|
-
line: string;
|
|
2015
|
-
type: "block.toplevel.line";
|
|
2436
|
+
stats: {
|
|
2437
|
+
lines: number;
|
|
2438
|
+
bytes: number;
|
|
2439
|
+
cnt?: number | undefined;
|
|
2440
|
+
};
|
|
2441
|
+
type: "block.image";
|
|
2016
2442
|
sectionId: string;
|
|
2443
|
+
url?: string | undefined;
|
|
2444
|
+
uploadId?: string | undefined;
|
|
2445
|
+
cid?: string | undefined;
|
|
2446
|
+
mimeType?: string | undefined;
|
|
2447
|
+
size?: number | undefined;
|
|
2448
|
+
docWritten?: boolean | undefined;
|
|
2017
2449
|
} | {
|
|
2018
2450
|
blockId: string;
|
|
2019
2451
|
streamId: string;
|
|
2020
2452
|
seq: number;
|
|
2021
2453
|
blockNr: number;
|
|
2022
2454
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2455
|
+
type: "block.stats";
|
|
2023
2456
|
stats: {
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2457
|
+
toplevel: {
|
|
2458
|
+
lines: number;
|
|
2459
|
+
bytes: number;
|
|
2460
|
+
cnt?: number | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
code: {
|
|
2463
|
+
lines: number;
|
|
2464
|
+
bytes: number;
|
|
2465
|
+
cnt?: number | undefined;
|
|
2466
|
+
};
|
|
2467
|
+
image: {
|
|
2468
|
+
lines: number;
|
|
2469
|
+
bytes: number;
|
|
2470
|
+
cnt?: number | undefined;
|
|
2471
|
+
};
|
|
2472
|
+
total: {
|
|
2473
|
+
lines: number;
|
|
2474
|
+
bytes: number;
|
|
2475
|
+
cnt?: number | undefined;
|
|
2476
|
+
};
|
|
2477
|
+
};
|
|
2478
|
+
usage: {
|
|
2479
|
+
prompt_tokens: number;
|
|
2480
|
+
completion_tokens: number;
|
|
2481
|
+
total_tokens: number;
|
|
2027
2482
|
};
|
|
2028
|
-
type: "block.toplevel.end";
|
|
2029
|
-
sectionId: string;
|
|
2030
2483
|
} | {
|
|
2031
2484
|
streamId: string;
|
|
2032
2485
|
chatId: string;
|
|
@@ -2047,7 +2500,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2047
2500
|
type: "prompt.req";
|
|
2048
2501
|
request: {
|
|
2049
2502
|
model?: string | undefined;
|
|
2050
|
-
messages: {
|
|
2503
|
+
messages: ({
|
|
2051
2504
|
role: "assistant" | "system" | "user";
|
|
2052
2505
|
content: ({
|
|
2053
2506
|
type: "text";
|
|
@@ -2066,7 +2519,22 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2066
2519
|
originalUploadId?: string | undefined;
|
|
2067
2520
|
size?: number | undefined;
|
|
2068
2521
|
})[];
|
|
2069
|
-
}
|
|
2522
|
+
} | {
|
|
2523
|
+
role: "assistant";
|
|
2524
|
+
content: string | null;
|
|
2525
|
+
tool_calls: {
|
|
2526
|
+
id: string;
|
|
2527
|
+
type: "function";
|
|
2528
|
+
function: {
|
|
2529
|
+
name: string;
|
|
2530
|
+
arguments: string;
|
|
2531
|
+
};
|
|
2532
|
+
}[];
|
|
2533
|
+
} | {
|
|
2534
|
+
role: "tool";
|
|
2535
|
+
content: string;
|
|
2536
|
+
tool_call_id: string;
|
|
2537
|
+
})[];
|
|
2070
2538
|
stream?: boolean | undefined;
|
|
2071
2539
|
temperature?: number | undefined;
|
|
2072
2540
|
max_tokens?: number | undefined;
|
|
@@ -2078,6 +2546,20 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2078
2546
|
stop?: string | string[] | undefined;
|
|
2079
2547
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2080
2548
|
modalities?: string[] | undefined;
|
|
2549
|
+
tools?: {
|
|
2550
|
+
type: "function";
|
|
2551
|
+
function: {
|
|
2552
|
+
name: string;
|
|
2553
|
+
description?: string | undefined;
|
|
2554
|
+
parameters: unknown;
|
|
2555
|
+
};
|
|
2556
|
+
}[] | undefined;
|
|
2557
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2558
|
+
type: "function";
|
|
2559
|
+
function: {
|
|
2560
|
+
name: string;
|
|
2561
|
+
};
|
|
2562
|
+
} | undefined;
|
|
2081
2563
|
};
|
|
2082
2564
|
} | {
|
|
2083
2565
|
streamId: string;
|
|
@@ -2138,7 +2620,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2138
2620
|
type: "prompt.dry-run-payload";
|
|
2139
2621
|
request: {
|
|
2140
2622
|
model?: string | undefined;
|
|
2141
|
-
messages: {
|
|
2623
|
+
messages: ({
|
|
2142
2624
|
role: "assistant" | "system" | "user";
|
|
2143
2625
|
content: ({
|
|
2144
2626
|
type: "text";
|
|
@@ -2157,7 +2639,22 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2157
2639
|
originalUploadId?: string | undefined;
|
|
2158
2640
|
size?: number | undefined;
|
|
2159
2641
|
})[];
|
|
2160
|
-
}
|
|
2642
|
+
} | {
|
|
2643
|
+
role: "assistant";
|
|
2644
|
+
content: string | null;
|
|
2645
|
+
tool_calls: {
|
|
2646
|
+
id: string;
|
|
2647
|
+
type: "function";
|
|
2648
|
+
function: {
|
|
2649
|
+
name: string;
|
|
2650
|
+
arguments: string;
|
|
2651
|
+
};
|
|
2652
|
+
}[];
|
|
2653
|
+
} | {
|
|
2654
|
+
role: "tool";
|
|
2655
|
+
content: string;
|
|
2656
|
+
tool_call_id: string;
|
|
2657
|
+
})[];
|
|
2161
2658
|
stream?: boolean | undefined;
|
|
2162
2659
|
temperature?: number | undefined;
|
|
2163
2660
|
max_tokens?: number | undefined;
|
|
@@ -2169,6 +2666,20 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2169
2666
|
stop?: string | string[] | undefined;
|
|
2170
2667
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2171
2668
|
modalities?: string[] | undefined;
|
|
2669
|
+
tools?: {
|
|
2670
|
+
type: "function";
|
|
2671
|
+
function: {
|
|
2672
|
+
name: string;
|
|
2673
|
+
description?: string | undefined;
|
|
2674
|
+
parameters: unknown;
|
|
2675
|
+
};
|
|
2676
|
+
}[] | undefined;
|
|
2677
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2678
|
+
type: "function";
|
|
2679
|
+
function: {
|
|
2680
|
+
name: string;
|
|
2681
|
+
};
|
|
2682
|
+
} | undefined;
|
|
2172
2683
|
};
|
|
2173
2684
|
} | {
|
|
2174
2685
|
streamId: string;
|
|
@@ -2202,10 +2713,48 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
2202
2713
|
fsId: string;
|
|
2203
2714
|
ownerHandle: string;
|
|
2204
2715
|
}>;
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2716
|
+
} | {
|
|
2717
|
+
type: "prompt.research";
|
|
2718
|
+
version: 1;
|
|
2719
|
+
streamId: string;
|
|
2720
|
+
chatId: string;
|
|
2721
|
+
seq: number;
|
|
2722
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2723
|
+
researchId: string;
|
|
2724
|
+
status: "complete" | "failed" | "partial";
|
|
2725
|
+
brief: string;
|
|
2726
|
+
sources: {
|
|
2727
|
+
url: string;
|
|
2728
|
+
finalUrl: string | null;
|
|
2729
|
+
contentType: string | null;
|
|
2730
|
+
httpStatus: number | null;
|
|
2731
|
+
backendFetchable: boolean;
|
|
2732
|
+
fetched: boolean;
|
|
2733
|
+
errorCode?: string | undefined;
|
|
2734
|
+
}[];
|
|
2735
|
+
api: {
|
|
2736
|
+
method: string;
|
|
2737
|
+
path: string;
|
|
2738
|
+
description: string;
|
|
2739
|
+
fields: string[];
|
|
2740
|
+
}[];
|
|
2741
|
+
excerpts: {
|
|
2742
|
+
sourceUrl: string;
|
|
2743
|
+
text: string;
|
|
2744
|
+
locator?: string | undefined;
|
|
2745
|
+
}[];
|
|
2746
|
+
seedRows: {
|
|
2747
|
+
sourceUrl: string;
|
|
2748
|
+
dbName: string;
|
|
2749
|
+
key: string;
|
|
2750
|
+
item: unknown;
|
|
2751
|
+
}[];
|
|
2752
|
+
completedAt: string;
|
|
2753
|
+
errorCode?: string | undefined;
|
|
2754
|
+
})[];
|
|
2755
|
+
}, {}>;
|
|
2756
|
+
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
2757
|
+
export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2209
2758
|
chatId: string;
|
|
2210
2759
|
promptId: string;
|
|
2211
2760
|
created: string;
|
|
@@ -2278,34 +2827,18 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2278
2827
|
seq: number;
|
|
2279
2828
|
blockNr: number;
|
|
2280
2829
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2281
|
-
type: "block.
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
image: {
|
|
2294
|
-
lines: number;
|
|
2295
|
-
bytes: number;
|
|
2296
|
-
cnt?: number | undefined;
|
|
2297
|
-
};
|
|
2298
|
-
total: {
|
|
2299
|
-
lines: number;
|
|
2300
|
-
bytes: number;
|
|
2301
|
-
cnt?: number | undefined;
|
|
2302
|
-
};
|
|
2303
|
-
};
|
|
2304
|
-
usage: {
|
|
2305
|
-
prompt_tokens: number;
|
|
2306
|
-
completion_tokens: number;
|
|
2307
|
-
total_tokens: number;
|
|
2308
|
-
};
|
|
2830
|
+
type: "block.toplevel.begin";
|
|
2831
|
+
sectionId: string;
|
|
2832
|
+
} | {
|
|
2833
|
+
blockId: string;
|
|
2834
|
+
streamId: string;
|
|
2835
|
+
seq: number;
|
|
2836
|
+
blockNr: number;
|
|
2837
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2838
|
+
lineNr: number;
|
|
2839
|
+
line: string;
|
|
2840
|
+
type: "block.toplevel.line";
|
|
2841
|
+
sectionId: string;
|
|
2309
2842
|
} | {
|
|
2310
2843
|
blockId: string;
|
|
2311
2844
|
streamId: string;
|
|
@@ -2317,14 +2850,8 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2317
2850
|
bytes: number;
|
|
2318
2851
|
cnt?: number | undefined;
|
|
2319
2852
|
};
|
|
2320
|
-
type: "block.
|
|
2853
|
+
type: "block.toplevel.end";
|
|
2321
2854
|
sectionId: string;
|
|
2322
|
-
url?: string | undefined;
|
|
2323
|
-
uploadId?: string | undefined;
|
|
2324
|
-
cid?: string | undefined;
|
|
2325
|
-
mimeType?: string | undefined;
|
|
2326
|
-
size?: number | undefined;
|
|
2327
|
-
docWritten?: boolean | undefined;
|
|
2328
2855
|
} | {
|
|
2329
2856
|
blockId: string;
|
|
2330
2857
|
streamId: string;
|
|
@@ -2382,31 +2909,53 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2382
2909
|
seq: number;
|
|
2383
2910
|
blockNr: number;
|
|
2384
2911
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
blockNr: number;
|
|
2392
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2393
|
-
lineNr: number;
|
|
2394
|
-
line: string;
|
|
2395
|
-
type: "block.toplevel.line";
|
|
2912
|
+
stats: {
|
|
2913
|
+
lines: number;
|
|
2914
|
+
bytes: number;
|
|
2915
|
+
cnt?: number | undefined;
|
|
2916
|
+
};
|
|
2917
|
+
type: "block.image";
|
|
2396
2918
|
sectionId: string;
|
|
2919
|
+
url?: string | undefined;
|
|
2920
|
+
uploadId?: string | undefined;
|
|
2921
|
+
cid?: string | undefined;
|
|
2922
|
+
mimeType?: string | undefined;
|
|
2923
|
+
size?: number | undefined;
|
|
2924
|
+
docWritten?: boolean | undefined;
|
|
2397
2925
|
} | {
|
|
2398
2926
|
blockId: string;
|
|
2399
2927
|
streamId: string;
|
|
2400
2928
|
seq: number;
|
|
2401
2929
|
blockNr: number;
|
|
2402
2930
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2931
|
+
type: "block.stats";
|
|
2403
2932
|
stats: {
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2933
|
+
toplevel: {
|
|
2934
|
+
lines: number;
|
|
2935
|
+
bytes: number;
|
|
2936
|
+
cnt?: number | undefined;
|
|
2937
|
+
};
|
|
2938
|
+
code: {
|
|
2939
|
+
lines: number;
|
|
2940
|
+
bytes: number;
|
|
2941
|
+
cnt?: number | undefined;
|
|
2942
|
+
};
|
|
2943
|
+
image: {
|
|
2944
|
+
lines: number;
|
|
2945
|
+
bytes: number;
|
|
2946
|
+
cnt?: number | undefined;
|
|
2947
|
+
};
|
|
2948
|
+
total: {
|
|
2949
|
+
lines: number;
|
|
2950
|
+
bytes: number;
|
|
2951
|
+
cnt?: number | undefined;
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
usage: {
|
|
2955
|
+
prompt_tokens: number;
|
|
2956
|
+
completion_tokens: number;
|
|
2957
|
+
total_tokens: number;
|
|
2407
2958
|
};
|
|
2408
|
-
type: "block.toplevel.end";
|
|
2409
|
-
sectionId: string;
|
|
2410
2959
|
} | {
|
|
2411
2960
|
streamId: string;
|
|
2412
2961
|
chatId: string;
|
|
@@ -2427,7 +2976,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2427
2976
|
type: "prompt.req";
|
|
2428
2977
|
request: {
|
|
2429
2978
|
model?: string | undefined;
|
|
2430
|
-
messages: {
|
|
2979
|
+
messages: ({
|
|
2431
2980
|
role: "assistant" | "system" | "user";
|
|
2432
2981
|
content: ({
|
|
2433
2982
|
type: "text";
|
|
@@ -2446,7 +2995,22 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2446
2995
|
originalUploadId?: string | undefined;
|
|
2447
2996
|
size?: number | undefined;
|
|
2448
2997
|
})[];
|
|
2449
|
-
}
|
|
2998
|
+
} | {
|
|
2999
|
+
role: "assistant";
|
|
3000
|
+
content: string | null;
|
|
3001
|
+
tool_calls: {
|
|
3002
|
+
id: string;
|
|
3003
|
+
type: "function";
|
|
3004
|
+
function: {
|
|
3005
|
+
name: string;
|
|
3006
|
+
arguments: string;
|
|
3007
|
+
};
|
|
3008
|
+
}[];
|
|
3009
|
+
} | {
|
|
3010
|
+
role: "tool";
|
|
3011
|
+
content: string;
|
|
3012
|
+
tool_call_id: string;
|
|
3013
|
+
})[];
|
|
2450
3014
|
stream?: boolean | undefined;
|
|
2451
3015
|
temperature?: number | undefined;
|
|
2452
3016
|
max_tokens?: number | undefined;
|
|
@@ -2458,6 +3022,20 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2458
3022
|
stop?: string | string[] | undefined;
|
|
2459
3023
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2460
3024
|
modalities?: string[] | undefined;
|
|
3025
|
+
tools?: {
|
|
3026
|
+
type: "function";
|
|
3027
|
+
function: {
|
|
3028
|
+
name: string;
|
|
3029
|
+
description?: string | undefined;
|
|
3030
|
+
parameters: unknown;
|
|
3031
|
+
};
|
|
3032
|
+
}[] | undefined;
|
|
3033
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
3034
|
+
type: "function";
|
|
3035
|
+
function: {
|
|
3036
|
+
name: string;
|
|
3037
|
+
};
|
|
3038
|
+
} | undefined;
|
|
2461
3039
|
};
|
|
2462
3040
|
} | {
|
|
2463
3041
|
streamId: string;
|
|
@@ -2518,7 +3096,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2518
3096
|
type: "prompt.dry-run-payload";
|
|
2519
3097
|
request: {
|
|
2520
3098
|
model?: string | undefined;
|
|
2521
|
-
messages: {
|
|
3099
|
+
messages: ({
|
|
2522
3100
|
role: "assistant" | "system" | "user";
|
|
2523
3101
|
content: ({
|
|
2524
3102
|
type: "text";
|
|
@@ -2537,7 +3115,22 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2537
3115
|
originalUploadId?: string | undefined;
|
|
2538
3116
|
size?: number | undefined;
|
|
2539
3117
|
})[];
|
|
2540
|
-
}
|
|
3118
|
+
} | {
|
|
3119
|
+
role: "assistant";
|
|
3120
|
+
content: string | null;
|
|
3121
|
+
tool_calls: {
|
|
3122
|
+
id: string;
|
|
3123
|
+
type: "function";
|
|
3124
|
+
function: {
|
|
3125
|
+
name: string;
|
|
3126
|
+
arguments: string;
|
|
3127
|
+
};
|
|
3128
|
+
}[];
|
|
3129
|
+
} | {
|
|
3130
|
+
role: "tool";
|
|
3131
|
+
content: string;
|
|
3132
|
+
tool_call_id: string;
|
|
3133
|
+
})[];
|
|
2541
3134
|
stream?: boolean | undefined;
|
|
2542
3135
|
temperature?: number | undefined;
|
|
2543
3136
|
max_tokens?: number | undefined;
|
|
@@ -2549,6 +3142,20 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2549
3142
|
stop?: string | string[] | undefined;
|
|
2550
3143
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2551
3144
|
modalities?: string[] | undefined;
|
|
3145
|
+
tools?: {
|
|
3146
|
+
type: "function";
|
|
3147
|
+
function: {
|
|
3148
|
+
name: string;
|
|
3149
|
+
description?: string | undefined;
|
|
3150
|
+
parameters: unknown;
|
|
3151
|
+
};
|
|
3152
|
+
}[] | undefined;
|
|
3153
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
3154
|
+
type: "function";
|
|
3155
|
+
function: {
|
|
3156
|
+
name: string;
|
|
3157
|
+
};
|
|
3158
|
+
} | undefined;
|
|
2552
3159
|
};
|
|
2553
3160
|
} | {
|
|
2554
3161
|
streamId: string;
|
|
@@ -2582,6 +3189,44 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
2582
3189
|
fsId: string;
|
|
2583
3190
|
ownerHandle: string;
|
|
2584
3191
|
}>;
|
|
3192
|
+
} | {
|
|
3193
|
+
type: "prompt.research";
|
|
3194
|
+
version: 1;
|
|
3195
|
+
streamId: string;
|
|
3196
|
+
chatId: string;
|
|
3197
|
+
seq: number;
|
|
3198
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3199
|
+
researchId: string;
|
|
3200
|
+
status: "complete" | "failed" | "partial";
|
|
3201
|
+
brief: string;
|
|
3202
|
+
sources: {
|
|
3203
|
+
url: string;
|
|
3204
|
+
finalUrl: string | null;
|
|
3205
|
+
contentType: string | null;
|
|
3206
|
+
httpStatus: number | null;
|
|
3207
|
+
backendFetchable: boolean;
|
|
3208
|
+
fetched: boolean;
|
|
3209
|
+
errorCode?: string | undefined;
|
|
3210
|
+
}[];
|
|
3211
|
+
api: {
|
|
3212
|
+
method: string;
|
|
3213
|
+
path: string;
|
|
3214
|
+
description: string;
|
|
3215
|
+
fields: string[];
|
|
3216
|
+
}[];
|
|
3217
|
+
excerpts: {
|
|
3218
|
+
sourceUrl: string;
|
|
3219
|
+
text: string;
|
|
3220
|
+
locator?: string | undefined;
|
|
3221
|
+
}[];
|
|
3222
|
+
seedRows: {
|
|
3223
|
+
sourceUrl: string;
|
|
3224
|
+
dbName: string;
|
|
3225
|
+
key: string;
|
|
3226
|
+
item: unknown;
|
|
3227
|
+
}[];
|
|
3228
|
+
completedAt: string;
|
|
3229
|
+
errorCode?: string | undefined;
|
|
2585
3230
|
})[];
|
|
2586
3231
|
}[];
|
|
2587
3232
|
}, {}>;
|
|
@@ -2664,34 +3309,18 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2664
3309
|
seq: number;
|
|
2665
3310
|
blockNr: number;
|
|
2666
3311
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2667
|
-
type: "block.
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
image: {
|
|
2680
|
-
lines: number;
|
|
2681
|
-
bytes: number;
|
|
2682
|
-
cnt?: number | undefined;
|
|
2683
|
-
};
|
|
2684
|
-
total: {
|
|
2685
|
-
lines: number;
|
|
2686
|
-
bytes: number;
|
|
2687
|
-
cnt?: number | undefined;
|
|
2688
|
-
};
|
|
2689
|
-
};
|
|
2690
|
-
usage: {
|
|
2691
|
-
prompt_tokens: number;
|
|
2692
|
-
completion_tokens: number;
|
|
2693
|
-
total_tokens: number;
|
|
2694
|
-
};
|
|
3312
|
+
type: "block.toplevel.begin";
|
|
3313
|
+
sectionId: string;
|
|
3314
|
+
} | {
|
|
3315
|
+
blockId: string;
|
|
3316
|
+
streamId: string;
|
|
3317
|
+
seq: number;
|
|
3318
|
+
blockNr: number;
|
|
3319
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3320
|
+
lineNr: number;
|
|
3321
|
+
line: string;
|
|
3322
|
+
type: "block.toplevel.line";
|
|
3323
|
+
sectionId: string;
|
|
2695
3324
|
} | {
|
|
2696
3325
|
blockId: string;
|
|
2697
3326
|
streamId: string;
|
|
@@ -2703,14 +3332,8 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2703
3332
|
bytes: number;
|
|
2704
3333
|
cnt?: number | undefined;
|
|
2705
3334
|
};
|
|
2706
|
-
type: "block.
|
|
3335
|
+
type: "block.toplevel.end";
|
|
2707
3336
|
sectionId: string;
|
|
2708
|
-
url?: string | undefined;
|
|
2709
|
-
uploadId?: string | undefined;
|
|
2710
|
-
cid?: string | undefined;
|
|
2711
|
-
mimeType?: string | undefined;
|
|
2712
|
-
size?: number | undefined;
|
|
2713
|
-
docWritten?: boolean | undefined;
|
|
2714
3337
|
} | {
|
|
2715
3338
|
blockId: string;
|
|
2716
3339
|
streamId: string;
|
|
@@ -2768,31 +3391,53 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2768
3391
|
seq: number;
|
|
2769
3392
|
blockNr: number;
|
|
2770
3393
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
blockNr: number;
|
|
2778
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2779
|
-
lineNr: number;
|
|
2780
|
-
line: string;
|
|
2781
|
-
type: "block.toplevel.line";
|
|
3394
|
+
stats: {
|
|
3395
|
+
lines: number;
|
|
3396
|
+
bytes: number;
|
|
3397
|
+
cnt?: number | undefined;
|
|
3398
|
+
};
|
|
3399
|
+
type: "block.image";
|
|
2782
3400
|
sectionId: string;
|
|
3401
|
+
url?: string | undefined;
|
|
3402
|
+
uploadId?: string | undefined;
|
|
3403
|
+
cid?: string | undefined;
|
|
3404
|
+
mimeType?: string | undefined;
|
|
3405
|
+
size?: number | undefined;
|
|
3406
|
+
docWritten?: boolean | undefined;
|
|
2783
3407
|
} | {
|
|
2784
3408
|
blockId: string;
|
|
2785
3409
|
streamId: string;
|
|
2786
3410
|
seq: number;
|
|
2787
3411
|
blockNr: number;
|
|
2788
3412
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3413
|
+
type: "block.stats";
|
|
2789
3414
|
stats: {
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
3415
|
+
toplevel: {
|
|
3416
|
+
lines: number;
|
|
3417
|
+
bytes: number;
|
|
3418
|
+
cnt?: number | undefined;
|
|
3419
|
+
};
|
|
3420
|
+
code: {
|
|
3421
|
+
lines: number;
|
|
3422
|
+
bytes: number;
|
|
3423
|
+
cnt?: number | undefined;
|
|
3424
|
+
};
|
|
3425
|
+
image: {
|
|
3426
|
+
lines: number;
|
|
3427
|
+
bytes: number;
|
|
3428
|
+
cnt?: number | undefined;
|
|
3429
|
+
};
|
|
3430
|
+
total: {
|
|
3431
|
+
lines: number;
|
|
3432
|
+
bytes: number;
|
|
3433
|
+
cnt?: number | undefined;
|
|
3434
|
+
};
|
|
3435
|
+
};
|
|
3436
|
+
usage: {
|
|
3437
|
+
prompt_tokens: number;
|
|
3438
|
+
completion_tokens: number;
|
|
3439
|
+
total_tokens: number;
|
|
2793
3440
|
};
|
|
2794
|
-
type: "block.toplevel.end";
|
|
2795
|
-
sectionId: string;
|
|
2796
3441
|
} | {
|
|
2797
3442
|
streamId: string;
|
|
2798
3443
|
chatId: string;
|
|
@@ -2813,7 +3458,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2813
3458
|
type: "prompt.req";
|
|
2814
3459
|
request: {
|
|
2815
3460
|
model?: string | undefined;
|
|
2816
|
-
messages: {
|
|
3461
|
+
messages: ({
|
|
2817
3462
|
role: "assistant" | "system" | "user";
|
|
2818
3463
|
content: ({
|
|
2819
3464
|
type: "text";
|
|
@@ -2832,7 +3477,22 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2832
3477
|
originalUploadId?: string | undefined;
|
|
2833
3478
|
size?: number | undefined;
|
|
2834
3479
|
})[];
|
|
2835
|
-
}
|
|
3480
|
+
} | {
|
|
3481
|
+
role: "assistant";
|
|
3482
|
+
content: string | null;
|
|
3483
|
+
tool_calls: {
|
|
3484
|
+
id: string;
|
|
3485
|
+
type: "function";
|
|
3486
|
+
function: {
|
|
3487
|
+
name: string;
|
|
3488
|
+
arguments: string;
|
|
3489
|
+
};
|
|
3490
|
+
}[];
|
|
3491
|
+
} | {
|
|
3492
|
+
role: "tool";
|
|
3493
|
+
content: string;
|
|
3494
|
+
tool_call_id: string;
|
|
3495
|
+
})[];
|
|
2836
3496
|
stream?: boolean | undefined;
|
|
2837
3497
|
temperature?: number | undefined;
|
|
2838
3498
|
max_tokens?: number | undefined;
|
|
@@ -2844,6 +3504,20 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2844
3504
|
stop?: string | string[] | undefined;
|
|
2845
3505
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2846
3506
|
modalities?: string[] | undefined;
|
|
3507
|
+
tools?: {
|
|
3508
|
+
type: "function";
|
|
3509
|
+
function: {
|
|
3510
|
+
name: string;
|
|
3511
|
+
description?: string | undefined;
|
|
3512
|
+
parameters: unknown;
|
|
3513
|
+
};
|
|
3514
|
+
}[] | undefined;
|
|
3515
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
3516
|
+
type: "function";
|
|
3517
|
+
function: {
|
|
3518
|
+
name: string;
|
|
3519
|
+
};
|
|
3520
|
+
} | undefined;
|
|
2847
3521
|
};
|
|
2848
3522
|
} | {
|
|
2849
3523
|
streamId: string;
|
|
@@ -2904,7 +3578,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2904
3578
|
type: "prompt.dry-run-payload";
|
|
2905
3579
|
request: {
|
|
2906
3580
|
model?: string | undefined;
|
|
2907
|
-
messages: {
|
|
3581
|
+
messages: ({
|
|
2908
3582
|
role: "assistant" | "system" | "user";
|
|
2909
3583
|
content: ({
|
|
2910
3584
|
type: "text";
|
|
@@ -2923,7 +3597,22 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2923
3597
|
originalUploadId?: string | undefined;
|
|
2924
3598
|
size?: number | undefined;
|
|
2925
3599
|
})[];
|
|
2926
|
-
}
|
|
3600
|
+
} | {
|
|
3601
|
+
role: "assistant";
|
|
3602
|
+
content: string | null;
|
|
3603
|
+
tool_calls: {
|
|
3604
|
+
id: string;
|
|
3605
|
+
type: "function";
|
|
3606
|
+
function: {
|
|
3607
|
+
name: string;
|
|
3608
|
+
arguments: string;
|
|
3609
|
+
};
|
|
3610
|
+
}[];
|
|
3611
|
+
} | {
|
|
3612
|
+
role: "tool";
|
|
3613
|
+
content: string;
|
|
3614
|
+
tool_call_id: string;
|
|
3615
|
+
})[];
|
|
2927
3616
|
stream?: boolean | undefined;
|
|
2928
3617
|
temperature?: number | undefined;
|
|
2929
3618
|
max_tokens?: number | undefined;
|
|
@@ -2935,6 +3624,20 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2935
3624
|
stop?: string | string[] | undefined;
|
|
2936
3625
|
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2937
3626
|
modalities?: string[] | undefined;
|
|
3627
|
+
tools?: {
|
|
3628
|
+
type: "function";
|
|
3629
|
+
function: {
|
|
3630
|
+
name: string;
|
|
3631
|
+
description?: string | undefined;
|
|
3632
|
+
parameters: unknown;
|
|
3633
|
+
};
|
|
3634
|
+
}[] | undefined;
|
|
3635
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
3636
|
+
type: "function";
|
|
3637
|
+
function: {
|
|
3638
|
+
name: string;
|
|
3639
|
+
};
|
|
3640
|
+
} | undefined;
|
|
2938
3641
|
};
|
|
2939
3642
|
} | {
|
|
2940
3643
|
streamId: string;
|
|
@@ -2968,6 +3671,44 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
2968
3671
|
fsId: string;
|
|
2969
3672
|
ownerHandle: string;
|
|
2970
3673
|
}>;
|
|
3674
|
+
} | {
|
|
3675
|
+
type: "prompt.research";
|
|
3676
|
+
version: 1;
|
|
3677
|
+
streamId: string;
|
|
3678
|
+
chatId: string;
|
|
3679
|
+
seq: number;
|
|
3680
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3681
|
+
researchId: string;
|
|
3682
|
+
status: "complete" | "failed" | "partial";
|
|
3683
|
+
brief: string;
|
|
3684
|
+
sources: {
|
|
3685
|
+
url: string;
|
|
3686
|
+
finalUrl: string | null;
|
|
3687
|
+
contentType: string | null;
|
|
3688
|
+
httpStatus: number | null;
|
|
3689
|
+
backendFetchable: boolean;
|
|
3690
|
+
fetched: boolean;
|
|
3691
|
+
errorCode?: string | undefined;
|
|
3692
|
+
}[];
|
|
3693
|
+
api: {
|
|
3694
|
+
method: string;
|
|
3695
|
+
path: string;
|
|
3696
|
+
description: string;
|
|
3697
|
+
fields: string[];
|
|
3698
|
+
}[];
|
|
3699
|
+
excerpts: {
|
|
3700
|
+
sourceUrl: string;
|
|
3701
|
+
text: string;
|
|
3702
|
+
locator?: string | undefined;
|
|
3703
|
+
}[];
|
|
3704
|
+
seedRows: {
|
|
3705
|
+
sourceUrl: string;
|
|
3706
|
+
dbName: string;
|
|
3707
|
+
key: string;
|
|
3708
|
+
item: unknown;
|
|
3709
|
+
}[];
|
|
3710
|
+
completedAt: string;
|
|
3711
|
+
errorCode?: string | undefined;
|
|
2971
3712
|
})[];
|
|
2972
3713
|
}[];
|
|
2973
3714
|
}[];
|