@openai/agents-core 0.0.14 → 0.0.16

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.
Files changed (65) hide show
  1. package/dist/agent.js +6 -1
  2. package/dist/agent.js.map +1 -1
  3. package/dist/agent.mjs +6 -1
  4. package/dist/agent.mjs.map +1 -1
  5. package/dist/extensions/handoffFilters.js +2 -1
  6. package/dist/extensions/handoffFilters.js.map +1 -1
  7. package/dist/extensions/handoffFilters.mjs +2 -1
  8. package/dist/extensions/handoffFilters.mjs.map +1 -1
  9. package/dist/handoff.d.ts +5 -0
  10. package/dist/handoff.js.map +1 -1
  11. package/dist/handoff.mjs.map +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/items.d.ts +40 -32
  18. package/dist/mcp.d.ts +56 -6
  19. package/dist/mcp.js +120 -57
  20. package/dist/mcp.js.map +1 -1
  21. package/dist/mcp.mjs +120 -57
  22. package/dist/mcp.mjs.map +1 -1
  23. package/dist/metadata.js +2 -2
  24. package/dist/metadata.mjs +2 -2
  25. package/dist/runImplementation.js +1 -0
  26. package/dist/runImplementation.js.map +1 -1
  27. package/dist/runImplementation.mjs +1 -0
  28. package/dist/runImplementation.mjs.map +1 -1
  29. package/dist/runState.d.ts +220 -185
  30. package/dist/shims/mcp-server/browser.d.ts +10 -1
  31. package/dist/shims/mcp-server/browser.js +24 -1
  32. package/dist/shims/mcp-server/browser.js.map +1 -1
  33. package/dist/shims/mcp-server/browser.mjs +24 -1
  34. package/dist/shims/mcp-server/browser.mjs.map +1 -1
  35. package/dist/shims/mcp-server/node.d.ts +21 -1
  36. package/dist/shims/mcp-server/node.js +101 -1
  37. package/dist/shims/mcp-server/node.js.map +1 -1
  38. package/dist/shims/mcp-server/node.mjs +101 -1
  39. package/dist/shims/mcp-server/node.mjs.map +1 -1
  40. package/dist/shims/shims-browser.d.ts +1 -1
  41. package/dist/shims/shims-browser.js +1 -1
  42. package/dist/shims/shims-browser.js.map +1 -1
  43. package/dist/shims/shims-browser.mjs +1 -1
  44. package/dist/shims/shims-browser.mjs.map +1 -1
  45. package/dist/shims/shims-node.d.ts +1 -1
  46. package/dist/shims/shims-node.js +1 -1
  47. package/dist/shims/shims-node.js.map +1 -1
  48. package/dist/shims/shims-node.mjs +1 -1
  49. package/dist/shims/shims-node.mjs.map +1 -1
  50. package/dist/shims/shims-workerd.d.ts +1 -1
  51. package/dist/shims/shims-workerd.js +1 -1
  52. package/dist/shims/shims-workerd.js.map +1 -1
  53. package/dist/shims/shims-workerd.mjs +1 -1
  54. package/dist/shims/shims-workerd.mjs.map +1 -1
  55. package/dist/types/protocol.d.ts +232 -220
  56. package/dist/types/protocol.js +11 -1
  57. package/dist/types/protocol.js.map +1 -1
  58. package/dist/types/protocol.mjs +11 -1
  59. package/dist/types/protocol.mjs.map +1 -1
  60. package/dist/usage.d.ts +10 -3
  61. package/dist/usage.js +9 -7
  62. package/dist/usage.js.map +1 -1
  63. package/dist/usage.mjs +9 -7
  64. package/dist/usage.mjs.map +1 -1
  65. package/package.json +2 -2
@@ -279,19 +279,6 @@ export declare const SerializedRunState: z.ZodObject<{
279
279
  providerData?: Record<string, any> | undefined;
280
280
  }>, z.ZodObject<{
281
281
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
282
- } & {
283
- type: z.ZodLiteral<"input_text">;
284
- text: z.ZodString;
285
- }, "strip", z.ZodTypeAny, {
286
- type: "input_text";
287
- text: string;
288
- providerData?: Record<string, any> | undefined;
289
- }, {
290
- type: "input_text";
291
- text: string;
292
- providerData?: Record<string, any> | undefined;
293
- }>, z.ZodObject<{
294
- providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
295
282
  } & {
296
283
  type: z.ZodLiteral<"audio">;
297
284
  audio: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -344,10 +331,6 @@ export declare const SerializedRunState: z.ZodObject<{
344
331
  type: "output_text";
345
332
  text: string;
346
333
  providerData?: Record<string, any> | undefined;
347
- } | {
348
- type: "input_text";
349
- text: string;
350
- providerData?: Record<string, any> | undefined;
351
334
  } | {
352
335
  type: "audio";
353
336
  audio: string | {
@@ -375,10 +358,6 @@ export declare const SerializedRunState: z.ZodObject<{
375
358
  type: "output_text";
376
359
  text: string;
377
360
  providerData?: Record<string, any> | undefined;
378
- } | {
379
- type: "input_text";
380
- text: string;
381
- providerData?: Record<string, any> | undefined;
382
361
  } | {
383
362
  type: "audio";
384
363
  audio: string | {
@@ -805,6 +784,20 @@ export declare const SerializedRunState: z.ZodObject<{
805
784
  text: string;
806
785
  providerData?: Record<string, any> | undefined;
807
786
  }>, "many">;
787
+ rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
788
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
789
+ } & {
790
+ type: z.ZodLiteral<"reasoning_text">;
791
+ text: z.ZodString;
792
+ }, "strip", z.ZodTypeAny, {
793
+ type: "reasoning_text";
794
+ text: string;
795
+ providerData?: Record<string, any> | undefined;
796
+ }, {
797
+ type: "reasoning_text";
798
+ text: string;
799
+ providerData?: Record<string, any> | undefined;
800
+ }>, "many">>;
808
801
  }, "strip", z.ZodTypeAny, {
809
802
  type: "reasoning";
810
803
  content: {
@@ -814,6 +807,11 @@ export declare const SerializedRunState: z.ZodObject<{
814
807
  }[];
815
808
  providerData?: Record<string, any> | undefined;
816
809
  id?: string | undefined;
810
+ rawContent?: {
811
+ type: "reasoning_text";
812
+ text: string;
813
+ providerData?: Record<string, any> | undefined;
814
+ }[] | undefined;
817
815
  }, {
818
816
  type: "reasoning";
819
817
  content: {
@@ -823,6 +821,11 @@ export declare const SerializedRunState: z.ZodObject<{
823
821
  }[];
824
822
  providerData?: Record<string, any> | undefined;
825
823
  id?: string | undefined;
824
+ rawContent?: {
825
+ type: "reasoning_text";
826
+ text: string;
827
+ providerData?: Record<string, any> | undefined;
828
+ }[] | undefined;
826
829
  }>, z.ZodObject<{
827
830
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
828
831
  } & {
@@ -892,19 +895,6 @@ export declare const SerializedRunState: z.ZodObject<{
892
895
  providerData?: Record<string, any> | undefined;
893
896
  }>, z.ZodObject<{
894
897
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
895
- } & {
896
- type: z.ZodLiteral<"input_text">;
897
- text: z.ZodString;
898
- }, "strip", z.ZodTypeAny, {
899
- type: "input_text";
900
- text: string;
901
- providerData?: Record<string, any> | undefined;
902
- }, {
903
- type: "input_text";
904
- text: string;
905
- providerData?: Record<string, any> | undefined;
906
- }>, z.ZodObject<{
907
- providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
908
898
  } & {
909
899
  type: z.ZodLiteral<"audio">;
910
900
  audio: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -957,10 +947,6 @@ export declare const SerializedRunState: z.ZodObject<{
957
947
  type: "output_text";
958
948
  text: string;
959
949
  providerData?: Record<string, any> | undefined;
960
- } | {
961
- type: "input_text";
962
- text: string;
963
- providerData?: Record<string, any> | undefined;
964
950
  } | {
965
951
  type: "audio";
966
952
  audio: string | {
@@ -988,10 +974,6 @@ export declare const SerializedRunState: z.ZodObject<{
988
974
  type: "output_text";
989
975
  text: string;
990
976
  providerData?: Record<string, any> | undefined;
991
- } | {
992
- type: "input_text";
993
- text: string;
994
- providerData?: Record<string, any> | undefined;
995
977
  } | {
996
978
  type: "audio";
997
979
  audio: string | {
@@ -1283,6 +1265,20 @@ export declare const SerializedRunState: z.ZodObject<{
1283
1265
  text: string;
1284
1266
  providerData?: Record<string, any> | undefined;
1285
1267
  }>, "many">;
1268
+ rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
1269
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1270
+ } & {
1271
+ type: z.ZodLiteral<"reasoning_text">;
1272
+ text: z.ZodString;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ type: "reasoning_text";
1275
+ text: string;
1276
+ providerData?: Record<string, any> | undefined;
1277
+ }, {
1278
+ type: "reasoning_text";
1279
+ text: string;
1280
+ providerData?: Record<string, any> | undefined;
1281
+ }>, "many">>;
1286
1282
  }, "strip", z.ZodTypeAny, {
1287
1283
  type: "reasoning";
1288
1284
  content: {
@@ -1292,6 +1288,11 @@ export declare const SerializedRunState: z.ZodObject<{
1292
1288
  }[];
1293
1289
  providerData?: Record<string, any> | undefined;
1294
1290
  id?: string | undefined;
1291
+ rawContent?: {
1292
+ type: "reasoning_text";
1293
+ text: string;
1294
+ providerData?: Record<string, any> | undefined;
1295
+ }[] | undefined;
1295
1296
  }, {
1296
1297
  type: "reasoning";
1297
1298
  content: {
@@ -1301,6 +1302,11 @@ export declare const SerializedRunState: z.ZodObject<{
1301
1302
  }[];
1302
1303
  providerData?: Record<string, any> | undefined;
1303
1304
  id?: string | undefined;
1305
+ rawContent?: {
1306
+ type: "reasoning_text";
1307
+ text: string;
1308
+ providerData?: Record<string, any> | undefined;
1309
+ }[] | undefined;
1304
1310
  }>, z.ZodObject<{
1305
1311
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1306
1312
  } & {
@@ -1330,10 +1336,6 @@ export declare const SerializedRunState: z.ZodObject<{
1330
1336
  type: "output_text";
1331
1337
  text: string;
1332
1338
  providerData?: Record<string, any> | undefined;
1333
- } | {
1334
- type: "input_text";
1335
- text: string;
1336
- providerData?: Record<string, any> | undefined;
1337
1339
  } | {
1338
1340
  type: "audio";
1339
1341
  audio: string | {
@@ -1417,6 +1419,11 @@ export declare const SerializedRunState: z.ZodObject<{
1417
1419
  }[];
1418
1420
  providerData?: Record<string, any> | undefined;
1419
1421
  id?: string | undefined;
1422
+ rawContent?: {
1423
+ type: "reasoning_text";
1424
+ text: string;
1425
+ providerData?: Record<string, any> | undefined;
1426
+ }[] | undefined;
1420
1427
  } | {
1421
1428
  type: "unknown";
1422
1429
  providerData?: Record<string, any> | undefined;
@@ -1442,10 +1449,6 @@ export declare const SerializedRunState: z.ZodObject<{
1442
1449
  type: "output_text";
1443
1450
  text: string;
1444
1451
  providerData?: Record<string, any> | undefined;
1445
- } | {
1446
- type: "input_text";
1447
- text: string;
1448
- providerData?: Record<string, any> | undefined;
1449
1452
  } | {
1450
1453
  type: "audio";
1451
1454
  audio: string | {
@@ -1529,6 +1532,11 @@ export declare const SerializedRunState: z.ZodObject<{
1529
1532
  }[];
1530
1533
  providerData?: Record<string, any> | undefined;
1531
1534
  id?: string | undefined;
1535
+ rawContent?: {
1536
+ type: "reasoning_text";
1537
+ text: string;
1538
+ providerData?: Record<string, any> | undefined;
1539
+ }[] | undefined;
1532
1540
  } | {
1533
1541
  type: "unknown";
1534
1542
  providerData?: Record<string, any> | undefined;
@@ -1784,19 +1792,6 @@ export declare const SerializedRunState: z.ZodObject<{
1784
1792
  providerData?: Record<string, any> | undefined;
1785
1793
  }>, z.ZodObject<{
1786
1794
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1787
- } & {
1788
- type: z.ZodLiteral<"input_text">;
1789
- text: z.ZodString;
1790
- }, "strip", z.ZodTypeAny, {
1791
- type: "input_text";
1792
- text: string;
1793
- providerData?: Record<string, any> | undefined;
1794
- }, {
1795
- type: "input_text";
1796
- text: string;
1797
- providerData?: Record<string, any> | undefined;
1798
- }>, z.ZodObject<{
1799
- providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1800
1795
  } & {
1801
1796
  type: z.ZodLiteral<"audio">;
1802
1797
  audio: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -1849,10 +1844,6 @@ export declare const SerializedRunState: z.ZodObject<{
1849
1844
  type: "output_text";
1850
1845
  text: string;
1851
1846
  providerData?: Record<string, any> | undefined;
1852
- } | {
1853
- type: "input_text";
1854
- text: string;
1855
- providerData?: Record<string, any> | undefined;
1856
1847
  } | {
1857
1848
  type: "audio";
1858
1849
  audio: string | {
@@ -1880,10 +1871,6 @@ export declare const SerializedRunState: z.ZodObject<{
1880
1871
  type: "output_text";
1881
1872
  text: string;
1882
1873
  providerData?: Record<string, any> | undefined;
1883
- } | {
1884
- type: "input_text";
1885
- text: string;
1886
- providerData?: Record<string, any> | undefined;
1887
1874
  } | {
1888
1875
  type: "audio";
1889
1876
  audio: string | {
@@ -2175,6 +2162,20 @@ export declare const SerializedRunState: z.ZodObject<{
2175
2162
  text: string;
2176
2163
  providerData?: Record<string, any> | undefined;
2177
2164
  }>, "many">;
2165
+ rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
2166
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2167
+ } & {
2168
+ type: z.ZodLiteral<"reasoning_text">;
2169
+ text: z.ZodString;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ type: "reasoning_text";
2172
+ text: string;
2173
+ providerData?: Record<string, any> | undefined;
2174
+ }, {
2175
+ type: "reasoning_text";
2176
+ text: string;
2177
+ providerData?: Record<string, any> | undefined;
2178
+ }>, "many">>;
2178
2179
  }, "strip", z.ZodTypeAny, {
2179
2180
  type: "reasoning";
2180
2181
  content: {
@@ -2184,6 +2185,11 @@ export declare const SerializedRunState: z.ZodObject<{
2184
2185
  }[];
2185
2186
  providerData?: Record<string, any> | undefined;
2186
2187
  id?: string | undefined;
2188
+ rawContent?: {
2189
+ type: "reasoning_text";
2190
+ text: string;
2191
+ providerData?: Record<string, any> | undefined;
2192
+ }[] | undefined;
2187
2193
  }, {
2188
2194
  type: "reasoning";
2189
2195
  content: {
@@ -2193,6 +2199,11 @@ export declare const SerializedRunState: z.ZodObject<{
2193
2199
  }[];
2194
2200
  providerData?: Record<string, any> | undefined;
2195
2201
  id?: string | undefined;
2202
+ rawContent?: {
2203
+ type: "reasoning_text";
2204
+ text: string;
2205
+ providerData?: Record<string, any> | undefined;
2206
+ }[] | undefined;
2196
2207
  }>, z.ZodObject<{
2197
2208
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2198
2209
  } & {
@@ -2222,10 +2233,6 @@ export declare const SerializedRunState: z.ZodObject<{
2222
2233
  type: "output_text";
2223
2234
  text: string;
2224
2235
  providerData?: Record<string, any> | undefined;
2225
- } | {
2226
- type: "input_text";
2227
- text: string;
2228
- providerData?: Record<string, any> | undefined;
2229
2236
  } | {
2230
2237
  type: "audio";
2231
2238
  audio: string | {
@@ -2309,6 +2316,11 @@ export declare const SerializedRunState: z.ZodObject<{
2309
2316
  }[];
2310
2317
  providerData?: Record<string, any> | undefined;
2311
2318
  id?: string | undefined;
2319
+ rawContent?: {
2320
+ type: "reasoning_text";
2321
+ text: string;
2322
+ providerData?: Record<string, any> | undefined;
2323
+ }[] | undefined;
2312
2324
  } | {
2313
2325
  type: "unknown";
2314
2326
  providerData?: Record<string, any> | undefined;
@@ -2334,10 +2346,6 @@ export declare const SerializedRunState: z.ZodObject<{
2334
2346
  type: "output_text";
2335
2347
  text: string;
2336
2348
  providerData?: Record<string, any> | undefined;
2337
- } | {
2338
- type: "input_text";
2339
- text: string;
2340
- providerData?: Record<string, any> | undefined;
2341
2349
  } | {
2342
2350
  type: "audio";
2343
2351
  audio: string | {
@@ -2421,6 +2429,11 @@ export declare const SerializedRunState: z.ZodObject<{
2421
2429
  }[];
2422
2430
  providerData?: Record<string, any> | undefined;
2423
2431
  id?: string | undefined;
2432
+ rawContent?: {
2433
+ type: "reasoning_text";
2434
+ text: string;
2435
+ providerData?: Record<string, any> | undefined;
2436
+ }[] | undefined;
2424
2437
  } | {
2425
2438
  type: "unknown";
2426
2439
  providerData?: Record<string, any> | undefined;
@@ -2474,19 +2487,6 @@ export declare const SerializedRunState: z.ZodObject<{
2474
2487
  providerData?: Record<string, any> | undefined;
2475
2488
  }>, z.ZodObject<{
2476
2489
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2477
- } & {
2478
- type: z.ZodLiteral<"input_text">;
2479
- text: z.ZodString;
2480
- }, "strip", z.ZodTypeAny, {
2481
- type: "input_text";
2482
- text: string;
2483
- providerData?: Record<string, any> | undefined;
2484
- }, {
2485
- type: "input_text";
2486
- text: string;
2487
- providerData?: Record<string, any> | undefined;
2488
- }>, z.ZodObject<{
2489
- providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2490
2490
  } & {
2491
2491
  type: z.ZodLiteral<"audio">;
2492
2492
  audio: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -2539,10 +2539,6 @@ export declare const SerializedRunState: z.ZodObject<{
2539
2539
  type: "output_text";
2540
2540
  text: string;
2541
2541
  providerData?: Record<string, any> | undefined;
2542
- } | {
2543
- type: "input_text";
2544
- text: string;
2545
- providerData?: Record<string, any> | undefined;
2546
2542
  } | {
2547
2543
  type: "audio";
2548
2544
  audio: string | {
@@ -2570,10 +2566,6 @@ export declare const SerializedRunState: z.ZodObject<{
2570
2566
  type: "output_text";
2571
2567
  text: string;
2572
2568
  providerData?: Record<string, any> | undefined;
2573
- } | {
2574
- type: "input_text";
2575
- text: string;
2576
- providerData?: Record<string, any> | undefined;
2577
2569
  } | {
2578
2570
  type: "audio";
2579
2571
  audio: string | {
@@ -2614,10 +2606,6 @@ export declare const SerializedRunState: z.ZodObject<{
2614
2606
  type: "output_text";
2615
2607
  text: string;
2616
2608
  providerData?: Record<string, any> | undefined;
2617
- } | {
2618
- type: "input_text";
2619
- text: string;
2620
- providerData?: Record<string, any> | undefined;
2621
2609
  } | {
2622
2610
  type: "audio";
2623
2611
  audio: string | {
@@ -2651,10 +2639,6 @@ export declare const SerializedRunState: z.ZodObject<{
2651
2639
  type: "output_text";
2652
2640
  text: string;
2653
2641
  providerData?: Record<string, any> | undefined;
2654
- } | {
2655
- type: "input_text";
2656
- text: string;
2657
- providerData?: Record<string, any> | undefined;
2658
2642
  } | {
2659
2643
  type: "audio";
2660
2644
  audio: string | {
@@ -3245,6 +3229,20 @@ export declare const SerializedRunState: z.ZodObject<{
3245
3229
  text: string;
3246
3230
  providerData?: Record<string, any> | undefined;
3247
3231
  }>, "many">;
3232
+ rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
3233
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3234
+ } & {
3235
+ type: z.ZodLiteral<"reasoning_text">;
3236
+ text: z.ZodString;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ type: "reasoning_text";
3239
+ text: string;
3240
+ providerData?: Record<string, any> | undefined;
3241
+ }, {
3242
+ type: "reasoning_text";
3243
+ text: string;
3244
+ providerData?: Record<string, any> | undefined;
3245
+ }>, "many">>;
3248
3246
  }, "strip", z.ZodTypeAny, {
3249
3247
  type: "reasoning";
3250
3248
  content: {
@@ -3254,6 +3252,11 @@ export declare const SerializedRunState: z.ZodObject<{
3254
3252
  }[];
3255
3253
  providerData?: Record<string, any> | undefined;
3256
3254
  id?: string | undefined;
3255
+ rawContent?: {
3256
+ type: "reasoning_text";
3257
+ text: string;
3258
+ providerData?: Record<string, any> | undefined;
3259
+ }[] | undefined;
3257
3260
  }, {
3258
3261
  type: "reasoning";
3259
3262
  content: {
@@ -3263,6 +3266,11 @@ export declare const SerializedRunState: z.ZodObject<{
3263
3266
  }[];
3264
3267
  providerData?: Record<string, any> | undefined;
3265
3268
  id?: string | undefined;
3269
+ rawContent?: {
3270
+ type: "reasoning_text";
3271
+ text: string;
3272
+ providerData?: Record<string, any> | undefined;
3273
+ }[] | undefined;
3266
3274
  }>;
3267
3275
  agent: z.ZodObject<{
3268
3276
  name: z.ZodString;
@@ -3285,6 +3293,11 @@ export declare const SerializedRunState: z.ZodObject<{
3285
3293
  }[];
3286
3294
  providerData?: Record<string, any> | undefined;
3287
3295
  id?: string | undefined;
3296
+ rawContent?: {
3297
+ type: "reasoning_text";
3298
+ text: string;
3299
+ providerData?: Record<string, any> | undefined;
3300
+ }[] | undefined;
3288
3301
  };
3289
3302
  }, {
3290
3303
  type: "reasoning_item";
@@ -3300,6 +3313,11 @@ export declare const SerializedRunState: z.ZodObject<{
3300
3313
  }[];
3301
3314
  providerData?: Record<string, any> | undefined;
3302
3315
  id?: string | undefined;
3316
+ rawContent?: {
3317
+ type: "reasoning_text";
3318
+ text: string;
3319
+ providerData?: Record<string, any> | undefined;
3320
+ }[] | undefined;
3303
3321
  };
3304
3322
  }>, z.ZodObject<{
3305
3323
  type: z.ZodLiteral<"handoff_call_item">;
@@ -3654,19 +3672,6 @@ export declare const SerializedRunState: z.ZodObject<{
3654
3672
  providerData?: Record<string, any> | undefined;
3655
3673
  }>, z.ZodObject<{
3656
3674
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3657
- } & {
3658
- type: z.ZodLiteral<"input_text">;
3659
- text: z.ZodString;
3660
- }, "strip", z.ZodTypeAny, {
3661
- type: "input_text";
3662
- text: string;
3663
- providerData?: Record<string, any> | undefined;
3664
- }, {
3665
- type: "input_text";
3666
- text: string;
3667
- providerData?: Record<string, any> | undefined;
3668
- }>, z.ZodObject<{
3669
- providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3670
3675
  } & {
3671
3676
  type: z.ZodLiteral<"audio">;
3672
3677
  audio: z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -3719,10 +3724,6 @@ export declare const SerializedRunState: z.ZodObject<{
3719
3724
  type: "output_text";
3720
3725
  text: string;
3721
3726
  providerData?: Record<string, any> | undefined;
3722
- } | {
3723
- type: "input_text";
3724
- text: string;
3725
- providerData?: Record<string, any> | undefined;
3726
3727
  } | {
3727
3728
  type: "audio";
3728
3729
  audio: string | {
@@ -3750,10 +3751,6 @@ export declare const SerializedRunState: z.ZodObject<{
3750
3751
  type: "output_text";
3751
3752
  text: string;
3752
3753
  providerData?: Record<string, any> | undefined;
3753
- } | {
3754
- type: "input_text";
3755
- text: string;
3756
- providerData?: Record<string, any> | undefined;
3757
3754
  } | {
3758
3755
  type: "audio";
3759
3756
  audio: string | {
@@ -3794,10 +3791,6 @@ export declare const SerializedRunState: z.ZodObject<{
3794
3791
  type: "output_text";
3795
3792
  text: string;
3796
3793
  providerData?: Record<string, any> | undefined;
3797
- } | {
3798
- type: "input_text";
3799
- text: string;
3800
- providerData?: Record<string, any> | undefined;
3801
3794
  } | {
3802
3795
  type: "audio";
3803
3796
  audio: string | {
@@ -3831,10 +3824,6 @@ export declare const SerializedRunState: z.ZodObject<{
3831
3824
  type: "output_text";
3832
3825
  text: string;
3833
3826
  providerData?: Record<string, any> | undefined;
3834
- } | {
3835
- type: "input_text";
3836
- text: string;
3837
- providerData?: Record<string, any> | undefined;
3838
3827
  } | {
3839
3828
  type: "audio";
3840
3829
  audio: string | {
@@ -4425,6 +4414,20 @@ export declare const SerializedRunState: z.ZodObject<{
4425
4414
  text: string;
4426
4415
  providerData?: Record<string, any> | undefined;
4427
4416
  }>, "many">;
4417
+ rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
4418
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4419
+ } & {
4420
+ type: z.ZodLiteral<"reasoning_text">;
4421
+ text: z.ZodString;
4422
+ }, "strip", z.ZodTypeAny, {
4423
+ type: "reasoning_text";
4424
+ text: string;
4425
+ providerData?: Record<string, any> | undefined;
4426
+ }, {
4427
+ type: "reasoning_text";
4428
+ text: string;
4429
+ providerData?: Record<string, any> | undefined;
4430
+ }>, "many">>;
4428
4431
  }, "strip", z.ZodTypeAny, {
4429
4432
  type: "reasoning";
4430
4433
  content: {
@@ -4434,6 +4437,11 @@ export declare const SerializedRunState: z.ZodObject<{
4434
4437
  }[];
4435
4438
  providerData?: Record<string, any> | undefined;
4436
4439
  id?: string | undefined;
4440
+ rawContent?: {
4441
+ type: "reasoning_text";
4442
+ text: string;
4443
+ providerData?: Record<string, any> | undefined;
4444
+ }[] | undefined;
4437
4445
  }, {
4438
4446
  type: "reasoning";
4439
4447
  content: {
@@ -4443,6 +4451,11 @@ export declare const SerializedRunState: z.ZodObject<{
4443
4451
  }[];
4444
4452
  providerData?: Record<string, any> | undefined;
4445
4453
  id?: string | undefined;
4454
+ rawContent?: {
4455
+ type: "reasoning_text";
4456
+ text: string;
4457
+ providerData?: Record<string, any> | undefined;
4458
+ }[] | undefined;
4446
4459
  }>;
4447
4460
  agent: z.ZodObject<{
4448
4461
  name: z.ZodString;
@@ -4465,6 +4478,11 @@ export declare const SerializedRunState: z.ZodObject<{
4465
4478
  }[];
4466
4479
  providerData?: Record<string, any> | undefined;
4467
4480
  id?: string | undefined;
4481
+ rawContent?: {
4482
+ type: "reasoning_text";
4483
+ text: string;
4484
+ providerData?: Record<string, any> | undefined;
4485
+ }[] | undefined;
4468
4486
  };
4469
4487
  }, {
4470
4488
  type: "reasoning_item";
@@ -4480,6 +4498,11 @@ export declare const SerializedRunState: z.ZodObject<{
4480
4498
  }[];
4481
4499
  providerData?: Record<string, any> | undefined;
4482
4500
  id?: string | undefined;
4501
+ rawContent?: {
4502
+ type: "reasoning_text";
4503
+ text: string;
4504
+ providerData?: Record<string, any> | undefined;
4505
+ }[] | undefined;
4483
4506
  };
4484
4507
  }>, z.ZodObject<{
4485
4508
  type: z.ZodLiteral<"handoff_call_item">;
@@ -4935,10 +4958,6 @@ export declare const SerializedRunState: z.ZodObject<{
4935
4958
  type: "output_text";
4936
4959
  text: string;
4937
4960
  providerData?: Record<string, any> | undefined;
4938
- } | {
4939
- type: "input_text";
4940
- text: string;
4941
- providerData?: Record<string, any> | undefined;
4942
4961
  } | {
4943
4962
  type: "audio";
4944
4963
  audio: string | {
@@ -5058,6 +5077,11 @@ export declare const SerializedRunState: z.ZodObject<{
5058
5077
  }[];
5059
5078
  providerData?: Record<string, any> | undefined;
5060
5079
  id?: string | undefined;
5080
+ rawContent?: {
5081
+ type: "reasoning_text";
5082
+ text: string;
5083
+ providerData?: Record<string, any> | undefined;
5084
+ }[] | undefined;
5061
5085
  };
5062
5086
  } | {
5063
5087
  type: "handoff_call_item";
@@ -5169,10 +5193,6 @@ export declare const SerializedRunState: z.ZodObject<{
5169
5193
  type: "output_text";
5170
5194
  text: string;
5171
5195
  providerData?: Record<string, any> | undefined;
5172
- } | {
5173
- type: "input_text";
5174
- text: string;
5175
- providerData?: Record<string, any> | undefined;
5176
5196
  } | {
5177
5197
  type: "audio";
5178
5198
  audio: string | {
@@ -5292,6 +5312,11 @@ export declare const SerializedRunState: z.ZodObject<{
5292
5312
  }[];
5293
5313
  providerData?: Record<string, any> | undefined;
5294
5314
  id?: string | undefined;
5315
+ rawContent?: {
5316
+ type: "reasoning_text";
5317
+ text: string;
5318
+ providerData?: Record<string, any> | undefined;
5319
+ }[] | undefined;
5295
5320
  };
5296
5321
  } | {
5297
5322
  type: "handoff_call_item";
@@ -5419,10 +5444,6 @@ export declare const SerializedRunState: z.ZodObject<{
5419
5444
  type: "output_text";
5420
5445
  text: string;
5421
5446
  providerData?: Record<string, any> | undefined;
5422
- } | {
5423
- type: "input_text";
5424
- text: string;
5425
- providerData?: Record<string, any> | undefined;
5426
5447
  } | {
5427
5448
  type: "audio";
5428
5449
  audio: string | {
@@ -5571,6 +5592,11 @@ export declare const SerializedRunState: z.ZodObject<{
5571
5592
  }[];
5572
5593
  providerData?: Record<string, any> | undefined;
5573
5594
  id?: string | undefined;
5595
+ rawContent?: {
5596
+ type: "reasoning_text";
5597
+ text: string;
5598
+ providerData?: Record<string, any> | undefined;
5599
+ }[] | undefined;
5574
5600
  } | {
5575
5601
  type: "unknown";
5576
5602
  providerData?: Record<string, any> | undefined;
@@ -5588,10 +5614,6 @@ export declare const SerializedRunState: z.ZodObject<{
5588
5614
  type: "output_text";
5589
5615
  text: string;
5590
5616
  providerData?: Record<string, any> | undefined;
5591
- } | {
5592
- type: "input_text";
5593
- text: string;
5594
- providerData?: Record<string, any> | undefined;
5595
5617
  } | {
5596
5618
  type: "audio";
5597
5619
  audio: string | {
@@ -5675,6 +5697,11 @@ export declare const SerializedRunState: z.ZodObject<{
5675
5697
  }[];
5676
5698
  providerData?: Record<string, any> | undefined;
5677
5699
  id?: string | undefined;
5700
+ rawContent?: {
5701
+ type: "reasoning_text";
5702
+ text: string;
5703
+ providerData?: Record<string, any> | undefined;
5704
+ }[] | undefined;
5678
5705
  } | {
5679
5706
  type: "unknown";
5680
5707
  providerData?: Record<string, any> | undefined;
@@ -5745,10 +5772,6 @@ export declare const SerializedRunState: z.ZodObject<{
5745
5772
  type: "output_text";
5746
5773
  text: string;
5747
5774
  providerData?: Record<string, any> | undefined;
5748
- } | {
5749
- type: "input_text";
5750
- text: string;
5751
- providerData?: Record<string, any> | undefined;
5752
5775
  } | {
5753
5776
  type: "audio";
5754
5777
  audio: string | {
@@ -5868,6 +5891,11 @@ export declare const SerializedRunState: z.ZodObject<{
5868
5891
  }[];
5869
5892
  providerData?: Record<string, any> | undefined;
5870
5893
  id?: string | undefined;
5894
+ rawContent?: {
5895
+ type: "reasoning_text";
5896
+ text: string;
5897
+ providerData?: Record<string, any> | undefined;
5898
+ }[] | undefined;
5871
5899
  };
5872
5900
  } | {
5873
5901
  type: "handoff_call_item";
@@ -5964,10 +5992,6 @@ export declare const SerializedRunState: z.ZodObject<{
5964
5992
  type: "output_text";
5965
5993
  text: string;
5966
5994
  providerData?: Record<string, any> | undefined;
5967
- } | {
5968
- type: "input_text";
5969
- text: string;
5970
- providerData?: Record<string, any> | undefined;
5971
5995
  } | {
5972
5996
  type: "audio";
5973
5997
  audio: string | {
@@ -6051,6 +6075,11 @@ export declare const SerializedRunState: z.ZodObject<{
6051
6075
  }[];
6052
6076
  providerData?: Record<string, any> | undefined;
6053
6077
  id?: string | undefined;
6078
+ rawContent?: {
6079
+ type: "reasoning_text";
6080
+ text: string;
6081
+ providerData?: Record<string, any> | undefined;
6082
+ }[] | undefined;
6054
6083
  } | {
6055
6084
  type: "unknown";
6056
6085
  providerData?: Record<string, any> | undefined;
@@ -6086,10 +6115,6 @@ export declare const SerializedRunState: z.ZodObject<{
6086
6115
  type: "output_text";
6087
6116
  text: string;
6088
6117
  providerData?: Record<string, any> | undefined;
6089
- } | {
6090
- type: "input_text";
6091
- text: string;
6092
- providerData?: Record<string, any> | undefined;
6093
6118
  } | {
6094
6119
  type: "audio";
6095
6120
  audio: string | {
@@ -6209,6 +6234,11 @@ export declare const SerializedRunState: z.ZodObject<{
6209
6234
  }[];
6210
6235
  providerData?: Record<string, any> | undefined;
6211
6236
  id?: string | undefined;
6237
+ rawContent?: {
6238
+ type: "reasoning_text";
6239
+ text: string;
6240
+ providerData?: Record<string, any> | undefined;
6241
+ }[] | undefined;
6212
6242
  };
6213
6243
  } | {
6214
6244
  type: "handoff_call_item";
@@ -6317,10 +6347,6 @@ export declare const SerializedRunState: z.ZodObject<{
6317
6347
  type: "output_text";
6318
6348
  text: string;
6319
6349
  providerData?: Record<string, any> | undefined;
6320
- } | {
6321
- type: "input_text";
6322
- text: string;
6323
- providerData?: Record<string, any> | undefined;
6324
6350
  } | {
6325
6351
  type: "audio";
6326
6352
  audio: string | {
@@ -6469,6 +6495,11 @@ export declare const SerializedRunState: z.ZodObject<{
6469
6495
  }[];
6470
6496
  providerData?: Record<string, any> | undefined;
6471
6497
  id?: string | undefined;
6498
+ rawContent?: {
6499
+ type: "reasoning_text";
6500
+ text: string;
6501
+ providerData?: Record<string, any> | undefined;
6502
+ }[] | undefined;
6472
6503
  } | {
6473
6504
  type: "unknown";
6474
6505
  providerData?: Record<string, any> | undefined;
@@ -6486,10 +6517,6 @@ export declare const SerializedRunState: z.ZodObject<{
6486
6517
  type: "output_text";
6487
6518
  text: string;
6488
6519
  providerData?: Record<string, any> | undefined;
6489
- } | {
6490
- type: "input_text";
6491
- text: string;
6492
- providerData?: Record<string, any> | undefined;
6493
6520
  } | {
6494
6521
  type: "audio";
6495
6522
  audio: string | {
@@ -6573,6 +6600,11 @@ export declare const SerializedRunState: z.ZodObject<{
6573
6600
  }[];
6574
6601
  providerData?: Record<string, any> | undefined;
6575
6602
  id?: string | undefined;
6603
+ rawContent?: {
6604
+ type: "reasoning_text";
6605
+ text: string;
6606
+ providerData?: Record<string, any> | undefined;
6607
+ }[] | undefined;
6576
6608
  } | {
6577
6609
  type: "unknown";
6578
6610
  providerData?: Record<string, any> | undefined;
@@ -6643,10 +6675,6 @@ export declare const SerializedRunState: z.ZodObject<{
6643
6675
  type: "output_text";
6644
6676
  text: string;
6645
6677
  providerData?: Record<string, any> | undefined;
6646
- } | {
6647
- type: "input_text";
6648
- text: string;
6649
- providerData?: Record<string, any> | undefined;
6650
6678
  } | {
6651
6679
  type: "audio";
6652
6680
  audio: string | {
@@ -6766,6 +6794,11 @@ export declare const SerializedRunState: z.ZodObject<{
6766
6794
  }[];
6767
6795
  providerData?: Record<string, any> | undefined;
6768
6796
  id?: string | undefined;
6797
+ rawContent?: {
6798
+ type: "reasoning_text";
6799
+ text: string;
6800
+ providerData?: Record<string, any> | undefined;
6801
+ }[] | undefined;
6769
6802
  };
6770
6803
  } | {
6771
6804
  type: "handoff_call_item";
@@ -6862,10 +6895,6 @@ export declare const SerializedRunState: z.ZodObject<{
6862
6895
  type: "output_text";
6863
6896
  text: string;
6864
6897
  providerData?: Record<string, any> | undefined;
6865
- } | {
6866
- type: "input_text";
6867
- text: string;
6868
- providerData?: Record<string, any> | undefined;
6869
6898
  } | {
6870
6899
  type: "audio";
6871
6900
  audio: string | {
@@ -6949,6 +6978,11 @@ export declare const SerializedRunState: z.ZodObject<{
6949
6978
  }[];
6950
6979
  providerData?: Record<string, any> | undefined;
6951
6980
  id?: string | undefined;
6981
+ rawContent?: {
6982
+ type: "reasoning_text";
6983
+ text: string;
6984
+ providerData?: Record<string, any> | undefined;
6985
+ }[] | undefined;
6952
6986
  } | {
6953
6987
  type: "unknown";
6954
6988
  providerData?: Record<string, any> | undefined;
@@ -6984,10 +7018,6 @@ export declare const SerializedRunState: z.ZodObject<{
6984
7018
  type: "output_text";
6985
7019
  text: string;
6986
7020
  providerData?: Record<string, any> | undefined;
6987
- } | {
6988
- type: "input_text";
6989
- text: string;
6990
- providerData?: Record<string, any> | undefined;
6991
7021
  } | {
6992
7022
  type: "audio";
6993
7023
  audio: string | {
@@ -7107,6 +7137,11 @@ export declare const SerializedRunState: z.ZodObject<{
7107
7137
  }[];
7108
7138
  providerData?: Record<string, any> | undefined;
7109
7139
  id?: string | undefined;
7140
+ rawContent?: {
7141
+ type: "reasoning_text";
7142
+ text: string;
7143
+ providerData?: Record<string, any> | undefined;
7144
+ }[] | undefined;
7110
7145
  };
7111
7146
  } | {
7112
7147
  type: "handoff_call_item";