@ag-ui/core 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -55,15 +55,13 @@ declare const BaseMessageSchema: z.ZodObject<{
55
55
  name?: string | undefined;
56
56
  content?: string | undefined;
57
57
  }>;
58
- declare const DeveloperMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
58
+ declare const DeveloperMessageSchema: z.ZodObject<{
59
59
  id: z.ZodString;
60
- role: z.ZodString;
61
- content: z.ZodOptional<z.ZodString>;
62
60
  name: z.ZodOptional<z.ZodString>;
63
- }, {
61
+ } & {
64
62
  role: z.ZodLiteral<"developer">;
65
63
  content: z.ZodString;
66
- }>, "strip", z.ZodTypeAny, {
64
+ }, "strip", z.ZodTypeAny, {
67
65
  id: string;
68
66
  role: "developer";
69
67
  content: string;
@@ -74,15 +72,13 @@ declare const DeveloperMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
74
72
  content: string;
75
73
  name?: string | undefined;
76
74
  }>;
77
- declare const SystemMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
75
+ declare const SystemMessageSchema: z.ZodObject<{
78
76
  id: z.ZodString;
79
- role: z.ZodString;
80
- content: z.ZodOptional<z.ZodString>;
81
77
  name: z.ZodOptional<z.ZodString>;
82
- }, {
78
+ } & {
83
79
  role: z.ZodLiteral<"system">;
84
80
  content: z.ZodString;
85
- }>, "strip", z.ZodTypeAny, {
81
+ }, "strip", z.ZodTypeAny, {
86
82
  id: string;
87
83
  role: "system";
88
84
  content: string;
@@ -93,12 +89,10 @@ declare const SystemMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
93
89
  content: string;
94
90
  name?: string | undefined;
95
91
  }>;
96
- declare const AssistantMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
92
+ declare const AssistantMessageSchema: z.ZodObject<{
97
93
  id: z.ZodString;
98
- role: z.ZodString;
99
- content: z.ZodOptional<z.ZodString>;
100
94
  name: z.ZodOptional<z.ZodString>;
101
- }, {
95
+ } & {
102
96
  role: z.ZodLiteral<"assistant">;
103
97
  content: z.ZodOptional<z.ZodString>;
104
98
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -129,7 +123,7 @@ declare const AssistantMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
129
123
  type: "function";
130
124
  id: string;
131
125
  }>, "many">>;
132
- }>, "strip", z.ZodTypeAny, {
126
+ }, "strip", z.ZodTypeAny, {
133
127
  id: string;
134
128
  role: "assistant";
135
129
  name?: string | undefined;
@@ -156,15 +150,13 @@ declare const AssistantMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
156
150
  id: string;
157
151
  }[] | undefined;
158
152
  }>;
159
- declare const UserMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
153
+ declare const UserMessageSchema: z.ZodObject<{
160
154
  id: z.ZodString;
161
- role: z.ZodString;
162
- content: z.ZodOptional<z.ZodString>;
163
155
  name: z.ZodOptional<z.ZodString>;
164
- }, {
156
+ } & {
165
157
  role: z.ZodLiteral<"user">;
166
158
  content: z.ZodString;
167
- }>, "strip", z.ZodTypeAny, {
159
+ }, "strip", z.ZodTypeAny, {
168
160
  id: string;
169
161
  role: "user";
170
162
  content: string;
@@ -191,15 +183,13 @@ declare const ToolMessageSchema: z.ZodObject<{
191
183
  content: string;
192
184
  toolCallId: string;
193
185
  }>;
194
- declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.objectUtil.extendShape<{
186
+ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
195
187
  id: z.ZodString;
196
- role: z.ZodString;
197
- content: z.ZodOptional<z.ZodString>;
198
188
  name: z.ZodOptional<z.ZodString>;
199
- }, {
189
+ } & {
200
190
  role: z.ZodLiteral<"developer">;
201
191
  content: z.ZodString;
202
- }>, "strip", z.ZodTypeAny, {
192
+ }, "strip", z.ZodTypeAny, {
203
193
  id: string;
204
194
  role: "developer";
205
195
  content: string;
@@ -209,15 +199,13 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.obje
209
199
  role: "developer";
210
200
  content: string;
211
201
  name?: string | undefined;
212
- }>, z.ZodObject<z.objectUtil.extendShape<{
202
+ }>, z.ZodObject<{
213
203
  id: z.ZodString;
214
- role: z.ZodString;
215
- content: z.ZodOptional<z.ZodString>;
216
204
  name: z.ZodOptional<z.ZodString>;
217
- }, {
205
+ } & {
218
206
  role: z.ZodLiteral<"system">;
219
207
  content: z.ZodString;
220
- }>, "strip", z.ZodTypeAny, {
208
+ }, "strip", z.ZodTypeAny, {
221
209
  id: string;
222
210
  role: "system";
223
211
  content: string;
@@ -227,12 +215,10 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.obje
227
215
  role: "system";
228
216
  content: string;
229
217
  name?: string | undefined;
230
- }>, z.ZodObject<z.objectUtil.extendShape<{
218
+ }>, z.ZodObject<{
231
219
  id: z.ZodString;
232
- role: z.ZodString;
233
- content: z.ZodOptional<z.ZodString>;
234
220
  name: z.ZodOptional<z.ZodString>;
235
- }, {
221
+ } & {
236
222
  role: z.ZodLiteral<"assistant">;
237
223
  content: z.ZodOptional<z.ZodString>;
238
224
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -263,7 +249,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.obje
263
249
  type: "function";
264
250
  id: string;
265
251
  }>, "many">>;
266
- }>, "strip", z.ZodTypeAny, {
252
+ }, "strip", z.ZodTypeAny, {
267
253
  id: string;
268
254
  role: "assistant";
269
255
  name?: string | undefined;
@@ -289,15 +275,13 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.obje
289
275
  type: "function";
290
276
  id: string;
291
277
  }[] | undefined;
292
- }>, z.ZodObject<z.objectUtil.extendShape<{
278
+ }>, z.ZodObject<{
293
279
  id: z.ZodString;
294
- role: z.ZodString;
295
- content: z.ZodOptional<z.ZodString>;
296
280
  name: z.ZodOptional<z.ZodString>;
297
- }, {
281
+ } & {
298
282
  role: z.ZodLiteral<"user">;
299
283
  content: z.ZodString;
300
- }>, "strip", z.ZodTypeAny, {
284
+ }, "strip", z.ZodTypeAny, {
301
285
  id: string;
302
286
  role: "user";
303
287
  content: string;
@@ -351,15 +335,13 @@ declare const RunAgentInputSchema: z.ZodObject<{
351
335
  threadId: z.ZodString;
352
336
  runId: z.ZodString;
353
337
  state: z.ZodAny;
354
- messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.objectUtil.extendShape<{
338
+ messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
355
339
  id: z.ZodString;
356
- role: z.ZodString;
357
- content: z.ZodOptional<z.ZodString>;
358
340
  name: z.ZodOptional<z.ZodString>;
359
- }, {
341
+ } & {
360
342
  role: z.ZodLiteral<"developer">;
361
343
  content: z.ZodString;
362
- }>, "strip", z.ZodTypeAny, {
344
+ }, "strip", z.ZodTypeAny, {
363
345
  id: string;
364
346
  role: "developer";
365
347
  content: string;
@@ -369,15 +351,13 @@ declare const RunAgentInputSchema: z.ZodObject<{
369
351
  role: "developer";
370
352
  content: string;
371
353
  name?: string | undefined;
372
- }>, z.ZodObject<z.objectUtil.extendShape<{
354
+ }>, z.ZodObject<{
373
355
  id: z.ZodString;
374
- role: z.ZodString;
375
- content: z.ZodOptional<z.ZodString>;
376
356
  name: z.ZodOptional<z.ZodString>;
377
- }, {
357
+ } & {
378
358
  role: z.ZodLiteral<"system">;
379
359
  content: z.ZodString;
380
- }>, "strip", z.ZodTypeAny, {
360
+ }, "strip", z.ZodTypeAny, {
381
361
  id: string;
382
362
  role: "system";
383
363
  content: string;
@@ -387,12 +367,10 @@ declare const RunAgentInputSchema: z.ZodObject<{
387
367
  role: "system";
388
368
  content: string;
389
369
  name?: string | undefined;
390
- }>, z.ZodObject<z.objectUtil.extendShape<{
370
+ }>, z.ZodObject<{
391
371
  id: z.ZodString;
392
- role: z.ZodString;
393
- content: z.ZodOptional<z.ZodString>;
394
372
  name: z.ZodOptional<z.ZodString>;
395
- }, {
373
+ } & {
396
374
  role: z.ZodLiteral<"assistant">;
397
375
  content: z.ZodOptional<z.ZodString>;
398
376
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -423,7 +401,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
423
401
  type: "function";
424
402
  id: string;
425
403
  }>, "many">>;
426
- }>, "strip", z.ZodTypeAny, {
404
+ }, "strip", z.ZodTypeAny, {
427
405
  id: string;
428
406
  role: "assistant";
429
407
  name?: string | undefined;
@@ -449,15 +427,13 @@ declare const RunAgentInputSchema: z.ZodObject<{
449
427
  type: "function";
450
428
  id: string;
451
429
  }[] | undefined;
452
- }>, z.ZodObject<z.objectUtil.extendShape<{
430
+ }>, z.ZodObject<{
453
431
  id: z.ZodString;
454
- role: z.ZodString;
455
- content: z.ZodOptional<z.ZodString>;
456
432
  name: z.ZodOptional<z.ZodString>;
457
- }, {
433
+ } & {
458
434
  role: z.ZodLiteral<"user">;
459
435
  content: z.ZodString;
460
- }>, "strip", z.ZodTypeAny, {
436
+ }, "strip", z.ZodTypeAny, {
461
437
  id: string;
462
438
  role: "user";
463
439
  content: string;
@@ -627,10 +603,15 @@ declare enum EventType {
627
603
  TEXT_MESSAGE_CONTENT = "TEXT_MESSAGE_CONTENT",
628
604
  TEXT_MESSAGE_END = "TEXT_MESSAGE_END",
629
605
  TEXT_MESSAGE_CHUNK = "TEXT_MESSAGE_CHUNK",
606
+ THINKING_TEXT_MESSAGE_START = "THINKING_TEXT_MESSAGE_START",
607
+ THINKING_TEXT_MESSAGE_CONTENT = "THINKING_TEXT_MESSAGE_CONTENT",
608
+ THINKING_TEXT_MESSAGE_END = "THINKING_TEXT_MESSAGE_END",
630
609
  TOOL_CALL_START = "TOOL_CALL_START",
631
610
  TOOL_CALL_ARGS = "TOOL_CALL_ARGS",
632
611
  TOOL_CALL_END = "TOOL_CALL_END",
633
612
  TOOL_CALL_CHUNK = "TOOL_CALL_CHUNK",
613
+ THINKING_START = "THINKING_START",
614
+ THINKING_END = "THINKING_END",
634
615
  STATE_SNAPSHOT = "STATE_SNAPSHOT",
635
616
  STATE_DELTA = "STATE_DELTA",
636
617
  MESSAGES_SNAPSHOT = "MESSAGES_SNAPSHOT",
@@ -655,15 +636,14 @@ declare const BaseEventSchema: z.ZodObject<{
655
636
  timestamp?: number | undefined;
656
637
  rawEvent?: any;
657
638
  }>;
658
- declare const RunStartedSchema: z.ZodObject<z.objectUtil.extendShape<{
659
- type: z.ZodNativeEnum<typeof EventType>;
639
+ declare const RunStartedSchema: z.ZodObject<{
660
640
  timestamp: z.ZodOptional<z.ZodNumber>;
661
641
  rawEvent: z.ZodOptional<z.ZodAny>;
662
- }, {
642
+ } & {
663
643
  type: z.ZodLiteral<EventType.RUN_STARTED>;
664
644
  threadId: z.ZodString;
665
645
  runId: z.ZodString;
666
- }>, "strip", z.ZodTypeAny, {
646
+ }, "strip", z.ZodTypeAny, {
667
647
  type: EventType.RUN_STARTED;
668
648
  threadId: string;
669
649
  runId: string;
@@ -676,15 +656,14 @@ declare const RunStartedSchema: z.ZodObject<z.objectUtil.extendShape<{
676
656
  timestamp?: number | undefined;
677
657
  rawEvent?: any;
678
658
  }>;
679
- declare const RunFinishedSchema: z.ZodObject<z.objectUtil.extendShape<{
680
- type: z.ZodNativeEnum<typeof EventType>;
659
+ declare const RunFinishedSchema: z.ZodObject<{
681
660
  timestamp: z.ZodOptional<z.ZodNumber>;
682
661
  rawEvent: z.ZodOptional<z.ZodAny>;
683
- }, {
662
+ } & {
684
663
  type: z.ZodLiteral<EventType.RUN_FINISHED>;
685
664
  threadId: z.ZodString;
686
665
  runId: z.ZodString;
687
- }>, "strip", z.ZodTypeAny, {
666
+ }, "strip", z.ZodTypeAny, {
688
667
  type: EventType.RUN_FINISHED;
689
668
  threadId: string;
690
669
  runId: string;
@@ -697,15 +676,14 @@ declare const RunFinishedSchema: z.ZodObject<z.objectUtil.extendShape<{
697
676
  timestamp?: number | undefined;
698
677
  rawEvent?: any;
699
678
  }>;
700
- declare const RunErrorSchema: z.ZodObject<z.objectUtil.extendShape<{
701
- type: z.ZodNativeEnum<typeof EventType>;
679
+ declare const RunErrorSchema: z.ZodObject<{
702
680
  timestamp: z.ZodOptional<z.ZodNumber>;
703
681
  rawEvent: z.ZodOptional<z.ZodAny>;
704
- }, {
682
+ } & {
705
683
  type: z.ZodLiteral<EventType.RUN_ERROR>;
706
684
  message: z.ZodString;
707
685
  code: z.ZodOptional<z.ZodString>;
708
- }>, "strip", z.ZodTypeAny, {
686
+ }, "strip", z.ZodTypeAny, {
709
687
  message: string;
710
688
  type: EventType.RUN_ERROR;
711
689
  code?: string | undefined;
@@ -718,14 +696,13 @@ declare const RunErrorSchema: z.ZodObject<z.objectUtil.extendShape<{
718
696
  timestamp?: number | undefined;
719
697
  rawEvent?: any;
720
698
  }>;
721
- declare const StepStartedSchema: z.ZodObject<z.objectUtil.extendShape<{
722
- type: z.ZodNativeEnum<typeof EventType>;
699
+ declare const StepStartedSchema: z.ZodObject<{
723
700
  timestamp: z.ZodOptional<z.ZodNumber>;
724
701
  rawEvent: z.ZodOptional<z.ZodAny>;
725
- }, {
702
+ } & {
726
703
  type: z.ZodLiteral<EventType.STEP_STARTED>;
727
704
  stepName: z.ZodString;
728
- }>, "strip", z.ZodTypeAny, {
705
+ }, "strip", z.ZodTypeAny, {
729
706
  type: EventType.STEP_STARTED;
730
707
  stepName: string;
731
708
  timestamp?: number | undefined;
@@ -736,14 +713,13 @@ declare const StepStartedSchema: z.ZodObject<z.objectUtil.extendShape<{
736
713
  timestamp?: number | undefined;
737
714
  rawEvent?: any;
738
715
  }>;
739
- declare const StepFinishedSchema: z.ZodObject<z.objectUtil.extendShape<{
740
- type: z.ZodNativeEnum<typeof EventType>;
716
+ declare const StepFinishedSchema: z.ZodObject<{
741
717
  timestamp: z.ZodOptional<z.ZodNumber>;
742
718
  rawEvent: z.ZodOptional<z.ZodAny>;
743
- }, {
719
+ } & {
744
720
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
745
721
  stepName: z.ZodString;
746
- }>, "strip", z.ZodTypeAny, {
722
+ }, "strip", z.ZodTypeAny, {
747
723
  type: EventType.STEP_FINISHED;
748
724
  stepName: string;
749
725
  timestamp?: number | undefined;
@@ -754,15 +730,14 @@ declare const StepFinishedSchema: z.ZodObject<z.objectUtil.extendShape<{
754
730
  timestamp?: number | undefined;
755
731
  rawEvent?: any;
756
732
  }>;
757
- declare const TextMessageStartEventSchema: z.ZodObject<z.objectUtil.extendShape<{
758
- type: z.ZodNativeEnum<typeof EventType>;
733
+ declare const TextMessageStartEventSchema: z.ZodObject<{
759
734
  timestamp: z.ZodOptional<z.ZodNumber>;
760
735
  rawEvent: z.ZodOptional<z.ZodAny>;
761
- }, {
736
+ } & {
762
737
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
763
738
  messageId: z.ZodString;
764
739
  role: z.ZodLiteral<"assistant">;
765
- }>, "strip", z.ZodTypeAny, {
740
+ }, "strip", z.ZodTypeAny, {
766
741
  type: EventType.TEXT_MESSAGE_START;
767
742
  role: "assistant";
768
743
  messageId: string;
@@ -775,15 +750,14 @@ declare const TextMessageStartEventSchema: z.ZodObject<z.objectUtil.extendShape<
775
750
  timestamp?: number | undefined;
776
751
  rawEvent?: any;
777
752
  }>;
778
- declare const TextMessageContentEventSchema: z.ZodObject<z.objectUtil.extendShape<{
779
- type: z.ZodNativeEnum<typeof EventType>;
753
+ declare const TextMessageContentEventSchema: z.ZodObject<{
780
754
  timestamp: z.ZodOptional<z.ZodNumber>;
781
755
  rawEvent: z.ZodOptional<z.ZodAny>;
782
- }, {
756
+ } & {
783
757
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
784
758
  messageId: z.ZodString;
785
759
  delta: z.ZodEffects<z.ZodString, string, string>;
786
- }>, "strip", z.ZodTypeAny, {
760
+ }, "strip", z.ZodTypeAny, {
787
761
  type: EventType.TEXT_MESSAGE_CONTENT;
788
762
  messageId: string;
789
763
  delta: string;
@@ -796,14 +770,13 @@ declare const TextMessageContentEventSchema: z.ZodObject<z.objectUtil.extendShap
796
770
  timestamp?: number | undefined;
797
771
  rawEvent?: any;
798
772
  }>;
799
- declare const TextMessageEndEventSchema: z.ZodObject<z.objectUtil.extendShape<{
800
- type: z.ZodNativeEnum<typeof EventType>;
773
+ declare const TextMessageEndEventSchema: z.ZodObject<{
801
774
  timestamp: z.ZodOptional<z.ZodNumber>;
802
775
  rawEvent: z.ZodOptional<z.ZodAny>;
803
- }, {
776
+ } & {
804
777
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_END>;
805
778
  messageId: z.ZodString;
806
- }>, "strip", z.ZodTypeAny, {
779
+ }, "strip", z.ZodTypeAny, {
807
780
  type: EventType.TEXT_MESSAGE_END;
808
781
  messageId: string;
809
782
  timestamp?: number | undefined;
@@ -814,16 +787,15 @@ declare const TextMessageEndEventSchema: z.ZodObject<z.objectUtil.extendShape<{
814
787
  timestamp?: number | undefined;
815
788
  rawEvent?: any;
816
789
  }>;
817
- declare const TextMessageChunkEventSchema: z.ZodObject<z.objectUtil.extendShape<{
818
- type: z.ZodNativeEnum<typeof EventType>;
790
+ declare const TextMessageChunkEventSchema: z.ZodObject<{
819
791
  timestamp: z.ZodOptional<z.ZodNumber>;
820
792
  rawEvent: z.ZodOptional<z.ZodAny>;
821
- }, {
793
+ } & {
822
794
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_CHUNK>;
823
795
  messageId: z.ZodOptional<z.ZodString>;
824
796
  role: z.ZodOptional<z.ZodLiteral<"assistant">>;
825
797
  delta: z.ZodOptional<z.ZodString>;
826
- }>, "strip", z.ZodTypeAny, {
798
+ }, "strip", z.ZodTypeAny, {
827
799
  type: EventType.TEXT_MESSAGE_CHUNK;
828
800
  role?: "assistant" | undefined;
829
801
  timestamp?: number | undefined;
@@ -838,16 +810,63 @@ declare const TextMessageChunkEventSchema: z.ZodObject<z.objectUtil.extendShape<
838
810
  messageId?: string | undefined;
839
811
  delta?: string | undefined;
840
812
  }>;
841
- declare const ToolCallStartEventSchema: z.ZodObject<z.objectUtil.extendShape<{
842
- type: z.ZodNativeEnum<typeof EventType>;
813
+ declare const ThinkingTextMessageStartEventSchema: z.ZodObject<{
843
814
  timestamp: z.ZodOptional<z.ZodNumber>;
844
815
  rawEvent: z.ZodOptional<z.ZodAny>;
816
+ } & {
817
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_START>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ type: EventType.THINKING_TEXT_MESSAGE_START;
820
+ timestamp?: number | undefined;
821
+ rawEvent?: any;
845
822
  }, {
823
+ type: EventType.THINKING_TEXT_MESSAGE_START;
824
+ timestamp?: number | undefined;
825
+ rawEvent?: any;
826
+ }>;
827
+ declare const ThinkingTextMessageContentEventSchema: z.ZodObject<Omit<{
828
+ timestamp: z.ZodOptional<z.ZodNumber>;
829
+ rawEvent: z.ZodOptional<z.ZodAny>;
830
+ } & {
831
+ type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
832
+ messageId: z.ZodString;
833
+ delta: z.ZodEffects<z.ZodString, string, string>;
834
+ }, "type" | "messageId"> & {
835
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_CONTENT>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ type: EventType.THINKING_TEXT_MESSAGE_CONTENT;
838
+ delta: string;
839
+ timestamp?: number | undefined;
840
+ rawEvent?: any;
841
+ }, {
842
+ type: EventType.THINKING_TEXT_MESSAGE_CONTENT;
843
+ delta: string;
844
+ timestamp?: number | undefined;
845
+ rawEvent?: any;
846
+ }>;
847
+ declare const ThinkingTextMessageEndEventSchema: z.ZodObject<{
848
+ timestamp: z.ZodOptional<z.ZodNumber>;
849
+ rawEvent: z.ZodOptional<z.ZodAny>;
850
+ } & {
851
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_END>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ type: EventType.THINKING_TEXT_MESSAGE_END;
854
+ timestamp?: number | undefined;
855
+ rawEvent?: any;
856
+ }, {
857
+ type: EventType.THINKING_TEXT_MESSAGE_END;
858
+ timestamp?: number | undefined;
859
+ rawEvent?: any;
860
+ }>;
861
+ declare const ToolCallStartEventSchema: z.ZodObject<{
862
+ timestamp: z.ZodOptional<z.ZodNumber>;
863
+ rawEvent: z.ZodOptional<z.ZodAny>;
864
+ } & {
846
865
  type: z.ZodLiteral<EventType.TOOL_CALL_START>;
847
866
  toolCallId: z.ZodString;
848
867
  toolCallName: z.ZodString;
849
868
  parentMessageId: z.ZodOptional<z.ZodString>;
850
- }>, "strip", z.ZodTypeAny, {
869
+ }, "strip", z.ZodTypeAny, {
851
870
  type: EventType.TOOL_CALL_START;
852
871
  toolCallId: string;
853
872
  toolCallName: string;
@@ -862,15 +881,14 @@ declare const ToolCallStartEventSchema: z.ZodObject<z.objectUtil.extendShape<{
862
881
  rawEvent?: any;
863
882
  parentMessageId?: string | undefined;
864
883
  }>;
865
- declare const ToolCallArgsEventSchema: z.ZodObject<z.objectUtil.extendShape<{
866
- type: z.ZodNativeEnum<typeof EventType>;
884
+ declare const ToolCallArgsEventSchema: z.ZodObject<{
867
885
  timestamp: z.ZodOptional<z.ZodNumber>;
868
886
  rawEvent: z.ZodOptional<z.ZodAny>;
869
- }, {
887
+ } & {
870
888
  type: z.ZodLiteral<EventType.TOOL_CALL_ARGS>;
871
889
  toolCallId: z.ZodString;
872
890
  delta: z.ZodString;
873
- }>, "strip", z.ZodTypeAny, {
891
+ }, "strip", z.ZodTypeAny, {
874
892
  type: EventType.TOOL_CALL_ARGS;
875
893
  toolCallId: string;
876
894
  delta: string;
@@ -883,14 +901,13 @@ declare const ToolCallArgsEventSchema: z.ZodObject<z.objectUtil.extendShape<{
883
901
  timestamp?: number | undefined;
884
902
  rawEvent?: any;
885
903
  }>;
886
- declare const ToolCallEndEventSchema: z.ZodObject<z.objectUtil.extendShape<{
887
- type: z.ZodNativeEnum<typeof EventType>;
904
+ declare const ToolCallEndEventSchema: z.ZodObject<{
888
905
  timestamp: z.ZodOptional<z.ZodNumber>;
889
906
  rawEvent: z.ZodOptional<z.ZodAny>;
890
- }, {
907
+ } & {
891
908
  type: z.ZodLiteral<EventType.TOOL_CALL_END>;
892
909
  toolCallId: z.ZodString;
893
- }>, "strip", z.ZodTypeAny, {
910
+ }, "strip", z.ZodTypeAny, {
894
911
  type: EventType.TOOL_CALL_END;
895
912
  toolCallId: string;
896
913
  timestamp?: number | undefined;
@@ -901,17 +918,16 @@ declare const ToolCallEndEventSchema: z.ZodObject<z.objectUtil.extendShape<{
901
918
  timestamp?: number | undefined;
902
919
  rawEvent?: any;
903
920
  }>;
904
- declare const ToolCallChunkEventSchema: z.ZodObject<z.objectUtil.extendShape<{
905
- type: z.ZodNativeEnum<typeof EventType>;
921
+ declare const ToolCallChunkEventSchema: z.ZodObject<{
906
922
  timestamp: z.ZodOptional<z.ZodNumber>;
907
923
  rawEvent: z.ZodOptional<z.ZodAny>;
908
- }, {
924
+ } & {
909
925
  type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
910
926
  toolCallId: z.ZodOptional<z.ZodString>;
911
927
  toolCallName: z.ZodOptional<z.ZodString>;
912
928
  parentMessageId: z.ZodOptional<z.ZodString>;
913
929
  delta: z.ZodOptional<z.ZodString>;
914
- }>, "strip", z.ZodTypeAny, {
930
+ }, "strip", z.ZodTypeAny, {
915
931
  type: EventType.TOOL_CALL_CHUNK;
916
932
  toolCallId?: string | undefined;
917
933
  timestamp?: number | undefined;
@@ -928,14 +944,44 @@ declare const ToolCallChunkEventSchema: z.ZodObject<z.objectUtil.extendShape<{
928
944
  toolCallName?: string | undefined;
929
945
  parentMessageId?: string | undefined;
930
946
  }>;
931
- declare const StateSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<{
932
- type: z.ZodNativeEnum<typeof EventType>;
947
+ declare const ThinkingStartEventSchema: z.ZodObject<{
933
948
  timestamp: z.ZodOptional<z.ZodNumber>;
934
949
  rawEvent: z.ZodOptional<z.ZodAny>;
950
+ } & {
951
+ type: z.ZodLiteral<EventType.THINKING_START>;
952
+ title: z.ZodOptional<z.ZodString>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ type: EventType.THINKING_START;
955
+ timestamp?: number | undefined;
956
+ rawEvent?: any;
957
+ title?: string | undefined;
935
958
  }, {
959
+ type: EventType.THINKING_START;
960
+ timestamp?: number | undefined;
961
+ rawEvent?: any;
962
+ title?: string | undefined;
963
+ }>;
964
+ declare const ThinkingEndEventSchema: z.ZodObject<{
965
+ timestamp: z.ZodOptional<z.ZodNumber>;
966
+ rawEvent: z.ZodOptional<z.ZodAny>;
967
+ } & {
968
+ type: z.ZodLiteral<EventType.THINKING_END>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: EventType.THINKING_END;
971
+ timestamp?: number | undefined;
972
+ rawEvent?: any;
973
+ }, {
974
+ type: EventType.THINKING_END;
975
+ timestamp?: number | undefined;
976
+ rawEvent?: any;
977
+ }>;
978
+ declare const StateSnapshotEventSchema: z.ZodObject<{
979
+ timestamp: z.ZodOptional<z.ZodNumber>;
980
+ rawEvent: z.ZodOptional<z.ZodAny>;
981
+ } & {
936
982
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
937
983
  snapshot: z.ZodAny;
938
- }>, "strip", z.ZodTypeAny, {
984
+ }, "strip", z.ZodTypeAny, {
939
985
  type: EventType.STATE_SNAPSHOT;
940
986
  timestamp?: number | undefined;
941
987
  rawEvent?: any;
@@ -946,14 +992,13 @@ declare const StateSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<{
946
992
  rawEvent?: any;
947
993
  snapshot?: any;
948
994
  }>;
949
- declare const StateDeltaEventSchema: z.ZodObject<z.objectUtil.extendShape<{
950
- type: z.ZodNativeEnum<typeof EventType>;
995
+ declare const StateDeltaEventSchema: z.ZodObject<{
951
996
  timestamp: z.ZodOptional<z.ZodNumber>;
952
997
  rawEvent: z.ZodOptional<z.ZodAny>;
953
- }, {
998
+ } & {
954
999
  type: z.ZodLiteral<EventType.STATE_DELTA>;
955
1000
  delta: z.ZodArray<z.ZodAny, "many">;
956
- }>, "strip", z.ZodTypeAny, {
1001
+ }, "strip", z.ZodTypeAny, {
957
1002
  type: EventType.STATE_DELTA;
958
1003
  delta: any[];
959
1004
  timestamp?: number | undefined;
@@ -964,21 +1009,18 @@ declare const StateDeltaEventSchema: z.ZodObject<z.objectUtil.extendShape<{
964
1009
  timestamp?: number | undefined;
965
1010
  rawEvent?: any;
966
1011
  }>;
967
- declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<{
968
- type: z.ZodNativeEnum<typeof EventType>;
1012
+ declare const MessagesSnapshotEventSchema: z.ZodObject<{
969
1013
  timestamp: z.ZodOptional<z.ZodNumber>;
970
1014
  rawEvent: z.ZodOptional<z.ZodAny>;
971
- }, {
1015
+ } & {
972
1016
  type: z.ZodLiteral<EventType.MESSAGES_SNAPSHOT>;
973
- messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.objectUtil.extendShape<{
1017
+ messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
974
1018
  id: z.ZodString;
975
- role: z.ZodString;
976
- content: z.ZodOptional<z.ZodString>;
977
1019
  name: z.ZodOptional<z.ZodString>;
978
- }, {
1020
+ } & {
979
1021
  role: z.ZodLiteral<"developer">;
980
1022
  content: z.ZodString;
981
- }>, "strip", z.ZodTypeAny, {
1023
+ }, "strip", z.ZodTypeAny, {
982
1024
  id: string;
983
1025
  role: "developer";
984
1026
  content: string;
@@ -988,15 +1030,13 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
988
1030
  role: "developer";
989
1031
  content: string;
990
1032
  name?: string | undefined;
991
- }>, z.ZodObject<z.objectUtil.extendShape<{
1033
+ }>, z.ZodObject<{
992
1034
  id: z.ZodString;
993
- role: z.ZodString;
994
- content: z.ZodOptional<z.ZodString>;
995
1035
  name: z.ZodOptional<z.ZodString>;
996
- }, {
1036
+ } & {
997
1037
  role: z.ZodLiteral<"system">;
998
1038
  content: z.ZodString;
999
- }>, "strip", z.ZodTypeAny, {
1039
+ }, "strip", z.ZodTypeAny, {
1000
1040
  id: string;
1001
1041
  role: "system";
1002
1042
  content: string;
@@ -1006,12 +1046,10 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
1006
1046
  role: "system";
1007
1047
  content: string;
1008
1048
  name?: string | undefined;
1009
- }>, z.ZodObject<z.objectUtil.extendShape<{
1049
+ }>, z.ZodObject<{
1010
1050
  id: z.ZodString;
1011
- role: z.ZodString;
1012
- content: z.ZodOptional<z.ZodString>;
1013
1051
  name: z.ZodOptional<z.ZodString>;
1014
- }, {
1052
+ } & {
1015
1053
  role: z.ZodLiteral<"assistant">;
1016
1054
  content: z.ZodOptional<z.ZodString>;
1017
1055
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1042,7 +1080,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
1042
1080
  type: "function";
1043
1081
  id: string;
1044
1082
  }>, "many">>;
1045
- }>, "strip", z.ZodTypeAny, {
1083
+ }, "strip", z.ZodTypeAny, {
1046
1084
  id: string;
1047
1085
  role: "assistant";
1048
1086
  name?: string | undefined;
@@ -1068,15 +1106,13 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
1068
1106
  type: "function";
1069
1107
  id: string;
1070
1108
  }[] | undefined;
1071
- }>, z.ZodObject<z.objectUtil.extendShape<{
1109
+ }>, z.ZodObject<{
1072
1110
  id: z.ZodString;
1073
- role: z.ZodString;
1074
- content: z.ZodOptional<z.ZodString>;
1075
1111
  name: z.ZodOptional<z.ZodString>;
1076
- }, {
1112
+ } & {
1077
1113
  role: z.ZodLiteral<"user">;
1078
1114
  content: z.ZodString;
1079
- }>, "strip", z.ZodTypeAny, {
1115
+ }, "strip", z.ZodTypeAny, {
1080
1116
  id: string;
1081
1117
  role: "user";
1082
1118
  content: string;
@@ -1102,7 +1138,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
1102
1138
  content: string;
1103
1139
  toolCallId: string;
1104
1140
  }>]>, "many">;
1105
- }>, "strip", z.ZodTypeAny, {
1141
+ }, "strip", z.ZodTypeAny, {
1106
1142
  type: EventType.MESSAGES_SNAPSHOT;
1107
1143
  messages: ({
1108
1144
  id: string;
@@ -1179,15 +1215,14 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<z.objectUtil.extendShape<
1179
1215
  timestamp?: number | undefined;
1180
1216
  rawEvent?: any;
1181
1217
  }>;
1182
- declare const RawEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1183
- type: z.ZodNativeEnum<typeof EventType>;
1218
+ declare const RawEventSchema: z.ZodObject<{
1184
1219
  timestamp: z.ZodOptional<z.ZodNumber>;
1185
1220
  rawEvent: z.ZodOptional<z.ZodAny>;
1186
- }, {
1221
+ } & {
1187
1222
  type: z.ZodLiteral<EventType.RAW>;
1188
1223
  event: z.ZodAny;
1189
1224
  source: z.ZodOptional<z.ZodString>;
1190
- }>, "strip", z.ZodTypeAny, {
1225
+ }, "strip", z.ZodTypeAny, {
1191
1226
  type: EventType.RAW;
1192
1227
  timestamp?: number | undefined;
1193
1228
  rawEvent?: any;
@@ -1200,15 +1235,14 @@ declare const RawEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1200
1235
  event?: any;
1201
1236
  source?: string | undefined;
1202
1237
  }>;
1203
- declare const CustomEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1204
- type: z.ZodNativeEnum<typeof EventType>;
1238
+ declare const CustomEventSchema: z.ZodObject<{
1205
1239
  timestamp: z.ZodOptional<z.ZodNumber>;
1206
1240
  rawEvent: z.ZodOptional<z.ZodAny>;
1207
- }, {
1241
+ } & {
1208
1242
  type: z.ZodLiteral<EventType.CUSTOM>;
1209
1243
  name: z.ZodString;
1210
1244
  value: z.ZodAny;
1211
- }>, "strip", z.ZodTypeAny, {
1245
+ }, "strip", z.ZodTypeAny, {
1212
1246
  name: string;
1213
1247
  type: EventType.CUSTOM;
1214
1248
  value?: any;
@@ -1221,15 +1255,14 @@ declare const CustomEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1221
1255
  timestamp?: number | undefined;
1222
1256
  rawEvent?: any;
1223
1257
  }>;
1224
- declare const RunStartedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1225
- type: z.ZodNativeEnum<typeof EventType>;
1258
+ declare const RunStartedEventSchema: z.ZodObject<{
1226
1259
  timestamp: z.ZodOptional<z.ZodNumber>;
1227
1260
  rawEvent: z.ZodOptional<z.ZodAny>;
1228
- }, {
1261
+ } & {
1229
1262
  type: z.ZodLiteral<EventType.RUN_STARTED>;
1230
1263
  threadId: z.ZodString;
1231
1264
  runId: z.ZodString;
1232
- }>, "strip", z.ZodTypeAny, {
1265
+ }, "strip", z.ZodTypeAny, {
1233
1266
  type: EventType.RUN_STARTED;
1234
1267
  threadId: string;
1235
1268
  runId: string;
@@ -1242,15 +1275,14 @@ declare const RunStartedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1242
1275
  timestamp?: number | undefined;
1243
1276
  rawEvent?: any;
1244
1277
  }>;
1245
- declare const RunFinishedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1246
- type: z.ZodNativeEnum<typeof EventType>;
1278
+ declare const RunFinishedEventSchema: z.ZodObject<{
1247
1279
  timestamp: z.ZodOptional<z.ZodNumber>;
1248
1280
  rawEvent: z.ZodOptional<z.ZodAny>;
1249
- }, {
1281
+ } & {
1250
1282
  type: z.ZodLiteral<EventType.RUN_FINISHED>;
1251
1283
  threadId: z.ZodString;
1252
1284
  runId: z.ZodString;
1253
- }>, "strip", z.ZodTypeAny, {
1285
+ }, "strip", z.ZodTypeAny, {
1254
1286
  type: EventType.RUN_FINISHED;
1255
1287
  threadId: string;
1256
1288
  runId: string;
@@ -1263,15 +1295,14 @@ declare const RunFinishedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1263
1295
  timestamp?: number | undefined;
1264
1296
  rawEvent?: any;
1265
1297
  }>;
1266
- declare const RunErrorEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1267
- type: z.ZodNativeEnum<typeof EventType>;
1298
+ declare const RunErrorEventSchema: z.ZodObject<{
1268
1299
  timestamp: z.ZodOptional<z.ZodNumber>;
1269
1300
  rawEvent: z.ZodOptional<z.ZodAny>;
1270
- }, {
1301
+ } & {
1271
1302
  type: z.ZodLiteral<EventType.RUN_ERROR>;
1272
1303
  message: z.ZodString;
1273
1304
  code: z.ZodOptional<z.ZodString>;
1274
- }>, "strip", z.ZodTypeAny, {
1305
+ }, "strip", z.ZodTypeAny, {
1275
1306
  message: string;
1276
1307
  type: EventType.RUN_ERROR;
1277
1308
  code?: string | undefined;
@@ -1284,14 +1315,13 @@ declare const RunErrorEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1284
1315
  timestamp?: number | undefined;
1285
1316
  rawEvent?: any;
1286
1317
  }>;
1287
- declare const StepStartedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1288
- type: z.ZodNativeEnum<typeof EventType>;
1318
+ declare const StepStartedEventSchema: z.ZodObject<{
1289
1319
  timestamp: z.ZodOptional<z.ZodNumber>;
1290
1320
  rawEvent: z.ZodOptional<z.ZodAny>;
1291
- }, {
1321
+ } & {
1292
1322
  type: z.ZodLiteral<EventType.STEP_STARTED>;
1293
1323
  stepName: z.ZodString;
1294
- }>, "strip", z.ZodTypeAny, {
1324
+ }, "strip", z.ZodTypeAny, {
1295
1325
  type: EventType.STEP_STARTED;
1296
1326
  stepName: string;
1297
1327
  timestamp?: number | undefined;
@@ -1302,14 +1332,13 @@ declare const StepStartedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1302
1332
  timestamp?: number | undefined;
1303
1333
  rawEvent?: any;
1304
1334
  }>;
1305
- declare const StepFinishedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1306
- type: z.ZodNativeEnum<typeof EventType>;
1335
+ declare const StepFinishedEventSchema: z.ZodObject<{
1307
1336
  timestamp: z.ZodOptional<z.ZodNumber>;
1308
1337
  rawEvent: z.ZodOptional<z.ZodAny>;
1309
- }, {
1338
+ } & {
1310
1339
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
1311
1340
  stepName: z.ZodString;
1312
- }>, "strip", z.ZodTypeAny, {
1341
+ }, "strip", z.ZodTypeAny, {
1313
1342
  type: EventType.STEP_FINISHED;
1314
1343
  stepName: string;
1315
1344
  timestamp?: number | undefined;
@@ -1320,15 +1349,14 @@ declare const StepFinishedEventSchema: z.ZodObject<z.objectUtil.extendShape<{
1320
1349
  timestamp?: number | undefined;
1321
1350
  rawEvent?: any;
1322
1351
  }>;
1323
- declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1324
- type: z.ZodNativeEnum<typeof EventType>;
1352
+ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1325
1353
  timestamp: z.ZodOptional<z.ZodNumber>;
1326
1354
  rawEvent: z.ZodOptional<z.ZodAny>;
1327
- }, {
1355
+ } & {
1328
1356
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
1329
1357
  messageId: z.ZodString;
1330
1358
  role: z.ZodLiteral<"assistant">;
1331
- }>, "strip", z.ZodTypeAny, {
1359
+ }, "strip", z.ZodTypeAny, {
1332
1360
  type: EventType.TEXT_MESSAGE_START;
1333
1361
  role: "assistant";
1334
1362
  messageId: string;
@@ -1340,15 +1368,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1340
1368
  messageId: string;
1341
1369
  timestamp?: number | undefined;
1342
1370
  rawEvent?: any;
1343
- }>, z.ZodObject<z.objectUtil.extendShape<{
1344
- type: z.ZodNativeEnum<typeof EventType>;
1371
+ }>, z.ZodObject<{
1345
1372
  timestamp: z.ZodOptional<z.ZodNumber>;
1346
1373
  rawEvent: z.ZodOptional<z.ZodAny>;
1347
- }, {
1374
+ } & {
1348
1375
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
1349
1376
  messageId: z.ZodString;
1350
1377
  delta: z.ZodEffects<z.ZodString, string, string>;
1351
- }>, "strip", z.ZodTypeAny, {
1378
+ }, "strip", z.ZodTypeAny, {
1352
1379
  type: EventType.TEXT_MESSAGE_CONTENT;
1353
1380
  messageId: string;
1354
1381
  delta: string;
@@ -1360,14 +1387,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1360
1387
  delta: string;
1361
1388
  timestamp?: number | undefined;
1362
1389
  rawEvent?: any;
1363
- }>, z.ZodObject<z.objectUtil.extendShape<{
1364
- type: z.ZodNativeEnum<typeof EventType>;
1390
+ }>, z.ZodObject<{
1365
1391
  timestamp: z.ZodOptional<z.ZodNumber>;
1366
1392
  rawEvent: z.ZodOptional<z.ZodAny>;
1367
- }, {
1393
+ } & {
1368
1394
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_END>;
1369
1395
  messageId: z.ZodString;
1370
- }>, "strip", z.ZodTypeAny, {
1396
+ }, "strip", z.ZodTypeAny, {
1371
1397
  type: EventType.TEXT_MESSAGE_END;
1372
1398
  messageId: string;
1373
1399
  timestamp?: number | undefined;
@@ -1377,16 +1403,15 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1377
1403
  messageId: string;
1378
1404
  timestamp?: number | undefined;
1379
1405
  rawEvent?: any;
1380
- }>, z.ZodObject<z.objectUtil.extendShape<{
1381
- type: z.ZodNativeEnum<typeof EventType>;
1406
+ }>, z.ZodObject<{
1382
1407
  timestamp: z.ZodOptional<z.ZodNumber>;
1383
1408
  rawEvent: z.ZodOptional<z.ZodAny>;
1384
- }, {
1409
+ } & {
1385
1410
  type: z.ZodLiteral<EventType.TEXT_MESSAGE_CHUNK>;
1386
1411
  messageId: z.ZodOptional<z.ZodString>;
1387
1412
  role: z.ZodOptional<z.ZodLiteral<"assistant">>;
1388
1413
  delta: z.ZodOptional<z.ZodString>;
1389
- }>, "strip", z.ZodTypeAny, {
1414
+ }, "strip", z.ZodTypeAny, {
1390
1415
  type: EventType.TEXT_MESSAGE_CHUNK;
1391
1416
  role?: "assistant" | undefined;
1392
1417
  timestamp?: number | undefined;
@@ -1400,16 +1425,60 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1400
1425
  rawEvent?: any;
1401
1426
  messageId?: string | undefined;
1402
1427
  delta?: string | undefined;
1403
- }>, z.ZodObject<z.objectUtil.extendShape<{
1404
- type: z.ZodNativeEnum<typeof EventType>;
1428
+ }>, z.ZodObject<{
1405
1429
  timestamp: z.ZodOptional<z.ZodNumber>;
1406
1430
  rawEvent: z.ZodOptional<z.ZodAny>;
1431
+ } & {
1432
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_START>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ type: EventType.THINKING_TEXT_MESSAGE_START;
1435
+ timestamp?: number | undefined;
1436
+ rawEvent?: any;
1437
+ }, {
1438
+ type: EventType.THINKING_TEXT_MESSAGE_START;
1439
+ timestamp?: number | undefined;
1440
+ rawEvent?: any;
1441
+ }>, z.ZodObject<Omit<{
1442
+ timestamp: z.ZodOptional<z.ZodNumber>;
1443
+ rawEvent: z.ZodOptional<z.ZodAny>;
1444
+ } & {
1445
+ type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
1446
+ messageId: z.ZodString;
1447
+ delta: z.ZodEffects<z.ZodString, string, string>;
1448
+ }, "type" | "messageId"> & {
1449
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_CONTENT>;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ type: EventType.THINKING_TEXT_MESSAGE_CONTENT;
1452
+ delta: string;
1453
+ timestamp?: number | undefined;
1454
+ rawEvent?: any;
1455
+ }, {
1456
+ type: EventType.THINKING_TEXT_MESSAGE_CONTENT;
1457
+ delta: string;
1458
+ timestamp?: number | undefined;
1459
+ rawEvent?: any;
1460
+ }>, z.ZodObject<{
1461
+ timestamp: z.ZodOptional<z.ZodNumber>;
1462
+ rawEvent: z.ZodOptional<z.ZodAny>;
1463
+ } & {
1464
+ type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_END>;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ type: EventType.THINKING_TEXT_MESSAGE_END;
1467
+ timestamp?: number | undefined;
1468
+ rawEvent?: any;
1407
1469
  }, {
1470
+ type: EventType.THINKING_TEXT_MESSAGE_END;
1471
+ timestamp?: number | undefined;
1472
+ rawEvent?: any;
1473
+ }>, z.ZodObject<{
1474
+ timestamp: z.ZodOptional<z.ZodNumber>;
1475
+ rawEvent: z.ZodOptional<z.ZodAny>;
1476
+ } & {
1408
1477
  type: z.ZodLiteral<EventType.TOOL_CALL_START>;
1409
1478
  toolCallId: z.ZodString;
1410
1479
  toolCallName: z.ZodString;
1411
1480
  parentMessageId: z.ZodOptional<z.ZodString>;
1412
- }>, "strip", z.ZodTypeAny, {
1481
+ }, "strip", z.ZodTypeAny, {
1413
1482
  type: EventType.TOOL_CALL_START;
1414
1483
  toolCallId: string;
1415
1484
  toolCallName: string;
@@ -1423,15 +1492,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1423
1492
  timestamp?: number | undefined;
1424
1493
  rawEvent?: any;
1425
1494
  parentMessageId?: string | undefined;
1426
- }>, z.ZodObject<z.objectUtil.extendShape<{
1427
- type: z.ZodNativeEnum<typeof EventType>;
1495
+ }>, z.ZodObject<{
1428
1496
  timestamp: z.ZodOptional<z.ZodNumber>;
1429
1497
  rawEvent: z.ZodOptional<z.ZodAny>;
1430
- }, {
1498
+ } & {
1431
1499
  type: z.ZodLiteral<EventType.TOOL_CALL_ARGS>;
1432
1500
  toolCallId: z.ZodString;
1433
1501
  delta: z.ZodString;
1434
- }>, "strip", z.ZodTypeAny, {
1502
+ }, "strip", z.ZodTypeAny, {
1435
1503
  type: EventType.TOOL_CALL_ARGS;
1436
1504
  toolCallId: string;
1437
1505
  delta: string;
@@ -1443,14 +1511,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1443
1511
  delta: string;
1444
1512
  timestamp?: number | undefined;
1445
1513
  rawEvent?: any;
1446
- }>, z.ZodObject<z.objectUtil.extendShape<{
1447
- type: z.ZodNativeEnum<typeof EventType>;
1514
+ }>, z.ZodObject<{
1448
1515
  timestamp: z.ZodOptional<z.ZodNumber>;
1449
1516
  rawEvent: z.ZodOptional<z.ZodAny>;
1450
- }, {
1517
+ } & {
1451
1518
  type: z.ZodLiteral<EventType.TOOL_CALL_END>;
1452
1519
  toolCallId: z.ZodString;
1453
- }>, "strip", z.ZodTypeAny, {
1520
+ }, "strip", z.ZodTypeAny, {
1454
1521
  type: EventType.TOOL_CALL_END;
1455
1522
  toolCallId: string;
1456
1523
  timestamp?: number | undefined;
@@ -1460,17 +1527,16 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1460
1527
  toolCallId: string;
1461
1528
  timestamp?: number | undefined;
1462
1529
  rawEvent?: any;
1463
- }>, z.ZodObject<z.objectUtil.extendShape<{
1464
- type: z.ZodNativeEnum<typeof EventType>;
1530
+ }>, z.ZodObject<{
1465
1531
  timestamp: z.ZodOptional<z.ZodNumber>;
1466
1532
  rawEvent: z.ZodOptional<z.ZodAny>;
1467
- }, {
1533
+ } & {
1468
1534
  type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
1469
1535
  toolCallId: z.ZodOptional<z.ZodString>;
1470
1536
  toolCallName: z.ZodOptional<z.ZodString>;
1471
1537
  parentMessageId: z.ZodOptional<z.ZodString>;
1472
1538
  delta: z.ZodOptional<z.ZodString>;
1473
- }>, "strip", z.ZodTypeAny, {
1539
+ }, "strip", z.ZodTypeAny, {
1474
1540
  type: EventType.TOOL_CALL_CHUNK;
1475
1541
  toolCallId?: string | undefined;
1476
1542
  timestamp?: number | undefined;
@@ -1486,14 +1552,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1486
1552
  delta?: string | undefined;
1487
1553
  toolCallName?: string | undefined;
1488
1554
  parentMessageId?: string | undefined;
1489
- }>, z.ZodObject<z.objectUtil.extendShape<{
1490
- type: z.ZodNativeEnum<typeof EventType>;
1555
+ }>, z.ZodObject<{
1491
1556
  timestamp: z.ZodOptional<z.ZodNumber>;
1492
1557
  rawEvent: z.ZodOptional<z.ZodAny>;
1493
- }, {
1558
+ } & {
1494
1559
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
1495
1560
  snapshot: z.ZodAny;
1496
- }>, "strip", z.ZodTypeAny, {
1561
+ }, "strip", z.ZodTypeAny, {
1497
1562
  type: EventType.STATE_SNAPSHOT;
1498
1563
  timestamp?: number | undefined;
1499
1564
  rawEvent?: any;
@@ -1503,14 +1568,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1503
1568
  timestamp?: number | undefined;
1504
1569
  rawEvent?: any;
1505
1570
  snapshot?: any;
1506
- }>, z.ZodObject<z.objectUtil.extendShape<{
1507
- type: z.ZodNativeEnum<typeof EventType>;
1571
+ }>, z.ZodObject<{
1508
1572
  timestamp: z.ZodOptional<z.ZodNumber>;
1509
1573
  rawEvent: z.ZodOptional<z.ZodAny>;
1510
- }, {
1574
+ } & {
1511
1575
  type: z.ZodLiteral<EventType.STATE_DELTA>;
1512
1576
  delta: z.ZodArray<z.ZodAny, "many">;
1513
- }>, "strip", z.ZodTypeAny, {
1577
+ }, "strip", z.ZodTypeAny, {
1514
1578
  type: EventType.STATE_DELTA;
1515
1579
  delta: any[];
1516
1580
  timestamp?: number | undefined;
@@ -1520,21 +1584,18 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1520
1584
  delta: any[];
1521
1585
  timestamp?: number | undefined;
1522
1586
  rawEvent?: any;
1523
- }>, z.ZodObject<z.objectUtil.extendShape<{
1524
- type: z.ZodNativeEnum<typeof EventType>;
1587
+ }>, z.ZodObject<{
1525
1588
  timestamp: z.ZodOptional<z.ZodNumber>;
1526
1589
  rawEvent: z.ZodOptional<z.ZodAny>;
1527
- }, {
1590
+ } & {
1528
1591
  type: z.ZodLiteral<EventType.MESSAGES_SNAPSHOT>;
1529
- messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<z.objectUtil.extendShape<{
1592
+ messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1530
1593
  id: z.ZodString;
1531
- role: z.ZodString;
1532
- content: z.ZodOptional<z.ZodString>;
1533
1594
  name: z.ZodOptional<z.ZodString>;
1534
- }, {
1595
+ } & {
1535
1596
  role: z.ZodLiteral<"developer">;
1536
1597
  content: z.ZodString;
1537
- }>, "strip", z.ZodTypeAny, {
1598
+ }, "strip", z.ZodTypeAny, {
1538
1599
  id: string;
1539
1600
  role: "developer";
1540
1601
  content: string;
@@ -1544,15 +1605,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1544
1605
  role: "developer";
1545
1606
  content: string;
1546
1607
  name?: string | undefined;
1547
- }>, z.ZodObject<z.objectUtil.extendShape<{
1608
+ }>, z.ZodObject<{
1548
1609
  id: z.ZodString;
1549
- role: z.ZodString;
1550
- content: z.ZodOptional<z.ZodString>;
1551
1610
  name: z.ZodOptional<z.ZodString>;
1552
- }, {
1611
+ } & {
1553
1612
  role: z.ZodLiteral<"system">;
1554
1613
  content: z.ZodString;
1555
- }>, "strip", z.ZodTypeAny, {
1614
+ }, "strip", z.ZodTypeAny, {
1556
1615
  id: string;
1557
1616
  role: "system";
1558
1617
  content: string;
@@ -1562,12 +1621,10 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1562
1621
  role: "system";
1563
1622
  content: string;
1564
1623
  name?: string | undefined;
1565
- }>, z.ZodObject<z.objectUtil.extendShape<{
1624
+ }>, z.ZodObject<{
1566
1625
  id: z.ZodString;
1567
- role: z.ZodString;
1568
- content: z.ZodOptional<z.ZodString>;
1569
1626
  name: z.ZodOptional<z.ZodString>;
1570
- }, {
1627
+ } & {
1571
1628
  role: z.ZodLiteral<"assistant">;
1572
1629
  content: z.ZodOptional<z.ZodString>;
1573
1630
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1598,7 +1655,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1598
1655
  type: "function";
1599
1656
  id: string;
1600
1657
  }>, "many">>;
1601
- }>, "strip", z.ZodTypeAny, {
1658
+ }, "strip", z.ZodTypeAny, {
1602
1659
  id: string;
1603
1660
  role: "assistant";
1604
1661
  name?: string | undefined;
@@ -1624,15 +1681,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1624
1681
  type: "function";
1625
1682
  id: string;
1626
1683
  }[] | undefined;
1627
- }>, z.ZodObject<z.objectUtil.extendShape<{
1684
+ }>, z.ZodObject<{
1628
1685
  id: z.ZodString;
1629
- role: z.ZodString;
1630
- content: z.ZodOptional<z.ZodString>;
1631
1686
  name: z.ZodOptional<z.ZodString>;
1632
- }, {
1687
+ } & {
1633
1688
  role: z.ZodLiteral<"user">;
1634
1689
  content: z.ZodString;
1635
- }>, "strip", z.ZodTypeAny, {
1690
+ }, "strip", z.ZodTypeAny, {
1636
1691
  id: string;
1637
1692
  role: "user";
1638
1693
  content: string;
@@ -1658,7 +1713,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1658
1713
  content: string;
1659
1714
  toolCallId: string;
1660
1715
  }>]>, "many">;
1661
- }>, "strip", z.ZodTypeAny, {
1716
+ }, "strip", z.ZodTypeAny, {
1662
1717
  type: EventType.MESSAGES_SNAPSHOT;
1663
1718
  messages: ({
1664
1719
  id: string;
@@ -1734,15 +1789,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1734
1789
  })[];
1735
1790
  timestamp?: number | undefined;
1736
1791
  rawEvent?: any;
1737
- }>, z.ZodObject<z.objectUtil.extendShape<{
1738
- type: z.ZodNativeEnum<typeof EventType>;
1792
+ }>, z.ZodObject<{
1739
1793
  timestamp: z.ZodOptional<z.ZodNumber>;
1740
1794
  rawEvent: z.ZodOptional<z.ZodAny>;
1741
- }, {
1795
+ } & {
1742
1796
  type: z.ZodLiteral<EventType.RAW>;
1743
1797
  event: z.ZodAny;
1744
1798
  source: z.ZodOptional<z.ZodString>;
1745
- }>, "strip", z.ZodTypeAny, {
1799
+ }, "strip", z.ZodTypeAny, {
1746
1800
  type: EventType.RAW;
1747
1801
  timestamp?: number | undefined;
1748
1802
  rawEvent?: any;
@@ -1754,15 +1808,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1754
1808
  rawEvent?: any;
1755
1809
  event?: any;
1756
1810
  source?: string | undefined;
1757
- }>, z.ZodObject<z.objectUtil.extendShape<{
1758
- type: z.ZodNativeEnum<typeof EventType>;
1811
+ }>, z.ZodObject<{
1759
1812
  timestamp: z.ZodOptional<z.ZodNumber>;
1760
1813
  rawEvent: z.ZodOptional<z.ZodAny>;
1761
- }, {
1814
+ } & {
1762
1815
  type: z.ZodLiteral<EventType.CUSTOM>;
1763
1816
  name: z.ZodString;
1764
1817
  value: z.ZodAny;
1765
- }>, "strip", z.ZodTypeAny, {
1818
+ }, "strip", z.ZodTypeAny, {
1766
1819
  name: string;
1767
1820
  type: EventType.CUSTOM;
1768
1821
  value?: any;
@@ -1774,15 +1827,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1774
1827
  value?: any;
1775
1828
  timestamp?: number | undefined;
1776
1829
  rawEvent?: any;
1777
- }>, z.ZodObject<z.objectUtil.extendShape<{
1778
- type: z.ZodNativeEnum<typeof EventType>;
1830
+ }>, z.ZodObject<{
1779
1831
  timestamp: z.ZodOptional<z.ZodNumber>;
1780
1832
  rawEvent: z.ZodOptional<z.ZodAny>;
1781
- }, {
1833
+ } & {
1782
1834
  type: z.ZodLiteral<EventType.RUN_STARTED>;
1783
1835
  threadId: z.ZodString;
1784
1836
  runId: z.ZodString;
1785
- }>, "strip", z.ZodTypeAny, {
1837
+ }, "strip", z.ZodTypeAny, {
1786
1838
  type: EventType.RUN_STARTED;
1787
1839
  threadId: string;
1788
1840
  runId: string;
@@ -1794,15 +1846,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1794
1846
  runId: string;
1795
1847
  timestamp?: number | undefined;
1796
1848
  rawEvent?: any;
1797
- }>, z.ZodObject<z.objectUtil.extendShape<{
1798
- type: z.ZodNativeEnum<typeof EventType>;
1849
+ }>, z.ZodObject<{
1799
1850
  timestamp: z.ZodOptional<z.ZodNumber>;
1800
1851
  rawEvent: z.ZodOptional<z.ZodAny>;
1801
- }, {
1852
+ } & {
1802
1853
  type: z.ZodLiteral<EventType.RUN_FINISHED>;
1803
1854
  threadId: z.ZodString;
1804
1855
  runId: z.ZodString;
1805
- }>, "strip", z.ZodTypeAny, {
1856
+ }, "strip", z.ZodTypeAny, {
1806
1857
  type: EventType.RUN_FINISHED;
1807
1858
  threadId: string;
1808
1859
  runId: string;
@@ -1814,15 +1865,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1814
1865
  runId: string;
1815
1866
  timestamp?: number | undefined;
1816
1867
  rawEvent?: any;
1817
- }>, z.ZodObject<z.objectUtil.extendShape<{
1818
- type: z.ZodNativeEnum<typeof EventType>;
1868
+ }>, z.ZodObject<{
1819
1869
  timestamp: z.ZodOptional<z.ZodNumber>;
1820
1870
  rawEvent: z.ZodOptional<z.ZodAny>;
1821
- }, {
1871
+ } & {
1822
1872
  type: z.ZodLiteral<EventType.RUN_ERROR>;
1823
1873
  message: z.ZodString;
1824
1874
  code: z.ZodOptional<z.ZodString>;
1825
- }>, "strip", z.ZodTypeAny, {
1875
+ }, "strip", z.ZodTypeAny, {
1826
1876
  message: string;
1827
1877
  type: EventType.RUN_ERROR;
1828
1878
  code?: string | undefined;
@@ -1834,14 +1884,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1834
1884
  code?: string | undefined;
1835
1885
  timestamp?: number | undefined;
1836
1886
  rawEvent?: any;
1837
- }>, z.ZodObject<z.objectUtil.extendShape<{
1838
- type: z.ZodNativeEnum<typeof EventType>;
1887
+ }>, z.ZodObject<{
1839
1888
  timestamp: z.ZodOptional<z.ZodNumber>;
1840
1889
  rawEvent: z.ZodOptional<z.ZodAny>;
1841
- }, {
1890
+ } & {
1842
1891
  type: z.ZodLiteral<EventType.STEP_STARTED>;
1843
1892
  stepName: z.ZodString;
1844
- }>, "strip", z.ZodTypeAny, {
1893
+ }, "strip", z.ZodTypeAny, {
1845
1894
  type: EventType.STEP_STARTED;
1846
1895
  stepName: string;
1847
1896
  timestamp?: number | undefined;
@@ -1851,14 +1900,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objec
1851
1900
  stepName: string;
1852
1901
  timestamp?: number | undefined;
1853
1902
  rawEvent?: any;
1854
- }>, z.ZodObject<z.objectUtil.extendShape<{
1855
- type: z.ZodNativeEnum<typeof EventType>;
1903
+ }>, z.ZodObject<{
1856
1904
  timestamp: z.ZodOptional<z.ZodNumber>;
1857
1905
  rawEvent: z.ZodOptional<z.ZodAny>;
1858
- }, {
1906
+ } & {
1859
1907
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
1860
1908
  stepName: z.ZodString;
1861
- }>, "strip", z.ZodTypeAny, {
1909
+ }, "strip", z.ZodTypeAny, {
1862
1910
  type: EventType.STEP_FINISHED;
1863
1911
  stepName: string;
1864
1912
  timestamp?: number | undefined;
@@ -1874,10 +1922,15 @@ type TextMessageStartEvent = z.infer<typeof TextMessageStartEventSchema>;
1874
1922
  type TextMessageContentEvent = z.infer<typeof TextMessageContentEventSchema>;
1875
1923
  type TextMessageEndEvent = z.infer<typeof TextMessageEndEventSchema>;
1876
1924
  type TextMessageChunkEvent = z.infer<typeof TextMessageChunkEventSchema>;
1925
+ type ThinkingTextMessageStartEvent = z.infer<typeof ThinkingTextMessageStartEventSchema>;
1926
+ type ThinkingTextMessageContentEvent = z.infer<typeof ThinkingTextMessageContentEventSchema>;
1927
+ type ThinkingTextMessageEndEvent = z.infer<typeof ThinkingTextMessageEndEventSchema>;
1877
1928
  type ToolCallStartEvent = z.infer<typeof ToolCallStartEventSchema>;
1878
1929
  type ToolCallArgsEvent = z.infer<typeof ToolCallArgsEventSchema>;
1879
1930
  type ToolCallEndEvent = z.infer<typeof ToolCallEndEventSchema>;
1880
1931
  type ToolCallChunkEvent = z.infer<typeof ToolCallChunkEventSchema>;
1932
+ type ThinkingStartEvent = z.infer<typeof ThinkingStartEventSchema>;
1933
+ type ThinkingEndEvent = z.infer<typeof ThinkingEndEventSchema>;
1881
1934
  type StateSnapshotEvent = z.infer<typeof StateSnapshotEventSchema>;
1882
1935
  type StateDeltaEvent = z.infer<typeof StateDeltaEventSchema>;
1883
1936
  type MessagesSnapshotEvent = z.infer<typeof MessagesSnapshotEventSchema>;
@@ -1906,4 +1959,4 @@ interface AgentState {
1906
1959
  */
1907
1960
  type ApplyEvents = (input: RunAgentInput, events$: Observable<BaseEvent>) => Observable<AgentState>;
1908
1961
 
1909
- export { AGUIError, type AgentState, type ApplyEvents, type AssistantMessage, AssistantMessageSchema, type BaseEvent, BaseMessageSchema, type Context, ContextSchema, type CustomEvent, CustomEventSchema, type DeveloperMessage, DeveloperMessageSchema, EventSchemas, EventType, type FunctionCall, FunctionCallSchema, type Message, MessageSchema, type MessagesSnapshotEvent, MessagesSnapshotEventSchema, type RawEvent, RawEventSchema, type Role, RoleSchema, type RunAgent, type RunAgentInput, RunAgentInputSchema, type RunErrorEvent, RunErrorEventSchema, RunErrorSchema, type RunFinishedEvent, RunFinishedEventSchema, RunFinishedSchema, type RunStartedEvent, RunStartedEventSchema, RunStartedSchema, type State, type StateDeltaEvent, StateDeltaEventSchema, StateSchema, type StateSnapshotEvent, StateSnapshotEventSchema, type StepFinishedEvent, StepFinishedEventSchema, StepFinishedSchema, type StepStartedEvent, StepStartedEventSchema, StepStartedSchema, type SystemMessage, SystemMessageSchema, type TextMessageChunkEvent, TextMessageChunkEventSchema, type TextMessageContentEvent, TextMessageContentEventSchema, type TextMessageEndEvent, TextMessageEndEventSchema, type TextMessageStartEvent, TextMessageStartEventSchema, type Tool, type ToolCall, type ToolCallArgsEvent, ToolCallArgsEventSchema, type ToolCallChunkEvent, ToolCallChunkEventSchema, type ToolCallEndEvent, ToolCallEndEventSchema, ToolCallSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolMessage, ToolMessageSchema, ToolSchema, type UserMessage, UserMessageSchema };
1962
+ export { AGUIError, type AgentState, type ApplyEvents, type AssistantMessage, AssistantMessageSchema, type BaseEvent, BaseMessageSchema, type Context, ContextSchema, type CustomEvent, CustomEventSchema, type DeveloperMessage, DeveloperMessageSchema, EventSchemas, EventType, type FunctionCall, FunctionCallSchema, type Message, MessageSchema, type MessagesSnapshotEvent, MessagesSnapshotEventSchema, type RawEvent, RawEventSchema, type Role, RoleSchema, type RunAgent, type RunAgentInput, RunAgentInputSchema, type RunErrorEvent, RunErrorEventSchema, RunErrorSchema, type RunFinishedEvent, RunFinishedEventSchema, RunFinishedSchema, type RunStartedEvent, RunStartedEventSchema, RunStartedSchema, type State, type StateDeltaEvent, StateDeltaEventSchema, StateSchema, type StateSnapshotEvent, StateSnapshotEventSchema, type StepFinishedEvent, StepFinishedEventSchema, StepFinishedSchema, type StepStartedEvent, StepStartedEventSchema, StepStartedSchema, type SystemMessage, SystemMessageSchema, type TextMessageChunkEvent, TextMessageChunkEventSchema, type TextMessageContentEvent, TextMessageContentEventSchema, type TextMessageEndEvent, TextMessageEndEventSchema, type TextMessageStartEvent, TextMessageStartEventSchema, type ThinkingEndEvent, ThinkingEndEventSchema, type ThinkingStartEvent, ThinkingStartEventSchema, type ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventSchema, type ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventSchema, type ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventSchema, type Tool, type ToolCall, type ToolCallArgsEvent, ToolCallArgsEventSchema, type ToolCallChunkEvent, ToolCallChunkEventSchema, type ToolCallEndEvent, ToolCallEndEventSchema, ToolCallSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolMessage, ToolMessageSchema, ToolSchema, type UserMessage, UserMessageSchema };