@vectorx/ai-types 0.0.0-beta-20251112071234

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.
@@ -0,0 +1,1049 @@
1
+ import { z } from "zod";
2
+ export declare const textContentSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"text">;
4
+ text: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type?: "text";
7
+ text?: string;
8
+ }, {
9
+ type?: "text";
10
+ text?: string;
11
+ }>;
12
+ export declare const imageContentSchema: z.ZodObject<{
13
+ type: z.ZodLiteral<"image_url">;
14
+ image_url: z.ZodObject<{
15
+ url: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ url?: string;
18
+ }, {
19
+ url?: string;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type?: "image_url";
23
+ image_url?: {
24
+ url?: string;
25
+ };
26
+ }, {
27
+ type?: "image_url";
28
+ image_url?: {
29
+ url?: string;
30
+ };
31
+ }>;
32
+ export declare const audioContentSchema: z.ZodObject<{
33
+ type: z.ZodLiteral<"input_audio">;
34
+ input_audio: z.ZodObject<{
35
+ data: z.ZodString;
36
+ format: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ data?: string;
39
+ format?: string;
40
+ }, {
41
+ data?: string;
42
+ format?: string;
43
+ }>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ type?: "input_audio";
46
+ input_audio?: {
47
+ data?: string;
48
+ format?: string;
49
+ };
50
+ }, {
51
+ type?: "input_audio";
52
+ input_audio?: {
53
+ data?: string;
54
+ format?: string;
55
+ };
56
+ }>;
57
+ export declare const videoContentSchema: z.ZodObject<{
58
+ type: z.ZodLiteral<"video">;
59
+ video: z.ZodArray<z.ZodString, "many">;
60
+ }, "strip", z.ZodTypeAny, {
61
+ video?: string[];
62
+ type?: "video";
63
+ }, {
64
+ video?: string[];
65
+ type?: "video";
66
+ }>;
67
+ export declare const videoUrlContentSchema: z.ZodObject<{
68
+ type: z.ZodLiteral<"video_url">;
69
+ video_url: z.ZodObject<{
70
+ url: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ url?: string;
73
+ }, {
74
+ url?: string;
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type?: "video_url";
78
+ video_url?: {
79
+ url?: string;
80
+ };
81
+ }, {
82
+ type?: "video_url";
83
+ video_url?: {
84
+ url?: string;
85
+ };
86
+ }>;
87
+ export declare const docUrlContentSchema: z.ZodObject<{
88
+ type: z.ZodLiteral<"doc_url">;
89
+ doc_url: z.ZodArray<z.ZodString, "many">;
90
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ type?: "doc_url";
93
+ doc_url?: string[];
94
+ file_parsing_strategy?: string;
95
+ }, {
96
+ type?: "doc_url";
97
+ doc_url?: string[];
98
+ file_parsing_strategy?: string;
99
+ }>;
100
+ export declare const messageContentSchema: z.ZodUnion<[z.ZodObject<{
101
+ type: z.ZodLiteral<"text">;
102
+ text: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type?: "text";
105
+ text?: string;
106
+ }, {
107
+ type?: "text";
108
+ text?: string;
109
+ }>, z.ZodObject<{
110
+ type: z.ZodLiteral<"image_url">;
111
+ image_url: z.ZodObject<{
112
+ url: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ url?: string;
115
+ }, {
116
+ url?: string;
117
+ }>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type?: "image_url";
120
+ image_url?: {
121
+ url?: string;
122
+ };
123
+ }, {
124
+ type?: "image_url";
125
+ image_url?: {
126
+ url?: string;
127
+ };
128
+ }>, z.ZodObject<{
129
+ type: z.ZodLiteral<"input_audio">;
130
+ input_audio: z.ZodObject<{
131
+ data: z.ZodString;
132
+ format: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ data?: string;
135
+ format?: string;
136
+ }, {
137
+ data?: string;
138
+ format?: string;
139
+ }>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type?: "input_audio";
142
+ input_audio?: {
143
+ data?: string;
144
+ format?: string;
145
+ };
146
+ }, {
147
+ type?: "input_audio";
148
+ input_audio?: {
149
+ data?: string;
150
+ format?: string;
151
+ };
152
+ }>, z.ZodObject<{
153
+ type: z.ZodLiteral<"video">;
154
+ video: z.ZodArray<z.ZodString, "many">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ video?: string[];
157
+ type?: "video";
158
+ }, {
159
+ video?: string[];
160
+ type?: "video";
161
+ }>, z.ZodObject<{
162
+ type: z.ZodLiteral<"video_url">;
163
+ video_url: z.ZodObject<{
164
+ url: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ url?: string;
167
+ }, {
168
+ url?: string;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type?: "video_url";
172
+ video_url?: {
173
+ url?: string;
174
+ };
175
+ }, {
176
+ type?: "video_url";
177
+ video_url?: {
178
+ url?: string;
179
+ };
180
+ }>, z.ZodObject<{
181
+ type: z.ZodLiteral<"doc_url">;
182
+ doc_url: z.ZodArray<z.ZodString, "many">;
183
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type?: "doc_url";
186
+ doc_url?: string[];
187
+ file_parsing_strategy?: string;
188
+ }, {
189
+ type?: "doc_url";
190
+ doc_url?: string[];
191
+ file_parsing_strategy?: string;
192
+ }>]>;
193
+ export declare const baseMessageSchema: z.ZodObject<{
194
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
195
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
196
+ type: z.ZodLiteral<"text">;
197
+ text: z.ZodString;
198
+ }, "strip", z.ZodTypeAny, {
199
+ type?: "text";
200
+ text?: string;
201
+ }, {
202
+ type?: "text";
203
+ text?: string;
204
+ }>, z.ZodObject<{
205
+ type: z.ZodLiteral<"image_url">;
206
+ image_url: z.ZodObject<{
207
+ url: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ url?: string;
210
+ }, {
211
+ url?: string;
212
+ }>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ type?: "image_url";
215
+ image_url?: {
216
+ url?: string;
217
+ };
218
+ }, {
219
+ type?: "image_url";
220
+ image_url?: {
221
+ url?: string;
222
+ };
223
+ }>, z.ZodObject<{
224
+ type: z.ZodLiteral<"input_audio">;
225
+ input_audio: z.ZodObject<{
226
+ data: z.ZodString;
227
+ format: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ data?: string;
230
+ format?: string;
231
+ }, {
232
+ data?: string;
233
+ format?: string;
234
+ }>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ type?: "input_audio";
237
+ input_audio?: {
238
+ data?: string;
239
+ format?: string;
240
+ };
241
+ }, {
242
+ type?: "input_audio";
243
+ input_audio?: {
244
+ data?: string;
245
+ format?: string;
246
+ };
247
+ }>, z.ZodObject<{
248
+ type: z.ZodLiteral<"video">;
249
+ video: z.ZodArray<z.ZodString, "many">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ video?: string[];
252
+ type?: "video";
253
+ }, {
254
+ video?: string[];
255
+ type?: "video";
256
+ }>, z.ZodObject<{
257
+ type: z.ZodLiteral<"video_url">;
258
+ video_url: z.ZodObject<{
259
+ url: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ url?: string;
262
+ }, {
263
+ url?: string;
264
+ }>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type?: "video_url";
267
+ video_url?: {
268
+ url?: string;
269
+ };
270
+ }, {
271
+ type?: "video_url";
272
+ video_url?: {
273
+ url?: string;
274
+ };
275
+ }>, z.ZodObject<{
276
+ type: z.ZodLiteral<"doc_url">;
277
+ doc_url: z.ZodArray<z.ZodString, "many">;
278
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ type?: "doc_url";
281
+ doc_url?: string[];
282
+ file_parsing_strategy?: string;
283
+ }, {
284
+ type?: "doc_url";
285
+ doc_url?: string[];
286
+ file_parsing_strategy?: string;
287
+ }>]>, "many">]>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ role?: "user" | "assistant" | "system";
290
+ content?: string | ({
291
+ type?: "text";
292
+ text?: string;
293
+ } | {
294
+ type?: "image_url";
295
+ image_url?: {
296
+ url?: string;
297
+ };
298
+ } | {
299
+ type?: "input_audio";
300
+ input_audio?: {
301
+ data?: string;
302
+ format?: string;
303
+ };
304
+ } | {
305
+ video?: string[];
306
+ type?: "video";
307
+ } | {
308
+ type?: "video_url";
309
+ video_url?: {
310
+ url?: string;
311
+ };
312
+ } | {
313
+ type?: "doc_url";
314
+ doc_url?: string[];
315
+ file_parsing_strategy?: string;
316
+ })[];
317
+ }, {
318
+ role?: "user" | "assistant" | "system";
319
+ content?: string | ({
320
+ type?: "text";
321
+ text?: string;
322
+ } | {
323
+ type?: "image_url";
324
+ image_url?: {
325
+ url?: string;
326
+ };
327
+ } | {
328
+ type?: "input_audio";
329
+ input_audio?: {
330
+ data?: string;
331
+ format?: string;
332
+ };
333
+ } | {
334
+ video?: string[];
335
+ type?: "video";
336
+ } | {
337
+ type?: "video_url";
338
+ video_url?: {
339
+ url?: string;
340
+ };
341
+ } | {
342
+ type?: "doc_url";
343
+ doc_url?: string[];
344
+ file_parsing_strategy?: string;
345
+ })[];
346
+ }>;
347
+ export declare const toolCallMessageSchema: z.ZodObject<{
348
+ role: z.ZodLiteral<"tool">;
349
+ function: z.ZodString;
350
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ function?: string;
353
+ role?: "tool";
354
+ arguments?: Record<string, any>;
355
+ }, {
356
+ function?: string;
357
+ role?: "tool";
358
+ arguments?: Record<string, any>;
359
+ }>;
360
+ export declare const toolResultMessageSchema: z.ZodObject<{
361
+ role: z.ZodLiteral<"tool">;
362
+ function: z.ZodString;
363
+ name: z.ZodString;
364
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ function?: string;
367
+ role?: "tool";
368
+ content?: string | any[] | Record<string, any>;
369
+ name?: string;
370
+ }, {
371
+ function?: string;
372
+ role?: "tool";
373
+ content?: string | any[] | Record<string, any>;
374
+ name?: string;
375
+ }>;
376
+ export declare const messageItemSchema: z.ZodUnion<[z.ZodObject<{
377
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
378
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
379
+ type: z.ZodLiteral<"text">;
380
+ text: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ type?: "text";
383
+ text?: string;
384
+ }, {
385
+ type?: "text";
386
+ text?: string;
387
+ }>, z.ZodObject<{
388
+ type: z.ZodLiteral<"image_url">;
389
+ image_url: z.ZodObject<{
390
+ url: z.ZodString;
391
+ }, "strip", z.ZodTypeAny, {
392
+ url?: string;
393
+ }, {
394
+ url?: string;
395
+ }>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ type?: "image_url";
398
+ image_url?: {
399
+ url?: string;
400
+ };
401
+ }, {
402
+ type?: "image_url";
403
+ image_url?: {
404
+ url?: string;
405
+ };
406
+ }>, z.ZodObject<{
407
+ type: z.ZodLiteral<"input_audio">;
408
+ input_audio: z.ZodObject<{
409
+ data: z.ZodString;
410
+ format: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ data?: string;
413
+ format?: string;
414
+ }, {
415
+ data?: string;
416
+ format?: string;
417
+ }>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ type?: "input_audio";
420
+ input_audio?: {
421
+ data?: string;
422
+ format?: string;
423
+ };
424
+ }, {
425
+ type?: "input_audio";
426
+ input_audio?: {
427
+ data?: string;
428
+ format?: string;
429
+ };
430
+ }>, z.ZodObject<{
431
+ type: z.ZodLiteral<"video">;
432
+ video: z.ZodArray<z.ZodString, "many">;
433
+ }, "strip", z.ZodTypeAny, {
434
+ video?: string[];
435
+ type?: "video";
436
+ }, {
437
+ video?: string[];
438
+ type?: "video";
439
+ }>, z.ZodObject<{
440
+ type: z.ZodLiteral<"video_url">;
441
+ video_url: z.ZodObject<{
442
+ url: z.ZodString;
443
+ }, "strip", z.ZodTypeAny, {
444
+ url?: string;
445
+ }, {
446
+ url?: string;
447
+ }>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type?: "video_url";
450
+ video_url?: {
451
+ url?: string;
452
+ };
453
+ }, {
454
+ type?: "video_url";
455
+ video_url?: {
456
+ url?: string;
457
+ };
458
+ }>, z.ZodObject<{
459
+ type: z.ZodLiteral<"doc_url">;
460
+ doc_url: z.ZodArray<z.ZodString, "many">;
461
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ type?: "doc_url";
464
+ doc_url?: string[];
465
+ file_parsing_strategy?: string;
466
+ }, {
467
+ type?: "doc_url";
468
+ doc_url?: string[];
469
+ file_parsing_strategy?: string;
470
+ }>]>, "many">]>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ role?: "user" | "assistant" | "system";
473
+ content?: string | ({
474
+ type?: "text";
475
+ text?: string;
476
+ } | {
477
+ type?: "image_url";
478
+ image_url?: {
479
+ url?: string;
480
+ };
481
+ } | {
482
+ type?: "input_audio";
483
+ input_audio?: {
484
+ data?: string;
485
+ format?: string;
486
+ };
487
+ } | {
488
+ video?: string[];
489
+ type?: "video";
490
+ } | {
491
+ type?: "video_url";
492
+ video_url?: {
493
+ url?: string;
494
+ };
495
+ } | {
496
+ type?: "doc_url";
497
+ doc_url?: string[];
498
+ file_parsing_strategy?: string;
499
+ })[];
500
+ }, {
501
+ role?: "user" | "assistant" | "system";
502
+ content?: string | ({
503
+ type?: "text";
504
+ text?: string;
505
+ } | {
506
+ type?: "image_url";
507
+ image_url?: {
508
+ url?: string;
509
+ };
510
+ } | {
511
+ type?: "input_audio";
512
+ input_audio?: {
513
+ data?: string;
514
+ format?: string;
515
+ };
516
+ } | {
517
+ video?: string[];
518
+ type?: "video";
519
+ } | {
520
+ type?: "video_url";
521
+ video_url?: {
522
+ url?: string;
523
+ };
524
+ } | {
525
+ type?: "doc_url";
526
+ doc_url?: string[];
527
+ file_parsing_strategy?: string;
528
+ })[];
529
+ }>, z.ZodObject<{
530
+ role: z.ZodLiteral<"tool">;
531
+ function: z.ZodString;
532
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ function?: string;
535
+ role?: "tool";
536
+ arguments?: Record<string, any>;
537
+ }, {
538
+ function?: string;
539
+ role?: "tool";
540
+ arguments?: Record<string, any>;
541
+ }>, z.ZodObject<{
542
+ role: z.ZodLiteral<"tool">;
543
+ function: z.ZodString;
544
+ name: z.ZodString;
545
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ function?: string;
548
+ role?: "tool";
549
+ content?: string | any[] | Record<string, any>;
550
+ name?: string;
551
+ }, {
552
+ function?: string;
553
+ role?: "tool";
554
+ content?: string | any[] | Record<string, any>;
555
+ name?: string;
556
+ }>]>;
557
+ export declare const messageHistorySchema: z.ZodArray<z.ZodUnion<[z.ZodObject<{
558
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
559
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
560
+ type: z.ZodLiteral<"text">;
561
+ text: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ type?: "text";
564
+ text?: string;
565
+ }, {
566
+ type?: "text";
567
+ text?: string;
568
+ }>, z.ZodObject<{
569
+ type: z.ZodLiteral<"image_url">;
570
+ image_url: z.ZodObject<{
571
+ url: z.ZodString;
572
+ }, "strip", z.ZodTypeAny, {
573
+ url?: string;
574
+ }, {
575
+ url?: string;
576
+ }>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ type?: "image_url";
579
+ image_url?: {
580
+ url?: string;
581
+ };
582
+ }, {
583
+ type?: "image_url";
584
+ image_url?: {
585
+ url?: string;
586
+ };
587
+ }>, z.ZodObject<{
588
+ type: z.ZodLiteral<"input_audio">;
589
+ input_audio: z.ZodObject<{
590
+ data: z.ZodString;
591
+ format: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ data?: string;
594
+ format?: string;
595
+ }, {
596
+ data?: string;
597
+ format?: string;
598
+ }>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ type?: "input_audio";
601
+ input_audio?: {
602
+ data?: string;
603
+ format?: string;
604
+ };
605
+ }, {
606
+ type?: "input_audio";
607
+ input_audio?: {
608
+ data?: string;
609
+ format?: string;
610
+ };
611
+ }>, z.ZodObject<{
612
+ type: z.ZodLiteral<"video">;
613
+ video: z.ZodArray<z.ZodString, "many">;
614
+ }, "strip", z.ZodTypeAny, {
615
+ video?: string[];
616
+ type?: "video";
617
+ }, {
618
+ video?: string[];
619
+ type?: "video";
620
+ }>, z.ZodObject<{
621
+ type: z.ZodLiteral<"video_url">;
622
+ video_url: z.ZodObject<{
623
+ url: z.ZodString;
624
+ }, "strip", z.ZodTypeAny, {
625
+ url?: string;
626
+ }, {
627
+ url?: string;
628
+ }>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type?: "video_url";
631
+ video_url?: {
632
+ url?: string;
633
+ };
634
+ }, {
635
+ type?: "video_url";
636
+ video_url?: {
637
+ url?: string;
638
+ };
639
+ }>, z.ZodObject<{
640
+ type: z.ZodLiteral<"doc_url">;
641
+ doc_url: z.ZodArray<z.ZodString, "many">;
642
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ type?: "doc_url";
645
+ doc_url?: string[];
646
+ file_parsing_strategy?: string;
647
+ }, {
648
+ type?: "doc_url";
649
+ doc_url?: string[];
650
+ file_parsing_strategy?: string;
651
+ }>]>, "many">]>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ role?: "user" | "assistant" | "system";
654
+ content?: string | ({
655
+ type?: "text";
656
+ text?: string;
657
+ } | {
658
+ type?: "image_url";
659
+ image_url?: {
660
+ url?: string;
661
+ };
662
+ } | {
663
+ type?: "input_audio";
664
+ input_audio?: {
665
+ data?: string;
666
+ format?: string;
667
+ };
668
+ } | {
669
+ video?: string[];
670
+ type?: "video";
671
+ } | {
672
+ type?: "video_url";
673
+ video_url?: {
674
+ url?: string;
675
+ };
676
+ } | {
677
+ type?: "doc_url";
678
+ doc_url?: string[];
679
+ file_parsing_strategy?: string;
680
+ })[];
681
+ }, {
682
+ role?: "user" | "assistant" | "system";
683
+ content?: string | ({
684
+ type?: "text";
685
+ text?: string;
686
+ } | {
687
+ type?: "image_url";
688
+ image_url?: {
689
+ url?: string;
690
+ };
691
+ } | {
692
+ type?: "input_audio";
693
+ input_audio?: {
694
+ data?: string;
695
+ format?: string;
696
+ };
697
+ } | {
698
+ video?: string[];
699
+ type?: "video";
700
+ } | {
701
+ type?: "video_url";
702
+ video_url?: {
703
+ url?: string;
704
+ };
705
+ } | {
706
+ type?: "doc_url";
707
+ doc_url?: string[];
708
+ file_parsing_strategy?: string;
709
+ })[];
710
+ }>, z.ZodObject<{
711
+ role: z.ZodLiteral<"tool">;
712
+ function: z.ZodString;
713
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ function?: string;
716
+ role?: "tool";
717
+ arguments?: Record<string, any>;
718
+ }, {
719
+ function?: string;
720
+ role?: "tool";
721
+ arguments?: Record<string, any>;
722
+ }>, z.ZodObject<{
723
+ role: z.ZodLiteral<"tool">;
724
+ function: z.ZodString;
725
+ name: z.ZodString;
726
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ function?: string;
729
+ role?: "tool";
730
+ content?: string | any[] | Record<string, any>;
731
+ name?: string;
732
+ }, {
733
+ function?: string;
734
+ role?: "tool";
735
+ content?: string | any[] | Record<string, any>;
736
+ name?: string;
737
+ }>]>, "many">;
738
+ export declare const sendMessageInputSchema: z.ZodObject<{
739
+ msg: z.ZodString;
740
+ history: z.ZodArray<z.ZodUnion<[z.ZodObject<{
741
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
742
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
743
+ type: z.ZodLiteral<"text">;
744
+ text: z.ZodString;
745
+ }, "strip", z.ZodTypeAny, {
746
+ type?: "text";
747
+ text?: string;
748
+ }, {
749
+ type?: "text";
750
+ text?: string;
751
+ }>, z.ZodObject<{
752
+ type: z.ZodLiteral<"image_url">;
753
+ image_url: z.ZodObject<{
754
+ url: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ url?: string;
757
+ }, {
758
+ url?: string;
759
+ }>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ type?: "image_url";
762
+ image_url?: {
763
+ url?: string;
764
+ };
765
+ }, {
766
+ type?: "image_url";
767
+ image_url?: {
768
+ url?: string;
769
+ };
770
+ }>, z.ZodObject<{
771
+ type: z.ZodLiteral<"input_audio">;
772
+ input_audio: z.ZodObject<{
773
+ data: z.ZodString;
774
+ format: z.ZodString;
775
+ }, "strip", z.ZodTypeAny, {
776
+ data?: string;
777
+ format?: string;
778
+ }, {
779
+ data?: string;
780
+ format?: string;
781
+ }>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ type?: "input_audio";
784
+ input_audio?: {
785
+ data?: string;
786
+ format?: string;
787
+ };
788
+ }, {
789
+ type?: "input_audio";
790
+ input_audio?: {
791
+ data?: string;
792
+ format?: string;
793
+ };
794
+ }>, z.ZodObject<{
795
+ type: z.ZodLiteral<"video">;
796
+ video: z.ZodArray<z.ZodString, "many">;
797
+ }, "strip", z.ZodTypeAny, {
798
+ video?: string[];
799
+ type?: "video";
800
+ }, {
801
+ video?: string[];
802
+ type?: "video";
803
+ }>, z.ZodObject<{
804
+ type: z.ZodLiteral<"video_url">;
805
+ video_url: z.ZodObject<{
806
+ url: z.ZodString;
807
+ }, "strip", z.ZodTypeAny, {
808
+ url?: string;
809
+ }, {
810
+ url?: string;
811
+ }>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ type?: "video_url";
814
+ video_url?: {
815
+ url?: string;
816
+ };
817
+ }, {
818
+ type?: "video_url";
819
+ video_url?: {
820
+ url?: string;
821
+ };
822
+ }>, z.ZodObject<{
823
+ type: z.ZodLiteral<"doc_url">;
824
+ doc_url: z.ZodArray<z.ZodString, "many">;
825
+ file_parsing_strategy: z.ZodOptional<z.ZodString>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ type?: "doc_url";
828
+ doc_url?: string[];
829
+ file_parsing_strategy?: string;
830
+ }, {
831
+ type?: "doc_url";
832
+ doc_url?: string[];
833
+ file_parsing_strategy?: string;
834
+ }>]>, "many">]>;
835
+ }, "strip", z.ZodTypeAny, {
836
+ role?: "user" | "assistant" | "system";
837
+ content?: string | ({
838
+ type?: "text";
839
+ text?: string;
840
+ } | {
841
+ type?: "image_url";
842
+ image_url?: {
843
+ url?: string;
844
+ };
845
+ } | {
846
+ type?: "input_audio";
847
+ input_audio?: {
848
+ data?: string;
849
+ format?: string;
850
+ };
851
+ } | {
852
+ video?: string[];
853
+ type?: "video";
854
+ } | {
855
+ type?: "video_url";
856
+ video_url?: {
857
+ url?: string;
858
+ };
859
+ } | {
860
+ type?: "doc_url";
861
+ doc_url?: string[];
862
+ file_parsing_strategy?: string;
863
+ })[];
864
+ }, {
865
+ role?: "user" | "assistant" | "system";
866
+ content?: string | ({
867
+ type?: "text";
868
+ text?: string;
869
+ } | {
870
+ type?: "image_url";
871
+ image_url?: {
872
+ url?: string;
873
+ };
874
+ } | {
875
+ type?: "input_audio";
876
+ input_audio?: {
877
+ data?: string;
878
+ format?: string;
879
+ };
880
+ } | {
881
+ video?: string[];
882
+ type?: "video";
883
+ } | {
884
+ type?: "video_url";
885
+ video_url?: {
886
+ url?: string;
887
+ };
888
+ } | {
889
+ type?: "doc_url";
890
+ doc_url?: string[];
891
+ file_parsing_strategy?: string;
892
+ })[];
893
+ }>, z.ZodObject<{
894
+ role: z.ZodLiteral<"tool">;
895
+ function: z.ZodString;
896
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ function?: string;
899
+ role?: "tool";
900
+ arguments?: Record<string, any>;
901
+ }, {
902
+ function?: string;
903
+ role?: "tool";
904
+ arguments?: Record<string, any>;
905
+ }>, z.ZodObject<{
906
+ role: z.ZodLiteral<"tool">;
907
+ function: z.ZodString;
908
+ name: z.ZodString;
909
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ function?: string;
912
+ role?: "tool";
913
+ content?: string | any[] | Record<string, any>;
914
+ name?: string;
915
+ }, {
916
+ function?: string;
917
+ role?: "tool";
918
+ content?: string | any[] | Record<string, any>;
919
+ name?: string;
920
+ }>]>, "many">;
921
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
922
+ id: z.ZodString;
923
+ filename: z.ZodString;
924
+ purpose: z.ZodString;
925
+ bytes: z.ZodNumber;
926
+ created_at: z.ZodNumber;
927
+ }, "strip", z.ZodTypeAny, {
928
+ id?: string;
929
+ filename?: string;
930
+ purpose?: string;
931
+ bytes?: number;
932
+ created_at?: number;
933
+ }, {
934
+ id?: string;
935
+ filename?: string;
936
+ purpose?: string;
937
+ bytes?: number;
938
+ created_at?: number;
939
+ }>, "many">>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ msg?: string;
942
+ history?: ({
943
+ role?: "user" | "assistant" | "system";
944
+ content?: string | ({
945
+ type?: "text";
946
+ text?: string;
947
+ } | {
948
+ type?: "image_url";
949
+ image_url?: {
950
+ url?: string;
951
+ };
952
+ } | {
953
+ type?: "input_audio";
954
+ input_audio?: {
955
+ data?: string;
956
+ format?: string;
957
+ };
958
+ } | {
959
+ video?: string[];
960
+ type?: "video";
961
+ } | {
962
+ type?: "video_url";
963
+ video_url?: {
964
+ url?: string;
965
+ };
966
+ } | {
967
+ type?: "doc_url";
968
+ doc_url?: string[];
969
+ file_parsing_strategy?: string;
970
+ })[];
971
+ } | {
972
+ function?: string;
973
+ role?: "tool";
974
+ arguments?: Record<string, any>;
975
+ } | {
976
+ function?: string;
977
+ role?: "tool";
978
+ content?: string | any[] | Record<string, any>;
979
+ name?: string;
980
+ })[];
981
+ files?: {
982
+ id?: string;
983
+ filename?: string;
984
+ purpose?: string;
985
+ bytes?: number;
986
+ created_at?: number;
987
+ }[];
988
+ }, {
989
+ msg?: string;
990
+ history?: ({
991
+ role?: "user" | "assistant" | "system";
992
+ content?: string | ({
993
+ type?: "text";
994
+ text?: string;
995
+ } | {
996
+ type?: "image_url";
997
+ image_url?: {
998
+ url?: string;
999
+ };
1000
+ } | {
1001
+ type?: "input_audio";
1002
+ input_audio?: {
1003
+ data?: string;
1004
+ format?: string;
1005
+ };
1006
+ } | {
1007
+ video?: string[];
1008
+ type?: "video";
1009
+ } | {
1010
+ type?: "video_url";
1011
+ video_url?: {
1012
+ url?: string;
1013
+ };
1014
+ } | {
1015
+ type?: "doc_url";
1016
+ doc_url?: string[];
1017
+ file_parsing_strategy?: string;
1018
+ })[];
1019
+ } | {
1020
+ function?: string;
1021
+ role?: "tool";
1022
+ arguments?: Record<string, any>;
1023
+ } | {
1024
+ function?: string;
1025
+ role?: "tool";
1026
+ content?: string | any[] | Record<string, any>;
1027
+ name?: string;
1028
+ })[];
1029
+ files?: {
1030
+ id?: string;
1031
+ filename?: string;
1032
+ purpose?: string;
1033
+ bytes?: number;
1034
+ created_at?: number;
1035
+ }[];
1036
+ }>;
1037
+ export type TextContent = z.infer<typeof textContentSchema>;
1038
+ export type ImageContent = z.infer<typeof imageContentSchema>;
1039
+ export type AudioContent = z.infer<typeof audioContentSchema>;
1040
+ export type VideoContent = z.infer<typeof videoContentSchema>;
1041
+ export type VideoUrlContent = z.infer<typeof videoUrlContentSchema>;
1042
+ export type MessageContent = z.infer<typeof messageContentSchema>;
1043
+ export type BaseMessage = z.infer<typeof baseMessageSchema>;
1044
+ export type ToolCallMessage = z.infer<typeof toolCallMessageSchema>;
1045
+ export type ToolResultMessage = z.infer<typeof toolResultMessageSchema>;
1046
+ export type ToolMessage = ToolCallMessage | ToolResultMessage;
1047
+ export type MessageItem = z.infer<typeof messageItemSchema>;
1048
+ export type MessageHistory = z.infer<typeof messageHistorySchema>;
1049
+ export type SendMessageInput = z.infer<typeof sendMessageInputSchema>;