@ag-ui/core 0.0.57 → 0.0.59-canary.1784325892.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -48,16 +48,19 @@ declare const BaseMessageSchema: z.ZodObject<{
48
48
  content: z.ZodOptional<z.ZodString>;
49
49
  name: z.ZodOptional<z.ZodString>;
50
50
  encryptedValue: z.ZodOptional<z.ZodString>;
51
+ subagentId: z.ZodOptional<z.ZodString>;
51
52
  }, "strip", z.ZodTypeAny, {
52
53
  role: string;
53
54
  id: string;
54
55
  name?: string | undefined;
56
+ subagentId?: string | undefined;
55
57
  content?: string | undefined;
56
58
  encryptedValue?: string | undefined;
57
59
  }, {
58
60
  role: string;
59
61
  id: string;
60
62
  name?: string | undefined;
63
+ subagentId?: string | undefined;
61
64
  content?: string | undefined;
62
65
  encryptedValue?: string | undefined;
63
66
  }>;
@@ -941,6 +944,7 @@ declare const DeveloperMessageSchema: z.ZodObject<{
941
944
  id: z.ZodString;
942
945
  name: z.ZodOptional<z.ZodString>;
943
946
  encryptedValue: z.ZodOptional<z.ZodString>;
947
+ subagentId: z.ZodOptional<z.ZodString>;
944
948
  } & {
945
949
  role: z.ZodLiteral<"developer">;
946
950
  content: z.ZodString;
@@ -949,18 +953,21 @@ declare const DeveloperMessageSchema: z.ZodObject<{
949
953
  content: string;
950
954
  id: string;
951
955
  name?: string | undefined;
956
+ subagentId?: string | undefined;
952
957
  encryptedValue?: string | undefined;
953
958
  }, {
954
959
  role: "developer";
955
960
  content: string;
956
961
  id: string;
957
962
  name?: string | undefined;
963
+ subagentId?: string | undefined;
958
964
  encryptedValue?: string | undefined;
959
965
  }>;
960
966
  declare const SystemMessageSchema: z.ZodObject<{
961
967
  id: z.ZodString;
962
968
  name: z.ZodOptional<z.ZodString>;
963
969
  encryptedValue: z.ZodOptional<z.ZodString>;
970
+ subagentId: z.ZodOptional<z.ZodString>;
964
971
  } & {
965
972
  role: z.ZodLiteral<"system">;
966
973
  content: z.ZodString;
@@ -969,18 +976,21 @@ declare const SystemMessageSchema: z.ZodObject<{
969
976
  content: string;
970
977
  id: string;
971
978
  name?: string | undefined;
979
+ subagentId?: string | undefined;
972
980
  encryptedValue?: string | undefined;
973
981
  }, {
974
982
  role: "system";
975
983
  content: string;
976
984
  id: string;
977
985
  name?: string | undefined;
986
+ subagentId?: string | undefined;
978
987
  encryptedValue?: string | undefined;
979
988
  }>;
980
989
  declare const AssistantMessageSchema: z.ZodObject<{
981
990
  id: z.ZodString;
982
991
  name: z.ZodOptional<z.ZodString>;
983
992
  encryptedValue: z.ZodOptional<z.ZodString>;
993
+ subagentId: z.ZodOptional<z.ZodString>;
984
994
  } & {
985
995
  role: z.ZodLiteral<"assistant">;
986
996
  content: z.ZodOptional<z.ZodString>;
@@ -1019,6 +1029,7 @@ declare const AssistantMessageSchema: z.ZodObject<{
1019
1029
  role: "assistant";
1020
1030
  id: string;
1021
1031
  name?: string | undefined;
1032
+ subagentId?: string | undefined;
1022
1033
  content?: string | undefined;
1023
1034
  encryptedValue?: string | undefined;
1024
1035
  toolCalls?: {
@@ -1034,6 +1045,7 @@ declare const AssistantMessageSchema: z.ZodObject<{
1034
1045
  role: "assistant";
1035
1046
  id: string;
1036
1047
  name?: string | undefined;
1048
+ subagentId?: string | undefined;
1037
1049
  content?: string | undefined;
1038
1050
  encryptedValue?: string | undefined;
1039
1051
  toolCalls?: {
@@ -1050,6 +1062,7 @@ declare const UserMessageSchema: z.ZodObject<{
1050
1062
  id: z.ZodString;
1051
1063
  name: z.ZodOptional<z.ZodString>;
1052
1064
  encryptedValue: z.ZodOptional<z.ZodString>;
1065
+ subagentId: z.ZodOptional<z.ZodString>;
1053
1066
  } & {
1054
1067
  role: z.ZodLiteral<"user">;
1055
1068
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -1470,6 +1483,7 @@ declare const UserMessageSchema: z.ZodObject<{
1470
1483
  })[];
1471
1484
  id: string;
1472
1485
  name?: string | undefined;
1486
+ subagentId?: string | undefined;
1473
1487
  encryptedValue?: string | undefined;
1474
1488
  }, {
1475
1489
  role: "user";
@@ -1534,6 +1548,7 @@ declare const UserMessageSchema: z.ZodObject<{
1534
1548
  })[];
1535
1549
  id: string;
1536
1550
  name?: string | undefined;
1551
+ subagentId?: string | undefined;
1537
1552
  encryptedValue?: string | undefined;
1538
1553
  }>;
1539
1554
  declare const ToolMessageSchema: z.ZodObject<{
@@ -1543,11 +1558,13 @@ declare const ToolMessageSchema: z.ZodObject<{
1543
1558
  toolCallId: z.ZodString;
1544
1559
  error: z.ZodOptional<z.ZodString>;
1545
1560
  encryptedValue: z.ZodOptional<z.ZodString>;
1561
+ subagentId: z.ZodOptional<z.ZodString>;
1546
1562
  }, "strip", z.ZodTypeAny, {
1547
1563
  role: "tool";
1548
1564
  toolCallId: string;
1549
1565
  content: string;
1550
1566
  id: string;
1567
+ subagentId?: string | undefined;
1551
1568
  encryptedValue?: string | undefined;
1552
1569
  error?: string | undefined;
1553
1570
  }, {
@@ -1555,6 +1572,7 @@ declare const ToolMessageSchema: z.ZodObject<{
1555
1572
  toolCallId: string;
1556
1573
  content: string;
1557
1574
  id: string;
1575
+ subagentId?: string | undefined;
1558
1576
  encryptedValue?: string | undefined;
1559
1577
  error?: string | undefined;
1560
1578
  }>;
@@ -1563,37 +1581,44 @@ declare const ActivityMessageSchema: z.ZodObject<{
1563
1581
  role: z.ZodLiteral<"activity">;
1564
1582
  activityType: z.ZodString;
1565
1583
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
1584
+ subagentId: z.ZodOptional<z.ZodString>;
1566
1585
  }, "strip", z.ZodTypeAny, {
1567
1586
  role: "activity";
1568
1587
  content: Record<string, any>;
1569
1588
  id: string;
1570
1589
  activityType: string;
1590
+ subagentId?: string | undefined;
1571
1591
  }, {
1572
1592
  role: "activity";
1573
1593
  content: Record<string, any>;
1574
1594
  id: string;
1575
1595
  activityType: string;
1596
+ subagentId?: string | undefined;
1576
1597
  }>;
1577
1598
  declare const ReasoningMessageSchema: z.ZodObject<{
1578
1599
  id: z.ZodString;
1579
1600
  role: z.ZodLiteral<"reasoning">;
1580
1601
  content: z.ZodString;
1581
1602
  encryptedValue: z.ZodOptional<z.ZodString>;
1603
+ subagentId: z.ZodOptional<z.ZodString>;
1582
1604
  }, "strip", z.ZodTypeAny, {
1583
1605
  role: "reasoning";
1584
1606
  content: string;
1585
1607
  id: string;
1608
+ subagentId?: string | undefined;
1586
1609
  encryptedValue?: string | undefined;
1587
1610
  }, {
1588
1611
  role: "reasoning";
1589
1612
  content: string;
1590
1613
  id: string;
1614
+ subagentId?: string | undefined;
1591
1615
  encryptedValue?: string | undefined;
1592
1616
  }>;
1593
1617
  declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1594
1618
  id: z.ZodString;
1595
1619
  name: z.ZodOptional<z.ZodString>;
1596
1620
  encryptedValue: z.ZodOptional<z.ZodString>;
1621
+ subagentId: z.ZodOptional<z.ZodString>;
1597
1622
  } & {
1598
1623
  role: z.ZodLiteral<"developer">;
1599
1624
  content: z.ZodString;
@@ -1602,17 +1627,20 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1602
1627
  content: string;
1603
1628
  id: string;
1604
1629
  name?: string | undefined;
1630
+ subagentId?: string | undefined;
1605
1631
  encryptedValue?: string | undefined;
1606
1632
  }, {
1607
1633
  role: "developer";
1608
1634
  content: string;
1609
1635
  id: string;
1610
1636
  name?: string | undefined;
1637
+ subagentId?: string | undefined;
1611
1638
  encryptedValue?: string | undefined;
1612
1639
  }>, z.ZodObject<{
1613
1640
  id: z.ZodString;
1614
1641
  name: z.ZodOptional<z.ZodString>;
1615
1642
  encryptedValue: z.ZodOptional<z.ZodString>;
1643
+ subagentId: z.ZodOptional<z.ZodString>;
1616
1644
  } & {
1617
1645
  role: z.ZodLiteral<"system">;
1618
1646
  content: z.ZodString;
@@ -1621,17 +1649,20 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1621
1649
  content: string;
1622
1650
  id: string;
1623
1651
  name?: string | undefined;
1652
+ subagentId?: string | undefined;
1624
1653
  encryptedValue?: string | undefined;
1625
1654
  }, {
1626
1655
  role: "system";
1627
1656
  content: string;
1628
1657
  id: string;
1629
1658
  name?: string | undefined;
1659
+ subagentId?: string | undefined;
1630
1660
  encryptedValue?: string | undefined;
1631
1661
  }>, z.ZodObject<{
1632
1662
  id: z.ZodString;
1633
1663
  name: z.ZodOptional<z.ZodString>;
1634
1664
  encryptedValue: z.ZodOptional<z.ZodString>;
1665
+ subagentId: z.ZodOptional<z.ZodString>;
1635
1666
  } & {
1636
1667
  role: z.ZodLiteral<"assistant">;
1637
1668
  content: z.ZodOptional<z.ZodString>;
@@ -1670,6 +1701,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1670
1701
  role: "assistant";
1671
1702
  id: string;
1672
1703
  name?: string | undefined;
1704
+ subagentId?: string | undefined;
1673
1705
  content?: string | undefined;
1674
1706
  encryptedValue?: string | undefined;
1675
1707
  toolCalls?: {
@@ -1685,6 +1717,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1685
1717
  role: "assistant";
1686
1718
  id: string;
1687
1719
  name?: string | undefined;
1720
+ subagentId?: string | undefined;
1688
1721
  content?: string | undefined;
1689
1722
  encryptedValue?: string | undefined;
1690
1723
  toolCalls?: {
@@ -1700,6 +1733,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
1700
1733
  id: z.ZodString;
1701
1734
  name: z.ZodOptional<z.ZodString>;
1702
1735
  encryptedValue: z.ZodOptional<z.ZodString>;
1736
+ subagentId: z.ZodOptional<z.ZodString>;
1703
1737
  } & {
1704
1738
  role: z.ZodLiteral<"user">;
1705
1739
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2120,6 +2154,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
2120
2154
  })[];
2121
2155
  id: string;
2122
2156
  name?: string | undefined;
2157
+ subagentId?: string | undefined;
2123
2158
  encryptedValue?: string | undefined;
2124
2159
  }, {
2125
2160
  role: "user";
@@ -2184,6 +2219,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
2184
2219
  })[];
2185
2220
  id: string;
2186
2221
  name?: string | undefined;
2222
+ subagentId?: string | undefined;
2187
2223
  encryptedValue?: string | undefined;
2188
2224
  }>, z.ZodObject<{
2189
2225
  id: z.ZodString;
@@ -2192,11 +2228,13 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
2192
2228
  toolCallId: z.ZodString;
2193
2229
  error: z.ZodOptional<z.ZodString>;
2194
2230
  encryptedValue: z.ZodOptional<z.ZodString>;
2231
+ subagentId: z.ZodOptional<z.ZodString>;
2195
2232
  }, "strip", z.ZodTypeAny, {
2196
2233
  role: "tool";
2197
2234
  toolCallId: string;
2198
2235
  content: string;
2199
2236
  id: string;
2237
+ subagentId?: string | undefined;
2200
2238
  encryptedValue?: string | undefined;
2201
2239
  error?: string | undefined;
2202
2240
  }, {
@@ -2204,6 +2242,7 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
2204
2242
  toolCallId: string;
2205
2243
  content: string;
2206
2244
  id: string;
2245
+ subagentId?: string | undefined;
2207
2246
  encryptedValue?: string | undefined;
2208
2247
  error?: string | undefined;
2209
2248
  }>, z.ZodObject<{
@@ -2211,30 +2250,36 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
2211
2250
  role: z.ZodLiteral<"activity">;
2212
2251
  activityType: z.ZodString;
2213
2252
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
2253
+ subagentId: z.ZodOptional<z.ZodString>;
2214
2254
  }, "strip", z.ZodTypeAny, {
2215
2255
  role: "activity";
2216
2256
  content: Record<string, any>;
2217
2257
  id: string;
2218
2258
  activityType: string;
2259
+ subagentId?: string | undefined;
2219
2260
  }, {
2220
2261
  role: "activity";
2221
2262
  content: Record<string, any>;
2222
2263
  id: string;
2223
2264
  activityType: string;
2265
+ subagentId?: string | undefined;
2224
2266
  }>, z.ZodObject<{
2225
2267
  id: z.ZodString;
2226
2268
  role: z.ZodLiteral<"reasoning">;
2227
2269
  content: z.ZodString;
2228
2270
  encryptedValue: z.ZodOptional<z.ZodString>;
2271
+ subagentId: z.ZodOptional<z.ZodString>;
2229
2272
  }, "strip", z.ZodTypeAny, {
2230
2273
  role: "reasoning";
2231
2274
  content: string;
2232
2275
  id: string;
2276
+ subagentId?: string | undefined;
2233
2277
  encryptedValue?: string | undefined;
2234
2278
  }, {
2235
2279
  role: "reasoning";
2236
2280
  content: string;
2237
2281
  id: string;
2282
+ subagentId?: string | undefined;
2238
2283
  encryptedValue?: string | undefined;
2239
2284
  }>]>;
2240
2285
  declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">, z.ZodLiteral<"activity">, z.ZodLiteral<"reasoning">]>;
@@ -2311,6 +2356,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2311
2356
  id: z.ZodString;
2312
2357
  name: z.ZodOptional<z.ZodString>;
2313
2358
  encryptedValue: z.ZodOptional<z.ZodString>;
2359
+ subagentId: z.ZodOptional<z.ZodString>;
2314
2360
  } & {
2315
2361
  role: z.ZodLiteral<"developer">;
2316
2362
  content: z.ZodString;
@@ -2319,17 +2365,20 @@ declare const RunAgentInputSchema: z.ZodObject<{
2319
2365
  content: string;
2320
2366
  id: string;
2321
2367
  name?: string | undefined;
2368
+ subagentId?: string | undefined;
2322
2369
  encryptedValue?: string | undefined;
2323
2370
  }, {
2324
2371
  role: "developer";
2325
2372
  content: string;
2326
2373
  id: string;
2327
2374
  name?: string | undefined;
2375
+ subagentId?: string | undefined;
2328
2376
  encryptedValue?: string | undefined;
2329
2377
  }>, z.ZodObject<{
2330
2378
  id: z.ZodString;
2331
2379
  name: z.ZodOptional<z.ZodString>;
2332
2380
  encryptedValue: z.ZodOptional<z.ZodString>;
2381
+ subagentId: z.ZodOptional<z.ZodString>;
2333
2382
  } & {
2334
2383
  role: z.ZodLiteral<"system">;
2335
2384
  content: z.ZodString;
@@ -2338,17 +2387,20 @@ declare const RunAgentInputSchema: z.ZodObject<{
2338
2387
  content: string;
2339
2388
  id: string;
2340
2389
  name?: string | undefined;
2390
+ subagentId?: string | undefined;
2341
2391
  encryptedValue?: string | undefined;
2342
2392
  }, {
2343
2393
  role: "system";
2344
2394
  content: string;
2345
2395
  id: string;
2346
2396
  name?: string | undefined;
2397
+ subagentId?: string | undefined;
2347
2398
  encryptedValue?: string | undefined;
2348
2399
  }>, z.ZodObject<{
2349
2400
  id: z.ZodString;
2350
2401
  name: z.ZodOptional<z.ZodString>;
2351
2402
  encryptedValue: z.ZodOptional<z.ZodString>;
2403
+ subagentId: z.ZodOptional<z.ZodString>;
2352
2404
  } & {
2353
2405
  role: z.ZodLiteral<"assistant">;
2354
2406
  content: z.ZodOptional<z.ZodString>;
@@ -2387,6 +2439,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2387
2439
  role: "assistant";
2388
2440
  id: string;
2389
2441
  name?: string | undefined;
2442
+ subagentId?: string | undefined;
2390
2443
  content?: string | undefined;
2391
2444
  encryptedValue?: string | undefined;
2392
2445
  toolCalls?: {
@@ -2402,6 +2455,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2402
2455
  role: "assistant";
2403
2456
  id: string;
2404
2457
  name?: string | undefined;
2458
+ subagentId?: string | undefined;
2405
2459
  content?: string | undefined;
2406
2460
  encryptedValue?: string | undefined;
2407
2461
  toolCalls?: {
@@ -2417,6 +2471,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2417
2471
  id: z.ZodString;
2418
2472
  name: z.ZodOptional<z.ZodString>;
2419
2473
  encryptedValue: z.ZodOptional<z.ZodString>;
2474
+ subagentId: z.ZodOptional<z.ZodString>;
2420
2475
  } & {
2421
2476
  role: z.ZodLiteral<"user">;
2422
2477
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2837,6 +2892,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2837
2892
  })[];
2838
2893
  id: string;
2839
2894
  name?: string | undefined;
2895
+ subagentId?: string | undefined;
2840
2896
  encryptedValue?: string | undefined;
2841
2897
  }, {
2842
2898
  role: "user";
@@ -2901,6 +2957,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2901
2957
  })[];
2902
2958
  id: string;
2903
2959
  name?: string | undefined;
2960
+ subagentId?: string | undefined;
2904
2961
  encryptedValue?: string | undefined;
2905
2962
  }>, z.ZodObject<{
2906
2963
  id: z.ZodString;
@@ -2909,11 +2966,13 @@ declare const RunAgentInputSchema: z.ZodObject<{
2909
2966
  toolCallId: z.ZodString;
2910
2967
  error: z.ZodOptional<z.ZodString>;
2911
2968
  encryptedValue: z.ZodOptional<z.ZodString>;
2969
+ subagentId: z.ZodOptional<z.ZodString>;
2912
2970
  }, "strip", z.ZodTypeAny, {
2913
2971
  role: "tool";
2914
2972
  toolCallId: string;
2915
2973
  content: string;
2916
2974
  id: string;
2975
+ subagentId?: string | undefined;
2917
2976
  encryptedValue?: string | undefined;
2918
2977
  error?: string | undefined;
2919
2978
  }, {
@@ -2921,6 +2980,7 @@ declare const RunAgentInputSchema: z.ZodObject<{
2921
2980
  toolCallId: string;
2922
2981
  content: string;
2923
2982
  id: string;
2983
+ subagentId?: string | undefined;
2924
2984
  encryptedValue?: string | undefined;
2925
2985
  error?: string | undefined;
2926
2986
  }>, z.ZodObject<{
@@ -2928,30 +2988,36 @@ declare const RunAgentInputSchema: z.ZodObject<{
2928
2988
  role: z.ZodLiteral<"activity">;
2929
2989
  activityType: z.ZodString;
2930
2990
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
2991
+ subagentId: z.ZodOptional<z.ZodString>;
2931
2992
  }, "strip", z.ZodTypeAny, {
2932
2993
  role: "activity";
2933
2994
  content: Record<string, any>;
2934
2995
  id: string;
2935
2996
  activityType: string;
2997
+ subagentId?: string | undefined;
2936
2998
  }, {
2937
2999
  role: "activity";
2938
3000
  content: Record<string, any>;
2939
3001
  id: string;
2940
3002
  activityType: string;
3003
+ subagentId?: string | undefined;
2941
3004
  }>, z.ZodObject<{
2942
3005
  id: z.ZodString;
2943
3006
  role: z.ZodLiteral<"reasoning">;
2944
3007
  content: z.ZodString;
2945
3008
  encryptedValue: z.ZodOptional<z.ZodString>;
3009
+ subagentId: z.ZodOptional<z.ZodString>;
2946
3010
  }, "strip", z.ZodTypeAny, {
2947
3011
  role: "reasoning";
2948
3012
  content: string;
2949
3013
  id: string;
3014
+ subagentId?: string | undefined;
2950
3015
  encryptedValue?: string | undefined;
2951
3016
  }, {
2952
3017
  role: "reasoning";
2953
3018
  content: string;
2954
3019
  id: string;
3020
+ subagentId?: string | undefined;
2955
3021
  encryptedValue?: string | undefined;
2956
3022
  }>]>, "many">;
2957
3023
  tools: z.ZodArray<z.ZodObject<{
@@ -3000,17 +3066,20 @@ declare const RunAgentInputSchema: z.ZodObject<{
3000
3066
  content: string;
3001
3067
  id: string;
3002
3068
  name?: string | undefined;
3069
+ subagentId?: string | undefined;
3003
3070
  encryptedValue?: string | undefined;
3004
3071
  } | {
3005
3072
  role: "system";
3006
3073
  content: string;
3007
3074
  id: string;
3008
3075
  name?: string | undefined;
3076
+ subagentId?: string | undefined;
3009
3077
  encryptedValue?: string | undefined;
3010
3078
  } | {
3011
3079
  role: "assistant";
3012
3080
  id: string;
3013
3081
  name?: string | undefined;
3082
+ subagentId?: string | undefined;
3014
3083
  content?: string | undefined;
3015
3084
  encryptedValue?: string | undefined;
3016
3085
  toolCalls?: {
@@ -3085,12 +3154,14 @@ declare const RunAgentInputSchema: z.ZodObject<{
3085
3154
  })[];
3086
3155
  id: string;
3087
3156
  name?: string | undefined;
3157
+ subagentId?: string | undefined;
3088
3158
  encryptedValue?: string | undefined;
3089
3159
  } | {
3090
3160
  role: "tool";
3091
3161
  toolCallId: string;
3092
3162
  content: string;
3093
3163
  id: string;
3164
+ subagentId?: string | undefined;
3094
3165
  encryptedValue?: string | undefined;
3095
3166
  error?: string | undefined;
3096
3167
  } | {
@@ -3098,10 +3169,12 @@ declare const RunAgentInputSchema: z.ZodObject<{
3098
3169
  content: Record<string, any>;
3099
3170
  id: string;
3100
3171
  activityType: string;
3172
+ subagentId?: string | undefined;
3101
3173
  } | {
3102
3174
  role: "reasoning";
3103
3175
  content: string;
3104
3176
  id: string;
3177
+ subagentId?: string | undefined;
3105
3178
  encryptedValue?: string | undefined;
3106
3179
  })[];
3107
3180
  threadId: string;
@@ -3130,17 +3203,20 @@ declare const RunAgentInputSchema: z.ZodObject<{
3130
3203
  content: string;
3131
3204
  id: string;
3132
3205
  name?: string | undefined;
3206
+ subagentId?: string | undefined;
3133
3207
  encryptedValue?: string | undefined;
3134
3208
  } | {
3135
3209
  role: "system";
3136
3210
  content: string;
3137
3211
  id: string;
3138
3212
  name?: string | undefined;
3213
+ subagentId?: string | undefined;
3139
3214
  encryptedValue?: string | undefined;
3140
3215
  } | {
3141
3216
  role: "assistant";
3142
3217
  id: string;
3143
3218
  name?: string | undefined;
3219
+ subagentId?: string | undefined;
3144
3220
  content?: string | undefined;
3145
3221
  encryptedValue?: string | undefined;
3146
3222
  toolCalls?: {
@@ -3215,12 +3291,14 @@ declare const RunAgentInputSchema: z.ZodObject<{
3215
3291
  })[];
3216
3292
  id: string;
3217
3293
  name?: string | undefined;
3294
+ subagentId?: string | undefined;
3218
3295
  encryptedValue?: string | undefined;
3219
3296
  } | {
3220
3297
  role: "tool";
3221
3298
  toolCallId: string;
3222
3299
  content: string;
3223
3300
  id: string;
3301
+ subagentId?: string | undefined;
3224
3302
  encryptedValue?: string | undefined;
3225
3303
  error?: string | undefined;
3226
3304
  } | {
@@ -3228,10 +3306,12 @@ declare const RunAgentInputSchema: z.ZodObject<{
3228
3306
  content: Record<string, any>;
3229
3307
  id: string;
3230
3308
  activityType: string;
3309
+ subagentId?: string | undefined;
3231
3310
  } | {
3232
3311
  role: "reasoning";
3233
3312
  content: string;
3234
3313
  id: string;
3314
+ subagentId?: string | undefined;
3235
3315
  encryptedValue?: string | undefined;
3236
3316
  })[];
3237
3317
  threadId: string;
@@ -4187,7 +4267,10 @@ declare enum EventType {
4187
4267
  REASONING_MESSAGE_END = "REASONING_MESSAGE_END",
4188
4268
  REASONING_MESSAGE_CHUNK = "REASONING_MESSAGE_CHUNK",
4189
4269
  REASONING_END = "REASONING_END",
4190
- REASONING_ENCRYPTED_VALUE = "REASONING_ENCRYPTED_VALUE"
4270
+ REASONING_ENCRYPTED_VALUE = "REASONING_ENCRYPTED_VALUE",
4271
+ SUBAGENT_STARTED = "SUBAGENT_STARTED",
4272
+ SUBAGENT_FINISHED = "SUBAGENT_FINISHED",
4273
+ SUBAGENT_ERROR = "SUBAGENT_ERROR"
4191
4274
  }
4192
4275
  declare const BaseEventSchema: z.ZodObject<{
4193
4276
  type: z.ZodNativeEnum<typeof EventType>;
@@ -4210,6 +4293,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
4210
4293
  messageId: z.ZodString;
4211
4294
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4212
4295
  name: z.ZodOptional<z.ZodString>;
4296
+ subagentId: z.ZodOptional<z.ZodString>;
4213
4297
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4214
4298
  timestamp: z.ZodOptional<z.ZodNumber>;
4215
4299
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4218,6 +4302,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
4218
4302
  messageId: z.ZodString;
4219
4303
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4220
4304
  name: z.ZodOptional<z.ZodString>;
4305
+ subagentId: z.ZodOptional<z.ZodString>;
4221
4306
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4222
4307
  timestamp: z.ZodOptional<z.ZodNumber>;
4223
4308
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4226,6 +4311,7 @@ declare const TextMessageStartEventSchema: z.ZodObject<{
4226
4311
  messageId: z.ZodString;
4227
4312
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4228
4313
  name: z.ZodOptional<z.ZodString>;
4314
+ subagentId: z.ZodOptional<z.ZodString>;
4229
4315
  }, z.ZodTypeAny, "passthrough">>;
4230
4316
  declare const TextMessageContentEventSchema: z.ZodObject<{
4231
4317
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -4277,6 +4363,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
4277
4363
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4278
4364
  delta: z.ZodOptional<z.ZodString>;
4279
4365
  name: z.ZodOptional<z.ZodString>;
4366
+ subagentId: z.ZodOptional<z.ZodString>;
4280
4367
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4281
4368
  timestamp: z.ZodOptional<z.ZodNumber>;
4282
4369
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4286,6 +4373,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
4286
4373
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4287
4374
  delta: z.ZodOptional<z.ZodString>;
4288
4375
  name: z.ZodOptional<z.ZodString>;
4376
+ subagentId: z.ZodOptional<z.ZodString>;
4289
4377
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4290
4378
  timestamp: z.ZodOptional<z.ZodNumber>;
4291
4379
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4295,6 +4383,7 @@ declare const TextMessageChunkEventSchema: z.ZodObject<{
4295
4383
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
4296
4384
  delta: z.ZodOptional<z.ZodString>;
4297
4385
  name: z.ZodOptional<z.ZodString>;
4386
+ subagentId: z.ZodOptional<z.ZodString>;
4298
4387
  }, z.ZodTypeAny, "passthrough">>;
4299
4388
  /**
4300
4389
  * @deprecated Use ReasoningMessageStartEventSchema instead. Will be removed in 1.0.0.
@@ -4373,6 +4462,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
4373
4462
  toolCallId: z.ZodString;
4374
4463
  toolCallName: z.ZodString;
4375
4464
  parentMessageId: z.ZodOptional<z.ZodString>;
4465
+ subagentId: z.ZodOptional<z.ZodString>;
4376
4466
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4377
4467
  timestamp: z.ZodOptional<z.ZodNumber>;
4378
4468
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4381,6 +4471,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
4381
4471
  toolCallId: z.ZodString;
4382
4472
  toolCallName: z.ZodString;
4383
4473
  parentMessageId: z.ZodOptional<z.ZodString>;
4474
+ subagentId: z.ZodOptional<z.ZodString>;
4384
4475
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4385
4476
  timestamp: z.ZodOptional<z.ZodNumber>;
4386
4477
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4389,6 +4480,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
4389
4480
  toolCallId: z.ZodString;
4390
4481
  toolCallName: z.ZodString;
4391
4482
  parentMessageId: z.ZodOptional<z.ZodString>;
4483
+ subagentId: z.ZodOptional<z.ZodString>;
4392
4484
  }, z.ZodTypeAny, "passthrough">>;
4393
4485
  declare const ToolCallArgsEventSchema: z.ZodObject<{
4394
4486
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -4440,6 +4532,7 @@ declare const ToolCallResultEventSchema: z.ZodObject<{
4440
4532
  toolCallId: z.ZodString;
4441
4533
  content: z.ZodString;
4442
4534
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
4535
+ subagentId: z.ZodOptional<z.ZodString>;
4443
4536
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4444
4537
  timestamp: z.ZodOptional<z.ZodNumber>;
4445
4538
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4449,6 +4542,7 @@ declare const ToolCallResultEventSchema: z.ZodObject<{
4449
4542
  toolCallId: z.ZodString;
4450
4543
  content: z.ZodString;
4451
4544
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
4545
+ subagentId: z.ZodOptional<z.ZodString>;
4452
4546
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4453
4547
  timestamp: z.ZodOptional<z.ZodNumber>;
4454
4548
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4458,6 +4552,7 @@ declare const ToolCallResultEventSchema: z.ZodObject<{
4458
4552
  toolCallId: z.ZodString;
4459
4553
  content: z.ZodString;
4460
4554
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
4555
+ subagentId: z.ZodOptional<z.ZodString>;
4461
4556
  }, z.ZodTypeAny, "passthrough">>;
4462
4557
  declare const ToolCallChunkEventSchema: z.ZodObject<{
4463
4558
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -4468,6 +4563,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
4468
4563
  toolCallName: z.ZodOptional<z.ZodString>;
4469
4564
  parentMessageId: z.ZodOptional<z.ZodString>;
4470
4565
  delta: z.ZodOptional<z.ZodString>;
4566
+ subagentId: z.ZodOptional<z.ZodString>;
4471
4567
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4472
4568
  timestamp: z.ZodOptional<z.ZodNumber>;
4473
4569
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4477,6 +4573,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
4477
4573
  toolCallName: z.ZodOptional<z.ZodString>;
4478
4574
  parentMessageId: z.ZodOptional<z.ZodString>;
4479
4575
  delta: z.ZodOptional<z.ZodString>;
4576
+ subagentId: z.ZodOptional<z.ZodString>;
4480
4577
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4481
4578
  timestamp: z.ZodOptional<z.ZodNumber>;
4482
4579
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -4486,6 +4583,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
4486
4583
  toolCallName: z.ZodOptional<z.ZodString>;
4487
4584
  parentMessageId: z.ZodOptional<z.ZodString>;
4488
4585
  delta: z.ZodOptional<z.ZodString>;
4586
+ subagentId: z.ZodOptional<z.ZodString>;
4489
4587
  }, z.ZodTypeAny, "passthrough">>;
4490
4588
  /**
4491
4589
  * @deprecated Use ReasoningStartEventSchema instead. Will be removed in 1.0.0.
@@ -4534,18 +4632,21 @@ declare const StateSnapshotEventSchema: z.ZodObject<{
4534
4632
  } & {
4535
4633
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
4536
4634
  snapshot: z.ZodAny;
4635
+ subagentId: z.ZodOptional<z.ZodString>;
4537
4636
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4538
4637
  timestamp: z.ZodOptional<z.ZodNumber>;
4539
4638
  rawEvent: z.ZodOptional<z.ZodAny>;
4540
4639
  } & {
4541
4640
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
4542
4641
  snapshot: z.ZodAny;
4642
+ subagentId: z.ZodOptional<z.ZodString>;
4543
4643
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4544
4644
  timestamp: z.ZodOptional<z.ZodNumber>;
4545
4645
  rawEvent: z.ZodOptional<z.ZodAny>;
4546
4646
  } & {
4547
4647
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
4548
4648
  snapshot: z.ZodAny;
4649
+ subagentId: z.ZodOptional<z.ZodString>;
4549
4650
  }, z.ZodTypeAny, "passthrough">>;
4550
4651
  declare const StateDeltaEventSchema: z.ZodObject<{
4551
4652
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -4553,18 +4654,21 @@ declare const StateDeltaEventSchema: z.ZodObject<{
4553
4654
  } & {
4554
4655
  type: z.ZodLiteral<EventType.STATE_DELTA>;
4555
4656
  delta: z.ZodArray<z.ZodAny, "many">;
4657
+ subagentId: z.ZodOptional<z.ZodString>;
4556
4658
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4557
4659
  timestamp: z.ZodOptional<z.ZodNumber>;
4558
4660
  rawEvent: z.ZodOptional<z.ZodAny>;
4559
4661
  } & {
4560
4662
  type: z.ZodLiteral<EventType.STATE_DELTA>;
4561
4663
  delta: z.ZodArray<z.ZodAny, "many">;
4664
+ subagentId: z.ZodOptional<z.ZodString>;
4562
4665
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4563
4666
  timestamp: z.ZodOptional<z.ZodNumber>;
4564
4667
  rawEvent: z.ZodOptional<z.ZodAny>;
4565
4668
  } & {
4566
4669
  type: z.ZodLiteral<EventType.STATE_DELTA>;
4567
4670
  delta: z.ZodArray<z.ZodAny, "many">;
4671
+ subagentId: z.ZodOptional<z.ZodString>;
4568
4672
  }, z.ZodTypeAny, "passthrough">>;
4569
4673
  declare const MessagesSnapshotEventSchema: z.ZodObject<{
4570
4674
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -4575,6 +4679,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4575
4679
  id: z.ZodString;
4576
4680
  name: z.ZodOptional<z.ZodString>;
4577
4681
  encryptedValue: z.ZodOptional<z.ZodString>;
4682
+ subagentId: z.ZodOptional<z.ZodString>;
4578
4683
  } & {
4579
4684
  role: z.ZodLiteral<"developer">;
4580
4685
  content: z.ZodString;
@@ -4583,17 +4688,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4583
4688
  content: string;
4584
4689
  id: string;
4585
4690
  name?: string | undefined;
4691
+ subagentId?: string | undefined;
4586
4692
  encryptedValue?: string | undefined;
4587
4693
  }, {
4588
4694
  role: "developer";
4589
4695
  content: string;
4590
4696
  id: string;
4591
4697
  name?: string | undefined;
4698
+ subagentId?: string | undefined;
4592
4699
  encryptedValue?: string | undefined;
4593
4700
  }>, z.ZodObject<{
4594
4701
  id: z.ZodString;
4595
4702
  name: z.ZodOptional<z.ZodString>;
4596
4703
  encryptedValue: z.ZodOptional<z.ZodString>;
4704
+ subagentId: z.ZodOptional<z.ZodString>;
4597
4705
  } & {
4598
4706
  role: z.ZodLiteral<"system">;
4599
4707
  content: z.ZodString;
@@ -4602,17 +4710,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4602
4710
  content: string;
4603
4711
  id: string;
4604
4712
  name?: string | undefined;
4713
+ subagentId?: string | undefined;
4605
4714
  encryptedValue?: string | undefined;
4606
4715
  }, {
4607
4716
  role: "system";
4608
4717
  content: string;
4609
4718
  id: string;
4610
4719
  name?: string | undefined;
4720
+ subagentId?: string | undefined;
4611
4721
  encryptedValue?: string | undefined;
4612
4722
  }>, z.ZodObject<{
4613
4723
  id: z.ZodString;
4614
4724
  name: z.ZodOptional<z.ZodString>;
4615
4725
  encryptedValue: z.ZodOptional<z.ZodString>;
4726
+ subagentId: z.ZodOptional<z.ZodString>;
4616
4727
  } & {
4617
4728
  role: z.ZodLiteral<"assistant">;
4618
4729
  content: z.ZodOptional<z.ZodString>;
@@ -4651,6 +4762,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4651
4762
  role: "assistant";
4652
4763
  id: string;
4653
4764
  name?: string | undefined;
4765
+ subagentId?: string | undefined;
4654
4766
  content?: string | undefined;
4655
4767
  encryptedValue?: string | undefined;
4656
4768
  toolCalls?: {
@@ -4666,6 +4778,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4666
4778
  role: "assistant";
4667
4779
  id: string;
4668
4780
  name?: string | undefined;
4781
+ subagentId?: string | undefined;
4669
4782
  content?: string | undefined;
4670
4783
  encryptedValue?: string | undefined;
4671
4784
  toolCalls?: {
@@ -4681,6 +4794,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
4681
4794
  id: z.ZodString;
4682
4795
  name: z.ZodOptional<z.ZodString>;
4683
4796
  encryptedValue: z.ZodOptional<z.ZodString>;
4797
+ subagentId: z.ZodOptional<z.ZodString>;
4684
4798
  } & {
4685
4799
  role: z.ZodLiteral<"user">;
4686
4800
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -5101,6 +5215,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5101
5215
  })[];
5102
5216
  id: string;
5103
5217
  name?: string | undefined;
5218
+ subagentId?: string | undefined;
5104
5219
  encryptedValue?: string | undefined;
5105
5220
  }, {
5106
5221
  role: "user";
@@ -5165,6 +5280,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5165
5280
  })[];
5166
5281
  id: string;
5167
5282
  name?: string | undefined;
5283
+ subagentId?: string | undefined;
5168
5284
  encryptedValue?: string | undefined;
5169
5285
  }>, z.ZodObject<{
5170
5286
  id: z.ZodString;
@@ -5173,11 +5289,13 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5173
5289
  toolCallId: z.ZodString;
5174
5290
  error: z.ZodOptional<z.ZodString>;
5175
5291
  encryptedValue: z.ZodOptional<z.ZodString>;
5292
+ subagentId: z.ZodOptional<z.ZodString>;
5176
5293
  }, "strip", z.ZodTypeAny, {
5177
5294
  role: "tool";
5178
5295
  toolCallId: string;
5179
5296
  content: string;
5180
5297
  id: string;
5298
+ subagentId?: string | undefined;
5181
5299
  encryptedValue?: string | undefined;
5182
5300
  error?: string | undefined;
5183
5301
  }, {
@@ -5185,6 +5303,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5185
5303
  toolCallId: string;
5186
5304
  content: string;
5187
5305
  id: string;
5306
+ subagentId?: string | undefined;
5188
5307
  encryptedValue?: string | undefined;
5189
5308
  error?: string | undefined;
5190
5309
  }>, z.ZodObject<{
@@ -5192,30 +5311,36 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5192
5311
  role: z.ZodLiteral<"activity">;
5193
5312
  activityType: z.ZodString;
5194
5313
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
5314
+ subagentId: z.ZodOptional<z.ZodString>;
5195
5315
  }, "strip", z.ZodTypeAny, {
5196
5316
  role: "activity";
5197
5317
  content: Record<string, any>;
5198
5318
  id: string;
5199
5319
  activityType: string;
5320
+ subagentId?: string | undefined;
5200
5321
  }, {
5201
5322
  role: "activity";
5202
5323
  content: Record<string, any>;
5203
5324
  id: string;
5204
5325
  activityType: string;
5326
+ subagentId?: string | undefined;
5205
5327
  }>, z.ZodObject<{
5206
5328
  id: z.ZodString;
5207
5329
  role: z.ZodLiteral<"reasoning">;
5208
5330
  content: z.ZodString;
5209
5331
  encryptedValue: z.ZodOptional<z.ZodString>;
5332
+ subagentId: z.ZodOptional<z.ZodString>;
5210
5333
  }, "strip", z.ZodTypeAny, {
5211
5334
  role: "reasoning";
5212
5335
  content: string;
5213
5336
  id: string;
5337
+ subagentId?: string | undefined;
5214
5338
  encryptedValue?: string | undefined;
5215
5339
  }, {
5216
5340
  role: "reasoning";
5217
5341
  content: string;
5218
5342
  id: string;
5343
+ subagentId?: string | undefined;
5219
5344
  encryptedValue?: string | undefined;
5220
5345
  }>]>, "many">;
5221
5346
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5227,6 +5352,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5227
5352
  id: z.ZodString;
5228
5353
  name: z.ZodOptional<z.ZodString>;
5229
5354
  encryptedValue: z.ZodOptional<z.ZodString>;
5355
+ subagentId: z.ZodOptional<z.ZodString>;
5230
5356
  } & {
5231
5357
  role: z.ZodLiteral<"developer">;
5232
5358
  content: z.ZodString;
@@ -5235,17 +5361,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5235
5361
  content: string;
5236
5362
  id: string;
5237
5363
  name?: string | undefined;
5364
+ subagentId?: string | undefined;
5238
5365
  encryptedValue?: string | undefined;
5239
5366
  }, {
5240
5367
  role: "developer";
5241
5368
  content: string;
5242
5369
  id: string;
5243
5370
  name?: string | undefined;
5371
+ subagentId?: string | undefined;
5244
5372
  encryptedValue?: string | undefined;
5245
5373
  }>, z.ZodObject<{
5246
5374
  id: z.ZodString;
5247
5375
  name: z.ZodOptional<z.ZodString>;
5248
5376
  encryptedValue: z.ZodOptional<z.ZodString>;
5377
+ subagentId: z.ZodOptional<z.ZodString>;
5249
5378
  } & {
5250
5379
  role: z.ZodLiteral<"system">;
5251
5380
  content: z.ZodString;
@@ -5254,17 +5383,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5254
5383
  content: string;
5255
5384
  id: string;
5256
5385
  name?: string | undefined;
5386
+ subagentId?: string | undefined;
5257
5387
  encryptedValue?: string | undefined;
5258
5388
  }, {
5259
5389
  role: "system";
5260
5390
  content: string;
5261
5391
  id: string;
5262
5392
  name?: string | undefined;
5393
+ subagentId?: string | undefined;
5263
5394
  encryptedValue?: string | undefined;
5264
5395
  }>, z.ZodObject<{
5265
5396
  id: z.ZodString;
5266
5397
  name: z.ZodOptional<z.ZodString>;
5267
5398
  encryptedValue: z.ZodOptional<z.ZodString>;
5399
+ subagentId: z.ZodOptional<z.ZodString>;
5268
5400
  } & {
5269
5401
  role: z.ZodLiteral<"assistant">;
5270
5402
  content: z.ZodOptional<z.ZodString>;
@@ -5303,6 +5435,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5303
5435
  role: "assistant";
5304
5436
  id: string;
5305
5437
  name?: string | undefined;
5438
+ subagentId?: string | undefined;
5306
5439
  content?: string | undefined;
5307
5440
  encryptedValue?: string | undefined;
5308
5441
  toolCalls?: {
@@ -5318,6 +5451,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5318
5451
  role: "assistant";
5319
5452
  id: string;
5320
5453
  name?: string | undefined;
5454
+ subagentId?: string | undefined;
5321
5455
  content?: string | undefined;
5322
5456
  encryptedValue?: string | undefined;
5323
5457
  toolCalls?: {
@@ -5333,6 +5467,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5333
5467
  id: z.ZodString;
5334
5468
  name: z.ZodOptional<z.ZodString>;
5335
5469
  encryptedValue: z.ZodOptional<z.ZodString>;
5470
+ subagentId: z.ZodOptional<z.ZodString>;
5336
5471
  } & {
5337
5472
  role: z.ZodLiteral<"user">;
5338
5473
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -5753,6 +5888,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5753
5888
  })[];
5754
5889
  id: string;
5755
5890
  name?: string | undefined;
5891
+ subagentId?: string | undefined;
5756
5892
  encryptedValue?: string | undefined;
5757
5893
  }, {
5758
5894
  role: "user";
@@ -5817,6 +5953,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5817
5953
  })[];
5818
5954
  id: string;
5819
5955
  name?: string | undefined;
5956
+ subagentId?: string | undefined;
5820
5957
  encryptedValue?: string | undefined;
5821
5958
  }>, z.ZodObject<{
5822
5959
  id: z.ZodString;
@@ -5825,11 +5962,13 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5825
5962
  toolCallId: z.ZodString;
5826
5963
  error: z.ZodOptional<z.ZodString>;
5827
5964
  encryptedValue: z.ZodOptional<z.ZodString>;
5965
+ subagentId: z.ZodOptional<z.ZodString>;
5828
5966
  }, "strip", z.ZodTypeAny, {
5829
5967
  role: "tool";
5830
5968
  toolCallId: string;
5831
5969
  content: string;
5832
5970
  id: string;
5971
+ subagentId?: string | undefined;
5833
5972
  encryptedValue?: string | undefined;
5834
5973
  error?: string | undefined;
5835
5974
  }, {
@@ -5837,6 +5976,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5837
5976
  toolCallId: string;
5838
5977
  content: string;
5839
5978
  id: string;
5979
+ subagentId?: string | undefined;
5840
5980
  encryptedValue?: string | undefined;
5841
5981
  error?: string | undefined;
5842
5982
  }>, z.ZodObject<{
@@ -5844,30 +5984,36 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5844
5984
  role: z.ZodLiteral<"activity">;
5845
5985
  activityType: z.ZodString;
5846
5986
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
5987
+ subagentId: z.ZodOptional<z.ZodString>;
5847
5988
  }, "strip", z.ZodTypeAny, {
5848
5989
  role: "activity";
5849
5990
  content: Record<string, any>;
5850
5991
  id: string;
5851
5992
  activityType: string;
5993
+ subagentId?: string | undefined;
5852
5994
  }, {
5853
5995
  role: "activity";
5854
5996
  content: Record<string, any>;
5855
5997
  id: string;
5856
5998
  activityType: string;
5999
+ subagentId?: string | undefined;
5857
6000
  }>, z.ZodObject<{
5858
6001
  id: z.ZodString;
5859
6002
  role: z.ZodLiteral<"reasoning">;
5860
6003
  content: z.ZodString;
5861
6004
  encryptedValue: z.ZodOptional<z.ZodString>;
6005
+ subagentId: z.ZodOptional<z.ZodString>;
5862
6006
  }, "strip", z.ZodTypeAny, {
5863
6007
  role: "reasoning";
5864
6008
  content: string;
5865
6009
  id: string;
6010
+ subagentId?: string | undefined;
5866
6011
  encryptedValue?: string | undefined;
5867
6012
  }, {
5868
6013
  role: "reasoning";
5869
6014
  content: string;
5870
6015
  id: string;
6016
+ subagentId?: string | undefined;
5871
6017
  encryptedValue?: string | undefined;
5872
6018
  }>]>, "many">;
5873
6019
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5879,6 +6025,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5879
6025
  id: z.ZodString;
5880
6026
  name: z.ZodOptional<z.ZodString>;
5881
6027
  encryptedValue: z.ZodOptional<z.ZodString>;
6028
+ subagentId: z.ZodOptional<z.ZodString>;
5882
6029
  } & {
5883
6030
  role: z.ZodLiteral<"developer">;
5884
6031
  content: z.ZodString;
@@ -5887,17 +6034,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5887
6034
  content: string;
5888
6035
  id: string;
5889
6036
  name?: string | undefined;
6037
+ subagentId?: string | undefined;
5890
6038
  encryptedValue?: string | undefined;
5891
6039
  }, {
5892
6040
  role: "developer";
5893
6041
  content: string;
5894
6042
  id: string;
5895
6043
  name?: string | undefined;
6044
+ subagentId?: string | undefined;
5896
6045
  encryptedValue?: string | undefined;
5897
6046
  }>, z.ZodObject<{
5898
6047
  id: z.ZodString;
5899
6048
  name: z.ZodOptional<z.ZodString>;
5900
6049
  encryptedValue: z.ZodOptional<z.ZodString>;
6050
+ subagentId: z.ZodOptional<z.ZodString>;
5901
6051
  } & {
5902
6052
  role: z.ZodLiteral<"system">;
5903
6053
  content: z.ZodString;
@@ -5906,17 +6056,20 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5906
6056
  content: string;
5907
6057
  id: string;
5908
6058
  name?: string | undefined;
6059
+ subagentId?: string | undefined;
5909
6060
  encryptedValue?: string | undefined;
5910
6061
  }, {
5911
6062
  role: "system";
5912
6063
  content: string;
5913
6064
  id: string;
5914
6065
  name?: string | undefined;
6066
+ subagentId?: string | undefined;
5915
6067
  encryptedValue?: string | undefined;
5916
6068
  }>, z.ZodObject<{
5917
6069
  id: z.ZodString;
5918
6070
  name: z.ZodOptional<z.ZodString>;
5919
6071
  encryptedValue: z.ZodOptional<z.ZodString>;
6072
+ subagentId: z.ZodOptional<z.ZodString>;
5920
6073
  } & {
5921
6074
  role: z.ZodLiteral<"assistant">;
5922
6075
  content: z.ZodOptional<z.ZodString>;
@@ -5955,6 +6108,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5955
6108
  role: "assistant";
5956
6109
  id: string;
5957
6110
  name?: string | undefined;
6111
+ subagentId?: string | undefined;
5958
6112
  content?: string | undefined;
5959
6113
  encryptedValue?: string | undefined;
5960
6114
  toolCalls?: {
@@ -5970,6 +6124,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5970
6124
  role: "assistant";
5971
6125
  id: string;
5972
6126
  name?: string | undefined;
6127
+ subagentId?: string | undefined;
5973
6128
  content?: string | undefined;
5974
6129
  encryptedValue?: string | undefined;
5975
6130
  toolCalls?: {
@@ -5985,6 +6140,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
5985
6140
  id: z.ZodString;
5986
6141
  name: z.ZodOptional<z.ZodString>;
5987
6142
  encryptedValue: z.ZodOptional<z.ZodString>;
6143
+ subagentId: z.ZodOptional<z.ZodString>;
5988
6144
  } & {
5989
6145
  role: z.ZodLiteral<"user">;
5990
6146
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -6405,6 +6561,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
6405
6561
  })[];
6406
6562
  id: string;
6407
6563
  name?: string | undefined;
6564
+ subagentId?: string | undefined;
6408
6565
  encryptedValue?: string | undefined;
6409
6566
  }, {
6410
6567
  role: "user";
@@ -6469,6 +6626,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
6469
6626
  })[];
6470
6627
  id: string;
6471
6628
  name?: string | undefined;
6629
+ subagentId?: string | undefined;
6472
6630
  encryptedValue?: string | undefined;
6473
6631
  }>, z.ZodObject<{
6474
6632
  id: z.ZodString;
@@ -6477,11 +6635,13 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
6477
6635
  toolCallId: z.ZodString;
6478
6636
  error: z.ZodOptional<z.ZodString>;
6479
6637
  encryptedValue: z.ZodOptional<z.ZodString>;
6638
+ subagentId: z.ZodOptional<z.ZodString>;
6480
6639
  }, "strip", z.ZodTypeAny, {
6481
6640
  role: "tool";
6482
6641
  toolCallId: string;
6483
6642
  content: string;
6484
6643
  id: string;
6644
+ subagentId?: string | undefined;
6485
6645
  encryptedValue?: string | undefined;
6486
6646
  error?: string | undefined;
6487
6647
  }, {
@@ -6489,6 +6649,7 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
6489
6649
  toolCallId: string;
6490
6650
  content: string;
6491
6651
  id: string;
6652
+ subagentId?: string | undefined;
6492
6653
  encryptedValue?: string | undefined;
6493
6654
  error?: string | undefined;
6494
6655
  }>, z.ZodObject<{
@@ -6496,30 +6657,36 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
6496
6657
  role: z.ZodLiteral<"activity">;
6497
6658
  activityType: z.ZodString;
6498
6659
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
6660
+ subagentId: z.ZodOptional<z.ZodString>;
6499
6661
  }, "strip", z.ZodTypeAny, {
6500
6662
  role: "activity";
6501
6663
  content: Record<string, any>;
6502
6664
  id: string;
6503
6665
  activityType: string;
6666
+ subagentId?: string | undefined;
6504
6667
  }, {
6505
6668
  role: "activity";
6506
6669
  content: Record<string, any>;
6507
6670
  id: string;
6508
6671
  activityType: string;
6672
+ subagentId?: string | undefined;
6509
6673
  }>, z.ZodObject<{
6510
6674
  id: z.ZodString;
6511
6675
  role: z.ZodLiteral<"reasoning">;
6512
6676
  content: z.ZodString;
6513
6677
  encryptedValue: z.ZodOptional<z.ZodString>;
6678
+ subagentId: z.ZodOptional<z.ZodString>;
6514
6679
  }, "strip", z.ZodTypeAny, {
6515
6680
  role: "reasoning";
6516
6681
  content: string;
6517
6682
  id: string;
6683
+ subagentId?: string | undefined;
6518
6684
  encryptedValue?: string | undefined;
6519
6685
  }, {
6520
6686
  role: "reasoning";
6521
6687
  content: string;
6522
6688
  id: string;
6689
+ subagentId?: string | undefined;
6523
6690
  encryptedValue?: string | undefined;
6524
6691
  }>]>, "many">;
6525
6692
  }, z.ZodTypeAny, "passthrough">>;
@@ -6532,6 +6699,7 @@ declare const ActivitySnapshotEventSchema: z.ZodObject<{
6532
6699
  activityType: z.ZodString;
6533
6700
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
6534
6701
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6702
+ subagentId: z.ZodOptional<z.ZodString>;
6535
6703
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6536
6704
  timestamp: z.ZodOptional<z.ZodNumber>;
6537
6705
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6541,6 +6709,7 @@ declare const ActivitySnapshotEventSchema: z.ZodObject<{
6541
6709
  activityType: z.ZodString;
6542
6710
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
6543
6711
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6712
+ subagentId: z.ZodOptional<z.ZodString>;
6544
6713
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6545
6714
  timestamp: z.ZodOptional<z.ZodNumber>;
6546
6715
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6550,6 +6719,7 @@ declare const ActivitySnapshotEventSchema: z.ZodObject<{
6550
6719
  activityType: z.ZodString;
6551
6720
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
6552
6721
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6722
+ subagentId: z.ZodOptional<z.ZodString>;
6553
6723
  }, z.ZodTypeAny, "passthrough">>;
6554
6724
  declare const ActivityDeltaEventSchema: z.ZodObject<{
6555
6725
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -6583,6 +6753,7 @@ declare const RawEventSchema: z.ZodObject<{
6583
6753
  type: z.ZodLiteral<EventType.RAW>;
6584
6754
  event: z.ZodAny;
6585
6755
  source: z.ZodOptional<z.ZodString>;
6756
+ subagentId: z.ZodOptional<z.ZodString>;
6586
6757
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6587
6758
  timestamp: z.ZodOptional<z.ZodNumber>;
6588
6759
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6590,6 +6761,7 @@ declare const RawEventSchema: z.ZodObject<{
6590
6761
  type: z.ZodLiteral<EventType.RAW>;
6591
6762
  event: z.ZodAny;
6592
6763
  source: z.ZodOptional<z.ZodString>;
6764
+ subagentId: z.ZodOptional<z.ZodString>;
6593
6765
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6594
6766
  timestamp: z.ZodOptional<z.ZodNumber>;
6595
6767
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6597,6 +6769,7 @@ declare const RawEventSchema: z.ZodObject<{
6597
6769
  type: z.ZodLiteral<EventType.RAW>;
6598
6770
  event: z.ZodAny;
6599
6771
  source: z.ZodOptional<z.ZodString>;
6772
+ subagentId: z.ZodOptional<z.ZodString>;
6600
6773
  }, z.ZodTypeAny, "passthrough">>;
6601
6774
  declare const CustomEventSchema: z.ZodObject<{
6602
6775
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -6605,6 +6778,7 @@ declare const CustomEventSchema: z.ZodObject<{
6605
6778
  type: z.ZodLiteral<EventType.CUSTOM>;
6606
6779
  name: z.ZodString;
6607
6780
  value: z.ZodAny;
6781
+ subagentId: z.ZodOptional<z.ZodString>;
6608
6782
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6609
6783
  timestamp: z.ZodOptional<z.ZodNumber>;
6610
6784
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6612,6 +6786,7 @@ declare const CustomEventSchema: z.ZodObject<{
6612
6786
  type: z.ZodLiteral<EventType.CUSTOM>;
6613
6787
  name: z.ZodString;
6614
6788
  value: z.ZodAny;
6789
+ subagentId: z.ZodOptional<z.ZodString>;
6615
6790
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6616
6791
  timestamp: z.ZodOptional<z.ZodNumber>;
6617
6792
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -6619,6 +6794,7 @@ declare const CustomEventSchema: z.ZodObject<{
6619
6794
  type: z.ZodLiteral<EventType.CUSTOM>;
6620
6795
  name: z.ZodString;
6621
6796
  value: z.ZodAny;
6797
+ subagentId: z.ZodOptional<z.ZodString>;
6622
6798
  }, z.ZodTypeAny, "passthrough">>;
6623
6799
  declare const RunStartedEventSchema: z.ZodObject<{
6624
6800
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -6637,6 +6813,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
6637
6813
  id: z.ZodString;
6638
6814
  name: z.ZodOptional<z.ZodString>;
6639
6815
  encryptedValue: z.ZodOptional<z.ZodString>;
6816
+ subagentId: z.ZodOptional<z.ZodString>;
6640
6817
  } & {
6641
6818
  role: z.ZodLiteral<"developer">;
6642
6819
  content: z.ZodString;
@@ -6645,17 +6822,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
6645
6822
  content: string;
6646
6823
  id: string;
6647
6824
  name?: string | undefined;
6825
+ subagentId?: string | undefined;
6648
6826
  encryptedValue?: string | undefined;
6649
6827
  }, {
6650
6828
  role: "developer";
6651
6829
  content: string;
6652
6830
  id: string;
6653
6831
  name?: string | undefined;
6832
+ subagentId?: string | undefined;
6654
6833
  encryptedValue?: string | undefined;
6655
6834
  }>, z.ZodObject<{
6656
6835
  id: z.ZodString;
6657
6836
  name: z.ZodOptional<z.ZodString>;
6658
6837
  encryptedValue: z.ZodOptional<z.ZodString>;
6838
+ subagentId: z.ZodOptional<z.ZodString>;
6659
6839
  } & {
6660
6840
  role: z.ZodLiteral<"system">;
6661
6841
  content: z.ZodString;
@@ -6664,17 +6844,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
6664
6844
  content: string;
6665
6845
  id: string;
6666
6846
  name?: string | undefined;
6847
+ subagentId?: string | undefined;
6667
6848
  encryptedValue?: string | undefined;
6668
6849
  }, {
6669
6850
  role: "system";
6670
6851
  content: string;
6671
6852
  id: string;
6672
6853
  name?: string | undefined;
6854
+ subagentId?: string | undefined;
6673
6855
  encryptedValue?: string | undefined;
6674
6856
  }>, z.ZodObject<{
6675
6857
  id: z.ZodString;
6676
6858
  name: z.ZodOptional<z.ZodString>;
6677
6859
  encryptedValue: z.ZodOptional<z.ZodString>;
6860
+ subagentId: z.ZodOptional<z.ZodString>;
6678
6861
  } & {
6679
6862
  role: z.ZodLiteral<"assistant">;
6680
6863
  content: z.ZodOptional<z.ZodString>;
@@ -6713,6 +6896,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
6713
6896
  role: "assistant";
6714
6897
  id: string;
6715
6898
  name?: string | undefined;
6899
+ subagentId?: string | undefined;
6716
6900
  content?: string | undefined;
6717
6901
  encryptedValue?: string | undefined;
6718
6902
  toolCalls?: {
@@ -6728,6 +6912,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
6728
6912
  role: "assistant";
6729
6913
  id: string;
6730
6914
  name?: string | undefined;
6915
+ subagentId?: string | undefined;
6731
6916
  content?: string | undefined;
6732
6917
  encryptedValue?: string | undefined;
6733
6918
  toolCalls?: {
@@ -6743,6 +6928,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
6743
6928
  id: z.ZodString;
6744
6929
  name: z.ZodOptional<z.ZodString>;
6745
6930
  encryptedValue: z.ZodOptional<z.ZodString>;
6931
+ subagentId: z.ZodOptional<z.ZodString>;
6746
6932
  } & {
6747
6933
  role: z.ZodLiteral<"user">;
6748
6934
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -7163,6 +7349,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7163
7349
  })[];
7164
7350
  id: string;
7165
7351
  name?: string | undefined;
7352
+ subagentId?: string | undefined;
7166
7353
  encryptedValue?: string | undefined;
7167
7354
  }, {
7168
7355
  role: "user";
@@ -7227,6 +7414,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7227
7414
  })[];
7228
7415
  id: string;
7229
7416
  name?: string | undefined;
7417
+ subagentId?: string | undefined;
7230
7418
  encryptedValue?: string | undefined;
7231
7419
  }>, z.ZodObject<{
7232
7420
  id: z.ZodString;
@@ -7235,11 +7423,13 @@ declare const RunStartedEventSchema: z.ZodObject<{
7235
7423
  toolCallId: z.ZodString;
7236
7424
  error: z.ZodOptional<z.ZodString>;
7237
7425
  encryptedValue: z.ZodOptional<z.ZodString>;
7426
+ subagentId: z.ZodOptional<z.ZodString>;
7238
7427
  }, "strip", z.ZodTypeAny, {
7239
7428
  role: "tool";
7240
7429
  toolCallId: string;
7241
7430
  content: string;
7242
7431
  id: string;
7432
+ subagentId?: string | undefined;
7243
7433
  encryptedValue?: string | undefined;
7244
7434
  error?: string | undefined;
7245
7435
  }, {
@@ -7247,6 +7437,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7247
7437
  toolCallId: string;
7248
7438
  content: string;
7249
7439
  id: string;
7440
+ subagentId?: string | undefined;
7250
7441
  encryptedValue?: string | undefined;
7251
7442
  error?: string | undefined;
7252
7443
  }>, z.ZodObject<{
@@ -7254,30 +7445,36 @@ declare const RunStartedEventSchema: z.ZodObject<{
7254
7445
  role: z.ZodLiteral<"activity">;
7255
7446
  activityType: z.ZodString;
7256
7447
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
7448
+ subagentId: z.ZodOptional<z.ZodString>;
7257
7449
  }, "strip", z.ZodTypeAny, {
7258
7450
  role: "activity";
7259
7451
  content: Record<string, any>;
7260
7452
  id: string;
7261
7453
  activityType: string;
7454
+ subagentId?: string | undefined;
7262
7455
  }, {
7263
7456
  role: "activity";
7264
7457
  content: Record<string, any>;
7265
7458
  id: string;
7266
7459
  activityType: string;
7460
+ subagentId?: string | undefined;
7267
7461
  }>, z.ZodObject<{
7268
7462
  id: z.ZodString;
7269
7463
  role: z.ZodLiteral<"reasoning">;
7270
7464
  content: z.ZodString;
7271
7465
  encryptedValue: z.ZodOptional<z.ZodString>;
7466
+ subagentId: z.ZodOptional<z.ZodString>;
7272
7467
  }, "strip", z.ZodTypeAny, {
7273
7468
  role: "reasoning";
7274
7469
  content: string;
7275
7470
  id: string;
7471
+ subagentId?: string | undefined;
7276
7472
  encryptedValue?: string | undefined;
7277
7473
  }, {
7278
7474
  role: "reasoning";
7279
7475
  content: string;
7280
7476
  id: string;
7477
+ subagentId?: string | undefined;
7281
7478
  encryptedValue?: string | undefined;
7282
7479
  }>]>, "many">;
7283
7480
  tools: z.ZodArray<z.ZodObject<{
@@ -7326,17 +7523,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
7326
7523
  content: string;
7327
7524
  id: string;
7328
7525
  name?: string | undefined;
7526
+ subagentId?: string | undefined;
7329
7527
  encryptedValue?: string | undefined;
7330
7528
  } | {
7331
7529
  role: "system";
7332
7530
  content: string;
7333
7531
  id: string;
7334
7532
  name?: string | undefined;
7533
+ subagentId?: string | undefined;
7335
7534
  encryptedValue?: string | undefined;
7336
7535
  } | {
7337
7536
  role: "assistant";
7338
7537
  id: string;
7339
7538
  name?: string | undefined;
7539
+ subagentId?: string | undefined;
7340
7540
  content?: string | undefined;
7341
7541
  encryptedValue?: string | undefined;
7342
7542
  toolCalls?: {
@@ -7411,12 +7611,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
7411
7611
  })[];
7412
7612
  id: string;
7413
7613
  name?: string | undefined;
7614
+ subagentId?: string | undefined;
7414
7615
  encryptedValue?: string | undefined;
7415
7616
  } | {
7416
7617
  role: "tool";
7417
7618
  toolCallId: string;
7418
7619
  content: string;
7419
7620
  id: string;
7621
+ subagentId?: string | undefined;
7420
7622
  encryptedValue?: string | undefined;
7421
7623
  error?: string | undefined;
7422
7624
  } | {
@@ -7424,10 +7626,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
7424
7626
  content: Record<string, any>;
7425
7627
  id: string;
7426
7628
  activityType: string;
7629
+ subagentId?: string | undefined;
7427
7630
  } | {
7428
7631
  role: "reasoning";
7429
7632
  content: string;
7430
7633
  id: string;
7634
+ subagentId?: string | undefined;
7431
7635
  encryptedValue?: string | undefined;
7432
7636
  })[];
7433
7637
  threadId: string;
@@ -7456,17 +7660,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
7456
7660
  content: string;
7457
7661
  id: string;
7458
7662
  name?: string | undefined;
7663
+ subagentId?: string | undefined;
7459
7664
  encryptedValue?: string | undefined;
7460
7665
  } | {
7461
7666
  role: "system";
7462
7667
  content: string;
7463
7668
  id: string;
7464
7669
  name?: string | undefined;
7670
+ subagentId?: string | undefined;
7465
7671
  encryptedValue?: string | undefined;
7466
7672
  } | {
7467
7673
  role: "assistant";
7468
7674
  id: string;
7469
7675
  name?: string | undefined;
7676
+ subagentId?: string | undefined;
7470
7677
  content?: string | undefined;
7471
7678
  encryptedValue?: string | undefined;
7472
7679
  toolCalls?: {
@@ -7541,12 +7748,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
7541
7748
  })[];
7542
7749
  id: string;
7543
7750
  name?: string | undefined;
7751
+ subagentId?: string | undefined;
7544
7752
  encryptedValue?: string | undefined;
7545
7753
  } | {
7546
7754
  role: "tool";
7547
7755
  toolCallId: string;
7548
7756
  content: string;
7549
7757
  id: string;
7758
+ subagentId?: string | undefined;
7550
7759
  encryptedValue?: string | undefined;
7551
7760
  error?: string | undefined;
7552
7761
  } | {
@@ -7554,10 +7763,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
7554
7763
  content: Record<string, any>;
7555
7764
  id: string;
7556
7765
  activityType: string;
7766
+ subagentId?: string | undefined;
7557
7767
  } | {
7558
7768
  role: "reasoning";
7559
7769
  content: string;
7560
7770
  id: string;
7771
+ subagentId?: string | undefined;
7561
7772
  encryptedValue?: string | undefined;
7562
7773
  })[];
7563
7774
  threadId: string;
@@ -7598,6 +7809,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7598
7809
  id: z.ZodString;
7599
7810
  name: z.ZodOptional<z.ZodString>;
7600
7811
  encryptedValue: z.ZodOptional<z.ZodString>;
7812
+ subagentId: z.ZodOptional<z.ZodString>;
7601
7813
  } & {
7602
7814
  role: z.ZodLiteral<"developer">;
7603
7815
  content: z.ZodString;
@@ -7606,17 +7818,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
7606
7818
  content: string;
7607
7819
  id: string;
7608
7820
  name?: string | undefined;
7821
+ subagentId?: string | undefined;
7609
7822
  encryptedValue?: string | undefined;
7610
7823
  }, {
7611
7824
  role: "developer";
7612
7825
  content: string;
7613
7826
  id: string;
7614
7827
  name?: string | undefined;
7828
+ subagentId?: string | undefined;
7615
7829
  encryptedValue?: string | undefined;
7616
7830
  }>, z.ZodObject<{
7617
7831
  id: z.ZodString;
7618
7832
  name: z.ZodOptional<z.ZodString>;
7619
7833
  encryptedValue: z.ZodOptional<z.ZodString>;
7834
+ subagentId: z.ZodOptional<z.ZodString>;
7620
7835
  } & {
7621
7836
  role: z.ZodLiteral<"system">;
7622
7837
  content: z.ZodString;
@@ -7625,17 +7840,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
7625
7840
  content: string;
7626
7841
  id: string;
7627
7842
  name?: string | undefined;
7843
+ subagentId?: string | undefined;
7628
7844
  encryptedValue?: string | undefined;
7629
7845
  }, {
7630
7846
  role: "system";
7631
7847
  content: string;
7632
7848
  id: string;
7633
7849
  name?: string | undefined;
7850
+ subagentId?: string | undefined;
7634
7851
  encryptedValue?: string | undefined;
7635
7852
  }>, z.ZodObject<{
7636
7853
  id: z.ZodString;
7637
7854
  name: z.ZodOptional<z.ZodString>;
7638
7855
  encryptedValue: z.ZodOptional<z.ZodString>;
7856
+ subagentId: z.ZodOptional<z.ZodString>;
7639
7857
  } & {
7640
7858
  role: z.ZodLiteral<"assistant">;
7641
7859
  content: z.ZodOptional<z.ZodString>;
@@ -7674,6 +7892,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7674
7892
  role: "assistant";
7675
7893
  id: string;
7676
7894
  name?: string | undefined;
7895
+ subagentId?: string | undefined;
7677
7896
  content?: string | undefined;
7678
7897
  encryptedValue?: string | undefined;
7679
7898
  toolCalls?: {
@@ -7689,6 +7908,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7689
7908
  role: "assistant";
7690
7909
  id: string;
7691
7910
  name?: string | undefined;
7911
+ subagentId?: string | undefined;
7692
7912
  content?: string | undefined;
7693
7913
  encryptedValue?: string | undefined;
7694
7914
  toolCalls?: {
@@ -7704,6 +7924,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
7704
7924
  id: z.ZodString;
7705
7925
  name: z.ZodOptional<z.ZodString>;
7706
7926
  encryptedValue: z.ZodOptional<z.ZodString>;
7927
+ subagentId: z.ZodOptional<z.ZodString>;
7707
7928
  } & {
7708
7929
  role: z.ZodLiteral<"user">;
7709
7930
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -8124,6 +8345,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8124
8345
  })[];
8125
8346
  id: string;
8126
8347
  name?: string | undefined;
8348
+ subagentId?: string | undefined;
8127
8349
  encryptedValue?: string | undefined;
8128
8350
  }, {
8129
8351
  role: "user";
@@ -8188,6 +8410,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8188
8410
  })[];
8189
8411
  id: string;
8190
8412
  name?: string | undefined;
8413
+ subagentId?: string | undefined;
8191
8414
  encryptedValue?: string | undefined;
8192
8415
  }>, z.ZodObject<{
8193
8416
  id: z.ZodString;
@@ -8196,11 +8419,13 @@ declare const RunStartedEventSchema: z.ZodObject<{
8196
8419
  toolCallId: z.ZodString;
8197
8420
  error: z.ZodOptional<z.ZodString>;
8198
8421
  encryptedValue: z.ZodOptional<z.ZodString>;
8422
+ subagentId: z.ZodOptional<z.ZodString>;
8199
8423
  }, "strip", z.ZodTypeAny, {
8200
8424
  role: "tool";
8201
8425
  toolCallId: string;
8202
8426
  content: string;
8203
8427
  id: string;
8428
+ subagentId?: string | undefined;
8204
8429
  encryptedValue?: string | undefined;
8205
8430
  error?: string | undefined;
8206
8431
  }, {
@@ -8208,6 +8433,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8208
8433
  toolCallId: string;
8209
8434
  content: string;
8210
8435
  id: string;
8436
+ subagentId?: string | undefined;
8211
8437
  encryptedValue?: string | undefined;
8212
8438
  error?: string | undefined;
8213
8439
  }>, z.ZodObject<{
@@ -8215,30 +8441,36 @@ declare const RunStartedEventSchema: z.ZodObject<{
8215
8441
  role: z.ZodLiteral<"activity">;
8216
8442
  activityType: z.ZodString;
8217
8443
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
8444
+ subagentId: z.ZodOptional<z.ZodString>;
8218
8445
  }, "strip", z.ZodTypeAny, {
8219
8446
  role: "activity";
8220
8447
  content: Record<string, any>;
8221
8448
  id: string;
8222
8449
  activityType: string;
8450
+ subagentId?: string | undefined;
8223
8451
  }, {
8224
8452
  role: "activity";
8225
8453
  content: Record<string, any>;
8226
8454
  id: string;
8227
8455
  activityType: string;
8456
+ subagentId?: string | undefined;
8228
8457
  }>, z.ZodObject<{
8229
8458
  id: z.ZodString;
8230
8459
  role: z.ZodLiteral<"reasoning">;
8231
8460
  content: z.ZodString;
8232
8461
  encryptedValue: z.ZodOptional<z.ZodString>;
8462
+ subagentId: z.ZodOptional<z.ZodString>;
8233
8463
  }, "strip", z.ZodTypeAny, {
8234
8464
  role: "reasoning";
8235
8465
  content: string;
8236
8466
  id: string;
8467
+ subagentId?: string | undefined;
8237
8468
  encryptedValue?: string | undefined;
8238
8469
  }, {
8239
8470
  role: "reasoning";
8240
8471
  content: string;
8241
8472
  id: string;
8473
+ subagentId?: string | undefined;
8242
8474
  encryptedValue?: string | undefined;
8243
8475
  }>]>, "many">;
8244
8476
  tools: z.ZodArray<z.ZodObject<{
@@ -8287,17 +8519,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
8287
8519
  content: string;
8288
8520
  id: string;
8289
8521
  name?: string | undefined;
8522
+ subagentId?: string | undefined;
8290
8523
  encryptedValue?: string | undefined;
8291
8524
  } | {
8292
8525
  role: "system";
8293
8526
  content: string;
8294
8527
  id: string;
8295
8528
  name?: string | undefined;
8529
+ subagentId?: string | undefined;
8296
8530
  encryptedValue?: string | undefined;
8297
8531
  } | {
8298
8532
  role: "assistant";
8299
8533
  id: string;
8300
8534
  name?: string | undefined;
8535
+ subagentId?: string | undefined;
8301
8536
  content?: string | undefined;
8302
8537
  encryptedValue?: string | undefined;
8303
8538
  toolCalls?: {
@@ -8372,12 +8607,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
8372
8607
  })[];
8373
8608
  id: string;
8374
8609
  name?: string | undefined;
8610
+ subagentId?: string | undefined;
8375
8611
  encryptedValue?: string | undefined;
8376
8612
  } | {
8377
8613
  role: "tool";
8378
8614
  toolCallId: string;
8379
8615
  content: string;
8380
8616
  id: string;
8617
+ subagentId?: string | undefined;
8381
8618
  encryptedValue?: string | undefined;
8382
8619
  error?: string | undefined;
8383
8620
  } | {
@@ -8385,10 +8622,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
8385
8622
  content: Record<string, any>;
8386
8623
  id: string;
8387
8624
  activityType: string;
8625
+ subagentId?: string | undefined;
8388
8626
  } | {
8389
8627
  role: "reasoning";
8390
8628
  content: string;
8391
8629
  id: string;
8630
+ subagentId?: string | undefined;
8392
8631
  encryptedValue?: string | undefined;
8393
8632
  })[];
8394
8633
  threadId: string;
@@ -8417,17 +8656,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
8417
8656
  content: string;
8418
8657
  id: string;
8419
8658
  name?: string | undefined;
8659
+ subagentId?: string | undefined;
8420
8660
  encryptedValue?: string | undefined;
8421
8661
  } | {
8422
8662
  role: "system";
8423
8663
  content: string;
8424
8664
  id: string;
8425
8665
  name?: string | undefined;
8666
+ subagentId?: string | undefined;
8426
8667
  encryptedValue?: string | undefined;
8427
8668
  } | {
8428
8669
  role: "assistant";
8429
8670
  id: string;
8430
8671
  name?: string | undefined;
8672
+ subagentId?: string | undefined;
8431
8673
  content?: string | undefined;
8432
8674
  encryptedValue?: string | undefined;
8433
8675
  toolCalls?: {
@@ -8502,12 +8744,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
8502
8744
  })[];
8503
8745
  id: string;
8504
8746
  name?: string | undefined;
8747
+ subagentId?: string | undefined;
8505
8748
  encryptedValue?: string | undefined;
8506
8749
  } | {
8507
8750
  role: "tool";
8508
8751
  toolCallId: string;
8509
8752
  content: string;
8510
8753
  id: string;
8754
+ subagentId?: string | undefined;
8511
8755
  encryptedValue?: string | undefined;
8512
8756
  error?: string | undefined;
8513
8757
  } | {
@@ -8515,10 +8759,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
8515
8759
  content: Record<string, any>;
8516
8760
  id: string;
8517
8761
  activityType: string;
8762
+ subagentId?: string | undefined;
8518
8763
  } | {
8519
8764
  role: "reasoning";
8520
8765
  content: string;
8521
8766
  id: string;
8767
+ subagentId?: string | undefined;
8522
8768
  encryptedValue?: string | undefined;
8523
8769
  })[];
8524
8770
  threadId: string;
@@ -8559,6 +8805,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8559
8805
  id: z.ZodString;
8560
8806
  name: z.ZodOptional<z.ZodString>;
8561
8807
  encryptedValue: z.ZodOptional<z.ZodString>;
8808
+ subagentId: z.ZodOptional<z.ZodString>;
8562
8809
  } & {
8563
8810
  role: z.ZodLiteral<"developer">;
8564
8811
  content: z.ZodString;
@@ -8567,17 +8814,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
8567
8814
  content: string;
8568
8815
  id: string;
8569
8816
  name?: string | undefined;
8817
+ subagentId?: string | undefined;
8570
8818
  encryptedValue?: string | undefined;
8571
8819
  }, {
8572
8820
  role: "developer";
8573
8821
  content: string;
8574
8822
  id: string;
8575
8823
  name?: string | undefined;
8824
+ subagentId?: string | undefined;
8576
8825
  encryptedValue?: string | undefined;
8577
8826
  }>, z.ZodObject<{
8578
8827
  id: z.ZodString;
8579
8828
  name: z.ZodOptional<z.ZodString>;
8580
8829
  encryptedValue: z.ZodOptional<z.ZodString>;
8830
+ subagentId: z.ZodOptional<z.ZodString>;
8581
8831
  } & {
8582
8832
  role: z.ZodLiteral<"system">;
8583
8833
  content: z.ZodString;
@@ -8586,17 +8836,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
8586
8836
  content: string;
8587
8837
  id: string;
8588
8838
  name?: string | undefined;
8839
+ subagentId?: string | undefined;
8589
8840
  encryptedValue?: string | undefined;
8590
8841
  }, {
8591
8842
  role: "system";
8592
8843
  content: string;
8593
8844
  id: string;
8594
8845
  name?: string | undefined;
8846
+ subagentId?: string | undefined;
8595
8847
  encryptedValue?: string | undefined;
8596
8848
  }>, z.ZodObject<{
8597
8849
  id: z.ZodString;
8598
8850
  name: z.ZodOptional<z.ZodString>;
8599
8851
  encryptedValue: z.ZodOptional<z.ZodString>;
8852
+ subagentId: z.ZodOptional<z.ZodString>;
8600
8853
  } & {
8601
8854
  role: z.ZodLiteral<"assistant">;
8602
8855
  content: z.ZodOptional<z.ZodString>;
@@ -8635,6 +8888,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8635
8888
  role: "assistant";
8636
8889
  id: string;
8637
8890
  name?: string | undefined;
8891
+ subagentId?: string | undefined;
8638
8892
  content?: string | undefined;
8639
8893
  encryptedValue?: string | undefined;
8640
8894
  toolCalls?: {
@@ -8650,6 +8904,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8650
8904
  role: "assistant";
8651
8905
  id: string;
8652
8906
  name?: string | undefined;
8907
+ subagentId?: string | undefined;
8653
8908
  content?: string | undefined;
8654
8909
  encryptedValue?: string | undefined;
8655
8910
  toolCalls?: {
@@ -8665,6 +8920,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
8665
8920
  id: z.ZodString;
8666
8921
  name: z.ZodOptional<z.ZodString>;
8667
8922
  encryptedValue: z.ZodOptional<z.ZodString>;
8923
+ subagentId: z.ZodOptional<z.ZodString>;
8668
8924
  } & {
8669
8925
  role: z.ZodLiteral<"user">;
8670
8926
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -9085,6 +9341,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
9085
9341
  })[];
9086
9342
  id: string;
9087
9343
  name?: string | undefined;
9344
+ subagentId?: string | undefined;
9088
9345
  encryptedValue?: string | undefined;
9089
9346
  }, {
9090
9347
  role: "user";
@@ -9149,6 +9406,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
9149
9406
  })[];
9150
9407
  id: string;
9151
9408
  name?: string | undefined;
9409
+ subagentId?: string | undefined;
9152
9410
  encryptedValue?: string | undefined;
9153
9411
  }>, z.ZodObject<{
9154
9412
  id: z.ZodString;
@@ -9157,11 +9415,13 @@ declare const RunStartedEventSchema: z.ZodObject<{
9157
9415
  toolCallId: z.ZodString;
9158
9416
  error: z.ZodOptional<z.ZodString>;
9159
9417
  encryptedValue: z.ZodOptional<z.ZodString>;
9418
+ subagentId: z.ZodOptional<z.ZodString>;
9160
9419
  }, "strip", z.ZodTypeAny, {
9161
9420
  role: "tool";
9162
9421
  toolCallId: string;
9163
9422
  content: string;
9164
9423
  id: string;
9424
+ subagentId?: string | undefined;
9165
9425
  encryptedValue?: string | undefined;
9166
9426
  error?: string | undefined;
9167
9427
  }, {
@@ -9169,6 +9429,7 @@ declare const RunStartedEventSchema: z.ZodObject<{
9169
9429
  toolCallId: string;
9170
9430
  content: string;
9171
9431
  id: string;
9432
+ subagentId?: string | undefined;
9172
9433
  encryptedValue?: string | undefined;
9173
9434
  error?: string | undefined;
9174
9435
  }>, z.ZodObject<{
@@ -9176,30 +9437,36 @@ declare const RunStartedEventSchema: z.ZodObject<{
9176
9437
  role: z.ZodLiteral<"activity">;
9177
9438
  activityType: z.ZodString;
9178
9439
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
9440
+ subagentId: z.ZodOptional<z.ZodString>;
9179
9441
  }, "strip", z.ZodTypeAny, {
9180
9442
  role: "activity";
9181
9443
  content: Record<string, any>;
9182
9444
  id: string;
9183
9445
  activityType: string;
9446
+ subagentId?: string | undefined;
9184
9447
  }, {
9185
9448
  role: "activity";
9186
9449
  content: Record<string, any>;
9187
9450
  id: string;
9188
9451
  activityType: string;
9452
+ subagentId?: string | undefined;
9189
9453
  }>, z.ZodObject<{
9190
9454
  id: z.ZodString;
9191
9455
  role: z.ZodLiteral<"reasoning">;
9192
9456
  content: z.ZodString;
9193
9457
  encryptedValue: z.ZodOptional<z.ZodString>;
9458
+ subagentId: z.ZodOptional<z.ZodString>;
9194
9459
  }, "strip", z.ZodTypeAny, {
9195
9460
  role: "reasoning";
9196
9461
  content: string;
9197
9462
  id: string;
9463
+ subagentId?: string | undefined;
9198
9464
  encryptedValue?: string | undefined;
9199
9465
  }, {
9200
9466
  role: "reasoning";
9201
9467
  content: string;
9202
9468
  id: string;
9469
+ subagentId?: string | undefined;
9203
9470
  encryptedValue?: string | undefined;
9204
9471
  }>]>, "many">;
9205
9472
  tools: z.ZodArray<z.ZodObject<{
@@ -9248,17 +9515,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
9248
9515
  content: string;
9249
9516
  id: string;
9250
9517
  name?: string | undefined;
9518
+ subagentId?: string | undefined;
9251
9519
  encryptedValue?: string | undefined;
9252
9520
  } | {
9253
9521
  role: "system";
9254
9522
  content: string;
9255
9523
  id: string;
9256
9524
  name?: string | undefined;
9525
+ subagentId?: string | undefined;
9257
9526
  encryptedValue?: string | undefined;
9258
9527
  } | {
9259
9528
  role: "assistant";
9260
9529
  id: string;
9261
9530
  name?: string | undefined;
9531
+ subagentId?: string | undefined;
9262
9532
  content?: string | undefined;
9263
9533
  encryptedValue?: string | undefined;
9264
9534
  toolCalls?: {
@@ -9333,12 +9603,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
9333
9603
  })[];
9334
9604
  id: string;
9335
9605
  name?: string | undefined;
9606
+ subagentId?: string | undefined;
9336
9607
  encryptedValue?: string | undefined;
9337
9608
  } | {
9338
9609
  role: "tool";
9339
9610
  toolCallId: string;
9340
9611
  content: string;
9341
9612
  id: string;
9613
+ subagentId?: string | undefined;
9342
9614
  encryptedValue?: string | undefined;
9343
9615
  error?: string | undefined;
9344
9616
  } | {
@@ -9346,10 +9618,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
9346
9618
  content: Record<string, any>;
9347
9619
  id: string;
9348
9620
  activityType: string;
9621
+ subagentId?: string | undefined;
9349
9622
  } | {
9350
9623
  role: "reasoning";
9351
9624
  content: string;
9352
9625
  id: string;
9626
+ subagentId?: string | undefined;
9353
9627
  encryptedValue?: string | undefined;
9354
9628
  })[];
9355
9629
  threadId: string;
@@ -9378,17 +9652,20 @@ declare const RunStartedEventSchema: z.ZodObject<{
9378
9652
  content: string;
9379
9653
  id: string;
9380
9654
  name?: string | undefined;
9655
+ subagentId?: string | undefined;
9381
9656
  encryptedValue?: string | undefined;
9382
9657
  } | {
9383
9658
  role: "system";
9384
9659
  content: string;
9385
9660
  id: string;
9386
9661
  name?: string | undefined;
9662
+ subagentId?: string | undefined;
9387
9663
  encryptedValue?: string | undefined;
9388
9664
  } | {
9389
9665
  role: "assistant";
9390
9666
  id: string;
9391
9667
  name?: string | undefined;
9668
+ subagentId?: string | undefined;
9392
9669
  content?: string | undefined;
9393
9670
  encryptedValue?: string | undefined;
9394
9671
  toolCalls?: {
@@ -9463,12 +9740,14 @@ declare const RunStartedEventSchema: z.ZodObject<{
9463
9740
  })[];
9464
9741
  id: string;
9465
9742
  name?: string | undefined;
9743
+ subagentId?: string | undefined;
9466
9744
  encryptedValue?: string | undefined;
9467
9745
  } | {
9468
9746
  role: "tool";
9469
9747
  toolCallId: string;
9470
9748
  content: string;
9471
9749
  id: string;
9750
+ subagentId?: string | undefined;
9472
9751
  encryptedValue?: string | undefined;
9473
9752
  error?: string | undefined;
9474
9753
  } | {
@@ -9476,10 +9755,12 @@ declare const RunStartedEventSchema: z.ZodObject<{
9476
9755
  content: Record<string, any>;
9477
9756
  id: string;
9478
9757
  activityType: string;
9758
+ subagentId?: string | undefined;
9479
9759
  } | {
9480
9760
  role: "reasoning";
9481
9761
  content: string;
9482
9762
  id: string;
9763
+ subagentId?: string | undefined;
9483
9764
  encryptedValue?: string | undefined;
9484
9765
  })[];
9485
9766
  threadId: string;
@@ -9916,18 +10197,21 @@ declare const StepStartedEventSchema: z.ZodObject<{
9916
10197
  } & {
9917
10198
  type: z.ZodLiteral<EventType.STEP_STARTED>;
9918
10199
  stepName: z.ZodString;
10200
+ subagentId: z.ZodOptional<z.ZodString>;
9919
10201
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9920
10202
  timestamp: z.ZodOptional<z.ZodNumber>;
9921
10203
  rawEvent: z.ZodOptional<z.ZodAny>;
9922
10204
  } & {
9923
10205
  type: z.ZodLiteral<EventType.STEP_STARTED>;
9924
10206
  stepName: z.ZodString;
10207
+ subagentId: z.ZodOptional<z.ZodString>;
9925
10208
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9926
10209
  timestamp: z.ZodOptional<z.ZodNumber>;
9927
10210
  rawEvent: z.ZodOptional<z.ZodAny>;
9928
10211
  } & {
9929
10212
  type: z.ZodLiteral<EventType.STEP_STARTED>;
9930
10213
  stepName: z.ZodString;
10214
+ subagentId: z.ZodOptional<z.ZodString>;
9931
10215
  }, z.ZodTypeAny, "passthrough">>;
9932
10216
  declare const StepFinishedEventSchema: z.ZodObject<{
9933
10217
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -9935,18 +10219,21 @@ declare const StepFinishedEventSchema: z.ZodObject<{
9935
10219
  } & {
9936
10220
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
9937
10221
  stepName: z.ZodString;
10222
+ subagentId: z.ZodOptional<z.ZodString>;
9938
10223
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9939
10224
  timestamp: z.ZodOptional<z.ZodNumber>;
9940
10225
  rawEvent: z.ZodOptional<z.ZodAny>;
9941
10226
  } & {
9942
10227
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
9943
10228
  stepName: z.ZodString;
10229
+ subagentId: z.ZodOptional<z.ZodString>;
9944
10230
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9945
10231
  timestamp: z.ZodOptional<z.ZodNumber>;
9946
10232
  rawEvent: z.ZodOptional<z.ZodAny>;
9947
10233
  } & {
9948
10234
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
9949
10235
  stepName: z.ZodString;
10236
+ subagentId: z.ZodOptional<z.ZodString>;
9950
10237
  }, z.ZodTypeAny, "passthrough">>;
9951
10238
  declare const ReasoningEncryptedValueSubtypeSchema: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>;
9952
10239
  declare const ReasoningStartEventSchema: z.ZodObject<{
@@ -9955,18 +10242,21 @@ declare const ReasoningStartEventSchema: z.ZodObject<{
9955
10242
  } & {
9956
10243
  type: z.ZodLiteral<EventType.REASONING_START>;
9957
10244
  messageId: z.ZodString;
10245
+ subagentId: z.ZodOptional<z.ZodString>;
9958
10246
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9959
10247
  timestamp: z.ZodOptional<z.ZodNumber>;
9960
10248
  rawEvent: z.ZodOptional<z.ZodAny>;
9961
10249
  } & {
9962
10250
  type: z.ZodLiteral<EventType.REASONING_START>;
9963
10251
  messageId: z.ZodString;
10252
+ subagentId: z.ZodOptional<z.ZodString>;
9964
10253
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9965
10254
  timestamp: z.ZodOptional<z.ZodNumber>;
9966
10255
  rawEvent: z.ZodOptional<z.ZodAny>;
9967
10256
  } & {
9968
10257
  type: z.ZodLiteral<EventType.REASONING_START>;
9969
10258
  messageId: z.ZodString;
10259
+ subagentId: z.ZodOptional<z.ZodString>;
9970
10260
  }, z.ZodTypeAny, "passthrough">>;
9971
10261
  declare const ReasoningMessageStartEventSchema: z.ZodObject<{
9972
10262
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -9975,6 +10265,7 @@ declare const ReasoningMessageStartEventSchema: z.ZodObject<{
9975
10265
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
9976
10266
  messageId: z.ZodString;
9977
10267
  role: z.ZodLiteral<"reasoning">;
10268
+ subagentId: z.ZodOptional<z.ZodString>;
9978
10269
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9979
10270
  timestamp: z.ZodOptional<z.ZodNumber>;
9980
10271
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -9982,6 +10273,7 @@ declare const ReasoningMessageStartEventSchema: z.ZodObject<{
9982
10273
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
9983
10274
  messageId: z.ZodString;
9984
10275
  role: z.ZodLiteral<"reasoning">;
10276
+ subagentId: z.ZodOptional<z.ZodString>;
9985
10277
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9986
10278
  timestamp: z.ZodOptional<z.ZodNumber>;
9987
10279
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -9989,6 +10281,7 @@ declare const ReasoningMessageStartEventSchema: z.ZodObject<{
9989
10281
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
9990
10282
  messageId: z.ZodString;
9991
10283
  role: z.ZodLiteral<"reasoning">;
10284
+ subagentId: z.ZodOptional<z.ZodString>;
9992
10285
  }, z.ZodTypeAny, "passthrough">>;
9993
10286
  declare const ReasoningMessageContentEventSchema: z.ZodObject<{
9994
10287
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -10038,6 +10331,7 @@ declare const ReasoningMessageChunkEventSchema: z.ZodObject<{
10038
10331
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
10039
10332
  messageId: z.ZodOptional<z.ZodString>;
10040
10333
  delta: z.ZodOptional<z.ZodString>;
10334
+ subagentId: z.ZodOptional<z.ZodString>;
10041
10335
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10042
10336
  timestamp: z.ZodOptional<z.ZodNumber>;
10043
10337
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10045,6 +10339,7 @@ declare const ReasoningMessageChunkEventSchema: z.ZodObject<{
10045
10339
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
10046
10340
  messageId: z.ZodOptional<z.ZodString>;
10047
10341
  delta: z.ZodOptional<z.ZodString>;
10342
+ subagentId: z.ZodOptional<z.ZodString>;
10048
10343
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10049
10344
  timestamp: z.ZodOptional<z.ZodNumber>;
10050
10345
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10052,6 +10347,7 @@ declare const ReasoningMessageChunkEventSchema: z.ZodObject<{
10052
10347
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
10053
10348
  messageId: z.ZodOptional<z.ZodString>;
10054
10349
  delta: z.ZodOptional<z.ZodString>;
10350
+ subagentId: z.ZodOptional<z.ZodString>;
10055
10351
  }, z.ZodTypeAny, "passthrough">>;
10056
10352
  declare const ReasoningEndEventSchema: z.ZodObject<{
10057
10353
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -10097,6 +10393,78 @@ declare const ReasoningEncryptedValueEventSchema: z.ZodObject<{
10097
10393
  entityId: z.ZodString;
10098
10394
  encryptedValue: z.ZodString;
10099
10395
  }, z.ZodTypeAny, "passthrough">>;
10396
+ declare const SubagentStartedEventSchema: z.ZodObject<{
10397
+ timestamp: z.ZodOptional<z.ZodNumber>;
10398
+ rawEvent: z.ZodOptional<z.ZodAny>;
10399
+ } & {
10400
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
10401
+ subagentId: z.ZodString;
10402
+ name: z.ZodString;
10403
+ description: z.ZodOptional<z.ZodString>;
10404
+ parentSubagentId: z.ZodOptional<z.ZodString>;
10405
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10406
+ timestamp: z.ZodOptional<z.ZodNumber>;
10407
+ rawEvent: z.ZodOptional<z.ZodAny>;
10408
+ } & {
10409
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
10410
+ subagentId: z.ZodString;
10411
+ name: z.ZodString;
10412
+ description: z.ZodOptional<z.ZodString>;
10413
+ parentSubagentId: z.ZodOptional<z.ZodString>;
10414
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10415
+ timestamp: z.ZodOptional<z.ZodNumber>;
10416
+ rawEvent: z.ZodOptional<z.ZodAny>;
10417
+ } & {
10418
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
10419
+ subagentId: z.ZodString;
10420
+ name: z.ZodString;
10421
+ description: z.ZodOptional<z.ZodString>;
10422
+ parentSubagentId: z.ZodOptional<z.ZodString>;
10423
+ }, z.ZodTypeAny, "passthrough">>;
10424
+ declare const SubagentFinishedEventSchema: z.ZodObject<{
10425
+ timestamp: z.ZodOptional<z.ZodNumber>;
10426
+ rawEvent: z.ZodOptional<z.ZodAny>;
10427
+ } & {
10428
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
10429
+ subagentId: z.ZodString;
10430
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10431
+ timestamp: z.ZodOptional<z.ZodNumber>;
10432
+ rawEvent: z.ZodOptional<z.ZodAny>;
10433
+ } & {
10434
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
10435
+ subagentId: z.ZodString;
10436
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10437
+ timestamp: z.ZodOptional<z.ZodNumber>;
10438
+ rawEvent: z.ZodOptional<z.ZodAny>;
10439
+ } & {
10440
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
10441
+ subagentId: z.ZodString;
10442
+ }, z.ZodTypeAny, "passthrough">>;
10443
+ declare const SubagentErrorEventSchema: z.ZodObject<{
10444
+ timestamp: z.ZodOptional<z.ZodNumber>;
10445
+ rawEvent: z.ZodOptional<z.ZodAny>;
10446
+ } & {
10447
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
10448
+ subagentId: z.ZodString;
10449
+ message: z.ZodString;
10450
+ code: z.ZodOptional<z.ZodString>;
10451
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10452
+ timestamp: z.ZodOptional<z.ZodNumber>;
10453
+ rawEvent: z.ZodOptional<z.ZodAny>;
10454
+ } & {
10455
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
10456
+ subagentId: z.ZodString;
10457
+ message: z.ZodString;
10458
+ code: z.ZodOptional<z.ZodString>;
10459
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10460
+ timestamp: z.ZodOptional<z.ZodNumber>;
10461
+ rawEvent: z.ZodOptional<z.ZodAny>;
10462
+ } & {
10463
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
10464
+ subagentId: z.ZodString;
10465
+ message: z.ZodString;
10466
+ code: z.ZodOptional<z.ZodString>;
10467
+ }, z.ZodTypeAny, "passthrough">>;
10100
10468
  declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10101
10469
  timestamp: z.ZodOptional<z.ZodNumber>;
10102
10470
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10105,6 +10473,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10105
10473
  messageId: z.ZodString;
10106
10474
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10107
10475
  name: z.ZodOptional<z.ZodString>;
10476
+ subagentId: z.ZodOptional<z.ZodString>;
10108
10477
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10109
10478
  timestamp: z.ZodOptional<z.ZodNumber>;
10110
10479
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10113,6 +10482,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10113
10482
  messageId: z.ZodString;
10114
10483
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10115
10484
  name: z.ZodOptional<z.ZodString>;
10485
+ subagentId: z.ZodOptional<z.ZodString>;
10116
10486
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10117
10487
  timestamp: z.ZodOptional<z.ZodNumber>;
10118
10488
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10121,6 +10491,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10121
10491
  messageId: z.ZodString;
10122
10492
  role: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10123
10493
  name: z.ZodOptional<z.ZodString>;
10494
+ subagentId: z.ZodOptional<z.ZodString>;
10124
10495
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10125
10496
  timestamp: z.ZodOptional<z.ZodNumber>;
10126
10497
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10169,6 +10540,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10169
10540
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10170
10541
  delta: z.ZodOptional<z.ZodString>;
10171
10542
  name: z.ZodOptional<z.ZodString>;
10543
+ subagentId: z.ZodOptional<z.ZodString>;
10172
10544
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10173
10545
  timestamp: z.ZodOptional<z.ZodNumber>;
10174
10546
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10178,6 +10550,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10178
10550
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10179
10551
  delta: z.ZodOptional<z.ZodString>;
10180
10552
  name: z.ZodOptional<z.ZodString>;
10553
+ subagentId: z.ZodOptional<z.ZodString>;
10181
10554
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10182
10555
  timestamp: z.ZodOptional<z.ZodNumber>;
10183
10556
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10187,6 +10560,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10187
10560
  role: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
10188
10561
  delta: z.ZodOptional<z.ZodString>;
10189
10562
  name: z.ZodOptional<z.ZodString>;
10563
+ subagentId: z.ZodOptional<z.ZodString>;
10190
10564
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10191
10565
  timestamp: z.ZodOptional<z.ZodNumber>;
10192
10566
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10285,6 +10659,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10285
10659
  toolCallId: z.ZodString;
10286
10660
  toolCallName: z.ZodString;
10287
10661
  parentMessageId: z.ZodOptional<z.ZodString>;
10662
+ subagentId: z.ZodOptional<z.ZodString>;
10288
10663
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10289
10664
  timestamp: z.ZodOptional<z.ZodNumber>;
10290
10665
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10293,6 +10668,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10293
10668
  toolCallId: z.ZodString;
10294
10669
  toolCallName: z.ZodString;
10295
10670
  parentMessageId: z.ZodOptional<z.ZodString>;
10671
+ subagentId: z.ZodOptional<z.ZodString>;
10296
10672
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10297
10673
  timestamp: z.ZodOptional<z.ZodNumber>;
10298
10674
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10301,6 +10677,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10301
10677
  toolCallId: z.ZodString;
10302
10678
  toolCallName: z.ZodString;
10303
10679
  parentMessageId: z.ZodOptional<z.ZodString>;
10680
+ subagentId: z.ZodOptional<z.ZodString>;
10304
10681
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10305
10682
  timestamp: z.ZodOptional<z.ZodNumber>;
10306
10683
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10349,6 +10726,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10349
10726
  toolCallName: z.ZodOptional<z.ZodString>;
10350
10727
  parentMessageId: z.ZodOptional<z.ZodString>;
10351
10728
  delta: z.ZodOptional<z.ZodString>;
10729
+ subagentId: z.ZodOptional<z.ZodString>;
10352
10730
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10353
10731
  timestamp: z.ZodOptional<z.ZodNumber>;
10354
10732
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10358,6 +10736,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10358
10736
  toolCallName: z.ZodOptional<z.ZodString>;
10359
10737
  parentMessageId: z.ZodOptional<z.ZodString>;
10360
10738
  delta: z.ZodOptional<z.ZodString>;
10739
+ subagentId: z.ZodOptional<z.ZodString>;
10361
10740
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10362
10741
  timestamp: z.ZodOptional<z.ZodNumber>;
10363
10742
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10367,6 +10746,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10367
10746
  toolCallName: z.ZodOptional<z.ZodString>;
10368
10747
  parentMessageId: z.ZodOptional<z.ZodString>;
10369
10748
  delta: z.ZodOptional<z.ZodString>;
10749
+ subagentId: z.ZodOptional<z.ZodString>;
10370
10750
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10371
10751
  timestamp: z.ZodOptional<z.ZodNumber>;
10372
10752
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10376,6 +10756,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10376
10756
  toolCallId: z.ZodString;
10377
10757
  content: z.ZodString;
10378
10758
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
10759
+ subagentId: z.ZodOptional<z.ZodString>;
10379
10760
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10380
10761
  timestamp: z.ZodOptional<z.ZodNumber>;
10381
10762
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10385,6 +10766,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10385
10766
  toolCallId: z.ZodString;
10386
10767
  content: z.ZodString;
10387
10768
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
10769
+ subagentId: z.ZodOptional<z.ZodString>;
10388
10770
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10389
10771
  timestamp: z.ZodOptional<z.ZodNumber>;
10390
10772
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10394,42 +10776,49 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10394
10776
  toolCallId: z.ZodString;
10395
10777
  content: z.ZodString;
10396
10778
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
10779
+ subagentId: z.ZodOptional<z.ZodString>;
10397
10780
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10398
10781
  timestamp: z.ZodOptional<z.ZodNumber>;
10399
10782
  rawEvent: z.ZodOptional<z.ZodAny>;
10400
10783
  } & {
10401
10784
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
10402
10785
  snapshot: z.ZodAny;
10786
+ subagentId: z.ZodOptional<z.ZodString>;
10403
10787
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10404
10788
  timestamp: z.ZodOptional<z.ZodNumber>;
10405
10789
  rawEvent: z.ZodOptional<z.ZodAny>;
10406
10790
  } & {
10407
10791
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
10408
10792
  snapshot: z.ZodAny;
10793
+ subagentId: z.ZodOptional<z.ZodString>;
10409
10794
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10410
10795
  timestamp: z.ZodOptional<z.ZodNumber>;
10411
10796
  rawEvent: z.ZodOptional<z.ZodAny>;
10412
10797
  } & {
10413
10798
  type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
10414
10799
  snapshot: z.ZodAny;
10800
+ subagentId: z.ZodOptional<z.ZodString>;
10415
10801
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10416
10802
  timestamp: z.ZodOptional<z.ZodNumber>;
10417
10803
  rawEvent: z.ZodOptional<z.ZodAny>;
10418
10804
  } & {
10419
10805
  type: z.ZodLiteral<EventType.STATE_DELTA>;
10420
10806
  delta: z.ZodArray<z.ZodAny, "many">;
10807
+ subagentId: z.ZodOptional<z.ZodString>;
10421
10808
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10422
10809
  timestamp: z.ZodOptional<z.ZodNumber>;
10423
10810
  rawEvent: z.ZodOptional<z.ZodAny>;
10424
10811
  } & {
10425
10812
  type: z.ZodLiteral<EventType.STATE_DELTA>;
10426
10813
  delta: z.ZodArray<z.ZodAny, "many">;
10814
+ subagentId: z.ZodOptional<z.ZodString>;
10427
10815
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10428
10816
  timestamp: z.ZodOptional<z.ZodNumber>;
10429
10817
  rawEvent: z.ZodOptional<z.ZodAny>;
10430
10818
  } & {
10431
10819
  type: z.ZodLiteral<EventType.STATE_DELTA>;
10432
10820
  delta: z.ZodArray<z.ZodAny, "many">;
10821
+ subagentId: z.ZodOptional<z.ZodString>;
10433
10822
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10434
10823
  timestamp: z.ZodOptional<z.ZodNumber>;
10435
10824
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -10439,6 +10828,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10439
10828
  id: z.ZodString;
10440
10829
  name: z.ZodOptional<z.ZodString>;
10441
10830
  encryptedValue: z.ZodOptional<z.ZodString>;
10831
+ subagentId: z.ZodOptional<z.ZodString>;
10442
10832
  } & {
10443
10833
  role: z.ZodLiteral<"developer">;
10444
10834
  content: z.ZodString;
@@ -10447,17 +10837,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10447
10837
  content: string;
10448
10838
  id: string;
10449
10839
  name?: string | undefined;
10840
+ subagentId?: string | undefined;
10450
10841
  encryptedValue?: string | undefined;
10451
10842
  }, {
10452
10843
  role: "developer";
10453
10844
  content: string;
10454
10845
  id: string;
10455
10846
  name?: string | undefined;
10847
+ subagentId?: string | undefined;
10456
10848
  encryptedValue?: string | undefined;
10457
10849
  }>, z.ZodObject<{
10458
10850
  id: z.ZodString;
10459
10851
  name: z.ZodOptional<z.ZodString>;
10460
10852
  encryptedValue: z.ZodOptional<z.ZodString>;
10853
+ subagentId: z.ZodOptional<z.ZodString>;
10461
10854
  } & {
10462
10855
  role: z.ZodLiteral<"system">;
10463
10856
  content: z.ZodString;
@@ -10466,17 +10859,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10466
10859
  content: string;
10467
10860
  id: string;
10468
10861
  name?: string | undefined;
10862
+ subagentId?: string | undefined;
10469
10863
  encryptedValue?: string | undefined;
10470
10864
  }, {
10471
10865
  role: "system";
10472
10866
  content: string;
10473
10867
  id: string;
10474
10868
  name?: string | undefined;
10869
+ subagentId?: string | undefined;
10475
10870
  encryptedValue?: string | undefined;
10476
10871
  }>, z.ZodObject<{
10477
10872
  id: z.ZodString;
10478
10873
  name: z.ZodOptional<z.ZodString>;
10479
10874
  encryptedValue: z.ZodOptional<z.ZodString>;
10875
+ subagentId: z.ZodOptional<z.ZodString>;
10480
10876
  } & {
10481
10877
  role: z.ZodLiteral<"assistant">;
10482
10878
  content: z.ZodOptional<z.ZodString>;
@@ -10515,6 +10911,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10515
10911
  role: "assistant";
10516
10912
  id: string;
10517
10913
  name?: string | undefined;
10914
+ subagentId?: string | undefined;
10518
10915
  content?: string | undefined;
10519
10916
  encryptedValue?: string | undefined;
10520
10917
  toolCalls?: {
@@ -10530,6 +10927,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10530
10927
  role: "assistant";
10531
10928
  id: string;
10532
10929
  name?: string | undefined;
10930
+ subagentId?: string | undefined;
10533
10931
  content?: string | undefined;
10534
10932
  encryptedValue?: string | undefined;
10535
10933
  toolCalls?: {
@@ -10545,6 +10943,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10545
10943
  id: z.ZodString;
10546
10944
  name: z.ZodOptional<z.ZodString>;
10547
10945
  encryptedValue: z.ZodOptional<z.ZodString>;
10946
+ subagentId: z.ZodOptional<z.ZodString>;
10548
10947
  } & {
10549
10948
  role: z.ZodLiteral<"user">;
10550
10949
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -10965,6 +11364,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10965
11364
  })[];
10966
11365
  id: string;
10967
11366
  name?: string | undefined;
11367
+ subagentId?: string | undefined;
10968
11368
  encryptedValue?: string | undefined;
10969
11369
  }, {
10970
11370
  role: "user";
@@ -11029,6 +11429,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11029
11429
  })[];
11030
11430
  id: string;
11031
11431
  name?: string | undefined;
11432
+ subagentId?: string | undefined;
11032
11433
  encryptedValue?: string | undefined;
11033
11434
  }>, z.ZodObject<{
11034
11435
  id: z.ZodString;
@@ -11037,11 +11438,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11037
11438
  toolCallId: z.ZodString;
11038
11439
  error: z.ZodOptional<z.ZodString>;
11039
11440
  encryptedValue: z.ZodOptional<z.ZodString>;
11441
+ subagentId: z.ZodOptional<z.ZodString>;
11040
11442
  }, "strip", z.ZodTypeAny, {
11041
11443
  role: "tool";
11042
11444
  toolCallId: string;
11043
11445
  content: string;
11044
11446
  id: string;
11447
+ subagentId?: string | undefined;
11045
11448
  encryptedValue?: string | undefined;
11046
11449
  error?: string | undefined;
11047
11450
  }, {
@@ -11049,6 +11452,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11049
11452
  toolCallId: string;
11050
11453
  content: string;
11051
11454
  id: string;
11455
+ subagentId?: string | undefined;
11052
11456
  encryptedValue?: string | undefined;
11053
11457
  error?: string | undefined;
11054
11458
  }>, z.ZodObject<{
@@ -11056,30 +11460,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11056
11460
  role: z.ZodLiteral<"activity">;
11057
11461
  activityType: z.ZodString;
11058
11462
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
11463
+ subagentId: z.ZodOptional<z.ZodString>;
11059
11464
  }, "strip", z.ZodTypeAny, {
11060
11465
  role: "activity";
11061
11466
  content: Record<string, any>;
11062
11467
  id: string;
11063
11468
  activityType: string;
11469
+ subagentId?: string | undefined;
11064
11470
  }, {
11065
11471
  role: "activity";
11066
11472
  content: Record<string, any>;
11067
11473
  id: string;
11068
11474
  activityType: string;
11475
+ subagentId?: string | undefined;
11069
11476
  }>, z.ZodObject<{
11070
11477
  id: z.ZodString;
11071
11478
  role: z.ZodLiteral<"reasoning">;
11072
11479
  content: z.ZodString;
11073
11480
  encryptedValue: z.ZodOptional<z.ZodString>;
11481
+ subagentId: z.ZodOptional<z.ZodString>;
11074
11482
  }, "strip", z.ZodTypeAny, {
11075
11483
  role: "reasoning";
11076
11484
  content: string;
11077
11485
  id: string;
11486
+ subagentId?: string | undefined;
11078
11487
  encryptedValue?: string | undefined;
11079
11488
  }, {
11080
11489
  role: "reasoning";
11081
11490
  content: string;
11082
11491
  id: string;
11492
+ subagentId?: string | undefined;
11083
11493
  encryptedValue?: string | undefined;
11084
11494
  }>]>, "many">;
11085
11495
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -11091,6 +11501,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11091
11501
  id: z.ZodString;
11092
11502
  name: z.ZodOptional<z.ZodString>;
11093
11503
  encryptedValue: z.ZodOptional<z.ZodString>;
11504
+ subagentId: z.ZodOptional<z.ZodString>;
11094
11505
  } & {
11095
11506
  role: z.ZodLiteral<"developer">;
11096
11507
  content: z.ZodString;
@@ -11099,17 +11510,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11099
11510
  content: string;
11100
11511
  id: string;
11101
11512
  name?: string | undefined;
11513
+ subagentId?: string | undefined;
11102
11514
  encryptedValue?: string | undefined;
11103
11515
  }, {
11104
11516
  role: "developer";
11105
11517
  content: string;
11106
11518
  id: string;
11107
11519
  name?: string | undefined;
11520
+ subagentId?: string | undefined;
11108
11521
  encryptedValue?: string | undefined;
11109
11522
  }>, z.ZodObject<{
11110
11523
  id: z.ZodString;
11111
11524
  name: z.ZodOptional<z.ZodString>;
11112
11525
  encryptedValue: z.ZodOptional<z.ZodString>;
11526
+ subagentId: z.ZodOptional<z.ZodString>;
11113
11527
  } & {
11114
11528
  role: z.ZodLiteral<"system">;
11115
11529
  content: z.ZodString;
@@ -11118,17 +11532,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11118
11532
  content: string;
11119
11533
  id: string;
11120
11534
  name?: string | undefined;
11535
+ subagentId?: string | undefined;
11121
11536
  encryptedValue?: string | undefined;
11122
11537
  }, {
11123
11538
  role: "system";
11124
11539
  content: string;
11125
11540
  id: string;
11126
11541
  name?: string | undefined;
11542
+ subagentId?: string | undefined;
11127
11543
  encryptedValue?: string | undefined;
11128
11544
  }>, z.ZodObject<{
11129
11545
  id: z.ZodString;
11130
11546
  name: z.ZodOptional<z.ZodString>;
11131
11547
  encryptedValue: z.ZodOptional<z.ZodString>;
11548
+ subagentId: z.ZodOptional<z.ZodString>;
11132
11549
  } & {
11133
11550
  role: z.ZodLiteral<"assistant">;
11134
11551
  content: z.ZodOptional<z.ZodString>;
@@ -11167,6 +11584,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11167
11584
  role: "assistant";
11168
11585
  id: string;
11169
11586
  name?: string | undefined;
11587
+ subagentId?: string | undefined;
11170
11588
  content?: string | undefined;
11171
11589
  encryptedValue?: string | undefined;
11172
11590
  toolCalls?: {
@@ -11182,6 +11600,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11182
11600
  role: "assistant";
11183
11601
  id: string;
11184
11602
  name?: string | undefined;
11603
+ subagentId?: string | undefined;
11185
11604
  content?: string | undefined;
11186
11605
  encryptedValue?: string | undefined;
11187
11606
  toolCalls?: {
@@ -11197,6 +11616,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11197
11616
  id: z.ZodString;
11198
11617
  name: z.ZodOptional<z.ZodString>;
11199
11618
  encryptedValue: z.ZodOptional<z.ZodString>;
11619
+ subagentId: z.ZodOptional<z.ZodString>;
11200
11620
  } & {
11201
11621
  role: z.ZodLiteral<"user">;
11202
11622
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -11617,6 +12037,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11617
12037
  })[];
11618
12038
  id: string;
11619
12039
  name?: string | undefined;
12040
+ subagentId?: string | undefined;
11620
12041
  encryptedValue?: string | undefined;
11621
12042
  }, {
11622
12043
  role: "user";
@@ -11681,6 +12102,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11681
12102
  })[];
11682
12103
  id: string;
11683
12104
  name?: string | undefined;
12105
+ subagentId?: string | undefined;
11684
12106
  encryptedValue?: string | undefined;
11685
12107
  }>, z.ZodObject<{
11686
12108
  id: z.ZodString;
@@ -11689,11 +12111,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11689
12111
  toolCallId: z.ZodString;
11690
12112
  error: z.ZodOptional<z.ZodString>;
11691
12113
  encryptedValue: z.ZodOptional<z.ZodString>;
12114
+ subagentId: z.ZodOptional<z.ZodString>;
11692
12115
  }, "strip", z.ZodTypeAny, {
11693
12116
  role: "tool";
11694
12117
  toolCallId: string;
11695
12118
  content: string;
11696
12119
  id: string;
12120
+ subagentId?: string | undefined;
11697
12121
  encryptedValue?: string | undefined;
11698
12122
  error?: string | undefined;
11699
12123
  }, {
@@ -11701,6 +12125,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11701
12125
  toolCallId: string;
11702
12126
  content: string;
11703
12127
  id: string;
12128
+ subagentId?: string | undefined;
11704
12129
  encryptedValue?: string | undefined;
11705
12130
  error?: string | undefined;
11706
12131
  }>, z.ZodObject<{
@@ -11708,30 +12133,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11708
12133
  role: z.ZodLiteral<"activity">;
11709
12134
  activityType: z.ZodString;
11710
12135
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
12136
+ subagentId: z.ZodOptional<z.ZodString>;
11711
12137
  }, "strip", z.ZodTypeAny, {
11712
12138
  role: "activity";
11713
12139
  content: Record<string, any>;
11714
12140
  id: string;
11715
12141
  activityType: string;
12142
+ subagentId?: string | undefined;
11716
12143
  }, {
11717
12144
  role: "activity";
11718
12145
  content: Record<string, any>;
11719
12146
  id: string;
11720
12147
  activityType: string;
12148
+ subagentId?: string | undefined;
11721
12149
  }>, z.ZodObject<{
11722
12150
  id: z.ZodString;
11723
12151
  role: z.ZodLiteral<"reasoning">;
11724
12152
  content: z.ZodString;
11725
12153
  encryptedValue: z.ZodOptional<z.ZodString>;
12154
+ subagentId: z.ZodOptional<z.ZodString>;
11726
12155
  }, "strip", z.ZodTypeAny, {
11727
12156
  role: "reasoning";
11728
12157
  content: string;
11729
12158
  id: string;
12159
+ subagentId?: string | undefined;
11730
12160
  encryptedValue?: string | undefined;
11731
12161
  }, {
11732
12162
  role: "reasoning";
11733
12163
  content: string;
11734
12164
  id: string;
12165
+ subagentId?: string | undefined;
11735
12166
  encryptedValue?: string | undefined;
11736
12167
  }>]>, "many">;
11737
12168
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -11743,6 +12174,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11743
12174
  id: z.ZodString;
11744
12175
  name: z.ZodOptional<z.ZodString>;
11745
12176
  encryptedValue: z.ZodOptional<z.ZodString>;
12177
+ subagentId: z.ZodOptional<z.ZodString>;
11746
12178
  } & {
11747
12179
  role: z.ZodLiteral<"developer">;
11748
12180
  content: z.ZodString;
@@ -11751,17 +12183,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11751
12183
  content: string;
11752
12184
  id: string;
11753
12185
  name?: string | undefined;
12186
+ subagentId?: string | undefined;
11754
12187
  encryptedValue?: string | undefined;
11755
12188
  }, {
11756
12189
  role: "developer";
11757
12190
  content: string;
11758
12191
  id: string;
11759
12192
  name?: string | undefined;
12193
+ subagentId?: string | undefined;
11760
12194
  encryptedValue?: string | undefined;
11761
12195
  }>, z.ZodObject<{
11762
12196
  id: z.ZodString;
11763
12197
  name: z.ZodOptional<z.ZodString>;
11764
12198
  encryptedValue: z.ZodOptional<z.ZodString>;
12199
+ subagentId: z.ZodOptional<z.ZodString>;
11765
12200
  } & {
11766
12201
  role: z.ZodLiteral<"system">;
11767
12202
  content: z.ZodString;
@@ -11770,17 +12205,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11770
12205
  content: string;
11771
12206
  id: string;
11772
12207
  name?: string | undefined;
12208
+ subagentId?: string | undefined;
11773
12209
  encryptedValue?: string | undefined;
11774
12210
  }, {
11775
12211
  role: "system";
11776
12212
  content: string;
11777
12213
  id: string;
11778
12214
  name?: string | undefined;
12215
+ subagentId?: string | undefined;
11779
12216
  encryptedValue?: string | undefined;
11780
12217
  }>, z.ZodObject<{
11781
12218
  id: z.ZodString;
11782
12219
  name: z.ZodOptional<z.ZodString>;
11783
12220
  encryptedValue: z.ZodOptional<z.ZodString>;
12221
+ subagentId: z.ZodOptional<z.ZodString>;
11784
12222
  } & {
11785
12223
  role: z.ZodLiteral<"assistant">;
11786
12224
  content: z.ZodOptional<z.ZodString>;
@@ -11819,6 +12257,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11819
12257
  role: "assistant";
11820
12258
  id: string;
11821
12259
  name?: string | undefined;
12260
+ subagentId?: string | undefined;
11822
12261
  content?: string | undefined;
11823
12262
  encryptedValue?: string | undefined;
11824
12263
  toolCalls?: {
@@ -11834,6 +12273,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11834
12273
  role: "assistant";
11835
12274
  id: string;
11836
12275
  name?: string | undefined;
12276
+ subagentId?: string | undefined;
11837
12277
  content?: string | undefined;
11838
12278
  encryptedValue?: string | undefined;
11839
12279
  toolCalls?: {
@@ -11849,6 +12289,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11849
12289
  id: z.ZodString;
11850
12290
  name: z.ZodOptional<z.ZodString>;
11851
12291
  encryptedValue: z.ZodOptional<z.ZodString>;
12292
+ subagentId: z.ZodOptional<z.ZodString>;
11852
12293
  } & {
11853
12294
  role: z.ZodLiteral<"user">;
11854
12295
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -12269,6 +12710,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12269
12710
  })[];
12270
12711
  id: string;
12271
12712
  name?: string | undefined;
12713
+ subagentId?: string | undefined;
12272
12714
  encryptedValue?: string | undefined;
12273
12715
  }, {
12274
12716
  role: "user";
@@ -12333,6 +12775,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12333
12775
  })[];
12334
12776
  id: string;
12335
12777
  name?: string | undefined;
12778
+ subagentId?: string | undefined;
12336
12779
  encryptedValue?: string | undefined;
12337
12780
  }>, z.ZodObject<{
12338
12781
  id: z.ZodString;
@@ -12341,11 +12784,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12341
12784
  toolCallId: z.ZodString;
12342
12785
  error: z.ZodOptional<z.ZodString>;
12343
12786
  encryptedValue: z.ZodOptional<z.ZodString>;
12787
+ subagentId: z.ZodOptional<z.ZodString>;
12344
12788
  }, "strip", z.ZodTypeAny, {
12345
12789
  role: "tool";
12346
12790
  toolCallId: string;
12347
12791
  content: string;
12348
12792
  id: string;
12793
+ subagentId?: string | undefined;
12349
12794
  encryptedValue?: string | undefined;
12350
12795
  error?: string | undefined;
12351
12796
  }, {
@@ -12353,6 +12798,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12353
12798
  toolCallId: string;
12354
12799
  content: string;
12355
12800
  id: string;
12801
+ subagentId?: string | undefined;
12356
12802
  encryptedValue?: string | undefined;
12357
12803
  error?: string | undefined;
12358
12804
  }>, z.ZodObject<{
@@ -12360,30 +12806,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12360
12806
  role: z.ZodLiteral<"activity">;
12361
12807
  activityType: z.ZodString;
12362
12808
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
12809
+ subagentId: z.ZodOptional<z.ZodString>;
12363
12810
  }, "strip", z.ZodTypeAny, {
12364
12811
  role: "activity";
12365
12812
  content: Record<string, any>;
12366
12813
  id: string;
12367
12814
  activityType: string;
12815
+ subagentId?: string | undefined;
12368
12816
  }, {
12369
12817
  role: "activity";
12370
12818
  content: Record<string, any>;
12371
12819
  id: string;
12372
12820
  activityType: string;
12821
+ subagentId?: string | undefined;
12373
12822
  }>, z.ZodObject<{
12374
12823
  id: z.ZodString;
12375
12824
  role: z.ZodLiteral<"reasoning">;
12376
12825
  content: z.ZodString;
12377
12826
  encryptedValue: z.ZodOptional<z.ZodString>;
12827
+ subagentId: z.ZodOptional<z.ZodString>;
12378
12828
  }, "strip", z.ZodTypeAny, {
12379
12829
  role: "reasoning";
12380
12830
  content: string;
12381
12831
  id: string;
12832
+ subagentId?: string | undefined;
12382
12833
  encryptedValue?: string | undefined;
12383
12834
  }, {
12384
12835
  role: "reasoning";
12385
12836
  content: string;
12386
12837
  id: string;
12838
+ subagentId?: string | undefined;
12387
12839
  encryptedValue?: string | undefined;
12388
12840
  }>]>, "many">;
12389
12841
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
@@ -12395,6 +12847,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12395
12847
  activityType: z.ZodString;
12396
12848
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
12397
12849
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12850
+ subagentId: z.ZodOptional<z.ZodString>;
12398
12851
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12399
12852
  timestamp: z.ZodOptional<z.ZodNumber>;
12400
12853
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12404,6 +12857,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12404
12857
  activityType: z.ZodString;
12405
12858
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
12406
12859
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12860
+ subagentId: z.ZodOptional<z.ZodString>;
12407
12861
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12408
12862
  timestamp: z.ZodOptional<z.ZodNumber>;
12409
12863
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12413,6 +12867,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12413
12867
  activityType: z.ZodString;
12414
12868
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
12415
12869
  replace: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12870
+ subagentId: z.ZodOptional<z.ZodString>;
12416
12871
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
12417
12872
  timestamp: z.ZodOptional<z.ZodNumber>;
12418
12873
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12444,6 +12899,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12444
12899
  type: z.ZodLiteral<EventType.RAW>;
12445
12900
  event: z.ZodAny;
12446
12901
  source: z.ZodOptional<z.ZodString>;
12902
+ subagentId: z.ZodOptional<z.ZodString>;
12447
12903
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12448
12904
  timestamp: z.ZodOptional<z.ZodNumber>;
12449
12905
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12451,6 +12907,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12451
12907
  type: z.ZodLiteral<EventType.RAW>;
12452
12908
  event: z.ZodAny;
12453
12909
  source: z.ZodOptional<z.ZodString>;
12910
+ subagentId: z.ZodOptional<z.ZodString>;
12454
12911
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12455
12912
  timestamp: z.ZodOptional<z.ZodNumber>;
12456
12913
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12458,6 +12915,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12458
12915
  type: z.ZodLiteral<EventType.RAW>;
12459
12916
  event: z.ZodAny;
12460
12917
  source: z.ZodOptional<z.ZodString>;
12918
+ subagentId: z.ZodOptional<z.ZodString>;
12461
12919
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
12462
12920
  timestamp: z.ZodOptional<z.ZodNumber>;
12463
12921
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12465,6 +12923,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12465
12923
  type: z.ZodLiteral<EventType.CUSTOM>;
12466
12924
  name: z.ZodString;
12467
12925
  value: z.ZodAny;
12926
+ subagentId: z.ZodOptional<z.ZodString>;
12468
12927
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12469
12928
  timestamp: z.ZodOptional<z.ZodNumber>;
12470
12929
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12472,6 +12931,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12472
12931
  type: z.ZodLiteral<EventType.CUSTOM>;
12473
12932
  name: z.ZodString;
12474
12933
  value: z.ZodAny;
12934
+ subagentId: z.ZodOptional<z.ZodString>;
12475
12935
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12476
12936
  timestamp: z.ZodOptional<z.ZodNumber>;
12477
12937
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12479,6 +12939,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12479
12939
  type: z.ZodLiteral<EventType.CUSTOM>;
12480
12940
  name: z.ZodString;
12481
12941
  value: z.ZodAny;
12942
+ subagentId: z.ZodOptional<z.ZodString>;
12482
12943
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
12483
12944
  timestamp: z.ZodOptional<z.ZodNumber>;
12484
12945
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -12496,6 +12957,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12496
12957
  id: z.ZodString;
12497
12958
  name: z.ZodOptional<z.ZodString>;
12498
12959
  encryptedValue: z.ZodOptional<z.ZodString>;
12960
+ subagentId: z.ZodOptional<z.ZodString>;
12499
12961
  } & {
12500
12962
  role: z.ZodLiteral<"developer">;
12501
12963
  content: z.ZodString;
@@ -12504,17 +12966,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12504
12966
  content: string;
12505
12967
  id: string;
12506
12968
  name?: string | undefined;
12969
+ subagentId?: string | undefined;
12507
12970
  encryptedValue?: string | undefined;
12508
12971
  }, {
12509
12972
  role: "developer";
12510
12973
  content: string;
12511
12974
  id: string;
12512
12975
  name?: string | undefined;
12976
+ subagentId?: string | undefined;
12513
12977
  encryptedValue?: string | undefined;
12514
12978
  }>, z.ZodObject<{
12515
12979
  id: z.ZodString;
12516
12980
  name: z.ZodOptional<z.ZodString>;
12517
12981
  encryptedValue: z.ZodOptional<z.ZodString>;
12982
+ subagentId: z.ZodOptional<z.ZodString>;
12518
12983
  } & {
12519
12984
  role: z.ZodLiteral<"system">;
12520
12985
  content: z.ZodString;
@@ -12523,17 +12988,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12523
12988
  content: string;
12524
12989
  id: string;
12525
12990
  name?: string | undefined;
12991
+ subagentId?: string | undefined;
12526
12992
  encryptedValue?: string | undefined;
12527
12993
  }, {
12528
12994
  role: "system";
12529
12995
  content: string;
12530
12996
  id: string;
12531
12997
  name?: string | undefined;
12998
+ subagentId?: string | undefined;
12532
12999
  encryptedValue?: string | undefined;
12533
13000
  }>, z.ZodObject<{
12534
13001
  id: z.ZodString;
12535
13002
  name: z.ZodOptional<z.ZodString>;
12536
13003
  encryptedValue: z.ZodOptional<z.ZodString>;
13004
+ subagentId: z.ZodOptional<z.ZodString>;
12537
13005
  } & {
12538
13006
  role: z.ZodLiteral<"assistant">;
12539
13007
  content: z.ZodOptional<z.ZodString>;
@@ -12572,6 +13040,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12572
13040
  role: "assistant";
12573
13041
  id: string;
12574
13042
  name?: string | undefined;
13043
+ subagentId?: string | undefined;
12575
13044
  content?: string | undefined;
12576
13045
  encryptedValue?: string | undefined;
12577
13046
  toolCalls?: {
@@ -12587,6 +13056,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12587
13056
  role: "assistant";
12588
13057
  id: string;
12589
13058
  name?: string | undefined;
13059
+ subagentId?: string | undefined;
12590
13060
  content?: string | undefined;
12591
13061
  encryptedValue?: string | undefined;
12592
13062
  toolCalls?: {
@@ -12602,6 +13072,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12602
13072
  id: z.ZodString;
12603
13073
  name: z.ZodOptional<z.ZodString>;
12604
13074
  encryptedValue: z.ZodOptional<z.ZodString>;
13075
+ subagentId: z.ZodOptional<z.ZodString>;
12605
13076
  } & {
12606
13077
  role: z.ZodLiteral<"user">;
12607
13078
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -13022,6 +13493,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13022
13493
  })[];
13023
13494
  id: string;
13024
13495
  name?: string | undefined;
13496
+ subagentId?: string | undefined;
13025
13497
  encryptedValue?: string | undefined;
13026
13498
  }, {
13027
13499
  role: "user";
@@ -13086,6 +13558,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13086
13558
  })[];
13087
13559
  id: string;
13088
13560
  name?: string | undefined;
13561
+ subagentId?: string | undefined;
13089
13562
  encryptedValue?: string | undefined;
13090
13563
  }>, z.ZodObject<{
13091
13564
  id: z.ZodString;
@@ -13094,11 +13567,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13094
13567
  toolCallId: z.ZodString;
13095
13568
  error: z.ZodOptional<z.ZodString>;
13096
13569
  encryptedValue: z.ZodOptional<z.ZodString>;
13570
+ subagentId: z.ZodOptional<z.ZodString>;
13097
13571
  }, "strip", z.ZodTypeAny, {
13098
13572
  role: "tool";
13099
13573
  toolCallId: string;
13100
13574
  content: string;
13101
13575
  id: string;
13576
+ subagentId?: string | undefined;
13102
13577
  encryptedValue?: string | undefined;
13103
13578
  error?: string | undefined;
13104
13579
  }, {
@@ -13106,6 +13581,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13106
13581
  toolCallId: string;
13107
13582
  content: string;
13108
13583
  id: string;
13584
+ subagentId?: string | undefined;
13109
13585
  encryptedValue?: string | undefined;
13110
13586
  error?: string | undefined;
13111
13587
  }>, z.ZodObject<{
@@ -13113,30 +13589,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13113
13589
  role: z.ZodLiteral<"activity">;
13114
13590
  activityType: z.ZodString;
13115
13591
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
13592
+ subagentId: z.ZodOptional<z.ZodString>;
13116
13593
  }, "strip", z.ZodTypeAny, {
13117
13594
  role: "activity";
13118
13595
  content: Record<string, any>;
13119
13596
  id: string;
13120
13597
  activityType: string;
13598
+ subagentId?: string | undefined;
13121
13599
  }, {
13122
13600
  role: "activity";
13123
13601
  content: Record<string, any>;
13124
13602
  id: string;
13125
13603
  activityType: string;
13604
+ subagentId?: string | undefined;
13126
13605
  }>, z.ZodObject<{
13127
13606
  id: z.ZodString;
13128
13607
  role: z.ZodLiteral<"reasoning">;
13129
13608
  content: z.ZodString;
13130
13609
  encryptedValue: z.ZodOptional<z.ZodString>;
13610
+ subagentId: z.ZodOptional<z.ZodString>;
13131
13611
  }, "strip", z.ZodTypeAny, {
13132
13612
  role: "reasoning";
13133
13613
  content: string;
13134
13614
  id: string;
13615
+ subagentId?: string | undefined;
13135
13616
  encryptedValue?: string | undefined;
13136
13617
  }, {
13137
13618
  role: "reasoning";
13138
13619
  content: string;
13139
13620
  id: string;
13621
+ subagentId?: string | undefined;
13140
13622
  encryptedValue?: string | undefined;
13141
13623
  }>]>, "many">;
13142
13624
  tools: z.ZodArray<z.ZodObject<{
@@ -13185,17 +13667,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13185
13667
  content: string;
13186
13668
  id: string;
13187
13669
  name?: string | undefined;
13670
+ subagentId?: string | undefined;
13188
13671
  encryptedValue?: string | undefined;
13189
13672
  } | {
13190
13673
  role: "system";
13191
13674
  content: string;
13192
13675
  id: string;
13193
13676
  name?: string | undefined;
13677
+ subagentId?: string | undefined;
13194
13678
  encryptedValue?: string | undefined;
13195
13679
  } | {
13196
13680
  role: "assistant";
13197
13681
  id: string;
13198
13682
  name?: string | undefined;
13683
+ subagentId?: string | undefined;
13199
13684
  content?: string | undefined;
13200
13685
  encryptedValue?: string | undefined;
13201
13686
  toolCalls?: {
@@ -13270,12 +13755,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13270
13755
  })[];
13271
13756
  id: string;
13272
13757
  name?: string | undefined;
13758
+ subagentId?: string | undefined;
13273
13759
  encryptedValue?: string | undefined;
13274
13760
  } | {
13275
13761
  role: "tool";
13276
13762
  toolCallId: string;
13277
13763
  content: string;
13278
13764
  id: string;
13765
+ subagentId?: string | undefined;
13279
13766
  encryptedValue?: string | undefined;
13280
13767
  error?: string | undefined;
13281
13768
  } | {
@@ -13283,10 +13770,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13283
13770
  content: Record<string, any>;
13284
13771
  id: string;
13285
13772
  activityType: string;
13773
+ subagentId?: string | undefined;
13286
13774
  } | {
13287
13775
  role: "reasoning";
13288
13776
  content: string;
13289
13777
  id: string;
13778
+ subagentId?: string | undefined;
13290
13779
  encryptedValue?: string | undefined;
13291
13780
  })[];
13292
13781
  threadId: string;
@@ -13315,17 +13804,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13315
13804
  content: string;
13316
13805
  id: string;
13317
13806
  name?: string | undefined;
13807
+ subagentId?: string | undefined;
13318
13808
  encryptedValue?: string | undefined;
13319
13809
  } | {
13320
13810
  role: "system";
13321
13811
  content: string;
13322
13812
  id: string;
13323
13813
  name?: string | undefined;
13814
+ subagentId?: string | undefined;
13324
13815
  encryptedValue?: string | undefined;
13325
13816
  } | {
13326
13817
  role: "assistant";
13327
13818
  id: string;
13328
13819
  name?: string | undefined;
13820
+ subagentId?: string | undefined;
13329
13821
  content?: string | undefined;
13330
13822
  encryptedValue?: string | undefined;
13331
13823
  toolCalls?: {
@@ -13400,12 +13892,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13400
13892
  })[];
13401
13893
  id: string;
13402
13894
  name?: string | undefined;
13895
+ subagentId?: string | undefined;
13403
13896
  encryptedValue?: string | undefined;
13404
13897
  } | {
13405
13898
  role: "tool";
13406
13899
  toolCallId: string;
13407
13900
  content: string;
13408
13901
  id: string;
13902
+ subagentId?: string | undefined;
13409
13903
  encryptedValue?: string | undefined;
13410
13904
  error?: string | undefined;
13411
13905
  } | {
@@ -13413,10 +13907,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13413
13907
  content: Record<string, any>;
13414
13908
  id: string;
13415
13909
  activityType: string;
13910
+ subagentId?: string | undefined;
13416
13911
  } | {
13417
13912
  role: "reasoning";
13418
13913
  content: string;
13419
13914
  id: string;
13915
+ subagentId?: string | undefined;
13420
13916
  encryptedValue?: string | undefined;
13421
13917
  })[];
13422
13918
  threadId: string;
@@ -13457,6 +13953,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13457
13953
  id: z.ZodString;
13458
13954
  name: z.ZodOptional<z.ZodString>;
13459
13955
  encryptedValue: z.ZodOptional<z.ZodString>;
13956
+ subagentId: z.ZodOptional<z.ZodString>;
13460
13957
  } & {
13461
13958
  role: z.ZodLiteral<"developer">;
13462
13959
  content: z.ZodString;
@@ -13465,17 +13962,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13465
13962
  content: string;
13466
13963
  id: string;
13467
13964
  name?: string | undefined;
13965
+ subagentId?: string | undefined;
13468
13966
  encryptedValue?: string | undefined;
13469
13967
  }, {
13470
13968
  role: "developer";
13471
13969
  content: string;
13472
13970
  id: string;
13473
13971
  name?: string | undefined;
13972
+ subagentId?: string | undefined;
13474
13973
  encryptedValue?: string | undefined;
13475
13974
  }>, z.ZodObject<{
13476
13975
  id: z.ZodString;
13477
13976
  name: z.ZodOptional<z.ZodString>;
13478
13977
  encryptedValue: z.ZodOptional<z.ZodString>;
13978
+ subagentId: z.ZodOptional<z.ZodString>;
13479
13979
  } & {
13480
13980
  role: z.ZodLiteral<"system">;
13481
13981
  content: z.ZodString;
@@ -13484,17 +13984,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13484
13984
  content: string;
13485
13985
  id: string;
13486
13986
  name?: string | undefined;
13987
+ subagentId?: string | undefined;
13487
13988
  encryptedValue?: string | undefined;
13488
13989
  }, {
13489
13990
  role: "system";
13490
13991
  content: string;
13491
13992
  id: string;
13492
13993
  name?: string | undefined;
13994
+ subagentId?: string | undefined;
13493
13995
  encryptedValue?: string | undefined;
13494
13996
  }>, z.ZodObject<{
13495
13997
  id: z.ZodString;
13496
13998
  name: z.ZodOptional<z.ZodString>;
13497
13999
  encryptedValue: z.ZodOptional<z.ZodString>;
14000
+ subagentId: z.ZodOptional<z.ZodString>;
13498
14001
  } & {
13499
14002
  role: z.ZodLiteral<"assistant">;
13500
14003
  content: z.ZodOptional<z.ZodString>;
@@ -13533,6 +14036,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13533
14036
  role: "assistant";
13534
14037
  id: string;
13535
14038
  name?: string | undefined;
14039
+ subagentId?: string | undefined;
13536
14040
  content?: string | undefined;
13537
14041
  encryptedValue?: string | undefined;
13538
14042
  toolCalls?: {
@@ -13548,6 +14052,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13548
14052
  role: "assistant";
13549
14053
  id: string;
13550
14054
  name?: string | undefined;
14055
+ subagentId?: string | undefined;
13551
14056
  content?: string | undefined;
13552
14057
  encryptedValue?: string | undefined;
13553
14058
  toolCalls?: {
@@ -13563,6 +14068,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13563
14068
  id: z.ZodString;
13564
14069
  name: z.ZodOptional<z.ZodString>;
13565
14070
  encryptedValue: z.ZodOptional<z.ZodString>;
14071
+ subagentId: z.ZodOptional<z.ZodString>;
13566
14072
  } & {
13567
14073
  role: z.ZodLiteral<"user">;
13568
14074
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -13983,6 +14489,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13983
14489
  })[];
13984
14490
  id: string;
13985
14491
  name?: string | undefined;
14492
+ subagentId?: string | undefined;
13986
14493
  encryptedValue?: string | undefined;
13987
14494
  }, {
13988
14495
  role: "user";
@@ -14047,6 +14554,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14047
14554
  })[];
14048
14555
  id: string;
14049
14556
  name?: string | undefined;
14557
+ subagentId?: string | undefined;
14050
14558
  encryptedValue?: string | undefined;
14051
14559
  }>, z.ZodObject<{
14052
14560
  id: z.ZodString;
@@ -14055,11 +14563,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14055
14563
  toolCallId: z.ZodString;
14056
14564
  error: z.ZodOptional<z.ZodString>;
14057
14565
  encryptedValue: z.ZodOptional<z.ZodString>;
14566
+ subagentId: z.ZodOptional<z.ZodString>;
14058
14567
  }, "strip", z.ZodTypeAny, {
14059
14568
  role: "tool";
14060
14569
  toolCallId: string;
14061
14570
  content: string;
14062
14571
  id: string;
14572
+ subagentId?: string | undefined;
14063
14573
  encryptedValue?: string | undefined;
14064
14574
  error?: string | undefined;
14065
14575
  }, {
@@ -14067,6 +14577,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14067
14577
  toolCallId: string;
14068
14578
  content: string;
14069
14579
  id: string;
14580
+ subagentId?: string | undefined;
14070
14581
  encryptedValue?: string | undefined;
14071
14582
  error?: string | undefined;
14072
14583
  }>, z.ZodObject<{
@@ -14074,30 +14585,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14074
14585
  role: z.ZodLiteral<"activity">;
14075
14586
  activityType: z.ZodString;
14076
14587
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
14588
+ subagentId: z.ZodOptional<z.ZodString>;
14077
14589
  }, "strip", z.ZodTypeAny, {
14078
14590
  role: "activity";
14079
14591
  content: Record<string, any>;
14080
14592
  id: string;
14081
14593
  activityType: string;
14594
+ subagentId?: string | undefined;
14082
14595
  }, {
14083
14596
  role: "activity";
14084
14597
  content: Record<string, any>;
14085
14598
  id: string;
14086
14599
  activityType: string;
14600
+ subagentId?: string | undefined;
14087
14601
  }>, z.ZodObject<{
14088
14602
  id: z.ZodString;
14089
14603
  role: z.ZodLiteral<"reasoning">;
14090
14604
  content: z.ZodString;
14091
14605
  encryptedValue: z.ZodOptional<z.ZodString>;
14606
+ subagentId: z.ZodOptional<z.ZodString>;
14092
14607
  }, "strip", z.ZodTypeAny, {
14093
14608
  role: "reasoning";
14094
14609
  content: string;
14095
14610
  id: string;
14611
+ subagentId?: string | undefined;
14096
14612
  encryptedValue?: string | undefined;
14097
14613
  }, {
14098
14614
  role: "reasoning";
14099
14615
  content: string;
14100
14616
  id: string;
14617
+ subagentId?: string | undefined;
14101
14618
  encryptedValue?: string | undefined;
14102
14619
  }>]>, "many">;
14103
14620
  tools: z.ZodArray<z.ZodObject<{
@@ -14146,17 +14663,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14146
14663
  content: string;
14147
14664
  id: string;
14148
14665
  name?: string | undefined;
14666
+ subagentId?: string | undefined;
14149
14667
  encryptedValue?: string | undefined;
14150
14668
  } | {
14151
14669
  role: "system";
14152
14670
  content: string;
14153
14671
  id: string;
14154
14672
  name?: string | undefined;
14673
+ subagentId?: string | undefined;
14155
14674
  encryptedValue?: string | undefined;
14156
14675
  } | {
14157
14676
  role: "assistant";
14158
14677
  id: string;
14159
14678
  name?: string | undefined;
14679
+ subagentId?: string | undefined;
14160
14680
  content?: string | undefined;
14161
14681
  encryptedValue?: string | undefined;
14162
14682
  toolCalls?: {
@@ -14231,12 +14751,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14231
14751
  })[];
14232
14752
  id: string;
14233
14753
  name?: string | undefined;
14754
+ subagentId?: string | undefined;
14234
14755
  encryptedValue?: string | undefined;
14235
14756
  } | {
14236
14757
  role: "tool";
14237
14758
  toolCallId: string;
14238
14759
  content: string;
14239
14760
  id: string;
14761
+ subagentId?: string | undefined;
14240
14762
  encryptedValue?: string | undefined;
14241
14763
  error?: string | undefined;
14242
14764
  } | {
@@ -14244,10 +14766,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14244
14766
  content: Record<string, any>;
14245
14767
  id: string;
14246
14768
  activityType: string;
14769
+ subagentId?: string | undefined;
14247
14770
  } | {
14248
14771
  role: "reasoning";
14249
14772
  content: string;
14250
14773
  id: string;
14774
+ subagentId?: string | undefined;
14251
14775
  encryptedValue?: string | undefined;
14252
14776
  })[];
14253
14777
  threadId: string;
@@ -14276,17 +14800,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14276
14800
  content: string;
14277
14801
  id: string;
14278
14802
  name?: string | undefined;
14803
+ subagentId?: string | undefined;
14279
14804
  encryptedValue?: string | undefined;
14280
14805
  } | {
14281
14806
  role: "system";
14282
14807
  content: string;
14283
14808
  id: string;
14284
14809
  name?: string | undefined;
14810
+ subagentId?: string | undefined;
14285
14811
  encryptedValue?: string | undefined;
14286
14812
  } | {
14287
14813
  role: "assistant";
14288
14814
  id: string;
14289
14815
  name?: string | undefined;
14816
+ subagentId?: string | undefined;
14290
14817
  content?: string | undefined;
14291
14818
  encryptedValue?: string | undefined;
14292
14819
  toolCalls?: {
@@ -14361,12 +14888,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14361
14888
  })[];
14362
14889
  id: string;
14363
14890
  name?: string | undefined;
14891
+ subagentId?: string | undefined;
14364
14892
  encryptedValue?: string | undefined;
14365
14893
  } | {
14366
14894
  role: "tool";
14367
14895
  toolCallId: string;
14368
14896
  content: string;
14369
14897
  id: string;
14898
+ subagentId?: string | undefined;
14370
14899
  encryptedValue?: string | undefined;
14371
14900
  error?: string | undefined;
14372
14901
  } | {
@@ -14374,10 +14903,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14374
14903
  content: Record<string, any>;
14375
14904
  id: string;
14376
14905
  activityType: string;
14906
+ subagentId?: string | undefined;
14377
14907
  } | {
14378
14908
  role: "reasoning";
14379
14909
  content: string;
14380
14910
  id: string;
14911
+ subagentId?: string | undefined;
14381
14912
  encryptedValue?: string | undefined;
14382
14913
  })[];
14383
14914
  threadId: string;
@@ -14418,6 +14949,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14418
14949
  id: z.ZodString;
14419
14950
  name: z.ZodOptional<z.ZodString>;
14420
14951
  encryptedValue: z.ZodOptional<z.ZodString>;
14952
+ subagentId: z.ZodOptional<z.ZodString>;
14421
14953
  } & {
14422
14954
  role: z.ZodLiteral<"developer">;
14423
14955
  content: z.ZodString;
@@ -14426,17 +14958,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14426
14958
  content: string;
14427
14959
  id: string;
14428
14960
  name?: string | undefined;
14961
+ subagentId?: string | undefined;
14429
14962
  encryptedValue?: string | undefined;
14430
14963
  }, {
14431
14964
  role: "developer";
14432
14965
  content: string;
14433
14966
  id: string;
14434
14967
  name?: string | undefined;
14968
+ subagentId?: string | undefined;
14435
14969
  encryptedValue?: string | undefined;
14436
14970
  }>, z.ZodObject<{
14437
14971
  id: z.ZodString;
14438
14972
  name: z.ZodOptional<z.ZodString>;
14439
14973
  encryptedValue: z.ZodOptional<z.ZodString>;
14974
+ subagentId: z.ZodOptional<z.ZodString>;
14440
14975
  } & {
14441
14976
  role: z.ZodLiteral<"system">;
14442
14977
  content: z.ZodString;
@@ -14445,17 +14980,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14445
14980
  content: string;
14446
14981
  id: string;
14447
14982
  name?: string | undefined;
14983
+ subagentId?: string | undefined;
14448
14984
  encryptedValue?: string | undefined;
14449
14985
  }, {
14450
14986
  role: "system";
14451
14987
  content: string;
14452
14988
  id: string;
14453
14989
  name?: string | undefined;
14990
+ subagentId?: string | undefined;
14454
14991
  encryptedValue?: string | undefined;
14455
14992
  }>, z.ZodObject<{
14456
14993
  id: z.ZodString;
14457
14994
  name: z.ZodOptional<z.ZodString>;
14458
14995
  encryptedValue: z.ZodOptional<z.ZodString>;
14996
+ subagentId: z.ZodOptional<z.ZodString>;
14459
14997
  } & {
14460
14998
  role: z.ZodLiteral<"assistant">;
14461
14999
  content: z.ZodOptional<z.ZodString>;
@@ -14494,6 +15032,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14494
15032
  role: "assistant";
14495
15033
  id: string;
14496
15034
  name?: string | undefined;
15035
+ subagentId?: string | undefined;
14497
15036
  content?: string | undefined;
14498
15037
  encryptedValue?: string | undefined;
14499
15038
  toolCalls?: {
@@ -14509,6 +15048,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14509
15048
  role: "assistant";
14510
15049
  id: string;
14511
15050
  name?: string | undefined;
15051
+ subagentId?: string | undefined;
14512
15052
  content?: string | undefined;
14513
15053
  encryptedValue?: string | undefined;
14514
15054
  toolCalls?: {
@@ -14524,6 +15064,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14524
15064
  id: z.ZodString;
14525
15065
  name: z.ZodOptional<z.ZodString>;
14526
15066
  encryptedValue: z.ZodOptional<z.ZodString>;
15067
+ subagentId: z.ZodOptional<z.ZodString>;
14527
15068
  } & {
14528
15069
  role: z.ZodLiteral<"user">;
14529
15070
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -14944,6 +15485,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14944
15485
  })[];
14945
15486
  id: string;
14946
15487
  name?: string | undefined;
15488
+ subagentId?: string | undefined;
14947
15489
  encryptedValue?: string | undefined;
14948
15490
  }, {
14949
15491
  role: "user";
@@ -15008,6 +15550,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15008
15550
  })[];
15009
15551
  id: string;
15010
15552
  name?: string | undefined;
15553
+ subagentId?: string | undefined;
15011
15554
  encryptedValue?: string | undefined;
15012
15555
  }>, z.ZodObject<{
15013
15556
  id: z.ZodString;
@@ -15016,11 +15559,13 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15016
15559
  toolCallId: z.ZodString;
15017
15560
  error: z.ZodOptional<z.ZodString>;
15018
15561
  encryptedValue: z.ZodOptional<z.ZodString>;
15562
+ subagentId: z.ZodOptional<z.ZodString>;
15019
15563
  }, "strip", z.ZodTypeAny, {
15020
15564
  role: "tool";
15021
15565
  toolCallId: string;
15022
15566
  content: string;
15023
15567
  id: string;
15568
+ subagentId?: string | undefined;
15024
15569
  encryptedValue?: string | undefined;
15025
15570
  error?: string | undefined;
15026
15571
  }, {
@@ -15028,6 +15573,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15028
15573
  toolCallId: string;
15029
15574
  content: string;
15030
15575
  id: string;
15576
+ subagentId?: string | undefined;
15031
15577
  encryptedValue?: string | undefined;
15032
15578
  error?: string | undefined;
15033
15579
  }>, z.ZodObject<{
@@ -15035,30 +15581,36 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15035
15581
  role: z.ZodLiteral<"activity">;
15036
15582
  activityType: z.ZodString;
15037
15583
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
15584
+ subagentId: z.ZodOptional<z.ZodString>;
15038
15585
  }, "strip", z.ZodTypeAny, {
15039
15586
  role: "activity";
15040
15587
  content: Record<string, any>;
15041
15588
  id: string;
15042
15589
  activityType: string;
15590
+ subagentId?: string | undefined;
15043
15591
  }, {
15044
15592
  role: "activity";
15045
15593
  content: Record<string, any>;
15046
15594
  id: string;
15047
15595
  activityType: string;
15596
+ subagentId?: string | undefined;
15048
15597
  }>, z.ZodObject<{
15049
15598
  id: z.ZodString;
15050
15599
  role: z.ZodLiteral<"reasoning">;
15051
15600
  content: z.ZodString;
15052
15601
  encryptedValue: z.ZodOptional<z.ZodString>;
15602
+ subagentId: z.ZodOptional<z.ZodString>;
15053
15603
  }, "strip", z.ZodTypeAny, {
15054
15604
  role: "reasoning";
15055
15605
  content: string;
15056
15606
  id: string;
15607
+ subagentId?: string | undefined;
15057
15608
  encryptedValue?: string | undefined;
15058
15609
  }, {
15059
15610
  role: "reasoning";
15060
15611
  content: string;
15061
15612
  id: string;
15613
+ subagentId?: string | undefined;
15062
15614
  encryptedValue?: string | undefined;
15063
15615
  }>]>, "many">;
15064
15616
  tools: z.ZodArray<z.ZodObject<{
@@ -15107,17 +15659,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15107
15659
  content: string;
15108
15660
  id: string;
15109
15661
  name?: string | undefined;
15662
+ subagentId?: string | undefined;
15110
15663
  encryptedValue?: string | undefined;
15111
15664
  } | {
15112
15665
  role: "system";
15113
15666
  content: string;
15114
15667
  id: string;
15115
15668
  name?: string | undefined;
15669
+ subagentId?: string | undefined;
15116
15670
  encryptedValue?: string | undefined;
15117
15671
  } | {
15118
15672
  role: "assistant";
15119
15673
  id: string;
15120
15674
  name?: string | undefined;
15675
+ subagentId?: string | undefined;
15121
15676
  content?: string | undefined;
15122
15677
  encryptedValue?: string | undefined;
15123
15678
  toolCalls?: {
@@ -15192,12 +15747,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15192
15747
  })[];
15193
15748
  id: string;
15194
15749
  name?: string | undefined;
15750
+ subagentId?: string | undefined;
15195
15751
  encryptedValue?: string | undefined;
15196
15752
  } | {
15197
15753
  role: "tool";
15198
15754
  toolCallId: string;
15199
15755
  content: string;
15200
15756
  id: string;
15757
+ subagentId?: string | undefined;
15201
15758
  encryptedValue?: string | undefined;
15202
15759
  error?: string | undefined;
15203
15760
  } | {
@@ -15205,10 +15762,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15205
15762
  content: Record<string, any>;
15206
15763
  id: string;
15207
15764
  activityType: string;
15765
+ subagentId?: string | undefined;
15208
15766
  } | {
15209
15767
  role: "reasoning";
15210
15768
  content: string;
15211
15769
  id: string;
15770
+ subagentId?: string | undefined;
15212
15771
  encryptedValue?: string | undefined;
15213
15772
  })[];
15214
15773
  threadId: string;
@@ -15237,17 +15796,20 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15237
15796
  content: string;
15238
15797
  id: string;
15239
15798
  name?: string | undefined;
15799
+ subagentId?: string | undefined;
15240
15800
  encryptedValue?: string | undefined;
15241
15801
  } | {
15242
15802
  role: "system";
15243
15803
  content: string;
15244
15804
  id: string;
15245
15805
  name?: string | undefined;
15806
+ subagentId?: string | undefined;
15246
15807
  encryptedValue?: string | undefined;
15247
15808
  } | {
15248
15809
  role: "assistant";
15249
15810
  id: string;
15250
15811
  name?: string | undefined;
15812
+ subagentId?: string | undefined;
15251
15813
  content?: string | undefined;
15252
15814
  encryptedValue?: string | undefined;
15253
15815
  toolCalls?: {
@@ -15322,12 +15884,14 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15322
15884
  })[];
15323
15885
  id: string;
15324
15886
  name?: string | undefined;
15887
+ subagentId?: string | undefined;
15325
15888
  encryptedValue?: string | undefined;
15326
15889
  } | {
15327
15890
  role: "tool";
15328
15891
  toolCallId: string;
15329
15892
  content: string;
15330
15893
  id: string;
15894
+ subagentId?: string | undefined;
15331
15895
  encryptedValue?: string | undefined;
15332
15896
  error?: string | undefined;
15333
15897
  } | {
@@ -15335,10 +15899,12 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15335
15899
  content: Record<string, any>;
15336
15900
  id: string;
15337
15901
  activityType: string;
15902
+ subagentId?: string | undefined;
15338
15903
  } | {
15339
15904
  role: "reasoning";
15340
15905
  content: string;
15341
15906
  id: string;
15907
+ subagentId?: string | undefined;
15342
15908
  encryptedValue?: string | undefined;
15343
15909
  })[];
15344
15910
  threadId: string;
@@ -15659,54 +16225,63 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15659
16225
  } & {
15660
16226
  type: z.ZodLiteral<EventType.STEP_STARTED>;
15661
16227
  stepName: z.ZodString;
16228
+ subagentId: z.ZodOptional<z.ZodString>;
15662
16229
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15663
16230
  timestamp: z.ZodOptional<z.ZodNumber>;
15664
16231
  rawEvent: z.ZodOptional<z.ZodAny>;
15665
16232
  } & {
15666
16233
  type: z.ZodLiteral<EventType.STEP_STARTED>;
15667
16234
  stepName: z.ZodString;
16235
+ subagentId: z.ZodOptional<z.ZodString>;
15668
16236
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15669
16237
  timestamp: z.ZodOptional<z.ZodNumber>;
15670
16238
  rawEvent: z.ZodOptional<z.ZodAny>;
15671
16239
  } & {
15672
16240
  type: z.ZodLiteral<EventType.STEP_STARTED>;
15673
16241
  stepName: z.ZodString;
16242
+ subagentId: z.ZodOptional<z.ZodString>;
15674
16243
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15675
16244
  timestamp: z.ZodOptional<z.ZodNumber>;
15676
16245
  rawEvent: z.ZodOptional<z.ZodAny>;
15677
16246
  } & {
15678
16247
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
15679
16248
  stepName: z.ZodString;
16249
+ subagentId: z.ZodOptional<z.ZodString>;
15680
16250
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15681
16251
  timestamp: z.ZodOptional<z.ZodNumber>;
15682
16252
  rawEvent: z.ZodOptional<z.ZodAny>;
15683
16253
  } & {
15684
16254
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
15685
16255
  stepName: z.ZodString;
16256
+ subagentId: z.ZodOptional<z.ZodString>;
15686
16257
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15687
16258
  timestamp: z.ZodOptional<z.ZodNumber>;
15688
16259
  rawEvent: z.ZodOptional<z.ZodAny>;
15689
16260
  } & {
15690
16261
  type: z.ZodLiteral<EventType.STEP_FINISHED>;
15691
16262
  stepName: z.ZodString;
16263
+ subagentId: z.ZodOptional<z.ZodString>;
15692
16264
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15693
16265
  timestamp: z.ZodOptional<z.ZodNumber>;
15694
16266
  rawEvent: z.ZodOptional<z.ZodAny>;
15695
16267
  } & {
15696
16268
  type: z.ZodLiteral<EventType.REASONING_START>;
15697
16269
  messageId: z.ZodString;
16270
+ subagentId: z.ZodOptional<z.ZodString>;
15698
16271
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15699
16272
  timestamp: z.ZodOptional<z.ZodNumber>;
15700
16273
  rawEvent: z.ZodOptional<z.ZodAny>;
15701
16274
  } & {
15702
16275
  type: z.ZodLiteral<EventType.REASONING_START>;
15703
16276
  messageId: z.ZodString;
16277
+ subagentId: z.ZodOptional<z.ZodString>;
15704
16278
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15705
16279
  timestamp: z.ZodOptional<z.ZodNumber>;
15706
16280
  rawEvent: z.ZodOptional<z.ZodAny>;
15707
16281
  } & {
15708
16282
  type: z.ZodLiteral<EventType.REASONING_START>;
15709
16283
  messageId: z.ZodString;
16284
+ subagentId: z.ZodOptional<z.ZodString>;
15710
16285
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15711
16286
  timestamp: z.ZodOptional<z.ZodNumber>;
15712
16287
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15714,6 +16289,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15714
16289
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
15715
16290
  messageId: z.ZodString;
15716
16291
  role: z.ZodLiteral<"reasoning">;
16292
+ subagentId: z.ZodOptional<z.ZodString>;
15717
16293
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15718
16294
  timestamp: z.ZodOptional<z.ZodNumber>;
15719
16295
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15721,6 +16297,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15721
16297
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
15722
16298
  messageId: z.ZodString;
15723
16299
  role: z.ZodLiteral<"reasoning">;
16300
+ subagentId: z.ZodOptional<z.ZodString>;
15724
16301
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15725
16302
  timestamp: z.ZodOptional<z.ZodNumber>;
15726
16303
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15728,6 +16305,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15728
16305
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
15729
16306
  messageId: z.ZodString;
15730
16307
  role: z.ZodLiteral<"reasoning">;
16308
+ subagentId: z.ZodOptional<z.ZodString>;
15731
16309
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15732
16310
  timestamp: z.ZodOptional<z.ZodNumber>;
15733
16311
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15774,6 +16352,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15774
16352
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
15775
16353
  messageId: z.ZodOptional<z.ZodString>;
15776
16354
  delta: z.ZodOptional<z.ZodString>;
16355
+ subagentId: z.ZodOptional<z.ZodString>;
15777
16356
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15778
16357
  timestamp: z.ZodOptional<z.ZodNumber>;
15779
16358
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15781,6 +16360,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15781
16360
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
15782
16361
  messageId: z.ZodOptional<z.ZodString>;
15783
16362
  delta: z.ZodOptional<z.ZodString>;
16363
+ subagentId: z.ZodOptional<z.ZodString>;
15784
16364
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15785
16365
  timestamp: z.ZodOptional<z.ZodNumber>;
15786
16366
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15788,6 +16368,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15788
16368
  type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
15789
16369
  messageId: z.ZodOptional<z.ZodString>;
15790
16370
  delta: z.ZodOptional<z.ZodString>;
16371
+ subagentId: z.ZodOptional<z.ZodString>;
15791
16372
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15792
16373
  timestamp: z.ZodOptional<z.ZodNumber>;
15793
16374
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -15830,6 +16411,75 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15830
16411
  subtype: z.ZodUnion<[z.ZodLiteral<"tool-call">, z.ZodLiteral<"message">]>;
15831
16412
  entityId: z.ZodString;
15832
16413
  encryptedValue: z.ZodString;
16414
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
16415
+ timestamp: z.ZodOptional<z.ZodNumber>;
16416
+ rawEvent: z.ZodOptional<z.ZodAny>;
16417
+ } & {
16418
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
16419
+ subagentId: z.ZodString;
16420
+ name: z.ZodString;
16421
+ description: z.ZodOptional<z.ZodString>;
16422
+ parentSubagentId: z.ZodOptional<z.ZodString>;
16423
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16424
+ timestamp: z.ZodOptional<z.ZodNumber>;
16425
+ rawEvent: z.ZodOptional<z.ZodAny>;
16426
+ } & {
16427
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
16428
+ subagentId: z.ZodString;
16429
+ name: z.ZodString;
16430
+ description: z.ZodOptional<z.ZodString>;
16431
+ parentSubagentId: z.ZodOptional<z.ZodString>;
16432
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16433
+ timestamp: z.ZodOptional<z.ZodNumber>;
16434
+ rawEvent: z.ZodOptional<z.ZodAny>;
16435
+ } & {
16436
+ type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
16437
+ subagentId: z.ZodString;
16438
+ name: z.ZodString;
16439
+ description: z.ZodOptional<z.ZodString>;
16440
+ parentSubagentId: z.ZodOptional<z.ZodString>;
16441
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
16442
+ timestamp: z.ZodOptional<z.ZodNumber>;
16443
+ rawEvent: z.ZodOptional<z.ZodAny>;
16444
+ } & {
16445
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
16446
+ subagentId: z.ZodString;
16447
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16448
+ timestamp: z.ZodOptional<z.ZodNumber>;
16449
+ rawEvent: z.ZodOptional<z.ZodAny>;
16450
+ } & {
16451
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
16452
+ subagentId: z.ZodString;
16453
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16454
+ timestamp: z.ZodOptional<z.ZodNumber>;
16455
+ rawEvent: z.ZodOptional<z.ZodAny>;
16456
+ } & {
16457
+ type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
16458
+ subagentId: z.ZodString;
16459
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
16460
+ timestamp: z.ZodOptional<z.ZodNumber>;
16461
+ rawEvent: z.ZodOptional<z.ZodAny>;
16462
+ } & {
16463
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
16464
+ subagentId: z.ZodString;
16465
+ message: z.ZodString;
16466
+ code: z.ZodOptional<z.ZodString>;
16467
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16468
+ timestamp: z.ZodOptional<z.ZodNumber>;
16469
+ rawEvent: z.ZodOptional<z.ZodAny>;
16470
+ } & {
16471
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
16472
+ subagentId: z.ZodString;
16473
+ message: z.ZodString;
16474
+ code: z.ZodOptional<z.ZodString>;
16475
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16476
+ timestamp: z.ZodOptional<z.ZodNumber>;
16477
+ rawEvent: z.ZodOptional<z.ZodAny>;
16478
+ } & {
16479
+ type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
16480
+ subagentId: z.ZodString;
16481
+ message: z.ZodString;
16482
+ code: z.ZodOptional<z.ZodString>;
15833
16483
  }, z.ZodTypeAny, "passthrough">>]>;
15834
16484
  type BaseEvent = z.infer<typeof BaseEventSchema>;
15835
16485
  type AGUIEvent = z.infer<typeof EventSchemas>;
@@ -15868,6 +16518,9 @@ type AGUIEventByType = {
15868
16518
  [EventType.REASONING_MESSAGE_CHUNK]: ReasoningMessageChunkEvent;
15869
16519
  [EventType.REASONING_END]: ReasoningEndEvent;
15870
16520
  [EventType.REASONING_ENCRYPTED_VALUE]: ReasoningEncryptedValueEvent;
16521
+ [EventType.SUBAGENT_STARTED]: SubagentStartedEvent;
16522
+ [EventType.SUBAGENT_FINISHED]: SubagentFinishedEvent;
16523
+ [EventType.SUBAGENT_ERROR]: SubagentErrorEvent;
15871
16524
  };
15872
16525
  type AGUIEventOf<T extends EventType> = AGUIEventByType[T];
15873
16526
  type EventPayloadOf<T extends EventType> = Omit<AGUIEventOf<T>, keyof BaseEventFields>;
@@ -15906,6 +16559,9 @@ type ReasoningMessageEndEventProps = EventProps<typeof ReasoningMessageEndEventS
15906
16559
  type ReasoningMessageChunkEventProps = EventProps<typeof ReasoningMessageChunkEventSchema>;
15907
16560
  type ReasoningEndEventProps = EventProps<typeof ReasoningEndEventSchema>;
15908
16561
  type ReasoningEncryptedValueEventProps = EventProps<typeof ReasoningEncryptedValueEventSchema>;
16562
+ type SubagentStartedEventProps = EventProps<typeof SubagentStartedEventSchema>;
16563
+ type SubagentFinishedEventProps = EventProps<typeof SubagentFinishedEventSchema>;
16564
+ type SubagentErrorEventProps = EventProps<typeof SubagentErrorEventSchema>;
15909
16565
  type TextMessageStartEvent = z.infer<typeof TextMessageStartEventSchema>;
15910
16566
  type TextMessageContentEvent = z.infer<typeof TextMessageContentEventSchema>;
15911
16567
  type TextMessageEndEvent = z.infer<typeof TextMessageEndEventSchema>;
@@ -15943,6 +16599,9 @@ type ReasoningMessageChunkEvent = z.infer<typeof ReasoningMessageChunkEventSchem
15943
16599
  type ReasoningEndEvent = z.infer<typeof ReasoningEndEventSchema>;
15944
16600
  type ReasoningEncryptedValueEvent = z.infer<typeof ReasoningEncryptedValueEventSchema>;
15945
16601
  type ReasoningEncryptedValueSubtype = z.infer<typeof ReasoningEncryptedValueSubtypeSchema>;
16602
+ type SubagentStartedEvent = z.infer<typeof SubagentStartedEventSchema>;
16603
+ type SubagentFinishedEvent = z.infer<typeof SubagentFinishedEventSchema>;
16604
+ type SubagentErrorEvent = z.infer<typeof SubagentErrorEventSchema>;
15946
16605
  //#endregion
15947
- export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AgentCapabilities, AgentCapabilitiesSchema, AssistantMessage, AssistantMessageSchema, AudioInputContent, AudioInputContentSchema, AudioInputPart, AudioInputPartSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, DocumentInputContent, DocumentInputContentSchema, DocumentInputPart, DocumentInputPartSchema, EventPayloadOf, EventSchemas, EventType, type ExecutionCapabilities, ExecutionCapabilitiesSchema, FunctionCall, FunctionCallSchema, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type IdentityCapabilities, IdentityCapabilitiesSchema, ImageInputContent, ImageInputContentSchema, ImageInputPart, ImageInputPartSchema, InputContent, InputContentDataSource, InputContentDataSourceSchema, InputContentPart, InputContentSchema, InputContentSource, InputContentSourceSchema, InputContentUrlSource, InputContentUrlSourceSchema, Interrupt, InterruptSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type OutputCapabilities, OutputCapabilitiesSchema, RawEvent, RawEventProps, RawEventSchema, type ReasoningCapabilities, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, ResumeEntry, ResumeEntrySchema, ResumeStatus, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, RunFinishedOutcome, RunFinishedOutcomeSchema, RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, type StateCapabilities, StateCapabilitiesSchema, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, type SubAgentInfo, SubAgentInfoSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type TransportCapabilities, TransportCapabilitiesSchema, UserMessage, UserMessageSchema, VideoInputContent, VideoInputContentSchema, VideoInputPart, VideoInputPartSchema };
16606
+ export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AgentCapabilities, AgentCapabilitiesSchema, AssistantMessage, AssistantMessageSchema, AudioInputContent, AudioInputContentSchema, AudioInputPart, AudioInputPartSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, DocumentInputContent, DocumentInputContentSchema, DocumentInputPart, DocumentInputPartSchema, EventPayloadOf, EventSchemas, EventType, type ExecutionCapabilities, ExecutionCapabilitiesSchema, FunctionCall, FunctionCallSchema, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type IdentityCapabilities, IdentityCapabilitiesSchema, ImageInputContent, ImageInputContentSchema, ImageInputPart, ImageInputPartSchema, InputContent, InputContentDataSource, InputContentDataSourceSchema, InputContentPart, InputContentSchema, InputContentSource, InputContentSourceSchema, InputContentUrlSource, InputContentUrlSourceSchema, Interrupt, InterruptSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type OutputCapabilities, OutputCapabilitiesSchema, RawEvent, RawEventProps, RawEventSchema, type ReasoningCapabilities, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, ResumeEntry, ResumeEntrySchema, ResumeStatus, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, RunFinishedOutcome, RunFinishedOutcomeSchema, RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, type StateCapabilities, StateCapabilitiesSchema, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, type SubAgentInfo, SubAgentInfoSchema, SubagentErrorEvent, SubagentErrorEventProps, SubagentErrorEventSchema, SubagentFinishedEvent, SubagentFinishedEventProps, SubagentFinishedEventSchema, SubagentStartedEvent, SubagentStartedEventProps, SubagentStartedEventSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type TransportCapabilities, TransportCapabilitiesSchema, UserMessage, UserMessageSchema, VideoInputContent, VideoInputContentSchema, VideoInputPart, VideoInputPartSchema };
15948
16607
  //# sourceMappingURL=index.d.mts.map