@mastra/ai-sdk 1.0.0-beta.3 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2329 @@
1
+ export declare const networkStreamFixture: ({
2
+ type: string;
3
+ payload: {
4
+ networkId: string;
5
+ agentId: string;
6
+ runId: string;
7
+ inputData: {
8
+ task: string;
9
+ primitiveId: string;
10
+ primitiveType: string;
11
+ iteration: number;
12
+ threadResourceId: string;
13
+ threadId: string;
14
+ isOneOff: boolean;
15
+ verboseIntrospection: boolean;
16
+ isComplete?: undefined;
17
+ result?: undefined;
18
+ };
19
+ task?: undefined;
20
+ result?: undefined;
21
+ primitiveId?: undefined;
22
+ primitiveType?: undefined;
23
+ prompt?: undefined;
24
+ isComplete?: undefined;
25
+ selectionReason?: undefined;
26
+ iteration?: undefined;
27
+ usage?: undefined;
28
+ args?: undefined;
29
+ type?: undefined;
30
+ from?: undefined;
31
+ payload?: undefined;
32
+ data?: undefined;
33
+ workflowId?: undefined;
34
+ id?: undefined;
35
+ name?: undefined;
36
+ toolCallId?: undefined;
37
+ toolName?: undefined;
38
+ text?: undefined;
39
+ isOneOff?: undefined;
40
+ threadId?: undefined;
41
+ threadResourceId?: undefined;
42
+ };
43
+ runId: string;
44
+ from: string;
45
+ } | {
46
+ type: string;
47
+ payload: {
48
+ task: string;
49
+ result: string;
50
+ primitiveId: string;
51
+ primitiveType: string;
52
+ prompt: string;
53
+ isComplete: boolean;
54
+ selectionReason: string;
55
+ iteration: number;
56
+ runId: string;
57
+ usage: {
58
+ inputTokens: number;
59
+ outputTokens: number;
60
+ totalTokens: number;
61
+ reasoningTokens: number;
62
+ cachedInputTokens: number;
63
+ };
64
+ networkId?: undefined;
65
+ agentId?: undefined;
66
+ inputData?: undefined;
67
+ args?: undefined;
68
+ type?: undefined;
69
+ from?: undefined;
70
+ payload?: undefined;
71
+ data?: undefined;
72
+ workflowId?: undefined;
73
+ id?: undefined;
74
+ name?: undefined;
75
+ toolCallId?: undefined;
76
+ toolName?: undefined;
77
+ text?: undefined;
78
+ isOneOff?: undefined;
79
+ threadId?: undefined;
80
+ threadResourceId?: undefined;
81
+ };
82
+ from: string;
83
+ runId: string;
84
+ } | {
85
+ type: string;
86
+ payload: {
87
+ agentId: string;
88
+ args: {
89
+ task: string;
90
+ result: string;
91
+ primitiveId: string;
92
+ primitiveType: string;
93
+ prompt: string;
94
+ isComplete: boolean;
95
+ selectionReason: string;
96
+ iteration: number;
97
+ runId: string;
98
+ args?: undefined;
99
+ toolName?: undefined;
100
+ toolCallId?: undefined;
101
+ };
102
+ runId: string;
103
+ networkId?: undefined;
104
+ inputData?: undefined;
105
+ task?: undefined;
106
+ result?: undefined;
107
+ primitiveId?: undefined;
108
+ primitiveType?: undefined;
109
+ prompt?: undefined;
110
+ isComplete?: undefined;
111
+ selectionReason?: undefined;
112
+ iteration?: undefined;
113
+ usage?: undefined;
114
+ type?: undefined;
115
+ from?: undefined;
116
+ payload?: undefined;
117
+ data?: undefined;
118
+ workflowId?: undefined;
119
+ id?: undefined;
120
+ name?: undefined;
121
+ toolCallId?: undefined;
122
+ toolName?: undefined;
123
+ text?: undefined;
124
+ isOneOff?: undefined;
125
+ threadId?: undefined;
126
+ threadResourceId?: undefined;
127
+ };
128
+ from: string;
129
+ runId: string;
130
+ } | {
131
+ type: string;
132
+ payload: {
133
+ type: string;
134
+ runId: string;
135
+ from: string;
136
+ payload: {
137
+ id: string;
138
+ toolCallId?: undefined;
139
+ toolName?: undefined;
140
+ argsTextDelta?: undefined;
141
+ args?: undefined;
142
+ providerMetadata?: undefined;
143
+ result?: undefined;
144
+ messageId?: undefined;
145
+ stepResult?: undefined;
146
+ metadata?: undefined;
147
+ output?: undefined;
148
+ messages?: undefined;
149
+ request?: undefined;
150
+ warnings?: undefined;
151
+ text?: undefined;
152
+ type?: undefined;
153
+ workflowId?: undefined;
154
+ stepName?: undefined;
155
+ stepCallId?: undefined;
156
+ payload?: undefined;
157
+ startedAt?: undefined;
158
+ status?: undefined;
159
+ endedAt?: undefined;
160
+ workflowStatus?: undefined;
161
+ };
162
+ networkId?: undefined;
163
+ agentId?: undefined;
164
+ inputData?: undefined;
165
+ task?: undefined;
166
+ result?: undefined;
167
+ primitiveId?: undefined;
168
+ primitiveType?: undefined;
169
+ prompt?: undefined;
170
+ isComplete?: undefined;
171
+ selectionReason?: undefined;
172
+ iteration?: undefined;
173
+ usage?: undefined;
174
+ args?: undefined;
175
+ data?: undefined;
176
+ workflowId?: undefined;
177
+ id?: undefined;
178
+ name?: undefined;
179
+ toolCallId?: undefined;
180
+ toolName?: undefined;
181
+ text?: undefined;
182
+ isOneOff?: undefined;
183
+ threadId?: undefined;
184
+ threadResourceId?: undefined;
185
+ };
186
+ from: string;
187
+ runId: string;
188
+ } | {
189
+ type: string;
190
+ payload: {
191
+ type: string;
192
+ runId: string;
193
+ from: string;
194
+ payload: {
195
+ toolCallId: string;
196
+ toolName: string;
197
+ id?: undefined;
198
+ argsTextDelta?: undefined;
199
+ args?: undefined;
200
+ providerMetadata?: undefined;
201
+ result?: undefined;
202
+ messageId?: undefined;
203
+ stepResult?: undefined;
204
+ metadata?: undefined;
205
+ output?: undefined;
206
+ messages?: undefined;
207
+ request?: undefined;
208
+ warnings?: undefined;
209
+ text?: undefined;
210
+ type?: undefined;
211
+ workflowId?: undefined;
212
+ stepName?: undefined;
213
+ stepCallId?: undefined;
214
+ payload?: undefined;
215
+ startedAt?: undefined;
216
+ status?: undefined;
217
+ endedAt?: undefined;
218
+ workflowStatus?: undefined;
219
+ };
220
+ networkId?: undefined;
221
+ agentId?: undefined;
222
+ inputData?: undefined;
223
+ task?: undefined;
224
+ result?: undefined;
225
+ primitiveId?: undefined;
226
+ primitiveType?: undefined;
227
+ prompt?: undefined;
228
+ isComplete?: undefined;
229
+ selectionReason?: undefined;
230
+ iteration?: undefined;
231
+ usage?: undefined;
232
+ args?: undefined;
233
+ data?: undefined;
234
+ workflowId?: undefined;
235
+ id?: undefined;
236
+ name?: undefined;
237
+ toolCallId?: undefined;
238
+ toolName?: undefined;
239
+ text?: undefined;
240
+ isOneOff?: undefined;
241
+ threadId?: undefined;
242
+ threadResourceId?: undefined;
243
+ };
244
+ from: string;
245
+ runId: string;
246
+ } | {
247
+ type: string;
248
+ payload: {
249
+ type: string;
250
+ runId: string;
251
+ from: string;
252
+ payload: {
253
+ argsTextDelta: string;
254
+ toolCallId: string;
255
+ toolName: string;
256
+ id?: undefined;
257
+ args?: undefined;
258
+ providerMetadata?: undefined;
259
+ result?: undefined;
260
+ messageId?: undefined;
261
+ stepResult?: undefined;
262
+ metadata?: undefined;
263
+ output?: undefined;
264
+ messages?: undefined;
265
+ request?: undefined;
266
+ warnings?: undefined;
267
+ text?: undefined;
268
+ type?: undefined;
269
+ workflowId?: undefined;
270
+ stepName?: undefined;
271
+ stepCallId?: undefined;
272
+ payload?: undefined;
273
+ startedAt?: undefined;
274
+ status?: undefined;
275
+ endedAt?: undefined;
276
+ workflowStatus?: undefined;
277
+ };
278
+ networkId?: undefined;
279
+ agentId?: undefined;
280
+ inputData?: undefined;
281
+ task?: undefined;
282
+ result?: undefined;
283
+ primitiveId?: undefined;
284
+ primitiveType?: undefined;
285
+ prompt?: undefined;
286
+ isComplete?: undefined;
287
+ selectionReason?: undefined;
288
+ iteration?: undefined;
289
+ usage?: undefined;
290
+ args?: undefined;
291
+ data?: undefined;
292
+ workflowId?: undefined;
293
+ id?: undefined;
294
+ name?: undefined;
295
+ toolCallId?: undefined;
296
+ toolName?: undefined;
297
+ text?: undefined;
298
+ isOneOff?: undefined;
299
+ threadId?: undefined;
300
+ threadResourceId?: undefined;
301
+ };
302
+ from: string;
303
+ runId: string;
304
+ } | {
305
+ type: string;
306
+ payload: {
307
+ type: string;
308
+ runId: string;
309
+ from: string;
310
+ payload: {
311
+ toolCallId: string;
312
+ id?: undefined;
313
+ toolName?: undefined;
314
+ argsTextDelta?: undefined;
315
+ args?: undefined;
316
+ providerMetadata?: undefined;
317
+ result?: undefined;
318
+ messageId?: undefined;
319
+ stepResult?: undefined;
320
+ metadata?: undefined;
321
+ output?: undefined;
322
+ messages?: undefined;
323
+ request?: undefined;
324
+ warnings?: undefined;
325
+ text?: undefined;
326
+ type?: undefined;
327
+ workflowId?: undefined;
328
+ stepName?: undefined;
329
+ stepCallId?: undefined;
330
+ payload?: undefined;
331
+ startedAt?: undefined;
332
+ status?: undefined;
333
+ endedAt?: undefined;
334
+ workflowStatus?: undefined;
335
+ };
336
+ networkId?: undefined;
337
+ agentId?: undefined;
338
+ inputData?: undefined;
339
+ task?: undefined;
340
+ result?: undefined;
341
+ primitiveId?: undefined;
342
+ primitiveType?: undefined;
343
+ prompt?: undefined;
344
+ isComplete?: undefined;
345
+ selectionReason?: undefined;
346
+ iteration?: undefined;
347
+ usage?: undefined;
348
+ args?: undefined;
349
+ data?: undefined;
350
+ workflowId?: undefined;
351
+ id?: undefined;
352
+ name?: undefined;
353
+ toolCallId?: undefined;
354
+ toolName?: undefined;
355
+ text?: undefined;
356
+ isOneOff?: undefined;
357
+ threadId?: undefined;
358
+ threadResourceId?: undefined;
359
+ };
360
+ from: string;
361
+ runId: string;
362
+ } | {
363
+ type: string;
364
+ payload: {
365
+ type: string;
366
+ runId: string;
367
+ from: string;
368
+ payload: {
369
+ toolCallId: string;
370
+ toolName: string;
371
+ args: {
372
+ name: string;
373
+ description: string;
374
+ };
375
+ providerMetadata: {
376
+ openai: {
377
+ itemId: string;
378
+ };
379
+ };
380
+ id?: undefined;
381
+ argsTextDelta?: undefined;
382
+ result?: undefined;
383
+ messageId?: undefined;
384
+ stepResult?: undefined;
385
+ metadata?: undefined;
386
+ output?: undefined;
387
+ messages?: undefined;
388
+ request?: undefined;
389
+ warnings?: undefined;
390
+ text?: undefined;
391
+ type?: undefined;
392
+ workflowId?: undefined;
393
+ stepName?: undefined;
394
+ stepCallId?: undefined;
395
+ payload?: undefined;
396
+ startedAt?: undefined;
397
+ status?: undefined;
398
+ endedAt?: undefined;
399
+ workflowStatus?: undefined;
400
+ };
401
+ networkId?: undefined;
402
+ agentId?: undefined;
403
+ inputData?: undefined;
404
+ task?: undefined;
405
+ result?: undefined;
406
+ primitiveId?: undefined;
407
+ primitiveType?: undefined;
408
+ prompt?: undefined;
409
+ isComplete?: undefined;
410
+ selectionReason?: undefined;
411
+ iteration?: undefined;
412
+ usage?: undefined;
413
+ args?: undefined;
414
+ data?: undefined;
415
+ workflowId?: undefined;
416
+ id?: undefined;
417
+ name?: undefined;
418
+ toolCallId?: undefined;
419
+ toolName?: undefined;
420
+ text?: undefined;
421
+ isOneOff?: undefined;
422
+ threadId?: undefined;
423
+ threadResourceId?: undefined;
424
+ };
425
+ from: string;
426
+ runId: string;
427
+ } | {
428
+ type: string;
429
+ payload: {
430
+ type: string;
431
+ data: {
432
+ name: string;
433
+ description: string;
434
+ };
435
+ runId: string;
436
+ networkId?: undefined;
437
+ agentId?: undefined;
438
+ inputData?: undefined;
439
+ task?: undefined;
440
+ result?: undefined;
441
+ primitiveId?: undefined;
442
+ primitiveType?: undefined;
443
+ prompt?: undefined;
444
+ isComplete?: undefined;
445
+ selectionReason?: undefined;
446
+ iteration?: undefined;
447
+ usage?: undefined;
448
+ args?: undefined;
449
+ from?: undefined;
450
+ payload?: undefined;
451
+ workflowId?: undefined;
452
+ id?: undefined;
453
+ name?: undefined;
454
+ toolCallId?: undefined;
455
+ toolName?: undefined;
456
+ text?: undefined;
457
+ isOneOff?: undefined;
458
+ threadId?: undefined;
459
+ threadResourceId?: undefined;
460
+ };
461
+ from: string;
462
+ runId: string;
463
+ } | {
464
+ type: string;
465
+ payload: {
466
+ type: string;
467
+ runId: string;
468
+ from: string;
469
+ payload: {
470
+ args: {
471
+ name: string;
472
+ description: string;
473
+ };
474
+ toolCallId: string;
475
+ toolName: string;
476
+ result: {
477
+ inStock: boolean;
478
+ quantity: number;
479
+ };
480
+ providerMetadata: {
481
+ openai: {
482
+ itemId: string;
483
+ };
484
+ };
485
+ id?: undefined;
486
+ argsTextDelta?: undefined;
487
+ messageId?: undefined;
488
+ stepResult?: undefined;
489
+ metadata?: undefined;
490
+ output?: undefined;
491
+ messages?: undefined;
492
+ request?: undefined;
493
+ warnings?: undefined;
494
+ text?: undefined;
495
+ type?: undefined;
496
+ workflowId?: undefined;
497
+ stepName?: undefined;
498
+ stepCallId?: undefined;
499
+ payload?: undefined;
500
+ startedAt?: undefined;
501
+ status?: undefined;
502
+ endedAt?: undefined;
503
+ workflowStatus?: undefined;
504
+ };
505
+ networkId?: undefined;
506
+ agentId?: undefined;
507
+ inputData?: undefined;
508
+ task?: undefined;
509
+ result?: undefined;
510
+ primitiveId?: undefined;
511
+ primitiveType?: undefined;
512
+ prompt?: undefined;
513
+ isComplete?: undefined;
514
+ selectionReason?: undefined;
515
+ iteration?: undefined;
516
+ usage?: undefined;
517
+ args?: undefined;
518
+ data?: undefined;
519
+ workflowId?: undefined;
520
+ id?: undefined;
521
+ name?: undefined;
522
+ toolCallId?: undefined;
523
+ toolName?: undefined;
524
+ text?: undefined;
525
+ isOneOff?: undefined;
526
+ threadId?: undefined;
527
+ threadResourceId?: undefined;
528
+ };
529
+ from: string;
530
+ runId: string;
531
+ } | {
532
+ type: string;
533
+ payload: {
534
+ type: string;
535
+ runId: string;
536
+ from: string;
537
+ payload: {
538
+ messageId: string;
539
+ stepResult: {
540
+ reason: string;
541
+ isContinued: boolean;
542
+ };
543
+ metadata: {
544
+ providerMetadata: {
545
+ openai: {
546
+ responseId: string;
547
+ serviceTier: string;
548
+ };
549
+ };
550
+ id: string;
551
+ timestamp: string;
552
+ modelId: string;
553
+ headers: {
554
+ 'alt-svc': string;
555
+ 'cf-cache-status': string;
556
+ 'cf-ray': string;
557
+ connection: string;
558
+ 'content-type': string;
559
+ date: string;
560
+ 'openai-organization': string;
561
+ 'openai-processing-ms': string;
562
+ 'openai-project': string;
563
+ 'openai-version': string;
564
+ server: string;
565
+ 'set-cookie': string;
566
+ 'strict-transport-security': string;
567
+ 'transfer-encoding': string;
568
+ 'x-content-type-options': string;
569
+ 'x-envoy-upstream-service-time': string;
570
+ 'x-request-id': string;
571
+ };
572
+ modelMetadata: {
573
+ modelId: string;
574
+ modelVersion: string;
575
+ modelProvider: string;
576
+ };
577
+ request: {
578
+ body: {
579
+ model: string;
580
+ input: ({
581
+ role: string;
582
+ content: string;
583
+ } | {
584
+ role: string;
585
+ content: {
586
+ type: string;
587
+ text: string;
588
+ }[];
589
+ })[];
590
+ temperature: number;
591
+ tools: {
592
+ type: string;
593
+ name: string;
594
+ description: string;
595
+ parameters: {
596
+ type: string;
597
+ properties: {
598
+ name: {
599
+ type: string;
600
+ };
601
+ description: {
602
+ type: string;
603
+ };
604
+ };
605
+ required: string[];
606
+ additionalProperties: boolean;
607
+ $schema: string;
608
+ };
609
+ strict: boolean;
610
+ }[];
611
+ tool_choice: string;
612
+ };
613
+ };
614
+ };
615
+ output: {
616
+ text: string;
617
+ toolCalls: {
618
+ toolCallId: string;
619
+ toolName: string;
620
+ args: {
621
+ name: string;
622
+ description: string;
623
+ };
624
+ providerMetadata: {
625
+ openai: {
626
+ itemId: string;
627
+ };
628
+ };
629
+ }[];
630
+ usage: {
631
+ inputTokens: number;
632
+ outputTokens: number;
633
+ totalTokens: number;
634
+ reasoningTokens: number;
635
+ cachedInputTokens: number;
636
+ };
637
+ steps: {
638
+ content: never[];
639
+ usage: {
640
+ inputTokens: number;
641
+ outputTokens: number;
642
+ totalTokens: number;
643
+ reasoningTokens: number;
644
+ cachedInputTokens: number;
645
+ };
646
+ warnings: never[];
647
+ request: {
648
+ body: {
649
+ model: string;
650
+ input: ({
651
+ role: string;
652
+ content: string;
653
+ type?: undefined;
654
+ call_id?: undefined;
655
+ name?: undefined;
656
+ arguments?: undefined;
657
+ output?: undefined;
658
+ } | {
659
+ role: string;
660
+ content: {
661
+ type: string;
662
+ text: string;
663
+ }[];
664
+ type?: undefined;
665
+ call_id?: undefined;
666
+ name?: undefined;
667
+ arguments?: undefined;
668
+ output?: undefined;
669
+ } | {
670
+ type: string;
671
+ call_id: string;
672
+ name: string;
673
+ arguments: string;
674
+ role?: undefined;
675
+ content?: undefined;
676
+ output?: undefined;
677
+ } | {
678
+ type: string;
679
+ call_id: string;
680
+ output: string;
681
+ role?: undefined;
682
+ content?: undefined;
683
+ name?: undefined;
684
+ arguments?: undefined;
685
+ })[];
686
+ temperature: number;
687
+ tools: {
688
+ type: string;
689
+ name: string;
690
+ description: string;
691
+ parameters: {
692
+ type: string;
693
+ properties: {
694
+ name: {
695
+ type: string;
696
+ };
697
+ description: {
698
+ type: string;
699
+ };
700
+ };
701
+ required: string[];
702
+ additionalProperties: boolean;
703
+ $schema: string;
704
+ };
705
+ strict: boolean;
706
+ }[];
707
+ tool_choice: string;
708
+ };
709
+ };
710
+ response: {
711
+ id: string;
712
+ timestamp: string;
713
+ modelId: string;
714
+ headers: {
715
+ 'alt-svc': string;
716
+ 'cf-cache-status': string;
717
+ 'cf-ray': string;
718
+ connection: string;
719
+ 'content-type': string;
720
+ date: string;
721
+ 'openai-organization': string;
722
+ 'openai-processing-ms': string;
723
+ 'openai-project': string;
724
+ 'openai-version': string;
725
+ server: string;
726
+ 'set-cookie': string;
727
+ 'strict-transport-security': string;
728
+ 'transfer-encoding': string;
729
+ 'x-content-type-options': string;
730
+ 'x-envoy-upstream-service-time': string;
731
+ 'x-request-id': string;
732
+ };
733
+ messages: ({
734
+ role: string;
735
+ content: {
736
+ type: string;
737
+ toolCallId: string;
738
+ toolName: string;
739
+ input: {
740
+ name: string;
741
+ description: string;
742
+ };
743
+ }[];
744
+ } | {
745
+ role: string;
746
+ content: {
747
+ type: string;
748
+ toolCallId: string;
749
+ toolName: string;
750
+ output: {
751
+ type: string;
752
+ value: {
753
+ inStock: boolean;
754
+ quantity: number;
755
+ };
756
+ };
757
+ }[];
758
+ } | {
759
+ role: string;
760
+ content: {
761
+ type: string;
762
+ text: string;
763
+ }[];
764
+ })[];
765
+ };
766
+ providerMetadata: {
767
+ openai: {
768
+ responseId: string;
769
+ serviceTier: string;
770
+ };
771
+ };
772
+ }[];
773
+ success?: undefined;
774
+ };
775
+ messages: {
776
+ all: ({
777
+ role: string;
778
+ content: {
779
+ type: string;
780
+ text: string;
781
+ }[];
782
+ } | {
783
+ role: string;
784
+ content: {
785
+ type: string;
786
+ toolCallId: string;
787
+ toolName: string;
788
+ input: {
789
+ name: string;
790
+ description: string;
791
+ };
792
+ }[];
793
+ } | {
794
+ role: string;
795
+ content: {
796
+ type: string;
797
+ toolCallId: string;
798
+ toolName: string;
799
+ output: {
800
+ type: string;
801
+ value: {
802
+ inStock: boolean;
803
+ quantity: number;
804
+ };
805
+ };
806
+ }[];
807
+ })[];
808
+ user: {
809
+ role: string;
810
+ content: {
811
+ type: string;
812
+ text: string;
813
+ }[];
814
+ }[];
815
+ nonUser: ({
816
+ role: string;
817
+ content: {
818
+ type: string;
819
+ toolCallId: string;
820
+ toolName: string;
821
+ input: {
822
+ name: string;
823
+ description: string;
824
+ };
825
+ }[];
826
+ } | {
827
+ role: string;
828
+ content: {
829
+ type: string;
830
+ toolCallId: string;
831
+ toolName: string;
832
+ output: {
833
+ type: string;
834
+ value: {
835
+ inStock: boolean;
836
+ quantity: number;
837
+ };
838
+ };
839
+ }[];
840
+ })[];
841
+ };
842
+ id?: undefined;
843
+ toolCallId?: undefined;
844
+ toolName?: undefined;
845
+ argsTextDelta?: undefined;
846
+ args?: undefined;
847
+ providerMetadata?: undefined;
848
+ result?: undefined;
849
+ request?: undefined;
850
+ warnings?: undefined;
851
+ text?: undefined;
852
+ type?: undefined;
853
+ workflowId?: undefined;
854
+ stepName?: undefined;
855
+ stepCallId?: undefined;
856
+ payload?: undefined;
857
+ startedAt?: undefined;
858
+ status?: undefined;
859
+ endedAt?: undefined;
860
+ workflowStatus?: undefined;
861
+ };
862
+ networkId?: undefined;
863
+ agentId?: undefined;
864
+ inputData?: undefined;
865
+ task?: undefined;
866
+ result?: undefined;
867
+ primitiveId?: undefined;
868
+ primitiveType?: undefined;
869
+ prompt?: undefined;
870
+ isComplete?: undefined;
871
+ selectionReason?: undefined;
872
+ iteration?: undefined;
873
+ usage?: undefined;
874
+ args?: undefined;
875
+ data?: undefined;
876
+ workflowId?: undefined;
877
+ id?: undefined;
878
+ name?: undefined;
879
+ toolCallId?: undefined;
880
+ toolName?: undefined;
881
+ text?: undefined;
882
+ isOneOff?: undefined;
883
+ threadId?: undefined;
884
+ threadResourceId?: undefined;
885
+ };
886
+ from: string;
887
+ runId: string;
888
+ } | {
889
+ type: string;
890
+ payload: {
891
+ runId: string;
892
+ from: string;
893
+ type: string;
894
+ payload: {
895
+ request: {
896
+ body: {
897
+ model: string;
898
+ input: ({
899
+ role: string;
900
+ content: string;
901
+ type?: undefined;
902
+ call_id?: undefined;
903
+ name?: undefined;
904
+ arguments?: undefined;
905
+ output?: undefined;
906
+ } | {
907
+ role: string;
908
+ content: {
909
+ type: string;
910
+ text: string;
911
+ }[];
912
+ type?: undefined;
913
+ call_id?: undefined;
914
+ name?: undefined;
915
+ arguments?: undefined;
916
+ output?: undefined;
917
+ } | {
918
+ type: string;
919
+ call_id: string;
920
+ name: string;
921
+ arguments: string;
922
+ role?: undefined;
923
+ content?: undefined;
924
+ output?: undefined;
925
+ } | {
926
+ type: string;
927
+ call_id: string;
928
+ output: string;
929
+ role?: undefined;
930
+ content?: undefined;
931
+ name?: undefined;
932
+ arguments?: undefined;
933
+ })[];
934
+ temperature: number;
935
+ tools: {
936
+ type: string;
937
+ name: string;
938
+ description: string;
939
+ parameters: {
940
+ type: string;
941
+ properties: {
942
+ name: {
943
+ type: string;
944
+ };
945
+ description: {
946
+ type: string;
947
+ };
948
+ };
949
+ required: string[];
950
+ additionalProperties: boolean;
951
+ $schema: string;
952
+ };
953
+ strict: boolean;
954
+ }[];
955
+ tool_choice: string;
956
+ };
957
+ };
958
+ warnings: never[];
959
+ messageId: string;
960
+ id?: undefined;
961
+ toolCallId?: undefined;
962
+ toolName?: undefined;
963
+ argsTextDelta?: undefined;
964
+ args?: undefined;
965
+ providerMetadata?: undefined;
966
+ result?: undefined;
967
+ stepResult?: undefined;
968
+ metadata?: undefined;
969
+ output?: undefined;
970
+ messages?: undefined;
971
+ text?: undefined;
972
+ type?: undefined;
973
+ workflowId?: undefined;
974
+ stepName?: undefined;
975
+ stepCallId?: undefined;
976
+ payload?: undefined;
977
+ startedAt?: undefined;
978
+ status?: undefined;
979
+ endedAt?: undefined;
980
+ workflowStatus?: undefined;
981
+ };
982
+ networkId?: undefined;
983
+ agentId?: undefined;
984
+ inputData?: undefined;
985
+ task?: undefined;
986
+ result?: undefined;
987
+ primitiveId?: undefined;
988
+ primitiveType?: undefined;
989
+ prompt?: undefined;
990
+ isComplete?: undefined;
991
+ selectionReason?: undefined;
992
+ iteration?: undefined;
993
+ usage?: undefined;
994
+ args?: undefined;
995
+ data?: undefined;
996
+ workflowId?: undefined;
997
+ id?: undefined;
998
+ name?: undefined;
999
+ toolCallId?: undefined;
1000
+ toolName?: undefined;
1001
+ text?: undefined;
1002
+ isOneOff?: undefined;
1003
+ threadId?: undefined;
1004
+ threadResourceId?: undefined;
1005
+ };
1006
+ from: string;
1007
+ runId: string;
1008
+ } | {
1009
+ type: string;
1010
+ payload: {
1011
+ type: string;
1012
+ runId: string;
1013
+ from: string;
1014
+ payload: {
1015
+ id: string;
1016
+ providerMetadata: {
1017
+ openai: {
1018
+ itemId: string;
1019
+ };
1020
+ };
1021
+ toolCallId?: undefined;
1022
+ toolName?: undefined;
1023
+ argsTextDelta?: undefined;
1024
+ args?: undefined;
1025
+ result?: undefined;
1026
+ messageId?: undefined;
1027
+ stepResult?: undefined;
1028
+ metadata?: undefined;
1029
+ output?: undefined;
1030
+ messages?: undefined;
1031
+ request?: undefined;
1032
+ warnings?: undefined;
1033
+ text?: undefined;
1034
+ type?: undefined;
1035
+ workflowId?: undefined;
1036
+ stepName?: undefined;
1037
+ stepCallId?: undefined;
1038
+ payload?: undefined;
1039
+ startedAt?: undefined;
1040
+ status?: undefined;
1041
+ endedAt?: undefined;
1042
+ workflowStatus?: undefined;
1043
+ };
1044
+ networkId?: undefined;
1045
+ agentId?: undefined;
1046
+ inputData?: undefined;
1047
+ task?: undefined;
1048
+ result?: undefined;
1049
+ primitiveId?: undefined;
1050
+ primitiveType?: undefined;
1051
+ prompt?: undefined;
1052
+ isComplete?: undefined;
1053
+ selectionReason?: undefined;
1054
+ iteration?: undefined;
1055
+ usage?: undefined;
1056
+ args?: undefined;
1057
+ data?: undefined;
1058
+ workflowId?: undefined;
1059
+ id?: undefined;
1060
+ name?: undefined;
1061
+ toolCallId?: undefined;
1062
+ toolName?: undefined;
1063
+ text?: undefined;
1064
+ isOneOff?: undefined;
1065
+ threadId?: undefined;
1066
+ threadResourceId?: undefined;
1067
+ };
1068
+ from: string;
1069
+ runId: string;
1070
+ } | {
1071
+ type: string;
1072
+ payload: {
1073
+ type: string;
1074
+ runId: string;
1075
+ from: string;
1076
+ payload: {
1077
+ id: string;
1078
+ text: string;
1079
+ toolCallId?: undefined;
1080
+ toolName?: undefined;
1081
+ argsTextDelta?: undefined;
1082
+ args?: undefined;
1083
+ providerMetadata?: undefined;
1084
+ result?: undefined;
1085
+ messageId?: undefined;
1086
+ stepResult?: undefined;
1087
+ metadata?: undefined;
1088
+ output?: undefined;
1089
+ messages?: undefined;
1090
+ request?: undefined;
1091
+ warnings?: undefined;
1092
+ type?: undefined;
1093
+ workflowId?: undefined;
1094
+ stepName?: undefined;
1095
+ stepCallId?: undefined;
1096
+ payload?: undefined;
1097
+ startedAt?: undefined;
1098
+ status?: undefined;
1099
+ endedAt?: undefined;
1100
+ workflowStatus?: undefined;
1101
+ };
1102
+ networkId?: undefined;
1103
+ agentId?: undefined;
1104
+ inputData?: undefined;
1105
+ task?: undefined;
1106
+ result?: undefined;
1107
+ primitiveId?: undefined;
1108
+ primitiveType?: undefined;
1109
+ prompt?: undefined;
1110
+ isComplete?: undefined;
1111
+ selectionReason?: undefined;
1112
+ iteration?: undefined;
1113
+ usage?: undefined;
1114
+ args?: undefined;
1115
+ data?: undefined;
1116
+ workflowId?: undefined;
1117
+ id?: undefined;
1118
+ name?: undefined;
1119
+ toolCallId?: undefined;
1120
+ toolName?: undefined;
1121
+ text?: undefined;
1122
+ isOneOff?: undefined;
1123
+ threadId?: undefined;
1124
+ threadResourceId?: undefined;
1125
+ };
1126
+ from: string;
1127
+ runId: string;
1128
+ } | {
1129
+ type: string;
1130
+ payload: {
1131
+ type: string;
1132
+ runId: string;
1133
+ from: string;
1134
+ payload: {
1135
+ type: string;
1136
+ id: string;
1137
+ toolCallId?: undefined;
1138
+ toolName?: undefined;
1139
+ argsTextDelta?: undefined;
1140
+ args?: undefined;
1141
+ providerMetadata?: undefined;
1142
+ result?: undefined;
1143
+ messageId?: undefined;
1144
+ stepResult?: undefined;
1145
+ metadata?: undefined;
1146
+ output?: undefined;
1147
+ messages?: undefined;
1148
+ request?: undefined;
1149
+ warnings?: undefined;
1150
+ text?: undefined;
1151
+ workflowId?: undefined;
1152
+ stepName?: undefined;
1153
+ stepCallId?: undefined;
1154
+ payload?: undefined;
1155
+ startedAt?: undefined;
1156
+ status?: undefined;
1157
+ endedAt?: undefined;
1158
+ workflowStatus?: undefined;
1159
+ };
1160
+ networkId?: undefined;
1161
+ agentId?: undefined;
1162
+ inputData?: undefined;
1163
+ task?: undefined;
1164
+ result?: undefined;
1165
+ primitiveId?: undefined;
1166
+ primitiveType?: undefined;
1167
+ prompt?: undefined;
1168
+ isComplete?: undefined;
1169
+ selectionReason?: undefined;
1170
+ iteration?: undefined;
1171
+ usage?: undefined;
1172
+ args?: undefined;
1173
+ data?: undefined;
1174
+ workflowId?: undefined;
1175
+ id?: undefined;
1176
+ name?: undefined;
1177
+ toolCallId?: undefined;
1178
+ toolName?: undefined;
1179
+ text?: undefined;
1180
+ isOneOff?: undefined;
1181
+ threadId?: undefined;
1182
+ threadResourceId?: undefined;
1183
+ };
1184
+ from: string;
1185
+ runId: string;
1186
+ } | {
1187
+ type: string;
1188
+ payload: {
1189
+ type: string;
1190
+ runId: string;
1191
+ from: string;
1192
+ payload: {
1193
+ messageId: string;
1194
+ stepResult: {
1195
+ reason: string;
1196
+ isContinued: boolean;
1197
+ };
1198
+ metadata: {
1199
+ providerMetadata: {
1200
+ openai: {
1201
+ responseId: string;
1202
+ serviceTier: string;
1203
+ };
1204
+ };
1205
+ id: string;
1206
+ timestamp: string;
1207
+ modelId: string;
1208
+ headers: {
1209
+ 'alt-svc': string;
1210
+ 'cf-cache-status': string;
1211
+ 'cf-ray': string;
1212
+ connection: string;
1213
+ 'content-type': string;
1214
+ date: string;
1215
+ 'openai-organization': string;
1216
+ 'openai-processing-ms': string;
1217
+ 'openai-project': string;
1218
+ 'openai-version': string;
1219
+ server: string;
1220
+ 'set-cookie': string;
1221
+ 'strict-transport-security': string;
1222
+ 'transfer-encoding': string;
1223
+ 'x-content-type-options': string;
1224
+ 'x-envoy-upstream-service-time': string;
1225
+ 'x-request-id': string;
1226
+ };
1227
+ modelMetadata: {
1228
+ modelId: string;
1229
+ modelVersion: string;
1230
+ modelProvider: string;
1231
+ };
1232
+ request: {
1233
+ body: {
1234
+ model: string;
1235
+ input: ({
1236
+ role: string;
1237
+ content: string;
1238
+ type?: undefined;
1239
+ call_id?: undefined;
1240
+ name?: undefined;
1241
+ arguments?: undefined;
1242
+ output?: undefined;
1243
+ } | {
1244
+ role: string;
1245
+ content: {
1246
+ type: string;
1247
+ text: string;
1248
+ }[];
1249
+ type?: undefined;
1250
+ call_id?: undefined;
1251
+ name?: undefined;
1252
+ arguments?: undefined;
1253
+ output?: undefined;
1254
+ } | {
1255
+ type: string;
1256
+ call_id: string;
1257
+ name: string;
1258
+ arguments: string;
1259
+ role?: undefined;
1260
+ content?: undefined;
1261
+ output?: undefined;
1262
+ } | {
1263
+ type: string;
1264
+ call_id: string;
1265
+ output: string;
1266
+ role?: undefined;
1267
+ content?: undefined;
1268
+ name?: undefined;
1269
+ arguments?: undefined;
1270
+ })[];
1271
+ temperature: number;
1272
+ tools: {
1273
+ type: string;
1274
+ name: string;
1275
+ description: string;
1276
+ parameters: {
1277
+ type: string;
1278
+ properties: {
1279
+ name: {
1280
+ type: string;
1281
+ };
1282
+ description: {
1283
+ type: string;
1284
+ };
1285
+ };
1286
+ required: string[];
1287
+ additionalProperties: boolean;
1288
+ $schema: string;
1289
+ };
1290
+ strict: boolean;
1291
+ }[];
1292
+ tool_choice: string;
1293
+ };
1294
+ };
1295
+ };
1296
+ output: {
1297
+ text: string;
1298
+ toolCalls: never[];
1299
+ usage: {
1300
+ inputTokens: number;
1301
+ outputTokens: number;
1302
+ totalTokens: number;
1303
+ reasoningTokens: number;
1304
+ cachedInputTokens: number;
1305
+ };
1306
+ steps: {
1307
+ content: never[];
1308
+ usage: {
1309
+ inputTokens: number;
1310
+ outputTokens: number;
1311
+ totalTokens: number;
1312
+ reasoningTokens: number;
1313
+ cachedInputTokens: number;
1314
+ };
1315
+ warnings: never[];
1316
+ request: {
1317
+ body: {
1318
+ model: string;
1319
+ input: ({
1320
+ role: string;
1321
+ content: string;
1322
+ type?: undefined;
1323
+ call_id?: undefined;
1324
+ name?: undefined;
1325
+ arguments?: undefined;
1326
+ output?: undefined;
1327
+ } | {
1328
+ role: string;
1329
+ content: {
1330
+ type: string;
1331
+ text: string;
1332
+ }[];
1333
+ type?: undefined;
1334
+ call_id?: undefined;
1335
+ name?: undefined;
1336
+ arguments?: undefined;
1337
+ output?: undefined;
1338
+ } | {
1339
+ type: string;
1340
+ call_id: string;
1341
+ name: string;
1342
+ arguments: string;
1343
+ role?: undefined;
1344
+ content?: undefined;
1345
+ output?: undefined;
1346
+ } | {
1347
+ type: string;
1348
+ call_id: string;
1349
+ output: string;
1350
+ role?: undefined;
1351
+ content?: undefined;
1352
+ name?: undefined;
1353
+ arguments?: undefined;
1354
+ })[];
1355
+ temperature: number;
1356
+ tools: {
1357
+ type: string;
1358
+ name: string;
1359
+ description: string;
1360
+ parameters: {
1361
+ type: string;
1362
+ properties: {
1363
+ name: {
1364
+ type: string;
1365
+ };
1366
+ description: {
1367
+ type: string;
1368
+ };
1369
+ };
1370
+ required: string[];
1371
+ additionalProperties: boolean;
1372
+ $schema: string;
1373
+ };
1374
+ strict: boolean;
1375
+ }[];
1376
+ tool_choice: string;
1377
+ };
1378
+ };
1379
+ response: {
1380
+ id: string;
1381
+ timestamp: string;
1382
+ modelId: string;
1383
+ headers: {
1384
+ 'alt-svc': string;
1385
+ 'cf-cache-status': string;
1386
+ 'cf-ray': string;
1387
+ connection: string;
1388
+ 'content-type': string;
1389
+ date: string;
1390
+ 'openai-organization': string;
1391
+ 'openai-processing-ms': string;
1392
+ 'openai-project': string;
1393
+ 'openai-version': string;
1394
+ server: string;
1395
+ 'set-cookie': string;
1396
+ 'strict-transport-security': string;
1397
+ 'transfer-encoding': string;
1398
+ 'x-content-type-options': string;
1399
+ 'x-envoy-upstream-service-time': string;
1400
+ 'x-request-id': string;
1401
+ };
1402
+ messages: ({
1403
+ role: string;
1404
+ content: {
1405
+ type: string;
1406
+ toolCallId: string;
1407
+ toolName: string;
1408
+ input: {
1409
+ name: string;
1410
+ description: string;
1411
+ };
1412
+ }[];
1413
+ } | {
1414
+ role: string;
1415
+ content: {
1416
+ type: string;
1417
+ toolCallId: string;
1418
+ toolName: string;
1419
+ output: {
1420
+ type: string;
1421
+ value: {
1422
+ inStock: boolean;
1423
+ quantity: number;
1424
+ };
1425
+ };
1426
+ }[];
1427
+ } | {
1428
+ role: string;
1429
+ content: {
1430
+ type: string;
1431
+ text: string;
1432
+ }[];
1433
+ })[];
1434
+ };
1435
+ providerMetadata: {
1436
+ openai: {
1437
+ responseId: string;
1438
+ serviceTier: string;
1439
+ };
1440
+ };
1441
+ }[];
1442
+ success?: undefined;
1443
+ };
1444
+ messages: {
1445
+ all: ({
1446
+ role: string;
1447
+ content: {
1448
+ type: string;
1449
+ text: string;
1450
+ }[];
1451
+ } | {
1452
+ role: string;
1453
+ content: {
1454
+ type: string;
1455
+ toolCallId: string;
1456
+ toolName: string;
1457
+ input: {
1458
+ name: string;
1459
+ description: string;
1460
+ };
1461
+ }[];
1462
+ } | {
1463
+ role: string;
1464
+ content: {
1465
+ type: string;
1466
+ toolCallId: string;
1467
+ toolName: string;
1468
+ output: {
1469
+ type: string;
1470
+ value: {
1471
+ inStock: boolean;
1472
+ quantity: number;
1473
+ };
1474
+ };
1475
+ }[];
1476
+ })[];
1477
+ user: {
1478
+ role: string;
1479
+ content: {
1480
+ type: string;
1481
+ text: string;
1482
+ }[];
1483
+ }[];
1484
+ nonUser: ({
1485
+ role: string;
1486
+ content: {
1487
+ type: string;
1488
+ toolCallId: string;
1489
+ toolName: string;
1490
+ input: {
1491
+ name: string;
1492
+ description: string;
1493
+ };
1494
+ }[];
1495
+ } | {
1496
+ role: string;
1497
+ content: {
1498
+ type: string;
1499
+ toolCallId: string;
1500
+ toolName: string;
1501
+ output: {
1502
+ type: string;
1503
+ value: {
1504
+ inStock: boolean;
1505
+ quantity: number;
1506
+ };
1507
+ };
1508
+ }[];
1509
+ } | {
1510
+ role: string;
1511
+ content: {
1512
+ type: string;
1513
+ text: string;
1514
+ }[];
1515
+ })[];
1516
+ };
1517
+ id?: undefined;
1518
+ toolCallId?: undefined;
1519
+ toolName?: undefined;
1520
+ argsTextDelta?: undefined;
1521
+ args?: undefined;
1522
+ providerMetadata?: undefined;
1523
+ result?: undefined;
1524
+ request?: undefined;
1525
+ warnings?: undefined;
1526
+ text?: undefined;
1527
+ type?: undefined;
1528
+ workflowId?: undefined;
1529
+ stepName?: undefined;
1530
+ stepCallId?: undefined;
1531
+ payload?: undefined;
1532
+ startedAt?: undefined;
1533
+ status?: undefined;
1534
+ endedAt?: undefined;
1535
+ workflowStatus?: undefined;
1536
+ };
1537
+ networkId?: undefined;
1538
+ agentId?: undefined;
1539
+ inputData?: undefined;
1540
+ task?: undefined;
1541
+ result?: undefined;
1542
+ primitiveId?: undefined;
1543
+ primitiveType?: undefined;
1544
+ prompt?: undefined;
1545
+ isComplete?: undefined;
1546
+ selectionReason?: undefined;
1547
+ iteration?: undefined;
1548
+ usage?: undefined;
1549
+ args?: undefined;
1550
+ data?: undefined;
1551
+ workflowId?: undefined;
1552
+ id?: undefined;
1553
+ name?: undefined;
1554
+ toolCallId?: undefined;
1555
+ toolName?: undefined;
1556
+ text?: undefined;
1557
+ isOneOff?: undefined;
1558
+ threadId?: undefined;
1559
+ threadResourceId?: undefined;
1560
+ };
1561
+ from: string;
1562
+ runId: string;
1563
+ } | {
1564
+ type: string;
1565
+ payload: {
1566
+ task: string;
1567
+ agentId: string;
1568
+ result: string;
1569
+ isComplete: boolean;
1570
+ iteration: number;
1571
+ runId: string;
1572
+ usage: {
1573
+ inputTokens: number;
1574
+ outputTokens: number;
1575
+ totalTokens: number;
1576
+ reasoningTokens: number;
1577
+ cachedInputTokens: number;
1578
+ };
1579
+ networkId?: undefined;
1580
+ inputData?: undefined;
1581
+ primitiveId?: undefined;
1582
+ primitiveType?: undefined;
1583
+ prompt?: undefined;
1584
+ selectionReason?: undefined;
1585
+ args?: undefined;
1586
+ type?: undefined;
1587
+ from?: undefined;
1588
+ payload?: undefined;
1589
+ data?: undefined;
1590
+ workflowId?: undefined;
1591
+ id?: undefined;
1592
+ name?: undefined;
1593
+ toolCallId?: undefined;
1594
+ toolName?: undefined;
1595
+ text?: undefined;
1596
+ isOneOff?: undefined;
1597
+ threadId?: undefined;
1598
+ threadResourceId?: undefined;
1599
+ };
1600
+ from: string;
1601
+ runId: string;
1602
+ } | {
1603
+ type: string;
1604
+ payload: {
1605
+ networkId: string;
1606
+ agentId: string;
1607
+ runId: string;
1608
+ inputData: {
1609
+ task: string;
1610
+ isComplete: boolean;
1611
+ result: string;
1612
+ primitiveId: string;
1613
+ primitiveType: string;
1614
+ iteration: number;
1615
+ isOneOff: boolean;
1616
+ threadId: string;
1617
+ threadResourceId: string;
1618
+ verboseIntrospection?: undefined;
1619
+ };
1620
+ task?: undefined;
1621
+ result?: undefined;
1622
+ primitiveId?: undefined;
1623
+ primitiveType?: undefined;
1624
+ prompt?: undefined;
1625
+ isComplete?: undefined;
1626
+ selectionReason?: undefined;
1627
+ iteration?: undefined;
1628
+ usage?: undefined;
1629
+ args?: undefined;
1630
+ type?: undefined;
1631
+ from?: undefined;
1632
+ payload?: undefined;
1633
+ data?: undefined;
1634
+ workflowId?: undefined;
1635
+ id?: undefined;
1636
+ name?: undefined;
1637
+ toolCallId?: undefined;
1638
+ toolName?: undefined;
1639
+ text?: undefined;
1640
+ isOneOff?: undefined;
1641
+ threadId?: undefined;
1642
+ threadResourceId?: undefined;
1643
+ };
1644
+ runId: string;
1645
+ from: string;
1646
+ } | {
1647
+ type: string;
1648
+ payload: {
1649
+ runId: string;
1650
+ networkId?: undefined;
1651
+ agentId?: undefined;
1652
+ inputData?: undefined;
1653
+ task?: undefined;
1654
+ result?: undefined;
1655
+ primitiveId?: undefined;
1656
+ primitiveType?: undefined;
1657
+ prompt?: undefined;
1658
+ isComplete?: undefined;
1659
+ selectionReason?: undefined;
1660
+ iteration?: undefined;
1661
+ usage?: undefined;
1662
+ args?: undefined;
1663
+ type?: undefined;
1664
+ from?: undefined;
1665
+ payload?: undefined;
1666
+ data?: undefined;
1667
+ workflowId?: undefined;
1668
+ id?: undefined;
1669
+ name?: undefined;
1670
+ toolCallId?: undefined;
1671
+ toolName?: undefined;
1672
+ text?: undefined;
1673
+ isOneOff?: undefined;
1674
+ threadId?: undefined;
1675
+ threadResourceId?: undefined;
1676
+ };
1677
+ from: string;
1678
+ runId: string;
1679
+ } | {
1680
+ type: string;
1681
+ payload: {
1682
+ workflowId: string;
1683
+ args: {
1684
+ task: string;
1685
+ result: string;
1686
+ primitiveId: string;
1687
+ primitiveType: string;
1688
+ prompt: string;
1689
+ isComplete: boolean;
1690
+ selectionReason: string;
1691
+ iteration: number;
1692
+ runId: string;
1693
+ args?: undefined;
1694
+ toolName?: undefined;
1695
+ toolCallId?: undefined;
1696
+ };
1697
+ runId: string;
1698
+ networkId?: undefined;
1699
+ agentId?: undefined;
1700
+ inputData?: undefined;
1701
+ task?: undefined;
1702
+ result?: undefined;
1703
+ primitiveId?: undefined;
1704
+ primitiveType?: undefined;
1705
+ prompt?: undefined;
1706
+ isComplete?: undefined;
1707
+ selectionReason?: undefined;
1708
+ iteration?: undefined;
1709
+ usage?: undefined;
1710
+ type?: undefined;
1711
+ from?: undefined;
1712
+ payload?: undefined;
1713
+ data?: undefined;
1714
+ id?: undefined;
1715
+ name?: undefined;
1716
+ toolCallId?: undefined;
1717
+ toolName?: undefined;
1718
+ text?: undefined;
1719
+ isOneOff?: undefined;
1720
+ threadId?: undefined;
1721
+ threadResourceId?: undefined;
1722
+ };
1723
+ from: string;
1724
+ runId: string;
1725
+ } | {
1726
+ type: string;
1727
+ payload: {
1728
+ type: string;
1729
+ runId: string;
1730
+ from: string;
1731
+ payload: {
1732
+ workflowId: string;
1733
+ id?: undefined;
1734
+ toolCallId?: undefined;
1735
+ toolName?: undefined;
1736
+ argsTextDelta?: undefined;
1737
+ args?: undefined;
1738
+ providerMetadata?: undefined;
1739
+ result?: undefined;
1740
+ messageId?: undefined;
1741
+ stepResult?: undefined;
1742
+ metadata?: undefined;
1743
+ output?: undefined;
1744
+ messages?: undefined;
1745
+ request?: undefined;
1746
+ warnings?: undefined;
1747
+ text?: undefined;
1748
+ type?: undefined;
1749
+ stepName?: undefined;
1750
+ stepCallId?: undefined;
1751
+ payload?: undefined;
1752
+ startedAt?: undefined;
1753
+ status?: undefined;
1754
+ endedAt?: undefined;
1755
+ workflowStatus?: undefined;
1756
+ };
1757
+ networkId?: undefined;
1758
+ agentId?: undefined;
1759
+ inputData?: undefined;
1760
+ task?: undefined;
1761
+ result?: undefined;
1762
+ primitiveId?: undefined;
1763
+ primitiveType?: undefined;
1764
+ prompt?: undefined;
1765
+ isComplete?: undefined;
1766
+ selectionReason?: undefined;
1767
+ iteration?: undefined;
1768
+ usage?: undefined;
1769
+ args?: undefined;
1770
+ data?: undefined;
1771
+ workflowId?: undefined;
1772
+ id?: undefined;
1773
+ name?: undefined;
1774
+ toolCallId?: undefined;
1775
+ toolName?: undefined;
1776
+ text?: undefined;
1777
+ isOneOff?: undefined;
1778
+ threadId?: undefined;
1779
+ threadResourceId?: undefined;
1780
+ };
1781
+ from: string;
1782
+ runId: string;
1783
+ } | {
1784
+ type: string;
1785
+ payload: {
1786
+ type: string;
1787
+ runId: string;
1788
+ from: string;
1789
+ payload: {
1790
+ stepName: string;
1791
+ id: string;
1792
+ stepCallId: string;
1793
+ payload: {
1794
+ name: string;
1795
+ quantity: number;
1796
+ };
1797
+ startedAt: number;
1798
+ status: string;
1799
+ toolCallId?: undefined;
1800
+ toolName?: undefined;
1801
+ argsTextDelta?: undefined;
1802
+ args?: undefined;
1803
+ providerMetadata?: undefined;
1804
+ result?: undefined;
1805
+ messageId?: undefined;
1806
+ stepResult?: undefined;
1807
+ metadata?: undefined;
1808
+ output?: undefined;
1809
+ messages?: undefined;
1810
+ request?: undefined;
1811
+ warnings?: undefined;
1812
+ text?: undefined;
1813
+ type?: undefined;
1814
+ workflowId?: undefined;
1815
+ endedAt?: undefined;
1816
+ workflowStatus?: undefined;
1817
+ };
1818
+ networkId?: undefined;
1819
+ agentId?: undefined;
1820
+ inputData?: undefined;
1821
+ task?: undefined;
1822
+ result?: undefined;
1823
+ primitiveId?: undefined;
1824
+ primitiveType?: undefined;
1825
+ prompt?: undefined;
1826
+ isComplete?: undefined;
1827
+ selectionReason?: undefined;
1828
+ iteration?: undefined;
1829
+ usage?: undefined;
1830
+ args?: undefined;
1831
+ data?: undefined;
1832
+ workflowId?: undefined;
1833
+ id?: undefined;
1834
+ name?: undefined;
1835
+ toolCallId?: undefined;
1836
+ toolName?: undefined;
1837
+ text?: undefined;
1838
+ isOneOff?: undefined;
1839
+ threadId?: undefined;
1840
+ threadResourceId?: undefined;
1841
+ };
1842
+ from: string;
1843
+ runId: string;
1844
+ } | {
1845
+ type: string;
1846
+ payload: {
1847
+ type: string;
1848
+ id: string;
1849
+ data: {
1850
+ name: string;
1851
+ description?: undefined;
1852
+ };
1853
+ runId: string;
1854
+ networkId?: undefined;
1855
+ agentId?: undefined;
1856
+ inputData?: undefined;
1857
+ task?: undefined;
1858
+ result?: undefined;
1859
+ primitiveId?: undefined;
1860
+ primitiveType?: undefined;
1861
+ prompt?: undefined;
1862
+ isComplete?: undefined;
1863
+ selectionReason?: undefined;
1864
+ iteration?: undefined;
1865
+ usage?: undefined;
1866
+ args?: undefined;
1867
+ from?: undefined;
1868
+ payload?: undefined;
1869
+ workflowId?: undefined;
1870
+ name?: undefined;
1871
+ toolCallId?: undefined;
1872
+ toolName?: undefined;
1873
+ text?: undefined;
1874
+ isOneOff?: undefined;
1875
+ threadId?: undefined;
1876
+ threadResourceId?: undefined;
1877
+ };
1878
+ from: string;
1879
+ runId: string;
1880
+ } | {
1881
+ type: string;
1882
+ payload: {
1883
+ type: string;
1884
+ runId: string;
1885
+ from: string;
1886
+ payload: {
1887
+ stepName: string;
1888
+ id: string;
1889
+ stepCallId: string;
1890
+ status: string;
1891
+ output: {
1892
+ success: boolean;
1893
+ text?: undefined;
1894
+ toolCalls?: undefined;
1895
+ usage?: undefined;
1896
+ steps?: undefined;
1897
+ };
1898
+ endedAt: number;
1899
+ toolCallId?: undefined;
1900
+ toolName?: undefined;
1901
+ argsTextDelta?: undefined;
1902
+ args?: undefined;
1903
+ providerMetadata?: undefined;
1904
+ result?: undefined;
1905
+ messageId?: undefined;
1906
+ stepResult?: undefined;
1907
+ metadata?: undefined;
1908
+ messages?: undefined;
1909
+ request?: undefined;
1910
+ warnings?: undefined;
1911
+ text?: undefined;
1912
+ type?: undefined;
1913
+ workflowId?: undefined;
1914
+ payload?: undefined;
1915
+ startedAt?: undefined;
1916
+ workflowStatus?: undefined;
1917
+ };
1918
+ networkId?: undefined;
1919
+ agentId?: undefined;
1920
+ inputData?: undefined;
1921
+ task?: undefined;
1922
+ result?: undefined;
1923
+ primitiveId?: undefined;
1924
+ primitiveType?: undefined;
1925
+ prompt?: undefined;
1926
+ isComplete?: undefined;
1927
+ selectionReason?: undefined;
1928
+ iteration?: undefined;
1929
+ usage?: undefined;
1930
+ args?: undefined;
1931
+ data?: undefined;
1932
+ workflowId?: undefined;
1933
+ id?: undefined;
1934
+ name?: undefined;
1935
+ toolCallId?: undefined;
1936
+ toolName?: undefined;
1937
+ text?: undefined;
1938
+ isOneOff?: undefined;
1939
+ threadId?: undefined;
1940
+ threadResourceId?: undefined;
1941
+ };
1942
+ from: string;
1943
+ runId: string;
1944
+ } | {
1945
+ type: string;
1946
+ payload: {
1947
+ type: string;
1948
+ runId: string;
1949
+ from: string;
1950
+ payload: {
1951
+ workflowStatus: string;
1952
+ metadata: {
1953
+ providerMetadata?: undefined;
1954
+ id?: undefined;
1955
+ timestamp?: undefined;
1956
+ modelId?: undefined;
1957
+ headers?: undefined;
1958
+ modelMetadata?: undefined;
1959
+ request?: undefined;
1960
+ };
1961
+ output: {
1962
+ usage: {
1963
+ inputTokens: number;
1964
+ outputTokens: number;
1965
+ totalTokens: number;
1966
+ cachedInputTokens: number;
1967
+ reasoningTokens: number;
1968
+ };
1969
+ text?: undefined;
1970
+ toolCalls?: undefined;
1971
+ steps?: undefined;
1972
+ success?: undefined;
1973
+ };
1974
+ id?: undefined;
1975
+ toolCallId?: undefined;
1976
+ toolName?: undefined;
1977
+ argsTextDelta?: undefined;
1978
+ args?: undefined;
1979
+ providerMetadata?: undefined;
1980
+ result?: undefined;
1981
+ messageId?: undefined;
1982
+ stepResult?: undefined;
1983
+ messages?: undefined;
1984
+ request?: undefined;
1985
+ warnings?: undefined;
1986
+ text?: undefined;
1987
+ type?: undefined;
1988
+ workflowId?: undefined;
1989
+ stepName?: undefined;
1990
+ stepCallId?: undefined;
1991
+ payload?: undefined;
1992
+ startedAt?: undefined;
1993
+ status?: undefined;
1994
+ endedAt?: undefined;
1995
+ };
1996
+ networkId?: undefined;
1997
+ agentId?: undefined;
1998
+ inputData?: undefined;
1999
+ task?: undefined;
2000
+ result?: undefined;
2001
+ primitiveId?: undefined;
2002
+ primitiveType?: undefined;
2003
+ prompt?: undefined;
2004
+ isComplete?: undefined;
2005
+ selectionReason?: undefined;
2006
+ iteration?: undefined;
2007
+ usage?: undefined;
2008
+ args?: undefined;
2009
+ data?: undefined;
2010
+ workflowId?: undefined;
2011
+ id?: undefined;
2012
+ name?: undefined;
2013
+ toolCallId?: undefined;
2014
+ toolName?: undefined;
2015
+ text?: undefined;
2016
+ isOneOff?: undefined;
2017
+ threadId?: undefined;
2018
+ threadResourceId?: undefined;
2019
+ };
2020
+ from: string;
2021
+ runId: string;
2022
+ } | {
2023
+ type: string;
2024
+ payload: {
2025
+ task: string;
2026
+ primitiveId: string;
2027
+ primitiveType: string;
2028
+ result: {
2029
+ status: string;
2030
+ steps: {
2031
+ input: {
2032
+ name: string;
2033
+ quantity: number;
2034
+ };
2035
+ 'purchase-step': {
2036
+ payload: {
2037
+ name: string;
2038
+ quantity: number;
2039
+ };
2040
+ startedAt: number;
2041
+ status: string;
2042
+ output: {
2043
+ success: boolean;
2044
+ };
2045
+ endedAt: number;
2046
+ };
2047
+ };
2048
+ input: {
2049
+ name: string;
2050
+ quantity: number;
2051
+ };
2052
+ result: {
2053
+ success: boolean;
2054
+ };
2055
+ success?: undefined;
2056
+ };
2057
+ isComplete: boolean;
2058
+ iteration: number;
2059
+ name: string;
2060
+ runId: string;
2061
+ usage: {
2062
+ inputTokens: number;
2063
+ outputTokens: number;
2064
+ totalTokens: number;
2065
+ cachedInputTokens: number;
2066
+ reasoningTokens: number;
2067
+ };
2068
+ networkId?: undefined;
2069
+ agentId?: undefined;
2070
+ inputData?: undefined;
2071
+ prompt?: undefined;
2072
+ selectionReason?: undefined;
2073
+ args?: undefined;
2074
+ type?: undefined;
2075
+ from?: undefined;
2076
+ payload?: undefined;
2077
+ data?: undefined;
2078
+ workflowId?: undefined;
2079
+ id?: undefined;
2080
+ toolCallId?: undefined;
2081
+ toolName?: undefined;
2082
+ text?: undefined;
2083
+ isOneOff?: undefined;
2084
+ threadId?: undefined;
2085
+ threadResourceId?: undefined;
2086
+ };
2087
+ from: string;
2088
+ runId: string;
2089
+ } | {
2090
+ type: string;
2091
+ payload: {
2092
+ args: {
2093
+ task: string;
2094
+ result: string;
2095
+ primitiveId: string;
2096
+ primitiveType: string;
2097
+ prompt: string;
2098
+ isComplete: boolean;
2099
+ selectionReason: string;
2100
+ iteration: number;
2101
+ runId: string;
2102
+ args: {
2103
+ name: string;
2104
+ quantity: number;
2105
+ };
2106
+ toolName: string;
2107
+ toolCallId: string;
2108
+ };
2109
+ runId: string;
2110
+ networkId?: undefined;
2111
+ agentId?: undefined;
2112
+ inputData?: undefined;
2113
+ task?: undefined;
2114
+ result?: undefined;
2115
+ primitiveId?: undefined;
2116
+ primitiveType?: undefined;
2117
+ prompt?: undefined;
2118
+ isComplete?: undefined;
2119
+ selectionReason?: undefined;
2120
+ iteration?: undefined;
2121
+ usage?: undefined;
2122
+ type?: undefined;
2123
+ from?: undefined;
2124
+ payload?: undefined;
2125
+ data?: undefined;
2126
+ workflowId?: undefined;
2127
+ id?: undefined;
2128
+ name?: undefined;
2129
+ toolCallId?: undefined;
2130
+ toolName?: undefined;
2131
+ text?: undefined;
2132
+ isOneOff?: undefined;
2133
+ threadId?: undefined;
2134
+ threadResourceId?: undefined;
2135
+ };
2136
+ from: string;
2137
+ runId: string;
2138
+ } | {
2139
+ type: string;
2140
+ payload: {
2141
+ task: string;
2142
+ primitiveId: string;
2143
+ primitiveType: string;
2144
+ result: {
2145
+ success: boolean;
2146
+ status?: undefined;
2147
+ steps?: undefined;
2148
+ input?: undefined;
2149
+ result?: undefined;
2150
+ };
2151
+ isComplete: boolean;
2152
+ iteration: number;
2153
+ toolCallId: string;
2154
+ toolName: string;
2155
+ networkId?: undefined;
2156
+ agentId?: undefined;
2157
+ runId?: undefined;
2158
+ inputData?: undefined;
2159
+ prompt?: undefined;
2160
+ selectionReason?: undefined;
2161
+ usage?: undefined;
2162
+ args?: undefined;
2163
+ type?: undefined;
2164
+ from?: undefined;
2165
+ payload?: undefined;
2166
+ data?: undefined;
2167
+ workflowId?: undefined;
2168
+ id?: undefined;
2169
+ name?: undefined;
2170
+ text?: undefined;
2171
+ isOneOff?: undefined;
2172
+ threadId?: undefined;
2173
+ threadResourceId?: undefined;
2174
+ };
2175
+ from: string;
2176
+ runId: string;
2177
+ } | {
2178
+ type: string;
2179
+ payload: {
2180
+ networkId: string;
2181
+ agentId: string;
2182
+ runId: string;
2183
+ inputData: {
2184
+ task: string;
2185
+ isComplete: boolean;
2186
+ result: {
2187
+ success: boolean;
2188
+ };
2189
+ primitiveId: string;
2190
+ primitiveType: string;
2191
+ iteration: number;
2192
+ isOneOff: boolean;
2193
+ threadId: string;
2194
+ threadResourceId: string;
2195
+ verboseIntrospection?: undefined;
2196
+ };
2197
+ task?: undefined;
2198
+ result?: undefined;
2199
+ primitiveId?: undefined;
2200
+ primitiveType?: undefined;
2201
+ prompt?: undefined;
2202
+ isComplete?: undefined;
2203
+ selectionReason?: undefined;
2204
+ iteration?: undefined;
2205
+ usage?: undefined;
2206
+ args?: undefined;
2207
+ type?: undefined;
2208
+ from?: undefined;
2209
+ payload?: undefined;
2210
+ data?: undefined;
2211
+ workflowId?: undefined;
2212
+ id?: undefined;
2213
+ name?: undefined;
2214
+ toolCallId?: undefined;
2215
+ toolName?: undefined;
2216
+ text?: undefined;
2217
+ isOneOff?: undefined;
2218
+ threadId?: undefined;
2219
+ threadResourceId?: undefined;
2220
+ };
2221
+ runId: string;
2222
+ from: string;
2223
+ } | {
2224
+ type: string;
2225
+ payload: {
2226
+ runId: string;
2227
+ text: string;
2228
+ networkId?: undefined;
2229
+ agentId?: undefined;
2230
+ inputData?: undefined;
2231
+ task?: undefined;
2232
+ result?: undefined;
2233
+ primitiveId?: undefined;
2234
+ primitiveType?: undefined;
2235
+ prompt?: undefined;
2236
+ isComplete?: undefined;
2237
+ selectionReason?: undefined;
2238
+ iteration?: undefined;
2239
+ usage?: undefined;
2240
+ args?: undefined;
2241
+ type?: undefined;
2242
+ from?: undefined;
2243
+ payload?: undefined;
2244
+ data?: undefined;
2245
+ workflowId?: undefined;
2246
+ id?: undefined;
2247
+ name?: undefined;
2248
+ toolCallId?: undefined;
2249
+ toolName?: undefined;
2250
+ isOneOff?: undefined;
2251
+ threadId?: undefined;
2252
+ threadResourceId?: undefined;
2253
+ };
2254
+ from: string;
2255
+ runId: string;
2256
+ } | {
2257
+ type: string;
2258
+ payload: {
2259
+ task: string;
2260
+ result: string;
2261
+ isComplete: boolean;
2262
+ iteration: number;
2263
+ runId: string;
2264
+ networkId?: undefined;
2265
+ agentId?: undefined;
2266
+ inputData?: undefined;
2267
+ primitiveId?: undefined;
2268
+ primitiveType?: undefined;
2269
+ prompt?: undefined;
2270
+ selectionReason?: undefined;
2271
+ usage?: undefined;
2272
+ args?: undefined;
2273
+ type?: undefined;
2274
+ from?: undefined;
2275
+ payload?: undefined;
2276
+ data?: undefined;
2277
+ workflowId?: undefined;
2278
+ id?: undefined;
2279
+ name?: undefined;
2280
+ toolCallId?: undefined;
2281
+ toolName?: undefined;
2282
+ text?: undefined;
2283
+ isOneOff?: undefined;
2284
+ threadId?: undefined;
2285
+ threadResourceId?: undefined;
2286
+ };
2287
+ from: string;
2288
+ runId: string;
2289
+ } | {
2290
+ type: string;
2291
+ payload: {
2292
+ task: string;
2293
+ isComplete: boolean;
2294
+ result: string;
2295
+ primitiveId: string;
2296
+ primitiveType: string;
2297
+ iteration: number;
2298
+ isOneOff: boolean;
2299
+ threadId: string;
2300
+ threadResourceId: string;
2301
+ usage: {
2302
+ inputTokens: number;
2303
+ outputTokens: number;
2304
+ totalTokens: number;
2305
+ cachedInputTokens: number;
2306
+ reasoningTokens: number;
2307
+ };
2308
+ networkId?: undefined;
2309
+ agentId?: undefined;
2310
+ runId?: undefined;
2311
+ inputData?: undefined;
2312
+ prompt?: undefined;
2313
+ selectionReason?: undefined;
2314
+ args?: undefined;
2315
+ type?: undefined;
2316
+ from?: undefined;
2317
+ payload?: undefined;
2318
+ data?: undefined;
2319
+ workflowId?: undefined;
2320
+ id?: undefined;
2321
+ name?: undefined;
2322
+ toolCallId?: undefined;
2323
+ toolName?: undefined;
2324
+ text?: undefined;
2325
+ };
2326
+ from: string;
2327
+ runId: string;
2328
+ })[];
2329
+ //# sourceMappingURL=network.stream.d.ts.map