@codeworksh/aikit 0.2.0 → 0.2.1

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/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import { lazy } from "@codeworksh/utils";
2
1
  import * as _$_sinclair_typebox0 from "@sinclair/typebox";
3
2
  import { Static, TSchema } from "@sinclair/typebox";
4
3
 
@@ -86,13 +85,13 @@ declare namespace Event {
86
85
  }>, _$_sinclair_typebox0.TObject<{
87
86
  status: _$_sinclair_typebox0.TLiteral<"pending">;
88
87
  }>]>, _$_sinclair_typebox0.TObject<{
89
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
90
88
  name: _$_sinclair_typebox0.TString;
89
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
90
+ callID: _$_sinclair_typebox0.TString;
91
91
  time: _$_sinclair_typebox0.TObject<{
92
92
  start: _$_sinclair_typebox0.TNumber;
93
93
  end: _$_sinclair_typebox0.TNumber;
94
94
  }>;
95
- callID: _$_sinclair_typebox0.TString;
96
95
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
97
96
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
98
97
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -109,13 +108,13 @@ declare namespace Event {
109
108
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
110
109
  }>>;
111
110
  }>, _$_sinclair_typebox0.TObject<{
112
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
113
111
  name: _$_sinclair_typebox0.TString;
112
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
113
+ callID: _$_sinclair_typebox0.TString;
114
114
  time: _$_sinclair_typebox0.TObject<{
115
115
  start: _$_sinclair_typebox0.TNumber;
116
116
  end: _$_sinclair_typebox0.TNumber;
117
117
  }>;
118
- callID: _$_sinclair_typebox0.TString;
119
118
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
120
119
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
121
120
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -133,13 +132,13 @@ declare namespace Event {
133
132
  isError: _$_sinclair_typebox0.TLiteral<false>;
134
133
  }>;
135
134
  }>, _$_sinclair_typebox0.TObject<{
136
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
137
135
  name: _$_sinclair_typebox0.TString;
136
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
137
+ callID: _$_sinclair_typebox0.TString;
138
138
  time: _$_sinclair_typebox0.TObject<{
139
139
  start: _$_sinclair_typebox0.TNumber;
140
140
  end: _$_sinclair_typebox0.TNumber;
141
141
  }>;
142
- callID: _$_sinclair_typebox0.TString;
143
142
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
144
143
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
145
144
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -157,13 +156,13 @@ declare namespace Event {
157
156
  isError: _$_sinclair_typebox0.TLiteral<true>;
158
157
  }>;
159
158
  }>, _$_sinclair_typebox0.TObject<{
160
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
161
159
  name: _$_sinclair_typebox0.TString;
160
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
161
+ callID: _$_sinclair_typebox0.TString;
162
162
  time: _$_sinclair_typebox0.TObject<{
163
163
  start: _$_sinclair_typebox0.TNumber;
164
164
  end: _$_sinclair_typebox0.TNumber;
165
165
  }>;
166
- callID: _$_sinclair_typebox0.TString;
167
166
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
168
167
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
169
168
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -181,13 +180,13 @@ declare namespace Event {
181
180
  isError: _$_sinclair_typebox0.TLiteral<true>;
182
181
  }>;
183
182
  }>, _$_sinclair_typebox0.TObject<{
184
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
185
183
  name: _$_sinclair_typebox0.TString;
184
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
185
+ callID: _$_sinclair_typebox0.TString;
186
186
  time: _$_sinclair_typebox0.TObject<{
187
187
  start: _$_sinclair_typebox0.TNumber;
188
188
  end: _$_sinclair_typebox0.TNumber;
189
189
  }>;
190
- callID: _$_sinclair_typebox0.TString;
191
190
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
192
191
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
193
192
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -205,7 +204,8 @@ declare namespace Event {
205
204
  isError: _$_sinclair_typebox0.TLiteral<true>;
206
205
  }>;
207
206
  }>]>]>>;
208
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
207
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
208
+ messageId: _$_sinclair_typebox0.TString;
209
209
  }>;
210
210
  }>, _$_sinclair_typebox0.TObject<{
211
211
  type: _$_sinclair_typebox0.TLiteral<"text.start">;
@@ -267,13 +267,13 @@ declare namespace Event {
267
267
  }>, _$_sinclair_typebox0.TObject<{
268
268
  status: _$_sinclair_typebox0.TLiteral<"pending">;
269
269
  }>]>, _$_sinclair_typebox0.TObject<{
270
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
271
270
  name: _$_sinclair_typebox0.TString;
271
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
272
+ callID: _$_sinclair_typebox0.TString;
272
273
  time: _$_sinclair_typebox0.TObject<{
273
274
  start: _$_sinclair_typebox0.TNumber;
274
275
  end: _$_sinclair_typebox0.TNumber;
275
276
  }>;
276
- callID: _$_sinclair_typebox0.TString;
277
277
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
278
278
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
279
279
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -290,13 +290,13 @@ declare namespace Event {
290
290
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
291
291
  }>>;
292
292
  }>, _$_sinclair_typebox0.TObject<{
293
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
294
293
  name: _$_sinclair_typebox0.TString;
294
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
295
+ callID: _$_sinclair_typebox0.TString;
295
296
  time: _$_sinclair_typebox0.TObject<{
296
297
  start: _$_sinclair_typebox0.TNumber;
297
298
  end: _$_sinclair_typebox0.TNumber;
298
299
  }>;
299
- callID: _$_sinclair_typebox0.TString;
300
300
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
301
301
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
302
302
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -314,13 +314,13 @@ declare namespace Event {
314
314
  isError: _$_sinclair_typebox0.TLiteral<false>;
315
315
  }>;
316
316
  }>, _$_sinclair_typebox0.TObject<{
317
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
318
317
  name: _$_sinclair_typebox0.TString;
318
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
319
+ callID: _$_sinclair_typebox0.TString;
319
320
  time: _$_sinclair_typebox0.TObject<{
320
321
  start: _$_sinclair_typebox0.TNumber;
321
322
  end: _$_sinclair_typebox0.TNumber;
322
323
  }>;
323
- callID: _$_sinclair_typebox0.TString;
324
324
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
325
325
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
326
326
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -338,13 +338,13 @@ declare namespace Event {
338
338
  isError: _$_sinclair_typebox0.TLiteral<true>;
339
339
  }>;
340
340
  }>, _$_sinclair_typebox0.TObject<{
341
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
342
341
  name: _$_sinclair_typebox0.TString;
342
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
343
+ callID: _$_sinclair_typebox0.TString;
343
344
  time: _$_sinclair_typebox0.TObject<{
344
345
  start: _$_sinclair_typebox0.TNumber;
345
346
  end: _$_sinclair_typebox0.TNumber;
346
347
  }>;
347
- callID: _$_sinclair_typebox0.TString;
348
348
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
349
349
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
350
350
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -362,13 +362,13 @@ declare namespace Event {
362
362
  isError: _$_sinclair_typebox0.TLiteral<true>;
363
363
  }>;
364
364
  }>, _$_sinclair_typebox0.TObject<{
365
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
366
365
  name: _$_sinclair_typebox0.TString;
366
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
367
+ callID: _$_sinclair_typebox0.TString;
367
368
  time: _$_sinclair_typebox0.TObject<{
368
369
  start: _$_sinclair_typebox0.TNumber;
369
370
  end: _$_sinclair_typebox0.TNumber;
370
371
  }>;
371
- callID: _$_sinclair_typebox0.TString;
372
372
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
373
373
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
374
374
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -386,7 +386,8 @@ declare namespace Event {
386
386
  isError: _$_sinclair_typebox0.TLiteral<true>;
387
387
  }>;
388
388
  }>]>]>>;
389
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
389
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
390
+ messageId: _$_sinclair_typebox0.TString;
390
391
  }>;
391
392
  }>, _$_sinclair_typebox0.TObject<{
392
393
  type: _$_sinclair_typebox0.TLiteral<"text.delta">;
@@ -449,13 +450,13 @@ declare namespace Event {
449
450
  }>, _$_sinclair_typebox0.TObject<{
450
451
  status: _$_sinclair_typebox0.TLiteral<"pending">;
451
452
  }>]>, _$_sinclair_typebox0.TObject<{
452
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
453
453
  name: _$_sinclair_typebox0.TString;
454
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
455
+ callID: _$_sinclair_typebox0.TString;
454
456
  time: _$_sinclair_typebox0.TObject<{
455
457
  start: _$_sinclair_typebox0.TNumber;
456
458
  end: _$_sinclair_typebox0.TNumber;
457
459
  }>;
458
- callID: _$_sinclair_typebox0.TString;
459
460
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
460
461
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
461
462
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -472,13 +473,13 @@ declare namespace Event {
472
473
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
473
474
  }>>;
474
475
  }>, _$_sinclair_typebox0.TObject<{
475
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
476
476
  name: _$_sinclair_typebox0.TString;
477
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
478
+ callID: _$_sinclair_typebox0.TString;
477
479
  time: _$_sinclair_typebox0.TObject<{
478
480
  start: _$_sinclair_typebox0.TNumber;
479
481
  end: _$_sinclair_typebox0.TNumber;
480
482
  }>;
481
- callID: _$_sinclair_typebox0.TString;
482
483
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
483
484
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
484
485
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -496,13 +497,13 @@ declare namespace Event {
496
497
  isError: _$_sinclair_typebox0.TLiteral<false>;
497
498
  }>;
498
499
  }>, _$_sinclair_typebox0.TObject<{
499
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
500
500
  name: _$_sinclair_typebox0.TString;
501
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
502
+ callID: _$_sinclair_typebox0.TString;
501
503
  time: _$_sinclair_typebox0.TObject<{
502
504
  start: _$_sinclair_typebox0.TNumber;
503
505
  end: _$_sinclair_typebox0.TNumber;
504
506
  }>;
505
- callID: _$_sinclair_typebox0.TString;
506
507
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
507
508
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
508
509
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -520,13 +521,13 @@ declare namespace Event {
520
521
  isError: _$_sinclair_typebox0.TLiteral<true>;
521
522
  }>;
522
523
  }>, _$_sinclair_typebox0.TObject<{
523
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
524
524
  name: _$_sinclair_typebox0.TString;
525
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
526
+ callID: _$_sinclair_typebox0.TString;
525
527
  time: _$_sinclair_typebox0.TObject<{
526
528
  start: _$_sinclair_typebox0.TNumber;
527
529
  end: _$_sinclair_typebox0.TNumber;
528
530
  }>;
529
- callID: _$_sinclair_typebox0.TString;
530
531
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
531
532
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
532
533
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -544,13 +545,13 @@ declare namespace Event {
544
545
  isError: _$_sinclair_typebox0.TLiteral<true>;
545
546
  }>;
546
547
  }>, _$_sinclair_typebox0.TObject<{
547
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
548
548
  name: _$_sinclair_typebox0.TString;
549
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
550
+ callID: _$_sinclair_typebox0.TString;
549
551
  time: _$_sinclair_typebox0.TObject<{
550
552
  start: _$_sinclair_typebox0.TNumber;
551
553
  end: _$_sinclair_typebox0.TNumber;
552
554
  }>;
553
- callID: _$_sinclair_typebox0.TString;
554
555
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
555
556
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
556
557
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -568,7 +569,8 @@ declare namespace Event {
568
569
  isError: _$_sinclair_typebox0.TLiteral<true>;
569
570
  }>;
570
571
  }>]>]>>;
571
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
572
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
573
+ messageId: _$_sinclair_typebox0.TString;
572
574
  }>;
573
575
  }>, _$_sinclair_typebox0.TObject<{
574
576
  type: _$_sinclair_typebox0.TLiteral<"text.end">;
@@ -631,13 +633,13 @@ declare namespace Event {
631
633
  }>, _$_sinclair_typebox0.TObject<{
632
634
  status: _$_sinclair_typebox0.TLiteral<"pending">;
633
635
  }>]>, _$_sinclair_typebox0.TObject<{
634
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
635
636
  name: _$_sinclair_typebox0.TString;
637
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
638
+ callID: _$_sinclair_typebox0.TString;
636
639
  time: _$_sinclair_typebox0.TObject<{
637
640
  start: _$_sinclair_typebox0.TNumber;
638
641
  end: _$_sinclair_typebox0.TNumber;
639
642
  }>;
640
- callID: _$_sinclair_typebox0.TString;
641
643
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
642
644
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
643
645
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -654,13 +656,13 @@ declare namespace Event {
654
656
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
655
657
  }>>;
656
658
  }>, _$_sinclair_typebox0.TObject<{
657
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
658
659
  name: _$_sinclair_typebox0.TString;
660
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
661
+ callID: _$_sinclair_typebox0.TString;
659
662
  time: _$_sinclair_typebox0.TObject<{
660
663
  start: _$_sinclair_typebox0.TNumber;
661
664
  end: _$_sinclair_typebox0.TNumber;
662
665
  }>;
663
- callID: _$_sinclair_typebox0.TString;
664
666
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
665
667
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
666
668
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -678,13 +680,13 @@ declare namespace Event {
678
680
  isError: _$_sinclair_typebox0.TLiteral<false>;
679
681
  }>;
680
682
  }>, _$_sinclair_typebox0.TObject<{
681
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
682
683
  name: _$_sinclair_typebox0.TString;
684
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
685
+ callID: _$_sinclair_typebox0.TString;
683
686
  time: _$_sinclair_typebox0.TObject<{
684
687
  start: _$_sinclair_typebox0.TNumber;
685
688
  end: _$_sinclair_typebox0.TNumber;
686
689
  }>;
687
- callID: _$_sinclair_typebox0.TString;
688
690
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
689
691
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
690
692
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -702,13 +704,13 @@ declare namespace Event {
702
704
  isError: _$_sinclair_typebox0.TLiteral<true>;
703
705
  }>;
704
706
  }>, _$_sinclair_typebox0.TObject<{
705
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
706
707
  name: _$_sinclair_typebox0.TString;
708
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
709
+ callID: _$_sinclair_typebox0.TString;
707
710
  time: _$_sinclair_typebox0.TObject<{
708
711
  start: _$_sinclair_typebox0.TNumber;
709
712
  end: _$_sinclair_typebox0.TNumber;
710
713
  }>;
711
- callID: _$_sinclair_typebox0.TString;
712
714
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
713
715
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
714
716
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -726,13 +728,13 @@ declare namespace Event {
726
728
  isError: _$_sinclair_typebox0.TLiteral<true>;
727
729
  }>;
728
730
  }>, _$_sinclair_typebox0.TObject<{
729
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
730
731
  name: _$_sinclair_typebox0.TString;
732
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
733
+ callID: _$_sinclair_typebox0.TString;
731
734
  time: _$_sinclair_typebox0.TObject<{
732
735
  start: _$_sinclair_typebox0.TNumber;
733
736
  end: _$_sinclair_typebox0.TNumber;
734
737
  }>;
735
- callID: _$_sinclair_typebox0.TString;
736
738
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
737
739
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
738
740
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -750,7 +752,8 @@ declare namespace Event {
750
752
  isError: _$_sinclair_typebox0.TLiteral<true>;
751
753
  }>;
752
754
  }>]>]>>;
753
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
755
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
756
+ messageId: _$_sinclair_typebox0.TString;
754
757
  }>;
755
758
  }>, _$_sinclair_typebox0.TObject<{
756
759
  type: _$_sinclair_typebox0.TLiteral<"thinking.start">;
@@ -812,13 +815,13 @@ declare namespace Event {
812
815
  }>, _$_sinclair_typebox0.TObject<{
813
816
  status: _$_sinclair_typebox0.TLiteral<"pending">;
814
817
  }>]>, _$_sinclair_typebox0.TObject<{
815
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
816
818
  name: _$_sinclair_typebox0.TString;
819
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
820
+ callID: _$_sinclair_typebox0.TString;
817
821
  time: _$_sinclair_typebox0.TObject<{
818
822
  start: _$_sinclair_typebox0.TNumber;
819
823
  end: _$_sinclair_typebox0.TNumber;
820
824
  }>;
821
- callID: _$_sinclair_typebox0.TString;
822
825
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
823
826
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
824
827
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -835,13 +838,13 @@ declare namespace Event {
835
838
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
836
839
  }>>;
837
840
  }>, _$_sinclair_typebox0.TObject<{
838
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
839
841
  name: _$_sinclair_typebox0.TString;
842
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
843
+ callID: _$_sinclair_typebox0.TString;
840
844
  time: _$_sinclair_typebox0.TObject<{
841
845
  start: _$_sinclair_typebox0.TNumber;
842
846
  end: _$_sinclair_typebox0.TNumber;
843
847
  }>;
844
- callID: _$_sinclair_typebox0.TString;
845
848
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
846
849
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
847
850
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -859,13 +862,13 @@ declare namespace Event {
859
862
  isError: _$_sinclair_typebox0.TLiteral<false>;
860
863
  }>;
861
864
  }>, _$_sinclair_typebox0.TObject<{
862
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
863
865
  name: _$_sinclair_typebox0.TString;
866
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
867
+ callID: _$_sinclair_typebox0.TString;
864
868
  time: _$_sinclair_typebox0.TObject<{
865
869
  start: _$_sinclair_typebox0.TNumber;
866
870
  end: _$_sinclair_typebox0.TNumber;
867
871
  }>;
868
- callID: _$_sinclair_typebox0.TString;
869
872
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
870
873
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
871
874
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -883,13 +886,13 @@ declare namespace Event {
883
886
  isError: _$_sinclair_typebox0.TLiteral<true>;
884
887
  }>;
885
888
  }>, _$_sinclair_typebox0.TObject<{
886
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
887
889
  name: _$_sinclair_typebox0.TString;
890
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
891
+ callID: _$_sinclair_typebox0.TString;
888
892
  time: _$_sinclair_typebox0.TObject<{
889
893
  start: _$_sinclair_typebox0.TNumber;
890
894
  end: _$_sinclair_typebox0.TNumber;
891
895
  }>;
892
- callID: _$_sinclair_typebox0.TString;
893
896
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
894
897
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
895
898
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -907,13 +910,13 @@ declare namespace Event {
907
910
  isError: _$_sinclair_typebox0.TLiteral<true>;
908
911
  }>;
909
912
  }>, _$_sinclair_typebox0.TObject<{
910
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
911
913
  name: _$_sinclair_typebox0.TString;
914
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
915
+ callID: _$_sinclair_typebox0.TString;
912
916
  time: _$_sinclair_typebox0.TObject<{
913
917
  start: _$_sinclair_typebox0.TNumber;
914
918
  end: _$_sinclair_typebox0.TNumber;
915
919
  }>;
916
- callID: _$_sinclair_typebox0.TString;
917
920
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
918
921
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
919
922
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -931,7 +934,8 @@ declare namespace Event {
931
934
  isError: _$_sinclair_typebox0.TLiteral<true>;
932
935
  }>;
933
936
  }>]>]>>;
934
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
937
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
938
+ messageId: _$_sinclair_typebox0.TString;
935
939
  }>;
936
940
  }>, _$_sinclair_typebox0.TObject<{
937
941
  type: _$_sinclair_typebox0.TLiteral<"thinking.delta">;
@@ -994,13 +998,13 @@ declare namespace Event {
994
998
  }>, _$_sinclair_typebox0.TObject<{
995
999
  status: _$_sinclair_typebox0.TLiteral<"pending">;
996
1000
  }>]>, _$_sinclair_typebox0.TObject<{
997
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
998
1001
  name: _$_sinclair_typebox0.TString;
1002
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1003
+ callID: _$_sinclair_typebox0.TString;
999
1004
  time: _$_sinclair_typebox0.TObject<{
1000
1005
  start: _$_sinclair_typebox0.TNumber;
1001
1006
  end: _$_sinclair_typebox0.TNumber;
1002
1007
  }>;
1003
- callID: _$_sinclair_typebox0.TString;
1004
1008
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1005
1009
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1006
1010
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1017,13 +1021,13 @@ declare namespace Event {
1017
1021
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1018
1022
  }>>;
1019
1023
  }>, _$_sinclair_typebox0.TObject<{
1020
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1021
1024
  name: _$_sinclair_typebox0.TString;
1025
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1026
+ callID: _$_sinclair_typebox0.TString;
1022
1027
  time: _$_sinclair_typebox0.TObject<{
1023
1028
  start: _$_sinclair_typebox0.TNumber;
1024
1029
  end: _$_sinclair_typebox0.TNumber;
1025
1030
  }>;
1026
- callID: _$_sinclair_typebox0.TString;
1027
1031
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1028
1032
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1029
1033
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1041,13 +1045,13 @@ declare namespace Event {
1041
1045
  isError: _$_sinclair_typebox0.TLiteral<false>;
1042
1046
  }>;
1043
1047
  }>, _$_sinclair_typebox0.TObject<{
1044
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1045
1048
  name: _$_sinclair_typebox0.TString;
1049
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1050
+ callID: _$_sinclair_typebox0.TString;
1046
1051
  time: _$_sinclair_typebox0.TObject<{
1047
1052
  start: _$_sinclair_typebox0.TNumber;
1048
1053
  end: _$_sinclair_typebox0.TNumber;
1049
1054
  }>;
1050
- callID: _$_sinclair_typebox0.TString;
1051
1055
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1052
1056
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1053
1057
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1065,13 +1069,13 @@ declare namespace Event {
1065
1069
  isError: _$_sinclair_typebox0.TLiteral<true>;
1066
1070
  }>;
1067
1071
  }>, _$_sinclair_typebox0.TObject<{
1068
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1069
1072
  name: _$_sinclair_typebox0.TString;
1073
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1074
+ callID: _$_sinclair_typebox0.TString;
1070
1075
  time: _$_sinclair_typebox0.TObject<{
1071
1076
  start: _$_sinclair_typebox0.TNumber;
1072
1077
  end: _$_sinclair_typebox0.TNumber;
1073
1078
  }>;
1074
- callID: _$_sinclair_typebox0.TString;
1075
1079
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1076
1080
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1077
1081
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1089,13 +1093,13 @@ declare namespace Event {
1089
1093
  isError: _$_sinclair_typebox0.TLiteral<true>;
1090
1094
  }>;
1091
1095
  }>, _$_sinclair_typebox0.TObject<{
1092
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1093
1096
  name: _$_sinclair_typebox0.TString;
1097
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1098
+ callID: _$_sinclair_typebox0.TString;
1094
1099
  time: _$_sinclair_typebox0.TObject<{
1095
1100
  start: _$_sinclair_typebox0.TNumber;
1096
1101
  end: _$_sinclair_typebox0.TNumber;
1097
1102
  }>;
1098
- callID: _$_sinclair_typebox0.TString;
1099
1103
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1100
1104
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1101
1105
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1113,7 +1117,8 @@ declare namespace Event {
1113
1117
  isError: _$_sinclair_typebox0.TLiteral<true>;
1114
1118
  }>;
1115
1119
  }>]>]>>;
1116
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1120
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1121
+ messageId: _$_sinclair_typebox0.TString;
1117
1122
  }>;
1118
1123
  }>, _$_sinclair_typebox0.TObject<{
1119
1124
  type: _$_sinclair_typebox0.TLiteral<"thinking.end">;
@@ -1176,13 +1181,13 @@ declare namespace Event {
1176
1181
  }>, _$_sinclair_typebox0.TObject<{
1177
1182
  status: _$_sinclair_typebox0.TLiteral<"pending">;
1178
1183
  }>]>, _$_sinclair_typebox0.TObject<{
1179
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1180
1184
  name: _$_sinclair_typebox0.TString;
1185
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1186
+ callID: _$_sinclair_typebox0.TString;
1181
1187
  time: _$_sinclair_typebox0.TObject<{
1182
1188
  start: _$_sinclair_typebox0.TNumber;
1183
1189
  end: _$_sinclair_typebox0.TNumber;
1184
1190
  }>;
1185
- callID: _$_sinclair_typebox0.TString;
1186
1191
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1187
1192
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1188
1193
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1199,13 +1204,13 @@ declare namespace Event {
1199
1204
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1200
1205
  }>>;
1201
1206
  }>, _$_sinclair_typebox0.TObject<{
1202
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1203
1207
  name: _$_sinclair_typebox0.TString;
1208
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1209
+ callID: _$_sinclair_typebox0.TString;
1204
1210
  time: _$_sinclair_typebox0.TObject<{
1205
1211
  start: _$_sinclair_typebox0.TNumber;
1206
1212
  end: _$_sinclair_typebox0.TNumber;
1207
1213
  }>;
1208
- callID: _$_sinclair_typebox0.TString;
1209
1214
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1210
1215
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1211
1216
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1223,13 +1228,13 @@ declare namespace Event {
1223
1228
  isError: _$_sinclair_typebox0.TLiteral<false>;
1224
1229
  }>;
1225
1230
  }>, _$_sinclair_typebox0.TObject<{
1226
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1227
1231
  name: _$_sinclair_typebox0.TString;
1232
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1233
+ callID: _$_sinclair_typebox0.TString;
1228
1234
  time: _$_sinclair_typebox0.TObject<{
1229
1235
  start: _$_sinclair_typebox0.TNumber;
1230
1236
  end: _$_sinclair_typebox0.TNumber;
1231
1237
  }>;
1232
- callID: _$_sinclair_typebox0.TString;
1233
1238
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1234
1239
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1235
1240
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1247,13 +1252,13 @@ declare namespace Event {
1247
1252
  isError: _$_sinclair_typebox0.TLiteral<true>;
1248
1253
  }>;
1249
1254
  }>, _$_sinclair_typebox0.TObject<{
1250
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1251
1255
  name: _$_sinclair_typebox0.TString;
1256
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1257
+ callID: _$_sinclair_typebox0.TString;
1252
1258
  time: _$_sinclair_typebox0.TObject<{
1253
1259
  start: _$_sinclair_typebox0.TNumber;
1254
1260
  end: _$_sinclair_typebox0.TNumber;
1255
1261
  }>;
1256
- callID: _$_sinclair_typebox0.TString;
1257
1262
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1258
1263
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1259
1264
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1271,13 +1276,13 @@ declare namespace Event {
1271
1276
  isError: _$_sinclair_typebox0.TLiteral<true>;
1272
1277
  }>;
1273
1278
  }>, _$_sinclair_typebox0.TObject<{
1274
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1275
1279
  name: _$_sinclair_typebox0.TString;
1280
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1281
+ callID: _$_sinclair_typebox0.TString;
1276
1282
  time: _$_sinclair_typebox0.TObject<{
1277
1283
  start: _$_sinclair_typebox0.TNumber;
1278
1284
  end: _$_sinclair_typebox0.TNumber;
1279
1285
  }>;
1280
- callID: _$_sinclair_typebox0.TString;
1281
1286
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1282
1287
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1283
1288
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1295,7 +1300,8 @@ declare namespace Event {
1295
1300
  isError: _$_sinclair_typebox0.TLiteral<true>;
1296
1301
  }>;
1297
1302
  }>]>]>>;
1298
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1303
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1304
+ messageId: _$_sinclair_typebox0.TString;
1299
1305
  }>;
1300
1306
  }>, _$_sinclair_typebox0.TObject<{
1301
1307
  type: _$_sinclair_typebox0.TLiteral<"toolcall.start">;
@@ -1357,13 +1363,13 @@ declare namespace Event {
1357
1363
  }>, _$_sinclair_typebox0.TObject<{
1358
1364
  status: _$_sinclair_typebox0.TLiteral<"pending">;
1359
1365
  }>]>, _$_sinclair_typebox0.TObject<{
1360
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1361
1366
  name: _$_sinclair_typebox0.TString;
1367
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1368
+ callID: _$_sinclair_typebox0.TString;
1362
1369
  time: _$_sinclair_typebox0.TObject<{
1363
1370
  start: _$_sinclair_typebox0.TNumber;
1364
1371
  end: _$_sinclair_typebox0.TNumber;
1365
1372
  }>;
1366
- callID: _$_sinclair_typebox0.TString;
1367
1373
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1368
1374
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1369
1375
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1380,13 +1386,13 @@ declare namespace Event {
1380
1386
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1381
1387
  }>>;
1382
1388
  }>, _$_sinclair_typebox0.TObject<{
1383
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1384
1389
  name: _$_sinclair_typebox0.TString;
1390
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1391
+ callID: _$_sinclair_typebox0.TString;
1385
1392
  time: _$_sinclair_typebox0.TObject<{
1386
1393
  start: _$_sinclair_typebox0.TNumber;
1387
1394
  end: _$_sinclair_typebox0.TNumber;
1388
1395
  }>;
1389
- callID: _$_sinclair_typebox0.TString;
1390
1396
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1391
1397
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1392
1398
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1404,13 +1410,13 @@ declare namespace Event {
1404
1410
  isError: _$_sinclair_typebox0.TLiteral<false>;
1405
1411
  }>;
1406
1412
  }>, _$_sinclair_typebox0.TObject<{
1407
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1408
1413
  name: _$_sinclair_typebox0.TString;
1414
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1415
+ callID: _$_sinclair_typebox0.TString;
1409
1416
  time: _$_sinclair_typebox0.TObject<{
1410
1417
  start: _$_sinclair_typebox0.TNumber;
1411
1418
  end: _$_sinclair_typebox0.TNumber;
1412
1419
  }>;
1413
- callID: _$_sinclair_typebox0.TString;
1414
1420
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1415
1421
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1416
1422
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1428,13 +1434,13 @@ declare namespace Event {
1428
1434
  isError: _$_sinclair_typebox0.TLiteral<true>;
1429
1435
  }>;
1430
1436
  }>, _$_sinclair_typebox0.TObject<{
1431
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1432
1437
  name: _$_sinclair_typebox0.TString;
1438
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1439
+ callID: _$_sinclair_typebox0.TString;
1433
1440
  time: _$_sinclair_typebox0.TObject<{
1434
1441
  start: _$_sinclair_typebox0.TNumber;
1435
1442
  end: _$_sinclair_typebox0.TNumber;
1436
1443
  }>;
1437
- callID: _$_sinclair_typebox0.TString;
1438
1444
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1439
1445
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1440
1446
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1452,13 +1458,13 @@ declare namespace Event {
1452
1458
  isError: _$_sinclair_typebox0.TLiteral<true>;
1453
1459
  }>;
1454
1460
  }>, _$_sinclair_typebox0.TObject<{
1455
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1456
1461
  name: _$_sinclair_typebox0.TString;
1462
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1463
+ callID: _$_sinclair_typebox0.TString;
1457
1464
  time: _$_sinclair_typebox0.TObject<{
1458
1465
  start: _$_sinclair_typebox0.TNumber;
1459
1466
  end: _$_sinclair_typebox0.TNumber;
1460
1467
  }>;
1461
- callID: _$_sinclair_typebox0.TString;
1462
1468
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1463
1469
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1464
1470
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1476,7 +1482,8 @@ declare namespace Event {
1476
1482
  isError: _$_sinclair_typebox0.TLiteral<true>;
1477
1483
  }>;
1478
1484
  }>]>]>>;
1479
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1485
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1486
+ messageId: _$_sinclair_typebox0.TString;
1480
1487
  }>;
1481
1488
  }>, _$_sinclair_typebox0.TObject<{
1482
1489
  type: _$_sinclair_typebox0.TLiteral<"toolcall.delta">;
@@ -1539,13 +1546,13 @@ declare namespace Event {
1539
1546
  }>, _$_sinclair_typebox0.TObject<{
1540
1547
  status: _$_sinclair_typebox0.TLiteral<"pending">;
1541
1548
  }>]>, _$_sinclair_typebox0.TObject<{
1542
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1543
1549
  name: _$_sinclair_typebox0.TString;
1550
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1551
+ callID: _$_sinclair_typebox0.TString;
1544
1552
  time: _$_sinclair_typebox0.TObject<{
1545
1553
  start: _$_sinclair_typebox0.TNumber;
1546
1554
  end: _$_sinclair_typebox0.TNumber;
1547
1555
  }>;
1548
- callID: _$_sinclair_typebox0.TString;
1549
1556
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1550
1557
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1551
1558
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1562,13 +1569,13 @@ declare namespace Event {
1562
1569
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1563
1570
  }>>;
1564
1571
  }>, _$_sinclair_typebox0.TObject<{
1565
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1566
1572
  name: _$_sinclair_typebox0.TString;
1573
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1574
+ callID: _$_sinclair_typebox0.TString;
1567
1575
  time: _$_sinclair_typebox0.TObject<{
1568
1576
  start: _$_sinclair_typebox0.TNumber;
1569
1577
  end: _$_sinclair_typebox0.TNumber;
1570
1578
  }>;
1571
- callID: _$_sinclair_typebox0.TString;
1572
1579
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1573
1580
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1574
1581
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1586,13 +1593,13 @@ declare namespace Event {
1586
1593
  isError: _$_sinclair_typebox0.TLiteral<false>;
1587
1594
  }>;
1588
1595
  }>, _$_sinclair_typebox0.TObject<{
1589
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1590
1596
  name: _$_sinclair_typebox0.TString;
1597
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1598
+ callID: _$_sinclair_typebox0.TString;
1591
1599
  time: _$_sinclair_typebox0.TObject<{
1592
1600
  start: _$_sinclair_typebox0.TNumber;
1593
1601
  end: _$_sinclair_typebox0.TNumber;
1594
1602
  }>;
1595
- callID: _$_sinclair_typebox0.TString;
1596
1603
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1597
1604
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1598
1605
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1610,13 +1617,13 @@ declare namespace Event {
1610
1617
  isError: _$_sinclair_typebox0.TLiteral<true>;
1611
1618
  }>;
1612
1619
  }>, _$_sinclair_typebox0.TObject<{
1613
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1614
1620
  name: _$_sinclair_typebox0.TString;
1621
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1622
+ callID: _$_sinclair_typebox0.TString;
1615
1623
  time: _$_sinclair_typebox0.TObject<{
1616
1624
  start: _$_sinclair_typebox0.TNumber;
1617
1625
  end: _$_sinclair_typebox0.TNumber;
1618
1626
  }>;
1619
- callID: _$_sinclair_typebox0.TString;
1620
1627
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1621
1628
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1622
1629
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1634,13 +1641,13 @@ declare namespace Event {
1634
1641
  isError: _$_sinclair_typebox0.TLiteral<true>;
1635
1642
  }>;
1636
1643
  }>, _$_sinclair_typebox0.TObject<{
1637
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1638
1644
  name: _$_sinclair_typebox0.TString;
1645
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1646
+ callID: _$_sinclair_typebox0.TString;
1639
1647
  time: _$_sinclair_typebox0.TObject<{
1640
1648
  start: _$_sinclair_typebox0.TNumber;
1641
1649
  end: _$_sinclair_typebox0.TNumber;
1642
1650
  }>;
1643
- callID: _$_sinclair_typebox0.TString;
1644
1651
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1645
1652
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1646
1653
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1658,7 +1665,8 @@ declare namespace Event {
1658
1665
  isError: _$_sinclair_typebox0.TLiteral<true>;
1659
1666
  }>;
1660
1667
  }>]>]>>;
1661
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1668
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1669
+ messageId: _$_sinclair_typebox0.TString;
1662
1670
  }>;
1663
1671
  }>, _$_sinclair_typebox0.TObject<{
1664
1672
  type: _$_sinclair_typebox0.TLiteral<"toolcall.end">;
@@ -1676,13 +1684,13 @@ declare namespace Event {
1676
1684
  }>, _$_sinclair_typebox0.TObject<{
1677
1685
  status: _$_sinclair_typebox0.TLiteral<"pending">;
1678
1686
  }>]>, _$_sinclair_typebox0.TObject<{
1679
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1680
1687
  name: _$_sinclair_typebox0.TString;
1688
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1689
+ callID: _$_sinclair_typebox0.TString;
1681
1690
  time: _$_sinclair_typebox0.TObject<{
1682
1691
  start: _$_sinclair_typebox0.TNumber;
1683
1692
  end: _$_sinclair_typebox0.TNumber;
1684
1693
  }>;
1685
- callID: _$_sinclair_typebox0.TString;
1686
1694
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1687
1695
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1688
1696
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1699,13 +1707,13 @@ declare namespace Event {
1699
1707
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1700
1708
  }>>;
1701
1709
  }>, _$_sinclair_typebox0.TObject<{
1702
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1703
1710
  name: _$_sinclair_typebox0.TString;
1711
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1712
+ callID: _$_sinclair_typebox0.TString;
1704
1713
  time: _$_sinclair_typebox0.TObject<{
1705
1714
  start: _$_sinclair_typebox0.TNumber;
1706
1715
  end: _$_sinclair_typebox0.TNumber;
1707
1716
  }>;
1708
- callID: _$_sinclair_typebox0.TString;
1709
1717
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1710
1718
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1711
1719
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1723,13 +1731,13 @@ declare namespace Event {
1723
1731
  isError: _$_sinclair_typebox0.TLiteral<false>;
1724
1732
  }>;
1725
1733
  }>, _$_sinclair_typebox0.TObject<{
1726
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1727
1734
  name: _$_sinclair_typebox0.TString;
1735
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1736
+ callID: _$_sinclair_typebox0.TString;
1728
1737
  time: _$_sinclair_typebox0.TObject<{
1729
1738
  start: _$_sinclair_typebox0.TNumber;
1730
1739
  end: _$_sinclair_typebox0.TNumber;
1731
1740
  }>;
1732
- callID: _$_sinclair_typebox0.TString;
1733
1741
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1734
1742
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1735
1743
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1747,13 +1755,13 @@ declare namespace Event {
1747
1755
  isError: _$_sinclair_typebox0.TLiteral<true>;
1748
1756
  }>;
1749
1757
  }>, _$_sinclair_typebox0.TObject<{
1750
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1751
1758
  name: _$_sinclair_typebox0.TString;
1759
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1760
+ callID: _$_sinclair_typebox0.TString;
1752
1761
  time: _$_sinclair_typebox0.TObject<{
1753
1762
  start: _$_sinclair_typebox0.TNumber;
1754
1763
  end: _$_sinclair_typebox0.TNumber;
1755
1764
  }>;
1756
- callID: _$_sinclair_typebox0.TString;
1757
1765
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1758
1766
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1759
1767
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1771,13 +1779,13 @@ declare namespace Event {
1771
1779
  isError: _$_sinclair_typebox0.TLiteral<true>;
1772
1780
  }>;
1773
1781
  }>, _$_sinclair_typebox0.TObject<{
1774
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1775
1782
  name: _$_sinclair_typebox0.TString;
1783
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1784
+ callID: _$_sinclair_typebox0.TString;
1776
1785
  time: _$_sinclair_typebox0.TObject<{
1777
1786
  start: _$_sinclair_typebox0.TNumber;
1778
1787
  end: _$_sinclair_typebox0.TNumber;
1779
1788
  }>;
1780
- callID: _$_sinclair_typebox0.TString;
1781
1789
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1782
1790
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1783
1791
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1852,13 +1860,13 @@ declare namespace Event {
1852
1860
  }>, _$_sinclair_typebox0.TObject<{
1853
1861
  status: _$_sinclair_typebox0.TLiteral<"pending">;
1854
1862
  }>]>, _$_sinclair_typebox0.TObject<{
1855
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1856
1863
  name: _$_sinclair_typebox0.TString;
1864
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1865
+ callID: _$_sinclair_typebox0.TString;
1857
1866
  time: _$_sinclair_typebox0.TObject<{
1858
1867
  start: _$_sinclair_typebox0.TNumber;
1859
1868
  end: _$_sinclair_typebox0.TNumber;
1860
1869
  }>;
1861
- callID: _$_sinclair_typebox0.TString;
1862
1870
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1863
1871
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1864
1872
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -1875,13 +1883,13 @@ declare namespace Event {
1875
1883
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
1876
1884
  }>>;
1877
1885
  }>, _$_sinclair_typebox0.TObject<{
1878
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1879
1886
  name: _$_sinclair_typebox0.TString;
1887
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1888
+ callID: _$_sinclair_typebox0.TString;
1880
1889
  time: _$_sinclair_typebox0.TObject<{
1881
1890
  start: _$_sinclair_typebox0.TNumber;
1882
1891
  end: _$_sinclair_typebox0.TNumber;
1883
1892
  }>;
1884
- callID: _$_sinclair_typebox0.TString;
1885
1893
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1886
1894
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1887
1895
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -1899,13 +1907,13 @@ declare namespace Event {
1899
1907
  isError: _$_sinclair_typebox0.TLiteral<false>;
1900
1908
  }>;
1901
1909
  }>, _$_sinclair_typebox0.TObject<{
1902
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1903
1910
  name: _$_sinclair_typebox0.TString;
1911
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1912
+ callID: _$_sinclair_typebox0.TString;
1904
1913
  time: _$_sinclair_typebox0.TObject<{
1905
1914
  start: _$_sinclair_typebox0.TNumber;
1906
1915
  end: _$_sinclair_typebox0.TNumber;
1907
1916
  }>;
1908
- callID: _$_sinclair_typebox0.TString;
1909
1917
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1910
1918
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1911
1919
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -1923,13 +1931,13 @@ declare namespace Event {
1923
1931
  isError: _$_sinclair_typebox0.TLiteral<true>;
1924
1932
  }>;
1925
1933
  }>, _$_sinclair_typebox0.TObject<{
1926
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1927
1934
  name: _$_sinclair_typebox0.TString;
1935
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1936
+ callID: _$_sinclair_typebox0.TString;
1928
1937
  time: _$_sinclair_typebox0.TObject<{
1929
1938
  start: _$_sinclair_typebox0.TNumber;
1930
1939
  end: _$_sinclair_typebox0.TNumber;
1931
1940
  }>;
1932
- callID: _$_sinclair_typebox0.TString;
1933
1941
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1934
1942
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1935
1943
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -1947,13 +1955,13 @@ declare namespace Event {
1947
1955
  isError: _$_sinclair_typebox0.TLiteral<true>;
1948
1956
  }>;
1949
1957
  }>, _$_sinclair_typebox0.TObject<{
1950
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1951
1958
  name: _$_sinclair_typebox0.TString;
1959
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
1960
+ callID: _$_sinclair_typebox0.TString;
1952
1961
  time: _$_sinclair_typebox0.TObject<{
1953
1962
  start: _$_sinclair_typebox0.TNumber;
1954
1963
  end: _$_sinclair_typebox0.TNumber;
1955
1964
  }>;
1956
- callID: _$_sinclair_typebox0.TString;
1957
1965
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
1958
1966
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1959
1967
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -1971,7 +1979,8 @@ declare namespace Event {
1971
1979
  isError: _$_sinclair_typebox0.TLiteral<true>;
1972
1980
  }>;
1973
1981
  }>]>]>>;
1974
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1982
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
1983
+ messageId: _$_sinclair_typebox0.TString;
1975
1984
  }>;
1976
1985
  }>, _$_sinclair_typebox0.TObject<{
1977
1986
  type: _$_sinclair_typebox0.TLiteral<"done">;
@@ -2033,13 +2042,13 @@ declare namespace Event {
2033
2042
  }>, _$_sinclair_typebox0.TObject<{
2034
2043
  status: _$_sinclair_typebox0.TLiteral<"pending">;
2035
2044
  }>]>, _$_sinclair_typebox0.TObject<{
2036
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2037
2045
  name: _$_sinclair_typebox0.TString;
2046
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2047
+ callID: _$_sinclair_typebox0.TString;
2038
2048
  time: _$_sinclair_typebox0.TObject<{
2039
2049
  start: _$_sinclair_typebox0.TNumber;
2040
2050
  end: _$_sinclair_typebox0.TNumber;
2041
2051
  }>;
2042
- callID: _$_sinclair_typebox0.TString;
2043
2052
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2044
2053
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2045
2054
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -2056,13 +2065,13 @@ declare namespace Event {
2056
2065
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
2057
2066
  }>>;
2058
2067
  }>, _$_sinclair_typebox0.TObject<{
2059
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2060
2068
  name: _$_sinclair_typebox0.TString;
2069
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2070
+ callID: _$_sinclair_typebox0.TString;
2061
2071
  time: _$_sinclair_typebox0.TObject<{
2062
2072
  start: _$_sinclair_typebox0.TNumber;
2063
2073
  end: _$_sinclair_typebox0.TNumber;
2064
2074
  }>;
2065
- callID: _$_sinclair_typebox0.TString;
2066
2075
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2067
2076
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2068
2077
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -2080,13 +2089,13 @@ declare namespace Event {
2080
2089
  isError: _$_sinclair_typebox0.TLiteral<false>;
2081
2090
  }>;
2082
2091
  }>, _$_sinclair_typebox0.TObject<{
2083
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2084
2092
  name: _$_sinclair_typebox0.TString;
2093
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2094
+ callID: _$_sinclair_typebox0.TString;
2085
2095
  time: _$_sinclair_typebox0.TObject<{
2086
2096
  start: _$_sinclair_typebox0.TNumber;
2087
2097
  end: _$_sinclair_typebox0.TNumber;
2088
2098
  }>;
2089
- callID: _$_sinclair_typebox0.TString;
2090
2099
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2091
2100
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2092
2101
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2104,13 +2113,13 @@ declare namespace Event {
2104
2113
  isError: _$_sinclair_typebox0.TLiteral<true>;
2105
2114
  }>;
2106
2115
  }>, _$_sinclair_typebox0.TObject<{
2107
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2108
2116
  name: _$_sinclair_typebox0.TString;
2117
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2118
+ callID: _$_sinclair_typebox0.TString;
2109
2119
  time: _$_sinclair_typebox0.TObject<{
2110
2120
  start: _$_sinclair_typebox0.TNumber;
2111
2121
  end: _$_sinclair_typebox0.TNumber;
2112
2122
  }>;
2113
- callID: _$_sinclair_typebox0.TString;
2114
2123
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2115
2124
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2116
2125
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -2128,13 +2137,13 @@ declare namespace Event {
2128
2137
  isError: _$_sinclair_typebox0.TLiteral<true>;
2129
2138
  }>;
2130
2139
  }>, _$_sinclair_typebox0.TObject<{
2131
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2132
2140
  name: _$_sinclair_typebox0.TString;
2141
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2142
+ callID: _$_sinclair_typebox0.TString;
2133
2143
  time: _$_sinclair_typebox0.TObject<{
2134
2144
  start: _$_sinclair_typebox0.TNumber;
2135
2145
  end: _$_sinclair_typebox0.TNumber;
2136
2146
  }>;
2137
- callID: _$_sinclair_typebox0.TString;
2138
2147
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2139
2148
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2140
2149
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -2152,7 +2161,8 @@ declare namespace Event {
2152
2161
  isError: _$_sinclair_typebox0.TLiteral<true>;
2153
2162
  }>;
2154
2163
  }>]>]>>;
2155
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2164
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2165
+ messageId: _$_sinclair_typebox0.TString;
2156
2166
  }>;
2157
2167
  }>, _$_sinclair_typebox0.TObject<{
2158
2168
  type: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2214,13 +2224,13 @@ declare namespace Event {
2214
2224
  }>, _$_sinclair_typebox0.TObject<{
2215
2225
  status: _$_sinclair_typebox0.TLiteral<"pending">;
2216
2226
  }>]>, _$_sinclair_typebox0.TObject<{
2217
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2218
2227
  name: _$_sinclair_typebox0.TString;
2228
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2229
+ callID: _$_sinclair_typebox0.TString;
2219
2230
  time: _$_sinclair_typebox0.TObject<{
2220
2231
  start: _$_sinclair_typebox0.TNumber;
2221
2232
  end: _$_sinclair_typebox0.TNumber;
2222
2233
  }>;
2223
- callID: _$_sinclair_typebox0.TString;
2224
2234
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2225
2235
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2226
2236
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -2237,13 +2247,13 @@ declare namespace Event {
2237
2247
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
2238
2248
  }>>;
2239
2249
  }>, _$_sinclair_typebox0.TObject<{
2240
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2241
2250
  name: _$_sinclair_typebox0.TString;
2251
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2252
+ callID: _$_sinclair_typebox0.TString;
2242
2253
  time: _$_sinclair_typebox0.TObject<{
2243
2254
  start: _$_sinclair_typebox0.TNumber;
2244
2255
  end: _$_sinclair_typebox0.TNumber;
2245
2256
  }>;
2246
- callID: _$_sinclair_typebox0.TString;
2247
2257
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2248
2258
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2249
2259
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -2261,13 +2271,13 @@ declare namespace Event {
2261
2271
  isError: _$_sinclair_typebox0.TLiteral<false>;
2262
2272
  }>;
2263
2273
  }>, _$_sinclair_typebox0.TObject<{
2264
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2265
2274
  name: _$_sinclair_typebox0.TString;
2275
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2276
+ callID: _$_sinclair_typebox0.TString;
2266
2277
  time: _$_sinclair_typebox0.TObject<{
2267
2278
  start: _$_sinclair_typebox0.TNumber;
2268
2279
  end: _$_sinclair_typebox0.TNumber;
2269
2280
  }>;
2270
- callID: _$_sinclair_typebox0.TString;
2271
2281
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2272
2282
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2273
2283
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2285,13 +2295,13 @@ declare namespace Event {
2285
2295
  isError: _$_sinclair_typebox0.TLiteral<true>;
2286
2296
  }>;
2287
2297
  }>, _$_sinclair_typebox0.TObject<{
2288
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2289
2298
  name: _$_sinclair_typebox0.TString;
2299
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2300
+ callID: _$_sinclair_typebox0.TString;
2290
2301
  time: _$_sinclair_typebox0.TObject<{
2291
2302
  start: _$_sinclair_typebox0.TNumber;
2292
2303
  end: _$_sinclair_typebox0.TNumber;
2293
2304
  }>;
2294
- callID: _$_sinclair_typebox0.TString;
2295
2305
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2296
2306
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2297
2307
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -2309,13 +2319,13 @@ declare namespace Event {
2309
2319
  isError: _$_sinclair_typebox0.TLiteral<true>;
2310
2320
  }>;
2311
2321
  }>, _$_sinclair_typebox0.TObject<{
2312
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2313
2322
  name: _$_sinclair_typebox0.TString;
2323
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2324
+ callID: _$_sinclair_typebox0.TString;
2314
2325
  time: _$_sinclair_typebox0.TObject<{
2315
2326
  start: _$_sinclair_typebox0.TNumber;
2316
2327
  end: _$_sinclair_typebox0.TNumber;
2317
2328
  }>;
2318
- callID: _$_sinclair_typebox0.TString;
2319
2329
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2320
2330
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2321
2331
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -2333,7 +2343,8 @@ declare namespace Event {
2333
2343
  isError: _$_sinclair_typebox0.TLiteral<true>;
2334
2344
  }>;
2335
2345
  }>]>]>>;
2336
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2346
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2347
+ messageId: _$_sinclair_typebox0.TString;
2337
2348
  }>;
2338
2349
  }>]>;
2339
2350
  export type LLMMessageEvent = Static<typeof LLMMessageEventSchema>;
@@ -2425,6 +2436,7 @@ declare namespace Event {
2425
2436
  }>, _$_sinclair_typebox0.TObject<{
2426
2437
  type: _$_sinclair_typebox0.TLiteral<"agent.end">;
2427
2438
  messages: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
2439
+ messageId: _$_sinclair_typebox0.TString;
2428
2440
  role: _$_sinclair_typebox0.TLiteral<"user">;
2429
2441
  time: _$_sinclair_typebox0.TObject<{
2430
2442
  created: _$_sinclair_typebox0.TNumber;
@@ -2495,13 +2507,13 @@ declare namespace Event {
2495
2507
  }>, _$_sinclair_typebox0.TObject<{
2496
2508
  status: _$_sinclair_typebox0.TLiteral<"pending">;
2497
2509
  }>]>, _$_sinclair_typebox0.TObject<{
2498
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2499
2510
  name: _$_sinclair_typebox0.TString;
2511
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2512
+ callID: _$_sinclair_typebox0.TString;
2500
2513
  time: _$_sinclair_typebox0.TObject<{
2501
2514
  start: _$_sinclair_typebox0.TNumber;
2502
2515
  end: _$_sinclair_typebox0.TNumber;
2503
2516
  }>;
2504
- callID: _$_sinclair_typebox0.TString;
2505
2517
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2506
2518
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2507
2519
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -2518,13 +2530,13 @@ declare namespace Event {
2518
2530
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
2519
2531
  }>>;
2520
2532
  }>, _$_sinclair_typebox0.TObject<{
2521
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2522
2533
  name: _$_sinclair_typebox0.TString;
2534
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2535
+ callID: _$_sinclair_typebox0.TString;
2523
2536
  time: _$_sinclair_typebox0.TObject<{
2524
2537
  start: _$_sinclair_typebox0.TNumber;
2525
2538
  end: _$_sinclair_typebox0.TNumber;
2526
2539
  }>;
2527
- callID: _$_sinclair_typebox0.TString;
2528
2540
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2529
2541
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2530
2542
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -2542,13 +2554,13 @@ declare namespace Event {
2542
2554
  isError: _$_sinclair_typebox0.TLiteral<false>;
2543
2555
  }>;
2544
2556
  }>, _$_sinclair_typebox0.TObject<{
2545
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2546
2557
  name: _$_sinclair_typebox0.TString;
2558
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2559
+ callID: _$_sinclair_typebox0.TString;
2547
2560
  time: _$_sinclair_typebox0.TObject<{
2548
2561
  start: _$_sinclair_typebox0.TNumber;
2549
2562
  end: _$_sinclair_typebox0.TNumber;
2550
2563
  }>;
2551
- callID: _$_sinclair_typebox0.TString;
2552
2564
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2553
2565
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2554
2566
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2566,13 +2578,13 @@ declare namespace Event {
2566
2578
  isError: _$_sinclair_typebox0.TLiteral<true>;
2567
2579
  }>;
2568
2580
  }>, _$_sinclair_typebox0.TObject<{
2569
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2570
2581
  name: _$_sinclair_typebox0.TString;
2582
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2583
+ callID: _$_sinclair_typebox0.TString;
2571
2584
  time: _$_sinclair_typebox0.TObject<{
2572
2585
  start: _$_sinclair_typebox0.TNumber;
2573
2586
  end: _$_sinclair_typebox0.TNumber;
2574
2587
  }>;
2575
- callID: _$_sinclair_typebox0.TString;
2576
2588
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2577
2589
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2578
2590
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -2590,13 +2602,13 @@ declare namespace Event {
2590
2602
  isError: _$_sinclair_typebox0.TLiteral<true>;
2591
2603
  }>;
2592
2604
  }>, _$_sinclair_typebox0.TObject<{
2593
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2594
2605
  name: _$_sinclair_typebox0.TString;
2606
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2607
+ callID: _$_sinclair_typebox0.TString;
2595
2608
  time: _$_sinclair_typebox0.TObject<{
2596
2609
  start: _$_sinclair_typebox0.TNumber;
2597
2610
  end: _$_sinclair_typebox0.TNumber;
2598
2611
  }>;
2599
- callID: _$_sinclair_typebox0.TString;
2600
2612
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2601
2613
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2602
2614
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -2614,7 +2626,8 @@ declare namespace Event {
2614
2626
  isError: _$_sinclair_typebox0.TLiteral<true>;
2615
2627
  }>;
2616
2628
  }>]>]>>;
2617
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2629
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2630
+ messageId: _$_sinclair_typebox0.TString;
2618
2631
  }>]>>;
2619
2632
  }>, _$_sinclair_typebox0.TObject<{
2620
2633
  type: _$_sinclair_typebox0.TLiteral<"turn.start">;
@@ -2677,13 +2690,13 @@ declare namespace Event {
2677
2690
  }>, _$_sinclair_typebox0.TObject<{
2678
2691
  status: _$_sinclair_typebox0.TLiteral<"pending">;
2679
2692
  }>]>, _$_sinclair_typebox0.TObject<{
2680
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2681
2693
  name: _$_sinclair_typebox0.TString;
2694
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2695
+ callID: _$_sinclair_typebox0.TString;
2682
2696
  time: _$_sinclair_typebox0.TObject<{
2683
2697
  start: _$_sinclair_typebox0.TNumber;
2684
2698
  end: _$_sinclair_typebox0.TNumber;
2685
2699
  }>;
2686
- callID: _$_sinclair_typebox0.TString;
2687
2700
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2688
2701
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2689
2702
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -2700,13 +2713,13 @@ declare namespace Event {
2700
2713
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
2701
2714
  }>>;
2702
2715
  }>, _$_sinclair_typebox0.TObject<{
2703
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2704
2716
  name: _$_sinclair_typebox0.TString;
2717
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2718
+ callID: _$_sinclair_typebox0.TString;
2705
2719
  time: _$_sinclair_typebox0.TObject<{
2706
2720
  start: _$_sinclair_typebox0.TNumber;
2707
2721
  end: _$_sinclair_typebox0.TNumber;
2708
2722
  }>;
2709
- callID: _$_sinclair_typebox0.TString;
2710
2723
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2711
2724
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2712
2725
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -2724,13 +2737,13 @@ declare namespace Event {
2724
2737
  isError: _$_sinclair_typebox0.TLiteral<false>;
2725
2738
  }>;
2726
2739
  }>, _$_sinclair_typebox0.TObject<{
2727
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2728
2740
  name: _$_sinclair_typebox0.TString;
2741
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2742
+ callID: _$_sinclair_typebox0.TString;
2729
2743
  time: _$_sinclair_typebox0.TObject<{
2730
2744
  start: _$_sinclair_typebox0.TNumber;
2731
2745
  end: _$_sinclair_typebox0.TNumber;
2732
2746
  }>;
2733
- callID: _$_sinclair_typebox0.TString;
2734
2747
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2735
2748
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2736
2749
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2748,13 +2761,13 @@ declare namespace Event {
2748
2761
  isError: _$_sinclair_typebox0.TLiteral<true>;
2749
2762
  }>;
2750
2763
  }>, _$_sinclair_typebox0.TObject<{
2751
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2752
2764
  name: _$_sinclair_typebox0.TString;
2765
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2766
+ callID: _$_sinclair_typebox0.TString;
2753
2767
  time: _$_sinclair_typebox0.TObject<{
2754
2768
  start: _$_sinclair_typebox0.TNumber;
2755
2769
  end: _$_sinclair_typebox0.TNumber;
2756
2770
  }>;
2757
- callID: _$_sinclair_typebox0.TString;
2758
2771
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2759
2772
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2760
2773
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -2772,13 +2785,13 @@ declare namespace Event {
2772
2785
  isError: _$_sinclair_typebox0.TLiteral<true>;
2773
2786
  }>;
2774
2787
  }>, _$_sinclair_typebox0.TObject<{
2775
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2776
2788
  name: _$_sinclair_typebox0.TString;
2789
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2790
+ callID: _$_sinclair_typebox0.TString;
2777
2791
  time: _$_sinclair_typebox0.TObject<{
2778
2792
  start: _$_sinclair_typebox0.TNumber;
2779
2793
  end: _$_sinclair_typebox0.TNumber;
2780
2794
  }>;
2781
- callID: _$_sinclair_typebox0.TString;
2782
2795
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2783
2796
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2784
2797
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -2796,11 +2809,13 @@ declare namespace Event {
2796
2809
  isError: _$_sinclair_typebox0.TLiteral<true>;
2797
2810
  }>;
2798
2811
  }>]>]>>;
2799
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2812
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2813
+ messageId: _$_sinclair_typebox0.TString;
2800
2814
  }>;
2801
2815
  }>, _$_sinclair_typebox0.TObject<{
2802
2816
  type: _$_sinclair_typebox0.TLiteral<"message.start">;
2803
2817
  message: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
2818
+ messageId: _$_sinclair_typebox0.TString;
2804
2819
  role: _$_sinclair_typebox0.TLiteral<"user">;
2805
2820
  time: _$_sinclair_typebox0.TObject<{
2806
2821
  created: _$_sinclair_typebox0.TNumber;
@@ -2871,13 +2886,13 @@ declare namespace Event {
2871
2886
  }>, _$_sinclair_typebox0.TObject<{
2872
2887
  status: _$_sinclair_typebox0.TLiteral<"pending">;
2873
2888
  }>]>, _$_sinclair_typebox0.TObject<{
2874
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2875
2889
  name: _$_sinclair_typebox0.TString;
2890
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2891
+ callID: _$_sinclair_typebox0.TString;
2876
2892
  time: _$_sinclair_typebox0.TObject<{
2877
2893
  start: _$_sinclair_typebox0.TNumber;
2878
2894
  end: _$_sinclair_typebox0.TNumber;
2879
2895
  }>;
2880
- callID: _$_sinclair_typebox0.TString;
2881
2896
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2882
2897
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2883
2898
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -2894,13 +2909,13 @@ declare namespace Event {
2894
2909
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
2895
2910
  }>>;
2896
2911
  }>, _$_sinclair_typebox0.TObject<{
2897
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2898
2912
  name: _$_sinclair_typebox0.TString;
2913
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2914
+ callID: _$_sinclair_typebox0.TString;
2899
2915
  time: _$_sinclair_typebox0.TObject<{
2900
2916
  start: _$_sinclair_typebox0.TNumber;
2901
2917
  end: _$_sinclair_typebox0.TNumber;
2902
2918
  }>;
2903
- callID: _$_sinclair_typebox0.TString;
2904
2919
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2905
2920
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2906
2921
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -2918,13 +2933,13 @@ declare namespace Event {
2918
2933
  isError: _$_sinclair_typebox0.TLiteral<false>;
2919
2934
  }>;
2920
2935
  }>, _$_sinclair_typebox0.TObject<{
2921
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2922
2936
  name: _$_sinclair_typebox0.TString;
2937
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2938
+ callID: _$_sinclair_typebox0.TString;
2923
2939
  time: _$_sinclair_typebox0.TObject<{
2924
2940
  start: _$_sinclair_typebox0.TNumber;
2925
2941
  end: _$_sinclair_typebox0.TNumber;
2926
2942
  }>;
2927
- callID: _$_sinclair_typebox0.TString;
2928
2943
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2929
2944
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2930
2945
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -2942,13 +2957,13 @@ declare namespace Event {
2942
2957
  isError: _$_sinclair_typebox0.TLiteral<true>;
2943
2958
  }>;
2944
2959
  }>, _$_sinclair_typebox0.TObject<{
2945
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2946
2960
  name: _$_sinclair_typebox0.TString;
2961
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2962
+ callID: _$_sinclair_typebox0.TString;
2947
2963
  time: _$_sinclair_typebox0.TObject<{
2948
2964
  start: _$_sinclair_typebox0.TNumber;
2949
2965
  end: _$_sinclair_typebox0.TNumber;
2950
2966
  }>;
2951
- callID: _$_sinclair_typebox0.TString;
2952
2967
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2953
2968
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2954
2969
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -2966,13 +2981,13 @@ declare namespace Event {
2966
2981
  isError: _$_sinclair_typebox0.TLiteral<true>;
2967
2982
  }>;
2968
2983
  }>, _$_sinclair_typebox0.TObject<{
2969
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2970
2984
  name: _$_sinclair_typebox0.TString;
2985
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
2986
+ callID: _$_sinclair_typebox0.TString;
2971
2987
  time: _$_sinclair_typebox0.TObject<{
2972
2988
  start: _$_sinclair_typebox0.TNumber;
2973
2989
  end: _$_sinclair_typebox0.TNumber;
2974
2990
  }>;
2975
- callID: _$_sinclair_typebox0.TString;
2976
2991
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
2977
2992
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
2978
2993
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -2990,11 +3005,13 @@ declare namespace Event {
2990
3005
  isError: _$_sinclair_typebox0.TLiteral<true>;
2991
3006
  }>;
2992
3007
  }>]>]>>;
2993
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3008
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3009
+ messageId: _$_sinclair_typebox0.TString;
2994
3010
  }>]>;
2995
3011
  }>, _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
2996
3012
  type: _$_sinclair_typebox0.TLiteral<"message.part.start">;
2997
3013
  message: _$_sinclair_typebox0.TObject<{
3014
+ messageId: _$_sinclair_typebox0.TString;
2998
3015
  role: _$_sinclair_typebox0.TLiteral<"user">;
2999
3016
  time: _$_sinclair_typebox0.TObject<{
3000
3017
  created: _$_sinclair_typebox0.TNumber;
@@ -3022,6 +3039,7 @@ declare namespace Event {
3022
3039
  }>, _$_sinclair_typebox0.TObject<{
3023
3040
  type: _$_sinclair_typebox0.TLiteral<"message.part.end">;
3024
3041
  message: _$_sinclair_typebox0.TObject<{
3042
+ messageId: _$_sinclair_typebox0.TString;
3025
3043
  role: _$_sinclair_typebox0.TLiteral<"user">;
3026
3044
  time: _$_sinclair_typebox0.TObject<{
3027
3045
  created: _$_sinclair_typebox0.TNumber;
@@ -3105,13 +3123,13 @@ declare namespace Event {
3105
3123
  }>, _$_sinclair_typebox0.TObject<{
3106
3124
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3107
3125
  }>]>, _$_sinclair_typebox0.TObject<{
3108
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3109
3126
  name: _$_sinclair_typebox0.TString;
3127
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3128
+ callID: _$_sinclair_typebox0.TString;
3110
3129
  time: _$_sinclair_typebox0.TObject<{
3111
3130
  start: _$_sinclair_typebox0.TNumber;
3112
3131
  end: _$_sinclair_typebox0.TNumber;
3113
3132
  }>;
3114
- callID: _$_sinclair_typebox0.TString;
3115
3133
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3116
3134
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3117
3135
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3128,13 +3146,13 @@ declare namespace Event {
3128
3146
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3129
3147
  }>>;
3130
3148
  }>, _$_sinclair_typebox0.TObject<{
3131
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3132
3149
  name: _$_sinclair_typebox0.TString;
3150
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3151
+ callID: _$_sinclair_typebox0.TString;
3133
3152
  time: _$_sinclair_typebox0.TObject<{
3134
3153
  start: _$_sinclair_typebox0.TNumber;
3135
3154
  end: _$_sinclair_typebox0.TNumber;
3136
3155
  }>;
3137
- callID: _$_sinclair_typebox0.TString;
3138
3156
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3139
3157
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3140
3158
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3152,13 +3170,13 @@ declare namespace Event {
3152
3170
  isError: _$_sinclair_typebox0.TLiteral<false>;
3153
3171
  }>;
3154
3172
  }>, _$_sinclair_typebox0.TObject<{
3155
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3156
3173
  name: _$_sinclair_typebox0.TString;
3174
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3175
+ callID: _$_sinclair_typebox0.TString;
3157
3176
  time: _$_sinclair_typebox0.TObject<{
3158
3177
  start: _$_sinclair_typebox0.TNumber;
3159
3178
  end: _$_sinclair_typebox0.TNumber;
3160
3179
  }>;
3161
- callID: _$_sinclair_typebox0.TString;
3162
3180
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3163
3181
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3164
3182
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3176,13 +3194,13 @@ declare namespace Event {
3176
3194
  isError: _$_sinclair_typebox0.TLiteral<true>;
3177
3195
  }>;
3178
3196
  }>, _$_sinclair_typebox0.TObject<{
3179
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3180
3197
  name: _$_sinclair_typebox0.TString;
3198
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3199
+ callID: _$_sinclair_typebox0.TString;
3181
3200
  time: _$_sinclair_typebox0.TObject<{
3182
3201
  start: _$_sinclair_typebox0.TNumber;
3183
3202
  end: _$_sinclair_typebox0.TNumber;
3184
3203
  }>;
3185
- callID: _$_sinclair_typebox0.TString;
3186
3204
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3187
3205
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3188
3206
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -3200,13 +3218,13 @@ declare namespace Event {
3200
3218
  isError: _$_sinclair_typebox0.TLiteral<true>;
3201
3219
  }>;
3202
3220
  }>, _$_sinclair_typebox0.TObject<{
3203
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3204
3221
  name: _$_sinclair_typebox0.TString;
3222
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3223
+ callID: _$_sinclair_typebox0.TString;
3205
3224
  time: _$_sinclair_typebox0.TObject<{
3206
3225
  start: _$_sinclair_typebox0.TNumber;
3207
3226
  end: _$_sinclair_typebox0.TNumber;
3208
3227
  }>;
3209
- callID: _$_sinclair_typebox0.TString;
3210
3228
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3211
3229
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3212
3230
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -3224,7 +3242,8 @@ declare namespace Event {
3224
3242
  isError: _$_sinclair_typebox0.TLiteral<true>;
3225
3243
  }>;
3226
3244
  }>]>]>>;
3227
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3245
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3246
+ messageId: _$_sinclair_typebox0.TString;
3228
3247
  }>;
3229
3248
  partIndex: _$_sinclair_typebox0.TNumber;
3230
3249
  part: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
@@ -3253,13 +3272,13 @@ declare namespace Event {
3253
3272
  }>, _$_sinclair_typebox0.TObject<{
3254
3273
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3255
3274
  }>]>, _$_sinclair_typebox0.TObject<{
3256
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3257
3275
  name: _$_sinclair_typebox0.TString;
3276
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3277
+ callID: _$_sinclair_typebox0.TString;
3258
3278
  time: _$_sinclair_typebox0.TObject<{
3259
3279
  start: _$_sinclair_typebox0.TNumber;
3260
3280
  end: _$_sinclair_typebox0.TNumber;
3261
3281
  }>;
3262
- callID: _$_sinclair_typebox0.TString;
3263
3282
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3264
3283
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3265
3284
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3276,13 +3295,13 @@ declare namespace Event {
3276
3295
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3277
3296
  }>>;
3278
3297
  }>, _$_sinclair_typebox0.TObject<{
3279
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3280
3298
  name: _$_sinclair_typebox0.TString;
3299
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3300
+ callID: _$_sinclair_typebox0.TString;
3281
3301
  time: _$_sinclair_typebox0.TObject<{
3282
3302
  start: _$_sinclair_typebox0.TNumber;
3283
3303
  end: _$_sinclair_typebox0.TNumber;
3284
3304
  }>;
3285
- callID: _$_sinclair_typebox0.TString;
3286
3305
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3287
3306
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3288
3307
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3300,13 +3319,13 @@ declare namespace Event {
3300
3319
  isError: _$_sinclair_typebox0.TLiteral<false>;
3301
3320
  }>;
3302
3321
  }>, _$_sinclair_typebox0.TObject<{
3303
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3304
3322
  name: _$_sinclair_typebox0.TString;
3323
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3324
+ callID: _$_sinclair_typebox0.TString;
3305
3325
  time: _$_sinclair_typebox0.TObject<{
3306
3326
  start: _$_sinclair_typebox0.TNumber;
3307
3327
  end: _$_sinclair_typebox0.TNumber;
3308
3328
  }>;
3309
- callID: _$_sinclair_typebox0.TString;
3310
3329
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3311
3330
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3312
3331
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3324,13 +3343,13 @@ declare namespace Event {
3324
3343
  isError: _$_sinclair_typebox0.TLiteral<true>;
3325
3344
  }>;
3326
3345
  }>, _$_sinclair_typebox0.TObject<{
3327
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3328
3346
  name: _$_sinclair_typebox0.TString;
3347
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3348
+ callID: _$_sinclair_typebox0.TString;
3329
3349
  time: _$_sinclair_typebox0.TObject<{
3330
3350
  start: _$_sinclair_typebox0.TNumber;
3331
3351
  end: _$_sinclair_typebox0.TNumber;
3332
3352
  }>;
3333
- callID: _$_sinclair_typebox0.TString;
3334
3353
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3335
3354
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3336
3355
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -3348,13 +3367,13 @@ declare namespace Event {
3348
3367
  isError: _$_sinclair_typebox0.TLiteral<true>;
3349
3368
  }>;
3350
3369
  }>, _$_sinclair_typebox0.TObject<{
3351
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3352
3370
  name: _$_sinclair_typebox0.TString;
3371
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3372
+ callID: _$_sinclair_typebox0.TString;
3353
3373
  time: _$_sinclair_typebox0.TObject<{
3354
3374
  start: _$_sinclair_typebox0.TNumber;
3355
3375
  end: _$_sinclair_typebox0.TNumber;
3356
3376
  }>;
3357
- callID: _$_sinclair_typebox0.TString;
3358
3377
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3359
3378
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3360
3379
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -3431,13 +3450,13 @@ declare namespace Event {
3431
3450
  }>, _$_sinclair_typebox0.TObject<{
3432
3451
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3433
3452
  }>]>, _$_sinclair_typebox0.TObject<{
3434
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3435
3453
  name: _$_sinclair_typebox0.TString;
3454
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3455
+ callID: _$_sinclair_typebox0.TString;
3436
3456
  time: _$_sinclair_typebox0.TObject<{
3437
3457
  start: _$_sinclair_typebox0.TNumber;
3438
3458
  end: _$_sinclair_typebox0.TNumber;
3439
3459
  }>;
3440
- callID: _$_sinclair_typebox0.TString;
3441
3460
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3442
3461
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3443
3462
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3454,13 +3473,13 @@ declare namespace Event {
3454
3473
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3455
3474
  }>>;
3456
3475
  }>, _$_sinclair_typebox0.TObject<{
3457
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3458
3476
  name: _$_sinclair_typebox0.TString;
3477
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3478
+ callID: _$_sinclair_typebox0.TString;
3459
3479
  time: _$_sinclair_typebox0.TObject<{
3460
3480
  start: _$_sinclair_typebox0.TNumber;
3461
3481
  end: _$_sinclair_typebox0.TNumber;
3462
3482
  }>;
3463
- callID: _$_sinclair_typebox0.TString;
3464
3483
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3465
3484
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3466
3485
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3478,13 +3497,13 @@ declare namespace Event {
3478
3497
  isError: _$_sinclair_typebox0.TLiteral<false>;
3479
3498
  }>;
3480
3499
  }>, _$_sinclair_typebox0.TObject<{
3481
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3482
3500
  name: _$_sinclair_typebox0.TString;
3501
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3502
+ callID: _$_sinclair_typebox0.TString;
3483
3503
  time: _$_sinclair_typebox0.TObject<{
3484
3504
  start: _$_sinclair_typebox0.TNumber;
3485
3505
  end: _$_sinclair_typebox0.TNumber;
3486
3506
  }>;
3487
- callID: _$_sinclair_typebox0.TString;
3488
3507
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3489
3508
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3490
3509
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3502,13 +3521,13 @@ declare namespace Event {
3502
3521
  isError: _$_sinclair_typebox0.TLiteral<true>;
3503
3522
  }>;
3504
3523
  }>, _$_sinclair_typebox0.TObject<{
3505
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3506
3524
  name: _$_sinclair_typebox0.TString;
3525
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3526
+ callID: _$_sinclair_typebox0.TString;
3507
3527
  time: _$_sinclair_typebox0.TObject<{
3508
3528
  start: _$_sinclair_typebox0.TNumber;
3509
3529
  end: _$_sinclair_typebox0.TNumber;
3510
3530
  }>;
3511
- callID: _$_sinclair_typebox0.TString;
3512
3531
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3513
3532
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3514
3533
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -3526,13 +3545,13 @@ declare namespace Event {
3526
3545
  isError: _$_sinclair_typebox0.TLiteral<true>;
3527
3546
  }>;
3528
3547
  }>, _$_sinclair_typebox0.TObject<{
3529
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3530
3548
  name: _$_sinclair_typebox0.TString;
3549
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3550
+ callID: _$_sinclair_typebox0.TString;
3531
3551
  time: _$_sinclair_typebox0.TObject<{
3532
3552
  start: _$_sinclair_typebox0.TNumber;
3533
3553
  end: _$_sinclair_typebox0.TNumber;
3534
3554
  }>;
3535
- callID: _$_sinclair_typebox0.TString;
3536
3555
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3537
3556
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3538
3557
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -3550,7 +3569,8 @@ declare namespace Event {
3550
3569
  isError: _$_sinclair_typebox0.TLiteral<true>;
3551
3570
  }>;
3552
3571
  }>]>]>>;
3553
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3572
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3573
+ messageId: _$_sinclair_typebox0.TString;
3554
3574
  }>;
3555
3575
  partIndex: _$_sinclair_typebox0.TNumber;
3556
3576
  part: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
@@ -3579,13 +3599,13 @@ declare namespace Event {
3579
3599
  }>, _$_sinclair_typebox0.TObject<{
3580
3600
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3581
3601
  }>]>, _$_sinclair_typebox0.TObject<{
3582
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3583
3602
  name: _$_sinclair_typebox0.TString;
3603
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3604
+ callID: _$_sinclair_typebox0.TString;
3584
3605
  time: _$_sinclair_typebox0.TObject<{
3585
3606
  start: _$_sinclair_typebox0.TNumber;
3586
3607
  end: _$_sinclair_typebox0.TNumber;
3587
3608
  }>;
3588
- callID: _$_sinclair_typebox0.TString;
3589
3609
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3590
3610
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3591
3611
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3602,13 +3622,13 @@ declare namespace Event {
3602
3622
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3603
3623
  }>>;
3604
3624
  }>, _$_sinclair_typebox0.TObject<{
3605
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3606
3625
  name: _$_sinclair_typebox0.TString;
3626
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3627
+ callID: _$_sinclair_typebox0.TString;
3607
3628
  time: _$_sinclair_typebox0.TObject<{
3608
3629
  start: _$_sinclair_typebox0.TNumber;
3609
3630
  end: _$_sinclair_typebox0.TNumber;
3610
3631
  }>;
3611
- callID: _$_sinclair_typebox0.TString;
3612
3632
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3613
3633
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3614
3634
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3626,13 +3646,13 @@ declare namespace Event {
3626
3646
  isError: _$_sinclair_typebox0.TLiteral<false>;
3627
3647
  }>;
3628
3648
  }>, _$_sinclair_typebox0.TObject<{
3629
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3630
3649
  name: _$_sinclair_typebox0.TString;
3650
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3651
+ callID: _$_sinclair_typebox0.TString;
3631
3652
  time: _$_sinclair_typebox0.TObject<{
3632
3653
  start: _$_sinclair_typebox0.TNumber;
3633
3654
  end: _$_sinclair_typebox0.TNumber;
3634
3655
  }>;
3635
- callID: _$_sinclair_typebox0.TString;
3636
3656
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3637
3657
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3638
3658
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3650,13 +3670,13 @@ declare namespace Event {
3650
3670
  isError: _$_sinclair_typebox0.TLiteral<true>;
3651
3671
  }>;
3652
3672
  }>, _$_sinclair_typebox0.TObject<{
3653
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3654
3673
  name: _$_sinclair_typebox0.TString;
3674
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3675
+ callID: _$_sinclair_typebox0.TString;
3655
3676
  time: _$_sinclair_typebox0.TObject<{
3656
3677
  start: _$_sinclair_typebox0.TNumber;
3657
3678
  end: _$_sinclair_typebox0.TNumber;
3658
3679
  }>;
3659
- callID: _$_sinclair_typebox0.TString;
3660
3680
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3661
3681
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3662
3682
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -3674,13 +3694,13 @@ declare namespace Event {
3674
3694
  isError: _$_sinclair_typebox0.TLiteral<true>;
3675
3695
  }>;
3676
3696
  }>, _$_sinclair_typebox0.TObject<{
3677
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3678
3697
  name: _$_sinclair_typebox0.TString;
3698
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3699
+ callID: _$_sinclair_typebox0.TString;
3679
3700
  time: _$_sinclair_typebox0.TObject<{
3680
3701
  start: _$_sinclair_typebox0.TNumber;
3681
3702
  end: _$_sinclair_typebox0.TNumber;
3682
3703
  }>;
3683
- callID: _$_sinclair_typebox0.TString;
3684
3704
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3685
3705
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3686
3706
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -3758,13 +3778,13 @@ declare namespace Event {
3758
3778
  }>, _$_sinclair_typebox0.TObject<{
3759
3779
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3760
3780
  }>]>, _$_sinclair_typebox0.TObject<{
3761
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3762
3781
  name: _$_sinclair_typebox0.TString;
3782
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3783
+ callID: _$_sinclair_typebox0.TString;
3763
3784
  time: _$_sinclair_typebox0.TObject<{
3764
3785
  start: _$_sinclair_typebox0.TNumber;
3765
3786
  end: _$_sinclair_typebox0.TNumber;
3766
3787
  }>;
3767
- callID: _$_sinclair_typebox0.TString;
3768
3788
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3769
3789
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3770
3790
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3781,13 +3801,13 @@ declare namespace Event {
3781
3801
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3782
3802
  }>>;
3783
3803
  }>, _$_sinclair_typebox0.TObject<{
3784
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3785
3804
  name: _$_sinclair_typebox0.TString;
3805
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3806
+ callID: _$_sinclair_typebox0.TString;
3786
3807
  time: _$_sinclair_typebox0.TObject<{
3787
3808
  start: _$_sinclair_typebox0.TNumber;
3788
3809
  end: _$_sinclair_typebox0.TNumber;
3789
3810
  }>;
3790
- callID: _$_sinclair_typebox0.TString;
3791
3811
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3792
3812
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3793
3813
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3805,13 +3825,13 @@ declare namespace Event {
3805
3825
  isError: _$_sinclair_typebox0.TLiteral<false>;
3806
3826
  }>;
3807
3827
  }>, _$_sinclair_typebox0.TObject<{
3808
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3809
3828
  name: _$_sinclair_typebox0.TString;
3829
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3830
+ callID: _$_sinclair_typebox0.TString;
3810
3831
  time: _$_sinclair_typebox0.TObject<{
3811
3832
  start: _$_sinclair_typebox0.TNumber;
3812
3833
  end: _$_sinclair_typebox0.TNumber;
3813
3834
  }>;
3814
- callID: _$_sinclair_typebox0.TString;
3815
3835
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3816
3836
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3817
3837
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3829,13 +3849,13 @@ declare namespace Event {
3829
3849
  isError: _$_sinclair_typebox0.TLiteral<true>;
3830
3850
  }>;
3831
3851
  }>, _$_sinclair_typebox0.TObject<{
3832
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3833
3852
  name: _$_sinclair_typebox0.TString;
3853
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3854
+ callID: _$_sinclair_typebox0.TString;
3834
3855
  time: _$_sinclair_typebox0.TObject<{
3835
3856
  start: _$_sinclair_typebox0.TNumber;
3836
3857
  end: _$_sinclair_typebox0.TNumber;
3837
3858
  }>;
3838
- callID: _$_sinclair_typebox0.TString;
3839
3859
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3840
3860
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3841
3861
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -3853,13 +3873,13 @@ declare namespace Event {
3853
3873
  isError: _$_sinclair_typebox0.TLiteral<true>;
3854
3874
  }>;
3855
3875
  }>, _$_sinclair_typebox0.TObject<{
3856
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3857
3876
  name: _$_sinclair_typebox0.TString;
3877
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3878
+ callID: _$_sinclair_typebox0.TString;
3858
3879
  time: _$_sinclair_typebox0.TObject<{
3859
3880
  start: _$_sinclair_typebox0.TNumber;
3860
3881
  end: _$_sinclair_typebox0.TNumber;
3861
3882
  }>;
3862
- callID: _$_sinclair_typebox0.TString;
3863
3883
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3864
3884
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3865
3885
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -3877,7 +3897,8 @@ declare namespace Event {
3877
3897
  isError: _$_sinclair_typebox0.TLiteral<true>;
3878
3898
  }>;
3879
3899
  }>]>]>>;
3880
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3900
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3901
+ messageId: _$_sinclair_typebox0.TString;
3881
3902
  }>;
3882
3903
  partIndex: _$_sinclair_typebox0.TNumber;
3883
3904
  part: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
@@ -3906,13 +3927,13 @@ declare namespace Event {
3906
3927
  }>, _$_sinclair_typebox0.TObject<{
3907
3928
  status: _$_sinclair_typebox0.TLiteral<"pending">;
3908
3929
  }>]>, _$_sinclair_typebox0.TObject<{
3909
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3910
3930
  name: _$_sinclair_typebox0.TString;
3931
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3932
+ callID: _$_sinclair_typebox0.TString;
3911
3933
  time: _$_sinclair_typebox0.TObject<{
3912
3934
  start: _$_sinclair_typebox0.TNumber;
3913
3935
  end: _$_sinclair_typebox0.TNumber;
3914
3936
  }>;
3915
- callID: _$_sinclair_typebox0.TString;
3916
3937
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3917
3938
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3918
3939
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -3929,13 +3950,13 @@ declare namespace Event {
3929
3950
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
3930
3951
  }>>;
3931
3952
  }>, _$_sinclair_typebox0.TObject<{
3932
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3933
3953
  name: _$_sinclair_typebox0.TString;
3954
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3955
+ callID: _$_sinclair_typebox0.TString;
3934
3956
  time: _$_sinclair_typebox0.TObject<{
3935
3957
  start: _$_sinclair_typebox0.TNumber;
3936
3958
  end: _$_sinclair_typebox0.TNumber;
3937
3959
  }>;
3938
- callID: _$_sinclair_typebox0.TString;
3939
3960
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3940
3961
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3941
3962
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -3953,13 +3974,13 @@ declare namespace Event {
3953
3974
  isError: _$_sinclair_typebox0.TLiteral<false>;
3954
3975
  }>;
3955
3976
  }>, _$_sinclair_typebox0.TObject<{
3956
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3957
3977
  name: _$_sinclair_typebox0.TString;
3978
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3979
+ callID: _$_sinclair_typebox0.TString;
3958
3980
  time: _$_sinclair_typebox0.TObject<{
3959
3981
  start: _$_sinclair_typebox0.TNumber;
3960
3982
  end: _$_sinclair_typebox0.TNumber;
3961
3983
  }>;
3962
- callID: _$_sinclair_typebox0.TString;
3963
3984
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3964
3985
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3965
3986
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -3977,13 +3998,13 @@ declare namespace Event {
3977
3998
  isError: _$_sinclair_typebox0.TLiteral<true>;
3978
3999
  }>;
3979
4000
  }>, _$_sinclair_typebox0.TObject<{
3980
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
3981
4001
  name: _$_sinclair_typebox0.TString;
4002
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4003
+ callID: _$_sinclair_typebox0.TString;
3982
4004
  time: _$_sinclair_typebox0.TObject<{
3983
4005
  start: _$_sinclair_typebox0.TNumber;
3984
4006
  end: _$_sinclair_typebox0.TNumber;
3985
4007
  }>;
3986
- callID: _$_sinclair_typebox0.TString;
3987
4008
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
3988
4009
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
3989
4010
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -4001,13 +4022,13 @@ declare namespace Event {
4001
4022
  isError: _$_sinclair_typebox0.TLiteral<true>;
4002
4023
  }>;
4003
4024
  }>, _$_sinclair_typebox0.TObject<{
4004
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4005
4025
  name: _$_sinclair_typebox0.TString;
4026
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4027
+ callID: _$_sinclair_typebox0.TString;
4006
4028
  time: _$_sinclair_typebox0.TObject<{
4007
4029
  start: _$_sinclair_typebox0.TNumber;
4008
4030
  end: _$_sinclair_typebox0.TNumber;
4009
4031
  }>;
4010
- callID: _$_sinclair_typebox0.TString;
4011
4032
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4012
4033
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4013
4034
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -4085,13 +4106,13 @@ declare namespace Event {
4085
4106
  }>, _$_sinclair_typebox0.TObject<{
4086
4107
  status: _$_sinclair_typebox0.TLiteral<"pending">;
4087
4108
  }>]>, _$_sinclair_typebox0.TObject<{
4088
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4089
4109
  name: _$_sinclair_typebox0.TString;
4110
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4111
+ callID: _$_sinclair_typebox0.TString;
4090
4112
  time: _$_sinclair_typebox0.TObject<{
4091
4113
  start: _$_sinclair_typebox0.TNumber;
4092
4114
  end: _$_sinclair_typebox0.TNumber;
4093
4115
  }>;
4094
- callID: _$_sinclair_typebox0.TString;
4095
4116
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4096
4117
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4097
4118
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -4108,13 +4129,13 @@ declare namespace Event {
4108
4129
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
4109
4130
  }>>;
4110
4131
  }>, _$_sinclair_typebox0.TObject<{
4111
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4112
4132
  name: _$_sinclair_typebox0.TString;
4133
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4134
+ callID: _$_sinclair_typebox0.TString;
4113
4135
  time: _$_sinclair_typebox0.TObject<{
4114
4136
  start: _$_sinclair_typebox0.TNumber;
4115
4137
  end: _$_sinclair_typebox0.TNumber;
4116
4138
  }>;
4117
- callID: _$_sinclair_typebox0.TString;
4118
4139
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4119
4140
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4120
4141
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -4132,13 +4153,13 @@ declare namespace Event {
4132
4153
  isError: _$_sinclair_typebox0.TLiteral<false>;
4133
4154
  }>;
4134
4155
  }>, _$_sinclair_typebox0.TObject<{
4135
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4136
4156
  name: _$_sinclair_typebox0.TString;
4157
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4158
+ callID: _$_sinclair_typebox0.TString;
4137
4159
  time: _$_sinclair_typebox0.TObject<{
4138
4160
  start: _$_sinclair_typebox0.TNumber;
4139
4161
  end: _$_sinclair_typebox0.TNumber;
4140
4162
  }>;
4141
- callID: _$_sinclair_typebox0.TString;
4142
4163
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4143
4164
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4144
4165
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -4156,13 +4177,13 @@ declare namespace Event {
4156
4177
  isError: _$_sinclair_typebox0.TLiteral<true>;
4157
4178
  }>;
4158
4179
  }>, _$_sinclair_typebox0.TObject<{
4159
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4160
4180
  name: _$_sinclair_typebox0.TString;
4181
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4182
+ callID: _$_sinclair_typebox0.TString;
4161
4183
  time: _$_sinclair_typebox0.TObject<{
4162
4184
  start: _$_sinclair_typebox0.TNumber;
4163
4185
  end: _$_sinclair_typebox0.TNumber;
4164
4186
  }>;
4165
- callID: _$_sinclair_typebox0.TString;
4166
4187
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4167
4188
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4168
4189
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -4180,13 +4201,13 @@ declare namespace Event {
4180
4201
  isError: _$_sinclair_typebox0.TLiteral<true>;
4181
4202
  }>;
4182
4203
  }>, _$_sinclair_typebox0.TObject<{
4183
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4184
4204
  name: _$_sinclair_typebox0.TString;
4205
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4206
+ callID: _$_sinclair_typebox0.TString;
4185
4207
  time: _$_sinclair_typebox0.TObject<{
4186
4208
  start: _$_sinclair_typebox0.TNumber;
4187
4209
  end: _$_sinclair_typebox0.TNumber;
4188
4210
  }>;
4189
- callID: _$_sinclair_typebox0.TString;
4190
4211
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4191
4212
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4192
4213
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -4204,7 +4225,8 @@ declare namespace Event {
4204
4225
  isError: _$_sinclair_typebox0.TLiteral<true>;
4205
4226
  }>;
4206
4227
  }>]>]>>;
4207
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4228
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4229
+ messageId: _$_sinclair_typebox0.TString;
4208
4230
  }>;
4209
4231
  partIndex: _$_sinclair_typebox0.TNumber;
4210
4232
  part: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
@@ -4233,13 +4255,13 @@ declare namespace Event {
4233
4255
  }>, _$_sinclair_typebox0.TObject<{
4234
4256
  status: _$_sinclair_typebox0.TLiteral<"pending">;
4235
4257
  }>]>, _$_sinclair_typebox0.TObject<{
4236
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4237
4258
  name: _$_sinclair_typebox0.TString;
4259
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4260
+ callID: _$_sinclair_typebox0.TString;
4238
4261
  time: _$_sinclair_typebox0.TObject<{
4239
4262
  start: _$_sinclair_typebox0.TNumber;
4240
4263
  end: _$_sinclair_typebox0.TNumber;
4241
4264
  }>;
4242
- callID: _$_sinclair_typebox0.TString;
4243
4265
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4244
4266
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4245
4267
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -4256,13 +4278,13 @@ declare namespace Event {
4256
4278
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
4257
4279
  }>>;
4258
4280
  }>, _$_sinclair_typebox0.TObject<{
4259
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4260
4281
  name: _$_sinclair_typebox0.TString;
4282
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4283
+ callID: _$_sinclair_typebox0.TString;
4261
4284
  time: _$_sinclair_typebox0.TObject<{
4262
4285
  start: _$_sinclair_typebox0.TNumber;
4263
4286
  end: _$_sinclair_typebox0.TNumber;
4264
4287
  }>;
4265
- callID: _$_sinclair_typebox0.TString;
4266
4288
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4267
4289
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4268
4290
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -4280,13 +4302,13 @@ declare namespace Event {
4280
4302
  isError: _$_sinclair_typebox0.TLiteral<false>;
4281
4303
  }>;
4282
4304
  }>, _$_sinclair_typebox0.TObject<{
4283
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4284
4305
  name: _$_sinclair_typebox0.TString;
4306
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4307
+ callID: _$_sinclair_typebox0.TString;
4285
4308
  time: _$_sinclair_typebox0.TObject<{
4286
4309
  start: _$_sinclair_typebox0.TNumber;
4287
4310
  end: _$_sinclair_typebox0.TNumber;
4288
4311
  }>;
4289
- callID: _$_sinclair_typebox0.TString;
4290
4312
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4291
4313
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4292
4314
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -4304,13 +4326,13 @@ declare namespace Event {
4304
4326
  isError: _$_sinclair_typebox0.TLiteral<true>;
4305
4327
  }>;
4306
4328
  }>, _$_sinclair_typebox0.TObject<{
4307
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4308
4329
  name: _$_sinclair_typebox0.TString;
4330
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4331
+ callID: _$_sinclair_typebox0.TString;
4309
4332
  time: _$_sinclair_typebox0.TObject<{
4310
4333
  start: _$_sinclair_typebox0.TNumber;
4311
4334
  end: _$_sinclair_typebox0.TNumber;
4312
4335
  }>;
4313
- callID: _$_sinclair_typebox0.TString;
4314
4336
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4315
4337
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4316
4338
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -4328,13 +4350,13 @@ declare namespace Event {
4328
4350
  isError: _$_sinclair_typebox0.TLiteral<true>;
4329
4351
  }>;
4330
4352
  }>, _$_sinclair_typebox0.TObject<{
4331
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4332
4353
  name: _$_sinclair_typebox0.TString;
4354
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4355
+ callID: _$_sinclair_typebox0.TString;
4333
4356
  time: _$_sinclair_typebox0.TObject<{
4334
4357
  start: _$_sinclair_typebox0.TNumber;
4335
4358
  end: _$_sinclair_typebox0.TNumber;
4336
4359
  }>;
4337
- callID: _$_sinclair_typebox0.TString;
4338
4360
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4339
4361
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4340
4362
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -4355,6 +4377,7 @@ declare namespace Event {
4355
4377
  }>]>, _$_sinclair_typebox0.TObject<{
4356
4378
  type: _$_sinclair_typebox0.TLiteral<"message.update">;
4357
4379
  message: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
4380
+ messageId: _$_sinclair_typebox0.TString;
4358
4381
  role: _$_sinclair_typebox0.TLiteral<"user">;
4359
4382
  time: _$_sinclair_typebox0.TObject<{
4360
4383
  created: _$_sinclair_typebox0.TNumber;
@@ -4425,13 +4448,13 @@ declare namespace Event {
4425
4448
  }>, _$_sinclair_typebox0.TObject<{
4426
4449
  status: _$_sinclair_typebox0.TLiteral<"pending">;
4427
4450
  }>]>, _$_sinclair_typebox0.TObject<{
4428
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4429
4451
  name: _$_sinclair_typebox0.TString;
4452
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4453
+ callID: _$_sinclair_typebox0.TString;
4430
4454
  time: _$_sinclair_typebox0.TObject<{
4431
4455
  start: _$_sinclair_typebox0.TNumber;
4432
4456
  end: _$_sinclair_typebox0.TNumber;
4433
4457
  }>;
4434
- callID: _$_sinclair_typebox0.TString;
4435
4458
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4436
4459
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4437
4460
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -4448,13 +4471,13 @@ declare namespace Event {
4448
4471
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
4449
4472
  }>>;
4450
4473
  }>, _$_sinclair_typebox0.TObject<{
4451
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4452
4474
  name: _$_sinclair_typebox0.TString;
4475
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4476
+ callID: _$_sinclair_typebox0.TString;
4453
4477
  time: _$_sinclair_typebox0.TObject<{
4454
4478
  start: _$_sinclair_typebox0.TNumber;
4455
4479
  end: _$_sinclair_typebox0.TNumber;
4456
4480
  }>;
4457
- callID: _$_sinclair_typebox0.TString;
4458
4481
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4459
4482
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4460
4483
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -4472,13 +4495,13 @@ declare namespace Event {
4472
4495
  isError: _$_sinclair_typebox0.TLiteral<false>;
4473
4496
  }>;
4474
4497
  }>, _$_sinclair_typebox0.TObject<{
4475
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4476
4498
  name: _$_sinclair_typebox0.TString;
4499
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4500
+ callID: _$_sinclair_typebox0.TString;
4477
4501
  time: _$_sinclair_typebox0.TObject<{
4478
4502
  start: _$_sinclair_typebox0.TNumber;
4479
4503
  end: _$_sinclair_typebox0.TNumber;
4480
4504
  }>;
4481
- callID: _$_sinclair_typebox0.TString;
4482
4505
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4483
4506
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4484
4507
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -4496,13 +4519,13 @@ declare namespace Event {
4496
4519
  isError: _$_sinclair_typebox0.TLiteral<true>;
4497
4520
  }>;
4498
4521
  }>, _$_sinclair_typebox0.TObject<{
4499
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4500
4522
  name: _$_sinclair_typebox0.TString;
4523
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4524
+ callID: _$_sinclair_typebox0.TString;
4501
4525
  time: _$_sinclair_typebox0.TObject<{
4502
4526
  start: _$_sinclair_typebox0.TNumber;
4503
4527
  end: _$_sinclair_typebox0.TNumber;
4504
4528
  }>;
4505
- callID: _$_sinclair_typebox0.TString;
4506
4529
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4507
4530
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4508
4531
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -4520,13 +4543,13 @@ declare namespace Event {
4520
4543
  isError: _$_sinclair_typebox0.TLiteral<true>;
4521
4544
  }>;
4522
4545
  }>, _$_sinclair_typebox0.TObject<{
4523
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4524
4546
  name: _$_sinclair_typebox0.TString;
4547
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4548
+ callID: _$_sinclair_typebox0.TString;
4525
4549
  time: _$_sinclair_typebox0.TObject<{
4526
4550
  start: _$_sinclair_typebox0.TNumber;
4527
4551
  end: _$_sinclair_typebox0.TNumber;
4528
4552
  }>;
4529
- callID: _$_sinclair_typebox0.TString;
4530
4553
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4531
4554
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4532
4555
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -4544,11 +4567,13 @@ declare namespace Event {
4544
4567
  isError: _$_sinclair_typebox0.TLiteral<true>;
4545
4568
  }>;
4546
4569
  }>]>]>>;
4547
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4570
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4571
+ messageId: _$_sinclair_typebox0.TString;
4548
4572
  }>]>;
4549
4573
  }>, _$_sinclair_typebox0.TObject<{
4550
4574
  type: _$_sinclair_typebox0.TLiteral<"message.end">;
4551
4575
  message: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
4576
+ messageId: _$_sinclair_typebox0.TString;
4552
4577
  role: _$_sinclair_typebox0.TLiteral<"user">;
4553
4578
  time: _$_sinclair_typebox0.TObject<{
4554
4579
  created: _$_sinclair_typebox0.TNumber;
@@ -4619,13 +4644,13 @@ declare namespace Event {
4619
4644
  }>, _$_sinclair_typebox0.TObject<{
4620
4645
  status: _$_sinclair_typebox0.TLiteral<"pending">;
4621
4646
  }>]>, _$_sinclair_typebox0.TObject<{
4622
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4623
4647
  name: _$_sinclair_typebox0.TString;
4648
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4649
+ callID: _$_sinclair_typebox0.TString;
4624
4650
  time: _$_sinclair_typebox0.TObject<{
4625
4651
  start: _$_sinclair_typebox0.TNumber;
4626
4652
  end: _$_sinclair_typebox0.TNumber;
4627
4653
  }>;
4628
- callID: _$_sinclair_typebox0.TString;
4629
4654
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4630
4655
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4631
4656
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -4642,13 +4667,13 @@ declare namespace Event {
4642
4667
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
4643
4668
  }>>;
4644
4669
  }>, _$_sinclair_typebox0.TObject<{
4645
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4646
4670
  name: _$_sinclair_typebox0.TString;
4671
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4672
+ callID: _$_sinclair_typebox0.TString;
4647
4673
  time: _$_sinclair_typebox0.TObject<{
4648
4674
  start: _$_sinclair_typebox0.TNumber;
4649
4675
  end: _$_sinclair_typebox0.TNumber;
4650
4676
  }>;
4651
- callID: _$_sinclair_typebox0.TString;
4652
4677
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4653
4678
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4654
4679
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -4666,13 +4691,13 @@ declare namespace Event {
4666
4691
  isError: _$_sinclair_typebox0.TLiteral<false>;
4667
4692
  }>;
4668
4693
  }>, _$_sinclair_typebox0.TObject<{
4669
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4670
4694
  name: _$_sinclair_typebox0.TString;
4695
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4696
+ callID: _$_sinclair_typebox0.TString;
4671
4697
  time: _$_sinclair_typebox0.TObject<{
4672
4698
  start: _$_sinclair_typebox0.TNumber;
4673
4699
  end: _$_sinclair_typebox0.TNumber;
4674
4700
  }>;
4675
- callID: _$_sinclair_typebox0.TString;
4676
4701
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4677
4702
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4678
4703
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -4690,13 +4715,13 @@ declare namespace Event {
4690
4715
  isError: _$_sinclair_typebox0.TLiteral<true>;
4691
4716
  }>;
4692
4717
  }>, _$_sinclair_typebox0.TObject<{
4693
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4694
4718
  name: _$_sinclair_typebox0.TString;
4719
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4720
+ callID: _$_sinclair_typebox0.TString;
4695
4721
  time: _$_sinclair_typebox0.TObject<{
4696
4722
  start: _$_sinclair_typebox0.TNumber;
4697
4723
  end: _$_sinclair_typebox0.TNumber;
4698
4724
  }>;
4699
- callID: _$_sinclair_typebox0.TString;
4700
4725
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4701
4726
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4702
4727
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -4714,13 +4739,13 @@ declare namespace Event {
4714
4739
  isError: _$_sinclair_typebox0.TLiteral<true>;
4715
4740
  }>;
4716
4741
  }>, _$_sinclair_typebox0.TObject<{
4717
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4718
4742
  name: _$_sinclair_typebox0.TString;
4743
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
4744
+ callID: _$_sinclair_typebox0.TString;
4719
4745
  time: _$_sinclair_typebox0.TObject<{
4720
4746
  start: _$_sinclair_typebox0.TNumber;
4721
4747
  end: _$_sinclair_typebox0.TNumber;
4722
4748
  }>;
4723
- callID: _$_sinclair_typebox0.TString;
4724
4749
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
4725
4750
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4726
4751
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -4738,7 +4763,8 @@ declare namespace Event {
4738
4763
  isError: _$_sinclair_typebox0.TLiteral<true>;
4739
4764
  }>;
4740
4765
  }>]>]>>;
4741
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4766
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4767
+ messageId: _$_sinclair_typebox0.TString;
4742
4768
  }>]>;
4743
4769
  }>, _$_sinclair_typebox0.TObject<{
4744
4770
  name: _$_sinclair_typebox0.TString;
@@ -4928,8 +4954,6 @@ declare namespace Model {
4928
4954
  supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
4929
4955
  }>, _$_sinclair_typebox0.TObject<{}>]>;
4930
4956
  const AnthropicSchema: _$_sinclair_typebox0.TObject<{
4931
- name: _$_sinclair_typebox0.TString;
4932
- id: _$_sinclair_typebox0.TString;
4933
4957
  provider: _$_sinclair_typebox0.TObject<{
4934
4958
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
4935
4959
  name: _$_sinclair_typebox0.TString;
@@ -4937,6 +4961,7 @@ declare namespace Model {
4937
4961
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4938
4962
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
4939
4963
  }>;
4964
+ name: _$_sinclair_typebox0.TString;
4940
4965
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
4941
4966
  cost: _$_sinclair_typebox0.TObject<{
4942
4967
  input: _$_sinclair_typebox0.TNumber;
@@ -4944,6 +4969,7 @@ declare namespace Model {
4944
4969
  cacheRead: _$_sinclair_typebox0.TNumber;
4945
4970
  cacheWrite: _$_sinclair_typebox0.TNumber;
4946
4971
  }>;
4972
+ id: _$_sinclair_typebox0.TString;
4947
4973
  baseUrl: _$_sinclair_typebox0.TString;
4948
4974
  reasoning: _$_sinclair_typebox0.TBoolean;
4949
4975
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -4952,8 +4978,6 @@ declare namespace Model {
4952
4978
  protocol: _$_sinclair_typebox0.TLiteral<"anthropic-messages">;
4953
4979
  }>;
4954
4980
  const OpenAICompletionsSchema: _$_sinclair_typebox0.TObject<{
4955
- name: _$_sinclair_typebox0.TString;
4956
- id: _$_sinclair_typebox0.TString;
4957
4981
  provider: _$_sinclair_typebox0.TObject<{
4958
4982
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
4959
4983
  name: _$_sinclair_typebox0.TString;
@@ -4961,6 +4985,7 @@ declare namespace Model {
4961
4985
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
4962
4986
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
4963
4987
  }>;
4988
+ name: _$_sinclair_typebox0.TString;
4964
4989
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
4965
4990
  cost: _$_sinclair_typebox0.TObject<{
4966
4991
  input: _$_sinclair_typebox0.TNumber;
@@ -4968,6 +4993,7 @@ declare namespace Model {
4968
4993
  cacheRead: _$_sinclair_typebox0.TNumber;
4969
4994
  cacheWrite: _$_sinclair_typebox0.TNumber;
4970
4995
  }>;
4996
+ id: _$_sinclair_typebox0.TString;
4971
4997
  baseUrl: _$_sinclair_typebox0.TString;
4972
4998
  reasoning: _$_sinclair_typebox0.TBoolean;
4973
4999
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -5003,8 +5029,6 @@ declare namespace Model {
5003
5029
  }>>;
5004
5030
  }>;
5005
5031
  const OpenAIResponsesSchema: _$_sinclair_typebox0.TObject<{
5006
- name: _$_sinclair_typebox0.TString;
5007
- id: _$_sinclair_typebox0.TString;
5008
5032
  provider: _$_sinclair_typebox0.TObject<{
5009
5033
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
5010
5034
  name: _$_sinclair_typebox0.TString;
@@ -5012,6 +5036,7 @@ declare namespace Model {
5012
5036
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5013
5037
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
5014
5038
  }>;
5039
+ name: _$_sinclair_typebox0.TString;
5015
5040
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
5016
5041
  cost: _$_sinclair_typebox0.TObject<{
5017
5042
  input: _$_sinclair_typebox0.TNumber;
@@ -5019,6 +5044,7 @@ declare namespace Model {
5019
5044
  cacheRead: _$_sinclair_typebox0.TNumber;
5020
5045
  cacheWrite: _$_sinclair_typebox0.TNumber;
5021
5046
  }>;
5047
+ id: _$_sinclair_typebox0.TString;
5022
5048
  baseUrl: _$_sinclair_typebox0.TString;
5023
5049
  reasoning: _$_sinclair_typebox0.TBoolean;
5024
5050
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -5028,8 +5054,6 @@ declare namespace Model {
5028
5054
  compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TObject<{}>>;
5029
5055
  }>;
5030
5056
  const Schema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
5031
- name: _$_sinclair_typebox0.TString;
5032
- id: _$_sinclair_typebox0.TString;
5033
5057
  provider: _$_sinclair_typebox0.TObject<{
5034
5058
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
5035
5059
  name: _$_sinclair_typebox0.TString;
@@ -5037,6 +5061,7 @@ declare namespace Model {
5037
5061
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5038
5062
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
5039
5063
  }>;
5064
+ name: _$_sinclair_typebox0.TString;
5040
5065
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
5041
5066
  cost: _$_sinclair_typebox0.TObject<{
5042
5067
  input: _$_sinclair_typebox0.TNumber;
@@ -5044,6 +5069,7 @@ declare namespace Model {
5044
5069
  cacheRead: _$_sinclair_typebox0.TNumber;
5045
5070
  cacheWrite: _$_sinclair_typebox0.TNumber;
5046
5071
  }>;
5072
+ id: _$_sinclair_typebox0.TString;
5047
5073
  baseUrl: _$_sinclair_typebox0.TString;
5048
5074
  reasoning: _$_sinclair_typebox0.TBoolean;
5049
5075
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -5051,8 +5077,6 @@ declare namespace Model {
5051
5077
  headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>;
5052
5078
  protocol: _$_sinclair_typebox0.TLiteral<"anthropic-messages">;
5053
5079
  }>, _$_sinclair_typebox0.TObject<{
5054
- name: _$_sinclair_typebox0.TString;
5055
- id: _$_sinclair_typebox0.TString;
5056
5080
  provider: _$_sinclair_typebox0.TObject<{
5057
5081
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
5058
5082
  name: _$_sinclair_typebox0.TString;
@@ -5060,6 +5084,7 @@ declare namespace Model {
5060
5084
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5061
5085
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
5062
5086
  }>;
5087
+ name: _$_sinclair_typebox0.TString;
5063
5088
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
5064
5089
  cost: _$_sinclair_typebox0.TObject<{
5065
5090
  input: _$_sinclair_typebox0.TNumber;
@@ -5067,6 +5092,7 @@ declare namespace Model {
5067
5092
  cacheRead: _$_sinclair_typebox0.TNumber;
5068
5093
  cacheWrite: _$_sinclair_typebox0.TNumber;
5069
5094
  }>;
5095
+ id: _$_sinclair_typebox0.TString;
5070
5096
  baseUrl: _$_sinclair_typebox0.TString;
5071
5097
  reasoning: _$_sinclair_typebox0.TBoolean;
5072
5098
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -5101,8 +5127,6 @@ declare namespace Model {
5101
5127
  supportsStrictMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>;
5102
5128
  }>>;
5103
5129
  }>, _$_sinclair_typebox0.TObject<{
5104
- name: _$_sinclair_typebox0.TString;
5105
- id: _$_sinclair_typebox0.TString;
5106
5130
  provider: _$_sinclair_typebox0.TObject<{
5107
5131
  id: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"anthropic">, _$_sinclair_typebox0.TLiteral<"openai">]>;
5108
5132
  name: _$_sinclair_typebox0.TString;
@@ -5110,6 +5134,7 @@ declare namespace Model {
5110
5134
  key: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5111
5135
  options: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>>;
5112
5136
  }>;
5137
+ name: _$_sinclair_typebox0.TString;
5113
5138
  input: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"text">, _$_sinclair_typebox0.TLiteral<"image">]>>;
5114
5139
  cost: _$_sinclair_typebox0.TObject<{
5115
5140
  input: _$_sinclair_typebox0.TNumber;
@@ -5117,6 +5142,7 @@ declare namespace Model {
5117
5142
  cacheRead: _$_sinclair_typebox0.TNumber;
5118
5143
  cacheWrite: _$_sinclair_typebox0.TNumber;
5119
5144
  }>;
5145
+ id: _$_sinclair_typebox0.TString;
5120
5146
  baseUrl: _$_sinclair_typebox0.TString;
5121
5147
  reasoning: _$_sinclair_typebox0.TBoolean;
5122
5148
  contextWindow: _$_sinclair_typebox0.TNumber;
@@ -5149,16 +5175,14 @@ declare namespace Model {
5149
5175
  headers?: {
5150
5176
  [x: string]: string;
5151
5177
  } | undefined;
5152
- protocol: "anthropic-messages";
5153
- id: string;
5154
5178
  name: string;
5155
5179
  provider: {
5156
5180
  key?: string | undefined;
5157
5181
  options?: {
5158
5182
  [x: string]: any;
5159
5183
  } | undefined;
5160
- id: "anthropic" | "openai";
5161
5184
  name: string;
5185
+ id: "anthropic" | "openai";
5162
5186
  env: string[];
5163
5187
  };
5164
5188
  input: ("text" | "image")[];
@@ -5168,6 +5192,8 @@ declare namespace Model {
5168
5192
  cacheRead: number;
5169
5193
  cacheWrite: number;
5170
5194
  };
5195
+ protocol: "anthropic-messages";
5196
+ id: string;
5171
5197
  baseUrl: string;
5172
5198
  reasoning: boolean;
5173
5199
  contextWindow: number;
@@ -5203,16 +5229,14 @@ declare namespace Model {
5203
5229
  } | undefined;
5204
5230
  supportsStrictMode?: boolean | undefined;
5205
5231
  } | undefined;
5206
- protocol: "openai-completions";
5207
- id: string;
5208
5232
  name: string;
5209
5233
  provider: {
5210
5234
  key?: string | undefined;
5211
5235
  options?: {
5212
5236
  [x: string]: any;
5213
5237
  } | undefined;
5214
- id: "anthropic" | "openai";
5215
5238
  name: string;
5239
+ id: "anthropic" | "openai";
5216
5240
  env: string[];
5217
5241
  };
5218
5242
  input: ("text" | "image")[];
@@ -5222,6 +5246,8 @@ declare namespace Model {
5222
5246
  cacheRead: number;
5223
5247
  cacheWrite: number;
5224
5248
  };
5249
+ protocol: "openai-completions";
5250
+ id: string;
5225
5251
  baseUrl: string;
5226
5252
  reasoning: boolean;
5227
5253
  contextWindow: number;
@@ -5231,16 +5257,14 @@ declare namespace Model {
5231
5257
  [x: string]: string;
5232
5258
  } | undefined;
5233
5259
  compat?: {} | undefined;
5234
- protocol: "openai-responses";
5235
- id: string;
5236
5260
  name: string;
5237
5261
  provider: {
5238
5262
  key?: string | undefined;
5239
5263
  options?: {
5240
5264
  [x: string]: any;
5241
5265
  } | undefined;
5242
- id: "anthropic" | "openai";
5243
5266
  name: string;
5267
+ id: "anthropic" | "openai";
5244
5268
  env: string[];
5245
5269
  };
5246
5270
  input: ("text" | "image")[];
@@ -5250,6 +5274,8 @@ declare namespace Model {
5250
5274
  cacheRead: number;
5251
5275
  cacheWrite: number;
5252
5276
  };
5277
+ protocol: "openai-responses";
5278
+ id: string;
5253
5279
  baseUrl: string;
5254
5280
  reasoning: boolean;
5255
5281
  contextWindow: number;
@@ -5261,16 +5287,14 @@ declare namespace Model {
5261
5287
  headers?: {
5262
5288
  [x: string]: string;
5263
5289
  } | undefined;
5264
- protocol: "anthropic-messages";
5265
- id: string;
5266
5290
  name: string;
5267
5291
  provider: {
5268
5292
  key?: string | undefined;
5269
5293
  options?: {
5270
5294
  [x: string]: any;
5271
5295
  } | undefined;
5272
- id: "anthropic" | "openai";
5273
5296
  name: string;
5297
+ id: "anthropic" | "openai";
5274
5298
  env: string[];
5275
5299
  };
5276
5300
  input: ("text" | "image")[];
@@ -5280,6 +5304,8 @@ declare namespace Model {
5280
5304
  cacheRead: number;
5281
5305
  cacheWrite: number;
5282
5306
  };
5307
+ protocol: "anthropic-messages";
5308
+ id: string;
5283
5309
  baseUrl: string;
5284
5310
  reasoning: boolean;
5285
5311
  contextWindow: number;
@@ -5315,16 +5341,14 @@ declare namespace Model {
5315
5341
  } | undefined;
5316
5342
  supportsStrictMode?: boolean | undefined;
5317
5343
  } | undefined;
5318
- protocol: "openai-completions";
5319
- id: string;
5320
5344
  name: string;
5321
5345
  provider: {
5322
5346
  key?: string | undefined;
5323
5347
  options?: {
5324
5348
  [x: string]: any;
5325
5349
  } | undefined;
5326
- id: "anthropic" | "openai";
5327
5350
  name: string;
5351
+ id: "anthropic" | "openai";
5328
5352
  env: string[];
5329
5353
  };
5330
5354
  input: ("text" | "image")[];
@@ -5334,6 +5358,8 @@ declare namespace Model {
5334
5358
  cacheRead: number;
5335
5359
  cacheWrite: number;
5336
5360
  };
5361
+ protocol: "openai-completions";
5362
+ id: string;
5337
5363
  baseUrl: string;
5338
5364
  reasoning: boolean;
5339
5365
  contextWindow: number;
@@ -5343,16 +5369,14 @@ declare namespace Model {
5343
5369
  [x: string]: string;
5344
5370
  } | undefined;
5345
5371
  compat?: {} | undefined;
5346
- protocol: "openai-responses";
5347
- id: string;
5348
5372
  name: string;
5349
5373
  provider: {
5350
5374
  key?: string | undefined;
5351
5375
  options?: {
5352
5376
  [x: string]: any;
5353
5377
  } | undefined;
5354
- id: "anthropic" | "openai";
5355
5378
  name: string;
5379
+ id: "anthropic" | "openai";
5356
5380
  env: string[];
5357
5381
  };
5358
5382
  input: ("text" | "image")[];
@@ -5362,6 +5386,8 @@ declare namespace Model {
5362
5386
  cacheRead: number;
5363
5387
  cacheWrite: number;
5364
5388
  };
5389
+ protocol: "openai-responses";
5390
+ id: string;
5365
5391
  baseUrl: string;
5366
5392
  reasoning: boolean;
5367
5393
  contextWindow: number;
@@ -5555,13 +5581,13 @@ declare namespace Message {
5555
5581
  status: _$_sinclair_typebox0.TLiteral<"pending">;
5556
5582
  }>]>;
5557
5583
  const ToolCallRunningPart: _$_sinclair_typebox0.TObject<{
5558
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5559
5584
  name: _$_sinclair_typebox0.TString;
5585
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5586
+ callID: _$_sinclair_typebox0.TString;
5560
5587
  time: _$_sinclair_typebox0.TObject<{
5561
5588
  start: _$_sinclair_typebox0.TNumber;
5562
5589
  end: _$_sinclair_typebox0.TNumber;
5563
5590
  }>;
5564
- callID: _$_sinclair_typebox0.TString;
5565
5591
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5566
5592
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5567
5593
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -5579,13 +5605,13 @@ declare namespace Message {
5579
5605
  }>>;
5580
5606
  }>;
5581
5607
  const ToolCallCompletedPart: _$_sinclair_typebox0.TObject<{
5582
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5583
5608
  name: _$_sinclair_typebox0.TString;
5609
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5610
+ callID: _$_sinclair_typebox0.TString;
5584
5611
  time: _$_sinclair_typebox0.TObject<{
5585
5612
  start: _$_sinclair_typebox0.TNumber;
5586
5613
  end: _$_sinclair_typebox0.TNumber;
5587
5614
  }>;
5588
- callID: _$_sinclair_typebox0.TString;
5589
5615
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5590
5616
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5591
5617
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -5604,13 +5630,13 @@ declare namespace Message {
5604
5630
  }>;
5605
5631
  }>;
5606
5632
  const ToolCallErrorPart: _$_sinclair_typebox0.TObject<{
5607
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5608
5633
  name: _$_sinclair_typebox0.TString;
5634
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5635
+ callID: _$_sinclair_typebox0.TString;
5609
5636
  time: _$_sinclair_typebox0.TObject<{
5610
5637
  start: _$_sinclair_typebox0.TNumber;
5611
5638
  end: _$_sinclair_typebox0.TNumber;
5612
5639
  }>;
5613
- callID: _$_sinclair_typebox0.TString;
5614
5640
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5615
5641
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5616
5642
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -5641,13 +5667,13 @@ declare namespace Message {
5641
5667
  }>, _$_sinclair_typebox0.TObject<{
5642
5668
  status: _$_sinclair_typebox0.TLiteral<"pending">;
5643
5669
  }>]>, _$_sinclair_typebox0.TObject<{
5644
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5645
5670
  name: _$_sinclair_typebox0.TString;
5671
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5672
+ callID: _$_sinclair_typebox0.TString;
5646
5673
  time: _$_sinclair_typebox0.TObject<{
5647
5674
  start: _$_sinclair_typebox0.TNumber;
5648
5675
  end: _$_sinclair_typebox0.TNumber;
5649
5676
  }>;
5650
- callID: _$_sinclair_typebox0.TString;
5651
5677
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5652
5678
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5653
5679
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -5664,13 +5690,13 @@ declare namespace Message {
5664
5690
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
5665
5691
  }>>;
5666
5692
  }>, _$_sinclair_typebox0.TObject<{
5667
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5668
5693
  name: _$_sinclair_typebox0.TString;
5694
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5695
+ callID: _$_sinclair_typebox0.TString;
5669
5696
  time: _$_sinclair_typebox0.TObject<{
5670
5697
  start: _$_sinclair_typebox0.TNumber;
5671
5698
  end: _$_sinclair_typebox0.TNumber;
5672
5699
  }>;
5673
- callID: _$_sinclair_typebox0.TString;
5674
5700
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5675
5701
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5676
5702
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -5688,13 +5714,13 @@ declare namespace Message {
5688
5714
  isError: _$_sinclair_typebox0.TLiteral<false>;
5689
5715
  }>;
5690
5716
  }>, _$_sinclair_typebox0.TObject<{
5691
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5692
5717
  name: _$_sinclair_typebox0.TString;
5718
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5719
+ callID: _$_sinclair_typebox0.TString;
5693
5720
  time: _$_sinclair_typebox0.TObject<{
5694
5721
  start: _$_sinclair_typebox0.TNumber;
5695
5722
  end: _$_sinclair_typebox0.TNumber;
5696
5723
  }>;
5697
- callID: _$_sinclair_typebox0.TString;
5698
5724
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5699
5725
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5700
5726
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -5712,13 +5738,13 @@ declare namespace Message {
5712
5738
  isError: _$_sinclair_typebox0.TLiteral<true>;
5713
5739
  }>;
5714
5740
  }>, _$_sinclair_typebox0.TObject<{
5715
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5716
5741
  name: _$_sinclair_typebox0.TString;
5742
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5743
+ callID: _$_sinclair_typebox0.TString;
5717
5744
  time: _$_sinclair_typebox0.TObject<{
5718
5745
  start: _$_sinclair_typebox0.TNumber;
5719
5746
  end: _$_sinclair_typebox0.TNumber;
5720
5747
  }>;
5721
- callID: _$_sinclair_typebox0.TString;
5722
5748
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5723
5749
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5724
5750
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -5736,13 +5762,13 @@ declare namespace Message {
5736
5762
  isError: _$_sinclair_typebox0.TLiteral<true>;
5737
5763
  }>;
5738
5764
  }>, _$_sinclair_typebox0.TObject<{
5739
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5740
5765
  name: _$_sinclair_typebox0.TString;
5766
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5767
+ callID: _$_sinclair_typebox0.TString;
5741
5768
  time: _$_sinclair_typebox0.TObject<{
5742
5769
  start: _$_sinclair_typebox0.TNumber;
5743
5770
  end: _$_sinclair_typebox0.TNumber;
5744
5771
  }>;
5745
- callID: _$_sinclair_typebox0.TString;
5746
5772
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5747
5773
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5748
5774
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -5783,6 +5809,7 @@ declare namespace Message {
5783
5809
  export const StopReasonSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"stop">, _$_sinclair_typebox0.TLiteral<"length">, _$_sinclair_typebox0.TLiteral<"toolUse">, _$_sinclair_typebox0.TLiteral<"error">, _$_sinclair_typebox0.TLiteral<"aborted">]>;
5784
5810
  export type StopReason = Static<typeof StopReasonSchema>;
5785
5811
  export const UserMessageSchema: _$_sinclair_typebox0.TObject<{
5812
+ messageId: _$_sinclair_typebox0.TString;
5786
5813
  role: _$_sinclair_typebox0.TLiteral<"user">;
5787
5814
  time: _$_sinclair_typebox0.TObject<{
5788
5815
  created: _$_sinclair_typebox0.TNumber;
@@ -5858,13 +5885,13 @@ declare namespace Message {
5858
5885
  }>, _$_sinclair_typebox0.TObject<{
5859
5886
  status: _$_sinclair_typebox0.TLiteral<"pending">;
5860
5887
  }>]>, _$_sinclair_typebox0.TObject<{
5861
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5862
5888
  name: _$_sinclair_typebox0.TString;
5889
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5890
+ callID: _$_sinclair_typebox0.TString;
5863
5891
  time: _$_sinclair_typebox0.TObject<{
5864
5892
  start: _$_sinclair_typebox0.TNumber;
5865
5893
  end: _$_sinclair_typebox0.TNumber;
5866
5894
  }>;
5867
- callID: _$_sinclair_typebox0.TString;
5868
5895
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5869
5896
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5870
5897
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -5881,13 +5908,13 @@ declare namespace Message {
5881
5908
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
5882
5909
  }>>;
5883
5910
  }>, _$_sinclair_typebox0.TObject<{
5884
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5885
5911
  name: _$_sinclair_typebox0.TString;
5912
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5913
+ callID: _$_sinclair_typebox0.TString;
5886
5914
  time: _$_sinclair_typebox0.TObject<{
5887
5915
  start: _$_sinclair_typebox0.TNumber;
5888
5916
  end: _$_sinclair_typebox0.TNumber;
5889
5917
  }>;
5890
- callID: _$_sinclair_typebox0.TString;
5891
5918
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5892
5919
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5893
5920
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -5905,13 +5932,13 @@ declare namespace Message {
5905
5932
  isError: _$_sinclair_typebox0.TLiteral<false>;
5906
5933
  }>;
5907
5934
  }>, _$_sinclair_typebox0.TObject<{
5908
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5909
5935
  name: _$_sinclair_typebox0.TString;
5936
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5937
+ callID: _$_sinclair_typebox0.TString;
5910
5938
  time: _$_sinclair_typebox0.TObject<{
5911
5939
  start: _$_sinclair_typebox0.TNumber;
5912
5940
  end: _$_sinclair_typebox0.TNumber;
5913
5941
  }>;
5914
- callID: _$_sinclair_typebox0.TString;
5915
5942
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5916
5943
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5917
5944
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -5929,13 +5956,13 @@ declare namespace Message {
5929
5956
  isError: _$_sinclair_typebox0.TLiteral<true>;
5930
5957
  }>;
5931
5958
  }>, _$_sinclair_typebox0.TObject<{
5932
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5933
5959
  name: _$_sinclair_typebox0.TString;
5960
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5961
+ callID: _$_sinclair_typebox0.TString;
5934
5962
  time: _$_sinclair_typebox0.TObject<{
5935
5963
  start: _$_sinclair_typebox0.TNumber;
5936
5964
  end: _$_sinclair_typebox0.TNumber;
5937
5965
  }>;
5938
- callID: _$_sinclair_typebox0.TString;
5939
5966
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5940
5967
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5941
5968
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -5953,13 +5980,13 @@ declare namespace Message {
5953
5980
  isError: _$_sinclair_typebox0.TLiteral<true>;
5954
5981
  }>;
5955
5982
  }>, _$_sinclair_typebox0.TObject<{
5956
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5957
5983
  name: _$_sinclair_typebox0.TString;
5984
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
5985
+ callID: _$_sinclair_typebox0.TString;
5958
5986
  time: _$_sinclair_typebox0.TObject<{
5959
5987
  start: _$_sinclair_typebox0.TNumber;
5960
5988
  end: _$_sinclair_typebox0.TNumber;
5961
5989
  }>;
5962
- callID: _$_sinclair_typebox0.TString;
5963
5990
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
5964
5991
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
5965
5992
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -5977,10 +6004,12 @@ declare namespace Message {
5977
6004
  isError: _$_sinclair_typebox0.TLiteral<true>;
5978
6005
  }>;
5979
6006
  }>]>]>>;
5980
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6007
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6008
+ messageId: _$_sinclair_typebox0.TString;
5981
6009
  }>;
5982
6010
  export type AssistantMessage = Static<typeof AssistantMessageSchema>;
5983
6011
  export const MessageSchema: _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
6012
+ messageId: _$_sinclair_typebox0.TString;
5984
6013
  role: _$_sinclair_typebox0.TLiteral<"user">;
5985
6014
  time: _$_sinclair_typebox0.TObject<{
5986
6015
  created: _$_sinclair_typebox0.TNumber;
@@ -6054,13 +6083,13 @@ declare namespace Message {
6054
6083
  }>, _$_sinclair_typebox0.TObject<{
6055
6084
  status: _$_sinclair_typebox0.TLiteral<"pending">;
6056
6085
  }>]>, _$_sinclair_typebox0.TObject<{
6057
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6058
6086
  name: _$_sinclair_typebox0.TString;
6087
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6088
+ callID: _$_sinclair_typebox0.TString;
6059
6089
  time: _$_sinclair_typebox0.TObject<{
6060
6090
  start: _$_sinclair_typebox0.TNumber;
6061
6091
  end: _$_sinclair_typebox0.TNumber;
6062
6092
  }>;
6063
- callID: _$_sinclair_typebox0.TString;
6064
6093
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6065
6094
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6066
6095
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -6077,13 +6106,13 @@ declare namespace Message {
6077
6106
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
6078
6107
  }>>;
6079
6108
  }>, _$_sinclair_typebox0.TObject<{
6080
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6081
6109
  name: _$_sinclair_typebox0.TString;
6110
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6111
+ callID: _$_sinclair_typebox0.TString;
6082
6112
  time: _$_sinclair_typebox0.TObject<{
6083
6113
  start: _$_sinclair_typebox0.TNumber;
6084
6114
  end: _$_sinclair_typebox0.TNumber;
6085
6115
  }>;
6086
- callID: _$_sinclair_typebox0.TString;
6087
6116
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6088
6117
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6089
6118
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -6101,13 +6130,13 @@ declare namespace Message {
6101
6130
  isError: _$_sinclair_typebox0.TLiteral<false>;
6102
6131
  }>;
6103
6132
  }>, _$_sinclair_typebox0.TObject<{
6104
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6105
6133
  name: _$_sinclair_typebox0.TString;
6134
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6135
+ callID: _$_sinclair_typebox0.TString;
6106
6136
  time: _$_sinclair_typebox0.TObject<{
6107
6137
  start: _$_sinclair_typebox0.TNumber;
6108
6138
  end: _$_sinclair_typebox0.TNumber;
6109
6139
  }>;
6110
- callID: _$_sinclair_typebox0.TString;
6111
6140
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6112
6141
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6113
6142
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -6125,13 +6154,13 @@ declare namespace Message {
6125
6154
  isError: _$_sinclair_typebox0.TLiteral<true>;
6126
6155
  }>;
6127
6156
  }>, _$_sinclair_typebox0.TObject<{
6128
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6129
6157
  name: _$_sinclair_typebox0.TString;
6158
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6159
+ callID: _$_sinclair_typebox0.TString;
6130
6160
  time: _$_sinclair_typebox0.TObject<{
6131
6161
  start: _$_sinclair_typebox0.TNumber;
6132
6162
  end: _$_sinclair_typebox0.TNumber;
6133
6163
  }>;
6134
- callID: _$_sinclair_typebox0.TString;
6135
6164
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6136
6165
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6137
6166
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -6149,13 +6178,13 @@ declare namespace Message {
6149
6178
  isError: _$_sinclair_typebox0.TLiteral<true>;
6150
6179
  }>;
6151
6180
  }>, _$_sinclair_typebox0.TObject<{
6152
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6153
6181
  name: _$_sinclair_typebox0.TString;
6182
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6183
+ callID: _$_sinclair_typebox0.TString;
6154
6184
  time: _$_sinclair_typebox0.TObject<{
6155
6185
  start: _$_sinclair_typebox0.TNumber;
6156
6186
  end: _$_sinclair_typebox0.TNumber;
6157
6187
  }>;
6158
- callID: _$_sinclair_typebox0.TString;
6159
6188
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6160
6189
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6161
6190
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -6173,9 +6202,19 @@ declare namespace Message {
6173
6202
  isError: _$_sinclair_typebox0.TLiteral<true>;
6174
6203
  }>;
6175
6204
  }>]>]>>;
6176
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6205
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6206
+ messageId: _$_sinclair_typebox0.TString;
6177
6207
  }>]>;
6178
6208
  export type Message = Static<typeof MessageSchema>;
6209
+ type UserMessageInit = Omit<UserMessage, "messageId"> & {
6210
+ messageId?: string;
6211
+ };
6212
+ type AssistantMessageInit = Omit<AssistantMessage, "messageId"> & {
6213
+ messageId?: string;
6214
+ };
6215
+ export function createMessageId(): string;
6216
+ export function createUserMessage(message: UserMessageInit): UserMessage;
6217
+ export function createAssistantMessage(message: AssistantMessageInit): AssistantMessage;
6179
6218
  /**
6180
6219
  * Generic tool definition with typed parameter schema.
6181
6220
  * Usage:
@@ -6206,6 +6245,7 @@ declare namespace Message {
6206
6245
  export const ContextSchema: _$_sinclair_typebox0.TObject<{
6207
6246
  systemPrompt: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6208
6247
  messages: _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TObject<{
6248
+ messageId: _$_sinclair_typebox0.TString;
6209
6249
  role: _$_sinclair_typebox0.TLiteral<"user">;
6210
6250
  time: _$_sinclair_typebox0.TObject<{
6211
6251
  created: _$_sinclair_typebox0.TNumber;
@@ -6279,13 +6319,13 @@ declare namespace Message {
6279
6319
  }>, _$_sinclair_typebox0.TObject<{
6280
6320
  status: _$_sinclair_typebox0.TLiteral<"pending">;
6281
6321
  }>]>, _$_sinclair_typebox0.TObject<{
6282
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6283
6322
  name: _$_sinclair_typebox0.TString;
6323
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6324
+ callID: _$_sinclair_typebox0.TString;
6284
6325
  time: _$_sinclair_typebox0.TObject<{
6285
6326
  start: _$_sinclair_typebox0.TNumber;
6286
6327
  end: _$_sinclair_typebox0.TNumber;
6287
6328
  }>;
6288
- callID: _$_sinclair_typebox0.TString;
6289
6329
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6290
6330
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6291
6331
  status: _$_sinclair_typebox0.TLiteral<"running">;
@@ -6302,13 +6342,13 @@ declare namespace Message {
6302
6342
  details: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TAny>;
6303
6343
  }>>;
6304
6344
  }>, _$_sinclair_typebox0.TObject<{
6305
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6306
6345
  name: _$_sinclair_typebox0.TString;
6346
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6347
+ callID: _$_sinclair_typebox0.TString;
6307
6348
  time: _$_sinclair_typebox0.TObject<{
6308
6349
  start: _$_sinclair_typebox0.TNumber;
6309
6350
  end: _$_sinclair_typebox0.TNumber;
6310
6351
  }>;
6311
- callID: _$_sinclair_typebox0.TString;
6312
6352
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6313
6353
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6314
6354
  status: _$_sinclair_typebox0.TLiteral<"completed">;
@@ -6326,13 +6366,13 @@ declare namespace Message {
6326
6366
  isError: _$_sinclair_typebox0.TLiteral<false>;
6327
6367
  }>;
6328
6368
  }>, _$_sinclair_typebox0.TObject<{
6329
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6330
6369
  name: _$_sinclair_typebox0.TString;
6370
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6371
+ callID: _$_sinclair_typebox0.TString;
6331
6372
  time: _$_sinclair_typebox0.TObject<{
6332
6373
  start: _$_sinclair_typebox0.TNumber;
6333
6374
  end: _$_sinclair_typebox0.TNumber;
6334
6375
  }>;
6335
- callID: _$_sinclair_typebox0.TString;
6336
6376
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6337
6377
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6338
6378
  status: _$_sinclair_typebox0.TLiteral<"error">;
@@ -6350,13 +6390,13 @@ declare namespace Message {
6350
6390
  isError: _$_sinclair_typebox0.TLiteral<true>;
6351
6391
  }>;
6352
6392
  }>, _$_sinclair_typebox0.TObject<{
6353
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6354
6393
  name: _$_sinclair_typebox0.TString;
6394
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6395
+ callID: _$_sinclair_typebox0.TString;
6355
6396
  time: _$_sinclair_typebox0.TObject<{
6356
6397
  start: _$_sinclair_typebox0.TNumber;
6357
6398
  end: _$_sinclair_typebox0.TNumber;
6358
6399
  }>;
6359
- callID: _$_sinclair_typebox0.TString;
6360
6400
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6361
6401
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6362
6402
  status: _$_sinclair_typebox0.TLiteral<"skipped">;
@@ -6374,13 +6414,13 @@ declare namespace Message {
6374
6414
  isError: _$_sinclair_typebox0.TLiteral<true>;
6375
6415
  }>;
6376
6416
  }>, _$_sinclair_typebox0.TObject<{
6377
- type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6378
6417
  name: _$_sinclair_typebox0.TString;
6418
+ type: _$_sinclair_typebox0.TLiteral<"toolCall">;
6419
+ callID: _$_sinclair_typebox0.TString;
6379
6420
  time: _$_sinclair_typebox0.TObject<{
6380
6421
  start: _$_sinclair_typebox0.TNumber;
6381
6422
  end: _$_sinclair_typebox0.TNumber;
6382
6423
  }>;
6383
- callID: _$_sinclair_typebox0.TString;
6384
6424
  arguments: _$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TAny>;
6385
6425
  thoughtSignature: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6386
6426
  status: _$_sinclair_typebox0.TLiteral<"aborted">;
@@ -6398,7 +6438,8 @@ declare namespace Message {
6398
6438
  isError: _$_sinclair_typebox0.TLiteral<true>;
6399
6439
  }>;
6400
6440
  }>]>]>>;
6401
- responseID: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6441
+ responseId: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TString>;
6442
+ messageId: _$_sinclair_typebox0.TString;
6402
6443
  }>]>>;
6403
6444
  tools: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TObject<{
6404
6445
  name: _$_sinclair_typebox0.TString;
@@ -7342,6 +7383,7 @@ declare namespace Loop {
7342
7383
  };
7343
7384
  export type AgentContextError = InstanceType<typeof AgentContextError>;
7344
7385
  export function runAgentLoop(config: Config, context: Agent.AgentContext, prompts: Message.UserMessage[], emit: AgentEventSink, streamFn?: StreamFn, signal?: AbortSignal): Promise<({
7386
+ messageId: string;
7345
7387
  role: "user";
7346
7388
  time: {
7347
7389
  created: number;
@@ -7357,37 +7399,22 @@ declare namespace Loop {
7357
7399
  })[];
7358
7400
  } | {
7359
7401
  errorMessage?: string | undefined;
7360
- responseID?: string | undefined;
7361
- role: "assistant";
7362
- protocol: "anthropic-messages" | "openai-completions" | "openai-responses";
7402
+ responseId?: string | undefined;
7363
7403
  provider: {
7364
7404
  key?: string | undefined;
7365
7405
  options?: {
7366
7406
  [x: string]: any;
7367
7407
  } | undefined;
7368
- id: "anthropic" | "openai";
7369
7408
  name: string;
7409
+ id: "anthropic" | "openai";
7370
7410
  env: string[];
7371
7411
  };
7372
7412
  model: string;
7373
- usage: {
7374
- input: number;
7375
- output: number;
7376
- cacheRead: number;
7377
- cacheWrite: number;
7378
- totalTokens: number;
7379
- cost: {
7380
- input: number;
7381
- output: number;
7382
- cacheRead: number;
7383
- cacheWrite: number;
7384
- total: number;
7385
- };
7386
- };
7387
- stopReason: "error" | "stop" | "length" | "toolUse" | "aborted";
7413
+ messageId: string;
7414
+ role: "assistant";
7388
7415
  time: {
7389
- created: number;
7390
7416
  completed: number;
7417
+ created: number;
7391
7418
  };
7392
7419
  parts: ({
7393
7420
  textSignature?: string | undefined;
@@ -7405,19 +7432,18 @@ declare namespace Loop {
7405
7432
  } | ({
7406
7433
  thoughtSignature?: string | undefined;
7407
7434
  type: "toolCall";
7435
+ callID: string;
7408
7436
  name: string;
7409
7437
  time: {
7410
7438
  start: number;
7411
7439
  end: number;
7412
7440
  };
7413
- callID: string;
7414
7441
  arguments: {
7415
7442
  [x: string]: any;
7416
7443
  };
7417
7444
  } & {
7418
7445
  status: "pending";
7419
7446
  }) | {
7420
- thoughtSignature?: string | undefined;
7421
7447
  partial?: {
7422
7448
  content?: ({
7423
7449
  textSignature?: string | undefined;
@@ -7430,30 +7456,22 @@ declare namespace Loop {
7430
7456
  })[] | undefined;
7431
7457
  details?: any;
7432
7458
  } | undefined;
7459
+ thoughtSignature?: string | undefined;
7460
+ status: "running";
7433
7461
  type: "toolCall";
7462
+ callID: string;
7434
7463
  name: string;
7435
7464
  time: {
7436
7465
  start: number;
7437
7466
  end: number;
7438
7467
  };
7439
- callID: string;
7440
7468
  arguments: {
7441
7469
  [x: string]: any;
7442
7470
  };
7443
- status: "running";
7444
7471
  } | {
7445
7472
  thoughtSignature?: string | undefined;
7446
- type: "toolCall";
7447
- name: string;
7448
- time: {
7449
- start: number;
7450
- end: number;
7451
- };
7452
- callID: string;
7453
- arguments: {
7454
- [x: string]: any;
7455
- };
7456
7473
  status: "completed";
7474
+ type: "toolCall";
7457
7475
  result: {
7458
7476
  details?: any;
7459
7477
  content: ({
@@ -7467,19 +7485,19 @@ declare namespace Loop {
7467
7485
  })[];
7468
7486
  isError: false;
7469
7487
  };
7470
- } | {
7471
- thoughtSignature?: string | undefined;
7472
- type: "toolCall";
7488
+ callID: string;
7473
7489
  name: string;
7474
7490
  time: {
7475
7491
  start: number;
7476
7492
  end: number;
7477
7493
  };
7478
- callID: string;
7479
7494
  arguments: {
7480
7495
  [x: string]: any;
7481
7496
  };
7497
+ } | {
7498
+ thoughtSignature?: string | undefined;
7482
7499
  status: "error";
7500
+ type: "toolCall";
7483
7501
  result: {
7484
7502
  details?: any;
7485
7503
  content: ({
@@ -7493,19 +7511,19 @@ declare namespace Loop {
7493
7511
  })[];
7494
7512
  isError: true;
7495
7513
  };
7496
- } | {
7497
- thoughtSignature?: string | undefined;
7498
- type: "toolCall";
7514
+ callID: string;
7499
7515
  name: string;
7500
7516
  time: {
7501
7517
  start: number;
7502
7518
  end: number;
7503
7519
  };
7504
- callID: string;
7505
7520
  arguments: {
7506
7521
  [x: string]: any;
7507
7522
  };
7523
+ } | {
7524
+ thoughtSignature?: string | undefined;
7508
7525
  status: "skipped";
7526
+ type: "toolCall";
7509
7527
  result: {
7510
7528
  details?: any;
7511
7529
  content: ({
@@ -7519,19 +7537,19 @@ declare namespace Loop {
7519
7537
  })[];
7520
7538
  isError: true;
7521
7539
  };
7522
- } | {
7523
- thoughtSignature?: string | undefined;
7524
- type: "toolCall";
7540
+ callID: string;
7525
7541
  name: string;
7526
7542
  time: {
7527
7543
  start: number;
7528
7544
  end: number;
7529
7545
  };
7530
- callID: string;
7531
7546
  arguments: {
7532
7547
  [x: string]: any;
7533
7548
  };
7549
+ } | {
7550
+ thoughtSignature?: string | undefined;
7534
7551
  status: "aborted";
7552
+ type: "toolCall";
7535
7553
  result: {
7536
7554
  details?: any;
7537
7555
  content: ({
@@ -7545,7 +7563,32 @@ declare namespace Loop {
7545
7563
  })[];
7546
7564
  isError: true;
7547
7565
  };
7566
+ callID: string;
7567
+ name: string;
7568
+ time: {
7569
+ start: number;
7570
+ end: number;
7571
+ };
7572
+ arguments: {
7573
+ [x: string]: any;
7574
+ };
7548
7575
  })[];
7576
+ protocol: "anthropic-messages" | "openai-completions" | "openai-responses";
7577
+ usage: {
7578
+ input: number;
7579
+ output: number;
7580
+ cacheRead: number;
7581
+ cacheWrite: number;
7582
+ totalTokens: number;
7583
+ cost: {
7584
+ input: number;
7585
+ output: number;
7586
+ cacheRead: number;
7587
+ cacheWrite: number;
7588
+ total: number;
7589
+ };
7590
+ };
7591
+ stopReason: "error" | "aborted" | "stop" | "length" | "toolUse";
7549
7592
  })[]>;
7550
7593
  /**
7551
7594
  * **Important:** The last message in context must not be `assistant` message, convert
@@ -7553,6 +7596,7 @@ declare namespace Loop {
7553
7596
  * This cannot be validated here since `convertToLlm` is only called once per turn.
7554
7597
  */
7555
7598
  export function runAgentLoopContinue(config: Config, context: Agent.AgentContext, emit: AgentEventSink, streamFn?: StreamFn, signal?: AbortSignal): Promise<({
7599
+ messageId: string;
7556
7600
  role: "user";
7557
7601
  time: {
7558
7602
  created: number;
@@ -7568,37 +7612,22 @@ declare namespace Loop {
7568
7612
  })[];
7569
7613
  } | {
7570
7614
  errorMessage?: string | undefined;
7571
- responseID?: string | undefined;
7572
- role: "assistant";
7573
- protocol: "anthropic-messages" | "openai-completions" | "openai-responses";
7615
+ responseId?: string | undefined;
7574
7616
  provider: {
7575
7617
  key?: string | undefined;
7576
7618
  options?: {
7577
7619
  [x: string]: any;
7578
7620
  } | undefined;
7579
- id: "anthropic" | "openai";
7580
7621
  name: string;
7622
+ id: "anthropic" | "openai";
7581
7623
  env: string[];
7582
7624
  };
7583
7625
  model: string;
7584
- usage: {
7585
- input: number;
7586
- output: number;
7587
- cacheRead: number;
7588
- cacheWrite: number;
7589
- totalTokens: number;
7590
- cost: {
7591
- input: number;
7592
- output: number;
7593
- cacheRead: number;
7594
- cacheWrite: number;
7595
- total: number;
7596
- };
7597
- };
7598
- stopReason: "error" | "stop" | "length" | "toolUse" | "aborted";
7626
+ messageId: string;
7627
+ role: "assistant";
7599
7628
  time: {
7600
- created: number;
7601
7629
  completed: number;
7630
+ created: number;
7602
7631
  };
7603
7632
  parts: ({
7604
7633
  textSignature?: string | undefined;
@@ -7616,19 +7645,18 @@ declare namespace Loop {
7616
7645
  } | ({
7617
7646
  thoughtSignature?: string | undefined;
7618
7647
  type: "toolCall";
7648
+ callID: string;
7619
7649
  name: string;
7620
7650
  time: {
7621
7651
  start: number;
7622
7652
  end: number;
7623
7653
  };
7624
- callID: string;
7625
7654
  arguments: {
7626
7655
  [x: string]: any;
7627
7656
  };
7628
7657
  } & {
7629
7658
  status: "pending";
7630
7659
  }) | {
7631
- thoughtSignature?: string | undefined;
7632
7660
  partial?: {
7633
7661
  content?: ({
7634
7662
  textSignature?: string | undefined;
@@ -7641,30 +7669,22 @@ declare namespace Loop {
7641
7669
  })[] | undefined;
7642
7670
  details?: any;
7643
7671
  } | undefined;
7672
+ thoughtSignature?: string | undefined;
7673
+ status: "running";
7644
7674
  type: "toolCall";
7675
+ callID: string;
7645
7676
  name: string;
7646
7677
  time: {
7647
7678
  start: number;
7648
7679
  end: number;
7649
7680
  };
7650
- callID: string;
7651
7681
  arguments: {
7652
7682
  [x: string]: any;
7653
7683
  };
7654
- status: "running";
7655
7684
  } | {
7656
7685
  thoughtSignature?: string | undefined;
7657
- type: "toolCall";
7658
- name: string;
7659
- time: {
7660
- start: number;
7661
- end: number;
7662
- };
7663
- callID: string;
7664
- arguments: {
7665
- [x: string]: any;
7666
- };
7667
7686
  status: "completed";
7687
+ type: "toolCall";
7668
7688
  result: {
7669
7689
  details?: any;
7670
7690
  content: ({
@@ -7678,19 +7698,19 @@ declare namespace Loop {
7678
7698
  })[];
7679
7699
  isError: false;
7680
7700
  };
7681
- } | {
7682
- thoughtSignature?: string | undefined;
7683
- type: "toolCall";
7701
+ callID: string;
7684
7702
  name: string;
7685
7703
  time: {
7686
7704
  start: number;
7687
7705
  end: number;
7688
7706
  };
7689
- callID: string;
7690
7707
  arguments: {
7691
7708
  [x: string]: any;
7692
7709
  };
7710
+ } | {
7711
+ thoughtSignature?: string | undefined;
7693
7712
  status: "error";
7713
+ type: "toolCall";
7694
7714
  result: {
7695
7715
  details?: any;
7696
7716
  content: ({
@@ -7704,19 +7724,19 @@ declare namespace Loop {
7704
7724
  })[];
7705
7725
  isError: true;
7706
7726
  };
7707
- } | {
7708
- thoughtSignature?: string | undefined;
7709
- type: "toolCall";
7727
+ callID: string;
7710
7728
  name: string;
7711
7729
  time: {
7712
7730
  start: number;
7713
7731
  end: number;
7714
7732
  };
7715
- callID: string;
7716
7733
  arguments: {
7717
7734
  [x: string]: any;
7718
7735
  };
7736
+ } | {
7737
+ thoughtSignature?: string | undefined;
7719
7738
  status: "skipped";
7739
+ type: "toolCall";
7720
7740
  result: {
7721
7741
  details?: any;
7722
7742
  content: ({
@@ -7730,19 +7750,19 @@ declare namespace Loop {
7730
7750
  })[];
7731
7751
  isError: true;
7732
7752
  };
7733
- } | {
7734
- thoughtSignature?: string | undefined;
7735
- type: "toolCall";
7753
+ callID: string;
7736
7754
  name: string;
7737
7755
  time: {
7738
7756
  start: number;
7739
7757
  end: number;
7740
7758
  };
7741
- callID: string;
7742
7759
  arguments: {
7743
7760
  [x: string]: any;
7744
7761
  };
7762
+ } | {
7763
+ thoughtSignature?: string | undefined;
7745
7764
  status: "aborted";
7765
+ type: "toolCall";
7746
7766
  result: {
7747
7767
  details?: any;
7748
7768
  content: ({
@@ -7756,7 +7776,32 @@ declare namespace Loop {
7756
7776
  })[];
7757
7777
  isError: true;
7758
7778
  };
7779
+ callID: string;
7780
+ name: string;
7781
+ time: {
7782
+ start: number;
7783
+ end: number;
7784
+ };
7785
+ arguments: {
7786
+ [x: string]: any;
7787
+ };
7759
7788
  })[];
7789
+ protocol: "anthropic-messages" | "openai-completions" | "openai-responses";
7790
+ usage: {
7791
+ input: number;
7792
+ output: number;
7793
+ cacheRead: number;
7794
+ cacheWrite: number;
7795
+ totalTokens: number;
7796
+ cost: {
7797
+ input: number;
7798
+ output: number;
7799
+ cacheRead: number;
7800
+ cacheWrite: number;
7801
+ total: number;
7802
+ };
7803
+ };
7804
+ stopReason: "error" | "aborted" | "stop" | "length" | "toolUse";
7760
7805
  })[]>;
7761
7806
  /**
7762
7807
  * Start an agent loop with a new prompt message.
@@ -7898,15 +7943,15 @@ declare namespace Agent {
7898
7943
  type ToolCallInFlight = Static<typeof ToolCallInFlightSchema>;
7899
7944
  const ModelNotFoundErr: {
7900
7945
  new (data: {
7946
+ message: string;
7901
7947
  provider: string;
7902
7948
  model: string;
7903
- message: string;
7904
7949
  }, options?: ErrorOptions): {
7905
7950
  readonly name: "ModelNotFoundErr";
7906
7951
  readonly data: {
7952
+ message: string;
7907
7953
  provider: string;
7908
7954
  model: string;
7909
- message: string;
7910
7955
  };
7911
7956
  schema(): _$_sinclair_typebox0.TObject<{
7912
7957
  name: _$_sinclair_typebox0.TLiteral<"ModelNotFoundErr">;
@@ -7919,9 +7964,9 @@ declare namespace Agent {
7919
7964
  toObject(): {
7920
7965
  name: "ModelNotFoundErr";
7921
7966
  data: {
7967
+ message: string;
7922
7968
  provider: string;
7923
7969
  model: string;
7924
- message: string;
7925
7970
  };
7926
7971
  };
7927
7972
  message: string;
@@ -7939,9 +7984,9 @@ declare namespace Agent {
7939
7984
  isInstance(input: unknown): input is {
7940
7985
  readonly name: "ModelNotFoundErr";
7941
7986
  readonly data: {
7987
+ message: string;
7942
7988
  provider: string;
7943
7989
  model: string;
7944
- message: string;
7945
7990
  };
7946
7991
  schema(): _$_sinclair_typebox0.TObject<{
7947
7992
  name: _$_sinclair_typebox0.TLiteral<"ModelNotFoundErr">;
@@ -7954,9 +7999,9 @@ declare namespace Agent {
7954
7999
  toObject(): {
7955
8000
  name: "ModelNotFoundErr";
7956
8001
  data: {
8002
+ message: string;
7957
8003
  provider: string;
7958
8004
  model: string;
7959
- message: string;
7960
8005
  };
7961
8006
  };
7962
8007
  message: string;
@@ -8683,7 +8728,6 @@ declare namespace Agent {
8683
8728
  private _state;
8684
8729
  private listeners;
8685
8730
  private abortController?;
8686
- private activeAssistantIndex?;
8687
8731
  private convertToLlm;
8688
8732
  private transformContext?;
8689
8733
  private steeringQueue;
@@ -8753,6 +8797,9 @@ declare namespace Agent {
8753
8797
  setTools(t: AgentTool<any>[]): void;
8754
8798
  replaceMessages(ms: Message.Message[]): void;
8755
8799
  appendMessage(m: Message.Message): void;
8800
+ private findMessageIndexById;
8801
+ private replaceMessageById;
8802
+ private upsertMessage;
8756
8803
  private patchStoredAssistantPart;
8757
8804
  /**
8758
8805
  * Queue a steering message while the agent is running.
@@ -8797,7 +8844,6 @@ declare namespace Agent {
8797
8844
  //#endregion
8798
8845
  //#region src/agent.d.ts
8799
8846
  type AgentFacade = {
8800
- create: typeof Agent.create;
8801
8847
  loop: typeof Loop.run;
8802
8848
  loopContinue: typeof Loop.runContinue;
8803
8849
  };
@@ -8815,57 +8861,6 @@ type LLM = {
8815
8861
  };
8816
8862
  declare const llm: LLM;
8817
8863
  //#endregion
8818
- //#region src/model/catalog.d.ts
8819
- declare namespace ModelCatalog {
8820
- export interface ModelsDevModel {
8821
- id: string;
8822
- name: string;
8823
- family: string;
8824
- attachment: boolean;
8825
- reasoning?: boolean;
8826
- tool_call?: boolean;
8827
- temperature?: boolean;
8828
- knowledge?: string | boolean;
8829
- release_date: string;
8830
- last_updated: string;
8831
- modalities: {
8832
- input?: string[];
8833
- output: string[];
8834
- };
8835
- open_weights: boolean;
8836
- baseUrl?: string;
8837
- headers?: Record<string, string>;
8838
- cost?: {
8839
- input?: number;
8840
- output?: number;
8841
- cache_read?: number;
8842
- cache_write?: number;
8843
- };
8844
- limit?: {
8845
- context?: number;
8846
- output?: number;
8847
- };
8848
- }
8849
- export interface ModelsDevProvider {
8850
- id: string;
8851
- env: string[];
8852
- npm?: string;
8853
- api: string;
8854
- baseUrl?: string;
8855
- name: string;
8856
- doc?: string;
8857
- key?: string;
8858
- headers?: Record<string, string>;
8859
- models: Record<string, ModelsDevModel>;
8860
- }
8861
- export type ModelsDevCatalog = Record<string, ModelsDevProvider>;
8862
- type LazyModelsDevCatalog = ReturnType<typeof lazy<Promise<ModelsDevCatalog>>>;
8863
- export const modelsDevData: LazyModelsDevCatalog;
8864
- export function get(): Promise<ModelsDevCatalog>;
8865
- export function refresh(): Promise<void>;
8866
- export {};
8867
- }
8868
- //#endregion
8869
8864
  //#region src/stream.d.ts
8870
8865
  /**
8871
8866
  * Stream assistant responses for a model and context.
@@ -8913,22 +8908,6 @@ type StreamCallable = {
8913
8908
  * - `stream.resolveProtocolProvider(...)` exposes protocol resolution for advanced integrations.
8914
8909
  */
8915
8910
  declare const stream: StreamCallable;
8916
- /** Resolve a streamed response directly to the final assistant message. */
8917
- declare const complete: typeof Stream.complete;
8918
- /** Start a stream using the simplified options surface. */
8919
- declare const streamSimple: typeof Stream.streamSimple;
8920
- /** Resolve a simplified stream request directly to the final assistant message. */
8921
- declare const completeSimple: typeof Stream.completeSimple;
8922
- //#endregion
8923
- //#region src/utils/validation.d.ts
8924
- /**
8925
- * Finds a tool by name and validates the tool call arguments against its TypeBox schema
8926
- */
8927
- declare function validateToolCall<T extends Message.Tool>(tools: T[], toolExecution: Agent.ToolCallInFlight): Message.ToolArguments<T>;
8928
- /**
8929
- * Validates tool call arguments against the tool's TypeBox schema
8930
- */
8931
- declare function validateToolArguments<T extends Message.Tool>(tool: T, toolExecution: Agent.ToolCallInFlight): Message.ToolArguments<T>;
8932
8911
  //#endregion
8933
- export { Agent, Event, Message, Model, ModelCatalog, Stream, agent, complete, completeSimple, llm, stream, streamSimple, validateToolArguments, validateToolCall };
8912
+ export { Agent, Message, agent, llm, stream };
8934
8913
  //# sourceMappingURL=index.d.mts.map