@vectorx/ai-types 0.1.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,903 @@
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 messageContentSchema: z.ZodUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<"text">;
89
+ text: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ type?: "text";
92
+ text?: string;
93
+ }, {
94
+ type?: "text";
95
+ text?: string;
96
+ }>, z.ZodObject<{
97
+ type: z.ZodLiteral<"image_url">;
98
+ image_url: z.ZodObject<{
99
+ url: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ url?: string;
102
+ }, {
103
+ url?: string;
104
+ }>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type?: "image_url";
107
+ image_url?: {
108
+ url?: string;
109
+ };
110
+ }, {
111
+ type?: "image_url";
112
+ image_url?: {
113
+ url?: string;
114
+ };
115
+ }>, z.ZodObject<{
116
+ type: z.ZodLiteral<"input_audio">;
117
+ input_audio: z.ZodObject<{
118
+ data: z.ZodString;
119
+ format: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ data?: string;
122
+ format?: string;
123
+ }, {
124
+ data?: string;
125
+ format?: string;
126
+ }>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type?: "input_audio";
129
+ input_audio?: {
130
+ data?: string;
131
+ format?: string;
132
+ };
133
+ }, {
134
+ type?: "input_audio";
135
+ input_audio?: {
136
+ data?: string;
137
+ format?: string;
138
+ };
139
+ }>, z.ZodObject<{
140
+ type: z.ZodLiteral<"video">;
141
+ video: z.ZodArray<z.ZodString, "many">;
142
+ }, "strip", z.ZodTypeAny, {
143
+ video?: string[];
144
+ type?: "video";
145
+ }, {
146
+ video?: string[];
147
+ type?: "video";
148
+ }>, z.ZodObject<{
149
+ type: z.ZodLiteral<"video_url">;
150
+ video_url: z.ZodObject<{
151
+ url: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ url?: string;
154
+ }, {
155
+ url?: string;
156
+ }>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ type?: "video_url";
159
+ video_url?: {
160
+ url?: string;
161
+ };
162
+ }, {
163
+ type?: "video_url";
164
+ video_url?: {
165
+ url?: string;
166
+ };
167
+ }>]>;
168
+ export declare const baseMessageSchema: z.ZodObject<{
169
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
170
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
171
+ type: z.ZodLiteral<"text">;
172
+ text: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type?: "text";
175
+ text?: string;
176
+ }, {
177
+ type?: "text";
178
+ text?: string;
179
+ }>, z.ZodObject<{
180
+ type: z.ZodLiteral<"image_url">;
181
+ image_url: z.ZodObject<{
182
+ url: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ url?: string;
185
+ }, {
186
+ url?: string;
187
+ }>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type?: "image_url";
190
+ image_url?: {
191
+ url?: string;
192
+ };
193
+ }, {
194
+ type?: "image_url";
195
+ image_url?: {
196
+ url?: string;
197
+ };
198
+ }>, z.ZodObject<{
199
+ type: z.ZodLiteral<"input_audio">;
200
+ input_audio: z.ZodObject<{
201
+ data: z.ZodString;
202
+ format: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ data?: string;
205
+ format?: string;
206
+ }, {
207
+ data?: string;
208
+ format?: string;
209
+ }>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ type?: "input_audio";
212
+ input_audio?: {
213
+ data?: string;
214
+ format?: string;
215
+ };
216
+ }, {
217
+ type?: "input_audio";
218
+ input_audio?: {
219
+ data?: string;
220
+ format?: string;
221
+ };
222
+ }>, z.ZodObject<{
223
+ type: z.ZodLiteral<"video">;
224
+ video: z.ZodArray<z.ZodString, "many">;
225
+ }, "strip", z.ZodTypeAny, {
226
+ video?: string[];
227
+ type?: "video";
228
+ }, {
229
+ video?: string[];
230
+ type?: "video";
231
+ }>, z.ZodObject<{
232
+ type: z.ZodLiteral<"video_url">;
233
+ video_url: z.ZodObject<{
234
+ url: z.ZodString;
235
+ }, "strip", z.ZodTypeAny, {
236
+ url?: string;
237
+ }, {
238
+ url?: string;
239
+ }>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type?: "video_url";
242
+ video_url?: {
243
+ url?: string;
244
+ };
245
+ }, {
246
+ type?: "video_url";
247
+ video_url?: {
248
+ url?: string;
249
+ };
250
+ }>]>, "many">]>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ role?: "user" | "assistant" | "system";
253
+ content?: string | ({
254
+ type?: "text";
255
+ text?: string;
256
+ } | {
257
+ type?: "image_url";
258
+ image_url?: {
259
+ url?: string;
260
+ };
261
+ } | {
262
+ type?: "input_audio";
263
+ input_audio?: {
264
+ data?: string;
265
+ format?: string;
266
+ };
267
+ } | {
268
+ video?: string[];
269
+ type?: "video";
270
+ } | {
271
+ type?: "video_url";
272
+ video_url?: {
273
+ url?: string;
274
+ };
275
+ })[];
276
+ }, {
277
+ role?: "user" | "assistant" | "system";
278
+ content?: string | ({
279
+ type?: "text";
280
+ text?: string;
281
+ } | {
282
+ type?: "image_url";
283
+ image_url?: {
284
+ url?: string;
285
+ };
286
+ } | {
287
+ type?: "input_audio";
288
+ input_audio?: {
289
+ data?: string;
290
+ format?: string;
291
+ };
292
+ } | {
293
+ video?: string[];
294
+ type?: "video";
295
+ } | {
296
+ type?: "video_url";
297
+ video_url?: {
298
+ url?: string;
299
+ };
300
+ })[];
301
+ }>;
302
+ export declare const toolCallMessageSchema: z.ZodObject<{
303
+ role: z.ZodLiteral<"tool">;
304
+ function: z.ZodString;
305
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ function?: string;
308
+ role?: "tool";
309
+ arguments?: Record<string, any>;
310
+ }, {
311
+ function?: string;
312
+ role?: "tool";
313
+ arguments?: Record<string, any>;
314
+ }>;
315
+ export declare const toolResultMessageSchema: z.ZodObject<{
316
+ role: z.ZodLiteral<"tool">;
317
+ function: z.ZodString;
318
+ name: z.ZodString;
319
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ function?: string;
322
+ role?: "tool";
323
+ content?: string | any[] | Record<string, any>;
324
+ name?: string;
325
+ }, {
326
+ function?: string;
327
+ role?: "tool";
328
+ content?: string | any[] | Record<string, any>;
329
+ name?: string;
330
+ }>;
331
+ export declare const messageItemSchema: z.ZodUnion<[z.ZodObject<{
332
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
333
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
334
+ type: z.ZodLiteral<"text">;
335
+ text: z.ZodString;
336
+ }, "strip", z.ZodTypeAny, {
337
+ type?: "text";
338
+ text?: string;
339
+ }, {
340
+ type?: "text";
341
+ text?: string;
342
+ }>, z.ZodObject<{
343
+ type: z.ZodLiteral<"image_url">;
344
+ image_url: z.ZodObject<{
345
+ url: z.ZodString;
346
+ }, "strip", z.ZodTypeAny, {
347
+ url?: string;
348
+ }, {
349
+ url?: string;
350
+ }>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ type?: "image_url";
353
+ image_url?: {
354
+ url?: string;
355
+ };
356
+ }, {
357
+ type?: "image_url";
358
+ image_url?: {
359
+ url?: string;
360
+ };
361
+ }>, z.ZodObject<{
362
+ type: z.ZodLiteral<"input_audio">;
363
+ input_audio: z.ZodObject<{
364
+ data: z.ZodString;
365
+ format: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ data?: string;
368
+ format?: string;
369
+ }, {
370
+ data?: string;
371
+ format?: string;
372
+ }>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ type?: "input_audio";
375
+ input_audio?: {
376
+ data?: string;
377
+ format?: string;
378
+ };
379
+ }, {
380
+ type?: "input_audio";
381
+ input_audio?: {
382
+ data?: string;
383
+ format?: string;
384
+ };
385
+ }>, z.ZodObject<{
386
+ type: z.ZodLiteral<"video">;
387
+ video: z.ZodArray<z.ZodString, "many">;
388
+ }, "strip", z.ZodTypeAny, {
389
+ video?: string[];
390
+ type?: "video";
391
+ }, {
392
+ video?: string[];
393
+ type?: "video";
394
+ }>, z.ZodObject<{
395
+ type: z.ZodLiteral<"video_url">;
396
+ video_url: z.ZodObject<{
397
+ url: z.ZodString;
398
+ }, "strip", z.ZodTypeAny, {
399
+ url?: string;
400
+ }, {
401
+ url?: string;
402
+ }>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type?: "video_url";
405
+ video_url?: {
406
+ url?: string;
407
+ };
408
+ }, {
409
+ type?: "video_url";
410
+ video_url?: {
411
+ url?: string;
412
+ };
413
+ }>]>, "many">]>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ role?: "user" | "assistant" | "system";
416
+ content?: string | ({
417
+ type?: "text";
418
+ text?: string;
419
+ } | {
420
+ type?: "image_url";
421
+ image_url?: {
422
+ url?: string;
423
+ };
424
+ } | {
425
+ type?: "input_audio";
426
+ input_audio?: {
427
+ data?: string;
428
+ format?: string;
429
+ };
430
+ } | {
431
+ video?: string[];
432
+ type?: "video";
433
+ } | {
434
+ type?: "video_url";
435
+ video_url?: {
436
+ url?: string;
437
+ };
438
+ })[];
439
+ }, {
440
+ role?: "user" | "assistant" | "system";
441
+ content?: string | ({
442
+ type?: "text";
443
+ text?: string;
444
+ } | {
445
+ type?: "image_url";
446
+ image_url?: {
447
+ url?: string;
448
+ };
449
+ } | {
450
+ type?: "input_audio";
451
+ input_audio?: {
452
+ data?: string;
453
+ format?: string;
454
+ };
455
+ } | {
456
+ video?: string[];
457
+ type?: "video";
458
+ } | {
459
+ type?: "video_url";
460
+ video_url?: {
461
+ url?: string;
462
+ };
463
+ })[];
464
+ }>, z.ZodObject<{
465
+ role: z.ZodLiteral<"tool">;
466
+ function: z.ZodString;
467
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ function?: string;
470
+ role?: "tool";
471
+ arguments?: Record<string, any>;
472
+ }, {
473
+ function?: string;
474
+ role?: "tool";
475
+ arguments?: Record<string, any>;
476
+ }>, z.ZodObject<{
477
+ role: z.ZodLiteral<"tool">;
478
+ function: z.ZodString;
479
+ name: z.ZodString;
480
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ function?: string;
483
+ role?: "tool";
484
+ content?: string | any[] | Record<string, any>;
485
+ name?: string;
486
+ }, {
487
+ function?: string;
488
+ role?: "tool";
489
+ content?: string | any[] | Record<string, any>;
490
+ name?: string;
491
+ }>]>;
492
+ export declare const messageHistorySchema: z.ZodArray<z.ZodUnion<[z.ZodObject<{
493
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
494
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
495
+ type: z.ZodLiteral<"text">;
496
+ text: z.ZodString;
497
+ }, "strip", z.ZodTypeAny, {
498
+ type?: "text";
499
+ text?: string;
500
+ }, {
501
+ type?: "text";
502
+ text?: string;
503
+ }>, z.ZodObject<{
504
+ type: z.ZodLiteral<"image_url">;
505
+ image_url: z.ZodObject<{
506
+ url: z.ZodString;
507
+ }, "strip", z.ZodTypeAny, {
508
+ url?: string;
509
+ }, {
510
+ url?: string;
511
+ }>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type?: "image_url";
514
+ image_url?: {
515
+ url?: string;
516
+ };
517
+ }, {
518
+ type?: "image_url";
519
+ image_url?: {
520
+ url?: string;
521
+ };
522
+ }>, z.ZodObject<{
523
+ type: z.ZodLiteral<"input_audio">;
524
+ input_audio: z.ZodObject<{
525
+ data: z.ZodString;
526
+ format: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
528
+ data?: string;
529
+ format?: string;
530
+ }, {
531
+ data?: string;
532
+ format?: string;
533
+ }>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ type?: "input_audio";
536
+ input_audio?: {
537
+ data?: string;
538
+ format?: string;
539
+ };
540
+ }, {
541
+ type?: "input_audio";
542
+ input_audio?: {
543
+ data?: string;
544
+ format?: string;
545
+ };
546
+ }>, z.ZodObject<{
547
+ type: z.ZodLiteral<"video">;
548
+ video: z.ZodArray<z.ZodString, "many">;
549
+ }, "strip", z.ZodTypeAny, {
550
+ video?: string[];
551
+ type?: "video";
552
+ }, {
553
+ video?: string[];
554
+ type?: "video";
555
+ }>, z.ZodObject<{
556
+ type: z.ZodLiteral<"video_url">;
557
+ video_url: z.ZodObject<{
558
+ url: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ url?: string;
561
+ }, {
562
+ url?: string;
563
+ }>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ type?: "video_url";
566
+ video_url?: {
567
+ url?: string;
568
+ };
569
+ }, {
570
+ type?: "video_url";
571
+ video_url?: {
572
+ url?: string;
573
+ };
574
+ }>]>, "many">]>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ role?: "user" | "assistant" | "system";
577
+ content?: string | ({
578
+ type?: "text";
579
+ text?: string;
580
+ } | {
581
+ type?: "image_url";
582
+ image_url?: {
583
+ url?: string;
584
+ };
585
+ } | {
586
+ type?: "input_audio";
587
+ input_audio?: {
588
+ data?: string;
589
+ format?: string;
590
+ };
591
+ } | {
592
+ video?: string[];
593
+ type?: "video";
594
+ } | {
595
+ type?: "video_url";
596
+ video_url?: {
597
+ url?: string;
598
+ };
599
+ })[];
600
+ }, {
601
+ role?: "user" | "assistant" | "system";
602
+ content?: string | ({
603
+ type?: "text";
604
+ text?: string;
605
+ } | {
606
+ type?: "image_url";
607
+ image_url?: {
608
+ url?: string;
609
+ };
610
+ } | {
611
+ type?: "input_audio";
612
+ input_audio?: {
613
+ data?: string;
614
+ format?: string;
615
+ };
616
+ } | {
617
+ video?: string[];
618
+ type?: "video";
619
+ } | {
620
+ type?: "video_url";
621
+ video_url?: {
622
+ url?: string;
623
+ };
624
+ })[];
625
+ }>, z.ZodObject<{
626
+ role: z.ZodLiteral<"tool">;
627
+ function: z.ZodString;
628
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ function?: string;
631
+ role?: "tool";
632
+ arguments?: Record<string, any>;
633
+ }, {
634
+ function?: string;
635
+ role?: "tool";
636
+ arguments?: Record<string, any>;
637
+ }>, z.ZodObject<{
638
+ role: z.ZodLiteral<"tool">;
639
+ function: z.ZodString;
640
+ name: z.ZodString;
641
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ function?: string;
644
+ role?: "tool";
645
+ content?: string | any[] | Record<string, any>;
646
+ name?: string;
647
+ }, {
648
+ function?: string;
649
+ role?: "tool";
650
+ content?: string | any[] | Record<string, any>;
651
+ name?: string;
652
+ }>]>, "many">;
653
+ export declare const sendMessageInputSchema: z.ZodObject<{
654
+ msg: z.ZodString;
655
+ history: z.ZodArray<z.ZodUnion<[z.ZodObject<{
656
+ role: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
657
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
658
+ type: z.ZodLiteral<"text">;
659
+ text: z.ZodString;
660
+ }, "strip", z.ZodTypeAny, {
661
+ type?: "text";
662
+ text?: string;
663
+ }, {
664
+ type?: "text";
665
+ text?: string;
666
+ }>, z.ZodObject<{
667
+ type: z.ZodLiteral<"image_url">;
668
+ image_url: z.ZodObject<{
669
+ url: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ url?: string;
672
+ }, {
673
+ url?: string;
674
+ }>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ type?: "image_url";
677
+ image_url?: {
678
+ url?: string;
679
+ };
680
+ }, {
681
+ type?: "image_url";
682
+ image_url?: {
683
+ url?: string;
684
+ };
685
+ }>, z.ZodObject<{
686
+ type: z.ZodLiteral<"input_audio">;
687
+ input_audio: z.ZodObject<{
688
+ data: z.ZodString;
689
+ format: z.ZodString;
690
+ }, "strip", z.ZodTypeAny, {
691
+ data?: string;
692
+ format?: string;
693
+ }, {
694
+ data?: string;
695
+ format?: string;
696
+ }>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type?: "input_audio";
699
+ input_audio?: {
700
+ data?: string;
701
+ format?: string;
702
+ };
703
+ }, {
704
+ type?: "input_audio";
705
+ input_audio?: {
706
+ data?: string;
707
+ format?: string;
708
+ };
709
+ }>, z.ZodObject<{
710
+ type: z.ZodLiteral<"video">;
711
+ video: z.ZodArray<z.ZodString, "many">;
712
+ }, "strip", z.ZodTypeAny, {
713
+ video?: string[];
714
+ type?: "video";
715
+ }, {
716
+ video?: string[];
717
+ type?: "video";
718
+ }>, z.ZodObject<{
719
+ type: z.ZodLiteral<"video_url">;
720
+ video_url: z.ZodObject<{
721
+ url: z.ZodString;
722
+ }, "strip", z.ZodTypeAny, {
723
+ url?: string;
724
+ }, {
725
+ url?: string;
726
+ }>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ type?: "video_url";
729
+ video_url?: {
730
+ url?: string;
731
+ };
732
+ }, {
733
+ type?: "video_url";
734
+ video_url?: {
735
+ url?: string;
736
+ };
737
+ }>]>, "many">]>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ role?: "user" | "assistant" | "system";
740
+ content?: string | ({
741
+ type?: "text";
742
+ text?: string;
743
+ } | {
744
+ type?: "image_url";
745
+ image_url?: {
746
+ url?: string;
747
+ };
748
+ } | {
749
+ type?: "input_audio";
750
+ input_audio?: {
751
+ data?: string;
752
+ format?: string;
753
+ };
754
+ } | {
755
+ video?: string[];
756
+ type?: "video";
757
+ } | {
758
+ type?: "video_url";
759
+ video_url?: {
760
+ url?: string;
761
+ };
762
+ })[];
763
+ }, {
764
+ role?: "user" | "assistant" | "system";
765
+ content?: string | ({
766
+ type?: "text";
767
+ text?: string;
768
+ } | {
769
+ type?: "image_url";
770
+ image_url?: {
771
+ url?: string;
772
+ };
773
+ } | {
774
+ type?: "input_audio";
775
+ input_audio?: {
776
+ data?: string;
777
+ format?: string;
778
+ };
779
+ } | {
780
+ video?: string[];
781
+ type?: "video";
782
+ } | {
783
+ type?: "video_url";
784
+ video_url?: {
785
+ url?: string;
786
+ };
787
+ })[];
788
+ }>, z.ZodObject<{
789
+ role: z.ZodLiteral<"tool">;
790
+ function: z.ZodString;
791
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ function?: string;
794
+ role?: "tool";
795
+ arguments?: Record<string, any>;
796
+ }, {
797
+ function?: string;
798
+ role?: "tool";
799
+ arguments?: Record<string, any>;
800
+ }>, z.ZodObject<{
801
+ role: z.ZodLiteral<"tool">;
802
+ function: z.ZodString;
803
+ name: z.ZodString;
804
+ content: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ function?: string;
807
+ role?: "tool";
808
+ content?: string | any[] | Record<string, any>;
809
+ name?: string;
810
+ }, {
811
+ function?: string;
812
+ role?: "tool";
813
+ content?: string | any[] | Record<string, any>;
814
+ name?: string;
815
+ }>]>, "many">;
816
+ }, "strip", z.ZodTypeAny, {
817
+ msg?: string;
818
+ history?: ({
819
+ role?: "user" | "assistant" | "system";
820
+ content?: string | ({
821
+ type?: "text";
822
+ text?: string;
823
+ } | {
824
+ type?: "image_url";
825
+ image_url?: {
826
+ url?: string;
827
+ };
828
+ } | {
829
+ type?: "input_audio";
830
+ input_audio?: {
831
+ data?: string;
832
+ format?: string;
833
+ };
834
+ } | {
835
+ video?: string[];
836
+ type?: "video";
837
+ } | {
838
+ type?: "video_url";
839
+ video_url?: {
840
+ url?: string;
841
+ };
842
+ })[];
843
+ } | {
844
+ function?: string;
845
+ role?: "tool";
846
+ arguments?: Record<string, any>;
847
+ } | {
848
+ function?: string;
849
+ role?: "tool";
850
+ content?: string | any[] | Record<string, any>;
851
+ name?: string;
852
+ })[];
853
+ }, {
854
+ msg?: string;
855
+ history?: ({
856
+ role?: "user" | "assistant" | "system";
857
+ content?: string | ({
858
+ type?: "text";
859
+ text?: string;
860
+ } | {
861
+ type?: "image_url";
862
+ image_url?: {
863
+ url?: string;
864
+ };
865
+ } | {
866
+ type?: "input_audio";
867
+ input_audio?: {
868
+ data?: string;
869
+ format?: string;
870
+ };
871
+ } | {
872
+ video?: string[];
873
+ type?: "video";
874
+ } | {
875
+ type?: "video_url";
876
+ video_url?: {
877
+ url?: string;
878
+ };
879
+ })[];
880
+ } | {
881
+ function?: string;
882
+ role?: "tool";
883
+ arguments?: Record<string, any>;
884
+ } | {
885
+ function?: string;
886
+ role?: "tool";
887
+ content?: string | any[] | Record<string, any>;
888
+ name?: string;
889
+ })[];
890
+ }>;
891
+ export type TextContent = z.infer<typeof textContentSchema>;
892
+ export type ImageContent = z.infer<typeof imageContentSchema>;
893
+ export type AudioContent = z.infer<typeof audioContentSchema>;
894
+ export type VideoContent = z.infer<typeof videoContentSchema>;
895
+ export type VideoUrlContent = z.infer<typeof videoUrlContentSchema>;
896
+ export type MessageContent = z.infer<typeof messageContentSchema>;
897
+ export type BaseMessage = z.infer<typeof baseMessageSchema>;
898
+ export type ToolCallMessage = z.infer<typeof toolCallMessageSchema>;
899
+ export type ToolResultMessage = z.infer<typeof toolResultMessageSchema>;
900
+ export type ToolMessage = ToolCallMessage | ToolResultMessage;
901
+ export type MessageItem = z.infer<typeof messageItemSchema>;
902
+ export type MessageHistory = z.infer<typeof messageHistorySchema>;
903
+ export type SendMessageInput = z.infer<typeof sendMessageInputSchema>;