@openai/agents-core 0.0.5 → 0.0.7

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 (111) hide show
  1. package/dist/config.js +8 -1
  2. package/dist/config.js.map +1 -1
  3. package/dist/config.mjs +8 -1
  4. package/dist/config.mjs.map +1 -1
  5. package/dist/guardrail.d.ts +42 -5
  6. package/dist/guardrail.js +2 -5
  7. package/dist/guardrail.js.map +1 -1
  8. package/dist/guardrail.mjs +2 -5
  9. package/dist/guardrail.mjs.map +1 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +2 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +2 -2
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/items.d.ts +18 -10
  16. package/dist/items.js.map +1 -1
  17. package/dist/items.mjs.map +1 -1
  18. package/dist/mcp.d.ts +37 -0
  19. package/dist/mcp.js +52 -1
  20. package/dist/mcp.js.map +1 -1
  21. package/dist/mcp.mjs +52 -1
  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/run.js +2 -0
  26. package/dist/run.js.map +1 -1
  27. package/dist/run.mjs +2 -0
  28. package/dist/run.mjs.map +1 -1
  29. package/dist/runContext.js +10 -2
  30. package/dist/runContext.js.map +1 -1
  31. package/dist/runContext.mjs +10 -2
  32. package/dist/runContext.mjs.map +1 -1
  33. package/dist/runImplementation.d.ts +7 -2
  34. package/dist/runImplementation.js +128 -12
  35. package/dist/runImplementation.js.map +1 -1
  36. package/dist/runImplementation.mjs +128 -12
  37. package/dist/runImplementation.mjs.map +1 -1
  38. package/dist/runState.d.ts +381 -62
  39. package/dist/runState.js +27 -1
  40. package/dist/runState.js.map +1 -1
  41. package/dist/runState.mjs +27 -1
  42. package/dist/runState.mjs.map +1 -1
  43. package/dist/shims/mcp-server/browser.d.ts +17 -0
  44. package/dist/shims/mcp-server/browser.js +42 -0
  45. package/dist/shims/mcp-server/browser.js.map +1 -0
  46. package/dist/shims/mcp-server/browser.mjs +42 -0
  47. package/dist/shims/mcp-server/browser.mjs.map +1 -0
  48. package/dist/shims/mcp-server/node.d.ts +39 -0
  49. package/dist/shims/{mcp-stdio → mcp-server}/node.js +89 -1
  50. package/dist/shims/mcp-server/node.js.map +1 -0
  51. package/dist/shims/{mcp-stdio → mcp-server}/node.mjs +89 -1
  52. package/dist/shims/mcp-server/node.mjs.map +1 -0
  53. package/dist/shims/shims-browser.d.ts +3 -2
  54. package/dist/shims/shims-browser.js +7 -2
  55. package/dist/shims/shims-browser.js.map +1 -1
  56. package/dist/shims/shims-browser.mjs +7 -2
  57. package/dist/shims/shims-browser.mjs.map +1 -1
  58. package/dist/shims/shims-node.d.ts +2 -1
  59. package/dist/shims/shims-node.js +4 -1
  60. package/dist/shims/shims-node.js.map +1 -1
  61. package/dist/shims/shims-node.mjs +4 -1
  62. package/dist/shims/shims-node.mjs.map +1 -1
  63. package/dist/shims/shims-workerd.d.ts +2 -1
  64. package/dist/shims/shims-workerd.js +6 -1
  65. package/dist/shims/shims-workerd.js.map +1 -1
  66. package/dist/shims/shims-workerd.mjs +6 -1
  67. package/dist/shims/shims-workerd.mjs.map +1 -1
  68. package/dist/tool.d.ts +55 -0
  69. package/dist/tool.js +54 -0
  70. package/dist/tool.js.map +1 -1
  71. package/dist/tool.mjs +54 -0
  72. package/dist/tool.mjs.map +1 -1
  73. package/dist/tracing/index.d.ts +4 -0
  74. package/dist/tracing/index.js +6 -0
  75. package/dist/tracing/index.js.map +1 -1
  76. package/dist/tracing/index.mjs +6 -0
  77. package/dist/tracing/index.mjs.map +1 -1
  78. package/dist/tracing/processor.d.ts +8 -0
  79. package/dist/tracing/processor.js +18 -7
  80. package/dist/tracing/processor.js.map +1 -1
  81. package/dist/tracing/processor.mjs +18 -7
  82. package/dist/tracing/processor.mjs.map +1 -1
  83. package/dist/tracing/provider.d.ts +2 -0
  84. package/dist/tracing/provider.js +7 -5
  85. package/dist/tracing/provider.js.map +1 -1
  86. package/dist/tracing/provider.mjs +7 -5
  87. package/dist/tracing/provider.mjs.map +1 -1
  88. package/dist/types/index.d.ts +1 -0
  89. package/dist/types/index.js +1 -0
  90. package/dist/types/index.js.map +1 -1
  91. package/dist/types/index.mjs +1 -0
  92. package/dist/types/index.mjs.map +1 -1
  93. package/dist/types/protocol.d.ts +64 -20
  94. package/dist/types/protocol.js +7 -0
  95. package/dist/types/protocol.js.map +1 -1
  96. package/dist/types/protocol.mjs +7 -0
  97. package/dist/types/protocol.mjs.map +1 -1
  98. package/dist/types/providerData.d.ts +57 -0
  99. package/dist/types/providerData.js +2 -0
  100. package/dist/types/providerData.js.map +1 -0
  101. package/dist/types/providerData.mjs +2 -0
  102. package/dist/types/providerData.mjs.map +1 -0
  103. package/package.json +1 -1
  104. package/dist/shims/mcp-stdio/browser.d.ts +0 -9
  105. package/dist/shims/mcp-stdio/browser.js +0 -22
  106. package/dist/shims/mcp-stdio/browser.js.map +0 -1
  107. package/dist/shims/mcp-stdio/browser.mjs +0 -22
  108. package/dist/shims/mcp-stdio/browser.mjs.map +0 -1
  109. package/dist/shims/mcp-stdio/node.d.ts +0 -22
  110. package/dist/shims/mcp-stdio/node.js.map +0 -1
  111. package/dist/shims/mcp-stdio/node.mjs.map +0 -1
@@ -409,6 +409,7 @@ export declare const SerializedRunState: z.ZodObject<{
409
409
  } & {
410
410
  type: z.ZodLiteral<"hosted_tool_call">;
411
411
  name: z.ZodString;
412
+ arguments: z.ZodOptional<z.ZodString>;
412
413
  status: z.ZodOptional<z.ZodString>;
413
414
  output: z.ZodOptional<z.ZodString>;
414
415
  }, "strip", z.ZodTypeAny, {
@@ -417,6 +418,7 @@ export declare const SerializedRunState: z.ZodObject<{
417
418
  status?: string | undefined;
418
419
  providerData?: Record<string, any> | undefined;
419
420
  id?: string | undefined;
421
+ arguments?: string | undefined;
420
422
  output?: string | undefined;
421
423
  }, {
422
424
  type: "hosted_tool_call";
@@ -424,6 +426,7 @@ export declare const SerializedRunState: z.ZodObject<{
424
426
  status?: string | undefined;
425
427
  providerData?: Record<string, any> | undefined;
426
428
  id?: string | undefined;
429
+ arguments?: string | undefined;
427
430
  output?: string | undefined;
428
431
  }>, z.ZodObject<{
429
432
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -438,16 +441,16 @@ export declare const SerializedRunState: z.ZodObject<{
438
441
  }, "strip", z.ZodTypeAny, {
439
442
  type: "function_call";
440
443
  name: string;
441
- callId: string;
442
444
  arguments: string;
445
+ callId: string;
443
446
  status?: "in_progress" | "completed" | "incomplete" | undefined;
444
447
  providerData?: Record<string, any> | undefined;
445
448
  id?: string | undefined;
446
449
  }, {
447
450
  type: "function_call";
448
451
  name: string;
449
- callId: string;
450
452
  arguments: string;
453
+ callId: string;
451
454
  status?: "in_progress" | "completed" | "incomplete" | undefined;
452
455
  providerData?: Record<string, any> | undefined;
453
456
  id?: string | undefined;
@@ -998,6 +1001,7 @@ export declare const SerializedRunState: z.ZodObject<{
998
1001
  } & {
999
1002
  type: z.ZodLiteral<"hosted_tool_call">;
1000
1003
  name: z.ZodString;
1004
+ arguments: z.ZodOptional<z.ZodString>;
1001
1005
  status: z.ZodOptional<z.ZodString>;
1002
1006
  output: z.ZodOptional<z.ZodString>;
1003
1007
  }, "strip", z.ZodTypeAny, {
@@ -1006,6 +1010,7 @@ export declare const SerializedRunState: z.ZodObject<{
1006
1010
  status?: string | undefined;
1007
1011
  providerData?: Record<string, any> | undefined;
1008
1012
  id?: string | undefined;
1013
+ arguments?: string | undefined;
1009
1014
  output?: string | undefined;
1010
1015
  }, {
1011
1016
  type: "hosted_tool_call";
@@ -1013,6 +1018,7 @@ export declare const SerializedRunState: z.ZodObject<{
1013
1018
  status?: string | undefined;
1014
1019
  providerData?: Record<string, any> | undefined;
1015
1020
  id?: string | undefined;
1021
+ arguments?: string | undefined;
1016
1022
  output?: string | undefined;
1017
1023
  }>, z.ZodObject<{
1018
1024
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -1027,16 +1033,16 @@ export declare const SerializedRunState: z.ZodObject<{
1027
1033
  }, "strip", z.ZodTypeAny, {
1028
1034
  type: "function_call";
1029
1035
  name: string;
1030
- callId: string;
1031
1036
  arguments: string;
1037
+ callId: string;
1032
1038
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1033
1039
  providerData?: Record<string, any> | undefined;
1034
1040
  id?: string | undefined;
1035
1041
  }, {
1036
1042
  type: "function_call";
1037
1043
  name: string;
1038
- callId: string;
1039
1044
  arguments: string;
1045
+ callId: string;
1040
1046
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1041
1047
  providerData?: Record<string, any> | undefined;
1042
1048
  id?: string | undefined;
@@ -1335,12 +1341,13 @@ export declare const SerializedRunState: z.ZodObject<{
1335
1341
  status?: string | undefined;
1336
1342
  providerData?: Record<string, any> | undefined;
1337
1343
  id?: string | undefined;
1344
+ arguments?: string | undefined;
1338
1345
  output?: string | undefined;
1339
1346
  } | {
1340
1347
  type: "function_call";
1341
1348
  name: string;
1342
- callId: string;
1343
1349
  arguments: string;
1350
+ callId: string;
1344
1351
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1345
1352
  providerData?: Record<string, any> | undefined;
1346
1353
  id?: string | undefined;
@@ -1445,12 +1452,13 @@ export declare const SerializedRunState: z.ZodObject<{
1445
1452
  status?: string | undefined;
1446
1453
  providerData?: Record<string, any> | undefined;
1447
1454
  id?: string | undefined;
1455
+ arguments?: string | undefined;
1448
1456
  output?: string | undefined;
1449
1457
  } | {
1450
1458
  type: "function_call";
1451
1459
  name: string;
1452
- callId: string;
1453
1460
  arguments: string;
1461
+ callId: string;
1454
1462
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1455
1463
  providerData?: Record<string, any> | undefined;
1456
1464
  id?: string | undefined;
@@ -1882,6 +1890,7 @@ export declare const SerializedRunState: z.ZodObject<{
1882
1890
  } & {
1883
1891
  type: z.ZodLiteral<"hosted_tool_call">;
1884
1892
  name: z.ZodString;
1893
+ arguments: z.ZodOptional<z.ZodString>;
1885
1894
  status: z.ZodOptional<z.ZodString>;
1886
1895
  output: z.ZodOptional<z.ZodString>;
1887
1896
  }, "strip", z.ZodTypeAny, {
@@ -1890,6 +1899,7 @@ export declare const SerializedRunState: z.ZodObject<{
1890
1899
  status?: string | undefined;
1891
1900
  providerData?: Record<string, any> | undefined;
1892
1901
  id?: string | undefined;
1902
+ arguments?: string | undefined;
1893
1903
  output?: string | undefined;
1894
1904
  }, {
1895
1905
  type: "hosted_tool_call";
@@ -1897,6 +1907,7 @@ export declare const SerializedRunState: z.ZodObject<{
1897
1907
  status?: string | undefined;
1898
1908
  providerData?: Record<string, any> | undefined;
1899
1909
  id?: string | undefined;
1910
+ arguments?: string | undefined;
1900
1911
  output?: string | undefined;
1901
1912
  }>, z.ZodObject<{
1902
1913
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -1911,16 +1922,16 @@ export declare const SerializedRunState: z.ZodObject<{
1911
1922
  }, "strip", z.ZodTypeAny, {
1912
1923
  type: "function_call";
1913
1924
  name: string;
1914
- callId: string;
1915
1925
  arguments: string;
1926
+ callId: string;
1916
1927
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1917
1928
  providerData?: Record<string, any> | undefined;
1918
1929
  id?: string | undefined;
1919
1930
  }, {
1920
1931
  type: "function_call";
1921
1932
  name: string;
1922
- callId: string;
1923
1933
  arguments: string;
1934
+ callId: string;
1924
1935
  status?: "in_progress" | "completed" | "incomplete" | undefined;
1925
1936
  providerData?: Record<string, any> | undefined;
1926
1937
  id?: string | undefined;
@@ -2219,12 +2230,13 @@ export declare const SerializedRunState: z.ZodObject<{
2219
2230
  status?: string | undefined;
2220
2231
  providerData?: Record<string, any> | undefined;
2221
2232
  id?: string | undefined;
2233
+ arguments?: string | undefined;
2222
2234
  output?: string | undefined;
2223
2235
  } | {
2224
2236
  type: "function_call";
2225
2237
  name: string;
2226
- callId: string;
2227
2238
  arguments: string;
2239
+ callId: string;
2228
2240
  status?: "in_progress" | "completed" | "incomplete" | undefined;
2229
2241
  providerData?: Record<string, any> | undefined;
2230
2242
  id?: string | undefined;
@@ -2329,12 +2341,13 @@ export declare const SerializedRunState: z.ZodObject<{
2329
2341
  status?: string | undefined;
2330
2342
  providerData?: Record<string, any> | undefined;
2331
2343
  id?: string | undefined;
2344
+ arguments?: string | undefined;
2332
2345
  output?: string | undefined;
2333
2346
  } | {
2334
2347
  type: "function_call";
2335
2348
  name: string;
2336
- callId: string;
2337
2349
  arguments: string;
2350
+ callId: string;
2338
2351
  status?: "in_progress" | "completed" | "incomplete" | undefined;
2339
2352
  providerData?: Record<string, any> | undefined;
2340
2353
  id?: string | undefined;
@@ -2858,16 +2871,16 @@ export declare const SerializedRunState: z.ZodObject<{
2858
2871
  }, "strip", z.ZodTypeAny, {
2859
2872
  type: "function_call";
2860
2873
  name: string;
2861
- callId: string;
2862
2874
  arguments: string;
2875
+ callId: string;
2863
2876
  status?: "in_progress" | "completed" | "incomplete" | undefined;
2864
2877
  providerData?: Record<string, any> | undefined;
2865
2878
  id?: string | undefined;
2866
2879
  }, {
2867
2880
  type: "function_call";
2868
2881
  name: string;
2869
- callId: string;
2870
2882
  arguments: string;
2883
+ callId: string;
2871
2884
  status?: "in_progress" | "completed" | "incomplete" | undefined;
2872
2885
  providerData?: Record<string, any> | undefined;
2873
2886
  id?: string | undefined;
@@ -2878,6 +2891,7 @@ export declare const SerializedRunState: z.ZodObject<{
2878
2891
  } & {
2879
2892
  type: z.ZodLiteral<"hosted_tool_call">;
2880
2893
  name: z.ZodString;
2894
+ arguments: z.ZodOptional<z.ZodString>;
2881
2895
  status: z.ZodOptional<z.ZodString>;
2882
2896
  output: z.ZodOptional<z.ZodString>;
2883
2897
  }, "strip", z.ZodTypeAny, {
@@ -2886,6 +2900,7 @@ export declare const SerializedRunState: z.ZodObject<{
2886
2900
  status?: string | undefined;
2887
2901
  providerData?: Record<string, any> | undefined;
2888
2902
  id?: string | undefined;
2903
+ arguments?: string | undefined;
2889
2904
  output?: string | undefined;
2890
2905
  }, {
2891
2906
  type: "hosted_tool_call";
@@ -2893,6 +2908,7 @@ export declare const SerializedRunState: z.ZodObject<{
2893
2908
  status?: string | undefined;
2894
2909
  providerData?: Record<string, any> | undefined;
2895
2910
  id?: string | undefined;
2911
+ arguments?: string | undefined;
2896
2912
  output?: string | undefined;
2897
2913
  }>]>, z.ZodObject<{
2898
2914
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -2901,6 +2917,7 @@ export declare const SerializedRunState: z.ZodObject<{
2901
2917
  } & {
2902
2918
  type: z.ZodLiteral<"hosted_tool_call">;
2903
2919
  name: z.ZodString;
2920
+ arguments: z.ZodOptional<z.ZodString>;
2904
2921
  status: z.ZodOptional<z.ZodString>;
2905
2922
  output: z.ZodOptional<z.ZodString>;
2906
2923
  }, "strip", z.ZodTypeAny, {
@@ -2909,6 +2926,7 @@ export declare const SerializedRunState: z.ZodObject<{
2909
2926
  status?: string | undefined;
2910
2927
  providerData?: Record<string, any> | undefined;
2911
2928
  id?: string | undefined;
2929
+ arguments?: string | undefined;
2912
2930
  output?: string | undefined;
2913
2931
  }, {
2914
2932
  type: "hosted_tool_call";
@@ -2916,6 +2934,7 @@ export declare const SerializedRunState: z.ZodObject<{
2916
2934
  status?: string | undefined;
2917
2935
  providerData?: Record<string, any> | undefined;
2918
2936
  id?: string | undefined;
2937
+ arguments?: string | undefined;
2919
2938
  output?: string | undefined;
2920
2939
  }>]>;
2921
2940
  agent: z.ZodObject<{
@@ -2936,12 +2955,13 @@ export declare const SerializedRunState: z.ZodObject<{
2936
2955
  status?: string | undefined;
2937
2956
  providerData?: Record<string, any> | undefined;
2938
2957
  id?: string | undefined;
2958
+ arguments?: string | undefined;
2939
2959
  output?: string | undefined;
2940
2960
  } | {
2941
2961
  type: "function_call";
2942
2962
  name: string;
2943
- callId: string;
2944
2963
  arguments: string;
2964
+ callId: string;
2945
2965
  status?: "in_progress" | "completed" | "incomplete" | undefined;
2946
2966
  providerData?: Record<string, any> | undefined;
2947
2967
  id?: string | undefined;
@@ -2999,12 +3019,13 @@ export declare const SerializedRunState: z.ZodObject<{
2999
3019
  status?: string | undefined;
3000
3020
  providerData?: Record<string, any> | undefined;
3001
3021
  id?: string | undefined;
3022
+ arguments?: string | undefined;
3002
3023
  output?: string | undefined;
3003
3024
  } | {
3004
3025
  type: "function_call";
3005
3026
  name: string;
3006
- callId: string;
3007
3027
  arguments: string;
3028
+ callId: string;
3008
3029
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3009
3030
  providerData?: Record<string, any> | undefined;
3010
3031
  id?: string | undefined;
@@ -3275,16 +3296,16 @@ export declare const SerializedRunState: z.ZodObject<{
3275
3296
  }, "strip", z.ZodTypeAny, {
3276
3297
  type: "function_call";
3277
3298
  name: string;
3278
- callId: string;
3279
3299
  arguments: string;
3300
+ callId: string;
3280
3301
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3281
3302
  providerData?: Record<string, any> | undefined;
3282
3303
  id?: string | undefined;
3283
3304
  }, {
3284
3305
  type: "function_call";
3285
3306
  name: string;
3286
- callId: string;
3287
3307
  arguments: string;
3308
+ callId: string;
3288
3309
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3289
3310
  providerData?: Record<string, any> | undefined;
3290
3311
  id?: string | undefined;
@@ -3304,8 +3325,8 @@ export declare const SerializedRunState: z.ZodObject<{
3304
3325
  rawItem: {
3305
3326
  type: "function_call";
3306
3327
  name: string;
3307
- callId: string;
3308
3328
  arguments: string;
3329
+ callId: string;
3309
3330
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3310
3331
  providerData?: Record<string, any> | undefined;
3311
3332
  id?: string | undefined;
@@ -3318,8 +3339,8 @@ export declare const SerializedRunState: z.ZodObject<{
3318
3339
  rawItem: {
3319
3340
  type: "function_call";
3320
3341
  name: string;
3321
- callId: string;
3322
3342
  arguments: string;
3343
+ callId: string;
3323
3344
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3324
3345
  providerData?: Record<string, any> | undefined;
3325
3346
  id?: string | undefined;
@@ -3468,7 +3489,7 @@ export declare const SerializedRunState: z.ZodObject<{
3468
3489
  };
3469
3490
  }>, z.ZodObject<{
3470
3491
  type: z.ZodLiteral<"tool_approval_item">;
3471
- rawItem: z.ZodObject<{
3492
+ rawItem: z.ZodUnion<[z.ZodObject<{
3472
3493
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3473
3494
  } & {
3474
3495
  id: z.ZodOptional<z.ZodString>;
@@ -3481,20 +3502,46 @@ export declare const SerializedRunState: z.ZodObject<{
3481
3502
  }, "strip", z.ZodTypeAny, {
3482
3503
  type: "function_call";
3483
3504
  name: string;
3484
- callId: string;
3485
3505
  arguments: string;
3506
+ callId: string;
3486
3507
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3487
3508
  providerData?: Record<string, any> | undefined;
3488
3509
  id?: string | undefined;
3489
3510
  }, {
3490
3511
  type: "function_call";
3491
3512
  name: string;
3492
- callId: string;
3493
3513
  arguments: string;
3514
+ callId: string;
3494
3515
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3495
3516
  providerData?: Record<string, any> | undefined;
3496
3517
  id?: string | undefined;
3497
- }>;
3518
+ }>, z.ZodObject<{
3519
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3520
+ } & {
3521
+ id: z.ZodOptional<z.ZodString>;
3522
+ } & {
3523
+ type: z.ZodLiteral<"hosted_tool_call">;
3524
+ name: z.ZodString;
3525
+ arguments: z.ZodOptional<z.ZodString>;
3526
+ status: z.ZodOptional<z.ZodString>;
3527
+ output: z.ZodOptional<z.ZodString>;
3528
+ }, "strip", z.ZodTypeAny, {
3529
+ type: "hosted_tool_call";
3530
+ name: string;
3531
+ status?: string | undefined;
3532
+ providerData?: Record<string, any> | undefined;
3533
+ id?: string | undefined;
3534
+ arguments?: string | undefined;
3535
+ output?: string | undefined;
3536
+ }, {
3537
+ type: "hosted_tool_call";
3538
+ name: string;
3539
+ status?: string | undefined;
3540
+ providerData?: Record<string, any> | undefined;
3541
+ id?: string | undefined;
3542
+ arguments?: string | undefined;
3543
+ output?: string | undefined;
3544
+ }>]>;
3498
3545
  agent: z.ZodObject<{
3499
3546
  name: z.ZodString;
3500
3547
  }, "strip", z.ZodTypeAny, {
@@ -3508,10 +3555,18 @@ export declare const SerializedRunState: z.ZodObject<{
3508
3555
  name: string;
3509
3556
  };
3510
3557
  rawItem: {
3558
+ type: "hosted_tool_call";
3559
+ name: string;
3560
+ status?: string | undefined;
3561
+ providerData?: Record<string, any> | undefined;
3562
+ id?: string | undefined;
3563
+ arguments?: string | undefined;
3564
+ output?: string | undefined;
3565
+ } | {
3511
3566
  type: "function_call";
3512
3567
  name: string;
3513
- callId: string;
3514
3568
  arguments: string;
3569
+ callId: string;
3515
3570
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3516
3571
  providerData?: Record<string, any> | undefined;
3517
3572
  id?: string | undefined;
@@ -3522,10 +3577,18 @@ export declare const SerializedRunState: z.ZodObject<{
3522
3577
  name: string;
3523
3578
  };
3524
3579
  rawItem: {
3580
+ type: "hosted_tool_call";
3581
+ name: string;
3582
+ status?: string | undefined;
3583
+ providerData?: Record<string, any> | undefined;
3584
+ id?: string | undefined;
3585
+ arguments?: string | undefined;
3586
+ output?: string | undefined;
3587
+ } | {
3525
3588
  type: "function_call";
3526
3589
  name: string;
3527
- callId: string;
3528
3590
  arguments: string;
3591
+ callId: string;
3529
3592
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3530
3593
  providerData?: Record<string, any> | undefined;
3531
3594
  id?: string | undefined;
@@ -3988,16 +4051,16 @@ export declare const SerializedRunState: z.ZodObject<{
3988
4051
  }, "strip", z.ZodTypeAny, {
3989
4052
  type: "function_call";
3990
4053
  name: string;
3991
- callId: string;
3992
4054
  arguments: string;
4055
+ callId: string;
3993
4056
  status?: "in_progress" | "completed" | "incomplete" | undefined;
3994
4057
  providerData?: Record<string, any> | undefined;
3995
4058
  id?: string | undefined;
3996
4059
  }, {
3997
4060
  type: "function_call";
3998
4061
  name: string;
3999
- callId: string;
4000
4062
  arguments: string;
4063
+ callId: string;
4001
4064
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4002
4065
  providerData?: Record<string, any> | undefined;
4003
4066
  id?: string | undefined;
@@ -4008,6 +4071,7 @@ export declare const SerializedRunState: z.ZodObject<{
4008
4071
  } & {
4009
4072
  type: z.ZodLiteral<"hosted_tool_call">;
4010
4073
  name: z.ZodString;
4074
+ arguments: z.ZodOptional<z.ZodString>;
4011
4075
  status: z.ZodOptional<z.ZodString>;
4012
4076
  output: z.ZodOptional<z.ZodString>;
4013
4077
  }, "strip", z.ZodTypeAny, {
@@ -4016,6 +4080,7 @@ export declare const SerializedRunState: z.ZodObject<{
4016
4080
  status?: string | undefined;
4017
4081
  providerData?: Record<string, any> | undefined;
4018
4082
  id?: string | undefined;
4083
+ arguments?: string | undefined;
4019
4084
  output?: string | undefined;
4020
4085
  }, {
4021
4086
  type: "hosted_tool_call";
@@ -4023,6 +4088,7 @@ export declare const SerializedRunState: z.ZodObject<{
4023
4088
  status?: string | undefined;
4024
4089
  providerData?: Record<string, any> | undefined;
4025
4090
  id?: string | undefined;
4091
+ arguments?: string | undefined;
4026
4092
  output?: string | undefined;
4027
4093
  }>]>, z.ZodObject<{
4028
4094
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -4031,6 +4097,7 @@ export declare const SerializedRunState: z.ZodObject<{
4031
4097
  } & {
4032
4098
  type: z.ZodLiteral<"hosted_tool_call">;
4033
4099
  name: z.ZodString;
4100
+ arguments: z.ZodOptional<z.ZodString>;
4034
4101
  status: z.ZodOptional<z.ZodString>;
4035
4102
  output: z.ZodOptional<z.ZodString>;
4036
4103
  }, "strip", z.ZodTypeAny, {
@@ -4039,6 +4106,7 @@ export declare const SerializedRunState: z.ZodObject<{
4039
4106
  status?: string | undefined;
4040
4107
  providerData?: Record<string, any> | undefined;
4041
4108
  id?: string | undefined;
4109
+ arguments?: string | undefined;
4042
4110
  output?: string | undefined;
4043
4111
  }, {
4044
4112
  type: "hosted_tool_call";
@@ -4046,6 +4114,7 @@ export declare const SerializedRunState: z.ZodObject<{
4046
4114
  status?: string | undefined;
4047
4115
  providerData?: Record<string, any> | undefined;
4048
4116
  id?: string | undefined;
4117
+ arguments?: string | undefined;
4049
4118
  output?: string | undefined;
4050
4119
  }>]>;
4051
4120
  agent: z.ZodObject<{
@@ -4066,12 +4135,13 @@ export declare const SerializedRunState: z.ZodObject<{
4066
4135
  status?: string | undefined;
4067
4136
  providerData?: Record<string, any> | undefined;
4068
4137
  id?: string | undefined;
4138
+ arguments?: string | undefined;
4069
4139
  output?: string | undefined;
4070
4140
  } | {
4071
4141
  type: "function_call";
4072
4142
  name: string;
4073
- callId: string;
4074
4143
  arguments: string;
4144
+ callId: string;
4075
4145
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4076
4146
  providerData?: Record<string, any> | undefined;
4077
4147
  id?: string | undefined;
@@ -4129,12 +4199,13 @@ export declare const SerializedRunState: z.ZodObject<{
4129
4199
  status?: string | undefined;
4130
4200
  providerData?: Record<string, any> | undefined;
4131
4201
  id?: string | undefined;
4202
+ arguments?: string | undefined;
4132
4203
  output?: string | undefined;
4133
4204
  } | {
4134
4205
  type: "function_call";
4135
4206
  name: string;
4136
- callId: string;
4137
4207
  arguments: string;
4208
+ callId: string;
4138
4209
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4139
4210
  providerData?: Record<string, any> | undefined;
4140
4211
  id?: string | undefined;
@@ -4405,16 +4476,16 @@ export declare const SerializedRunState: z.ZodObject<{
4405
4476
  }, "strip", z.ZodTypeAny, {
4406
4477
  type: "function_call";
4407
4478
  name: string;
4408
- callId: string;
4409
4479
  arguments: string;
4480
+ callId: string;
4410
4481
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4411
4482
  providerData?: Record<string, any> | undefined;
4412
4483
  id?: string | undefined;
4413
4484
  }, {
4414
4485
  type: "function_call";
4415
4486
  name: string;
4416
- callId: string;
4417
4487
  arguments: string;
4488
+ callId: string;
4418
4489
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4419
4490
  providerData?: Record<string, any> | undefined;
4420
4491
  id?: string | undefined;
@@ -4434,8 +4505,8 @@ export declare const SerializedRunState: z.ZodObject<{
4434
4505
  rawItem: {
4435
4506
  type: "function_call";
4436
4507
  name: string;
4437
- callId: string;
4438
4508
  arguments: string;
4509
+ callId: string;
4439
4510
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4440
4511
  providerData?: Record<string, any> | undefined;
4441
4512
  id?: string | undefined;
@@ -4448,8 +4519,8 @@ export declare const SerializedRunState: z.ZodObject<{
4448
4519
  rawItem: {
4449
4520
  type: "function_call";
4450
4521
  name: string;
4451
- callId: string;
4452
4522
  arguments: string;
4523
+ callId: string;
4453
4524
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4454
4525
  providerData?: Record<string, any> | undefined;
4455
4526
  id?: string | undefined;
@@ -4598,7 +4669,7 @@ export declare const SerializedRunState: z.ZodObject<{
4598
4669
  };
4599
4670
  }>, z.ZodObject<{
4600
4671
  type: z.ZodLiteral<"tool_approval_item">;
4601
- rawItem: z.ZodObject<{
4672
+ rawItem: z.ZodUnion<[z.ZodObject<{
4602
4673
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4603
4674
  } & {
4604
4675
  id: z.ZodOptional<z.ZodString>;
@@ -4611,20 +4682,46 @@ export declare const SerializedRunState: z.ZodObject<{
4611
4682
  }, "strip", z.ZodTypeAny, {
4612
4683
  type: "function_call";
4613
4684
  name: string;
4614
- callId: string;
4615
4685
  arguments: string;
4686
+ callId: string;
4616
4687
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4617
4688
  providerData?: Record<string, any> | undefined;
4618
4689
  id?: string | undefined;
4619
4690
  }, {
4620
4691
  type: "function_call";
4621
4692
  name: string;
4622
- callId: string;
4623
4693
  arguments: string;
4694
+ callId: string;
4624
4695
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4625
4696
  providerData?: Record<string, any> | undefined;
4626
4697
  id?: string | undefined;
4627
- }>;
4698
+ }>, z.ZodObject<{
4699
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4700
+ } & {
4701
+ id: z.ZodOptional<z.ZodString>;
4702
+ } & {
4703
+ type: z.ZodLiteral<"hosted_tool_call">;
4704
+ name: z.ZodString;
4705
+ arguments: z.ZodOptional<z.ZodString>;
4706
+ status: z.ZodOptional<z.ZodString>;
4707
+ output: z.ZodOptional<z.ZodString>;
4708
+ }, "strip", z.ZodTypeAny, {
4709
+ type: "hosted_tool_call";
4710
+ name: string;
4711
+ status?: string | undefined;
4712
+ providerData?: Record<string, any> | undefined;
4713
+ id?: string | undefined;
4714
+ arguments?: string | undefined;
4715
+ output?: string | undefined;
4716
+ }, {
4717
+ type: "hosted_tool_call";
4718
+ name: string;
4719
+ status?: string | undefined;
4720
+ providerData?: Record<string, any> | undefined;
4721
+ id?: string | undefined;
4722
+ arguments?: string | undefined;
4723
+ output?: string | undefined;
4724
+ }>]>;
4628
4725
  agent: z.ZodObject<{
4629
4726
  name: z.ZodString;
4630
4727
  }, "strip", z.ZodTypeAny, {
@@ -4638,10 +4735,18 @@ export declare const SerializedRunState: z.ZodObject<{
4638
4735
  name: string;
4639
4736
  };
4640
4737
  rawItem: {
4738
+ type: "hosted_tool_call";
4739
+ name: string;
4740
+ status?: string | undefined;
4741
+ providerData?: Record<string, any> | undefined;
4742
+ id?: string | undefined;
4743
+ arguments?: string | undefined;
4744
+ output?: string | undefined;
4745
+ } | {
4641
4746
  type: "function_call";
4642
4747
  name: string;
4643
- callId: string;
4644
4748
  arguments: string;
4749
+ callId: string;
4645
4750
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4646
4751
  providerData?: Record<string, any> | undefined;
4647
4752
  id?: string | undefined;
@@ -4652,10 +4757,18 @@ export declare const SerializedRunState: z.ZodObject<{
4652
4757
  name: string;
4653
4758
  };
4654
4759
  rawItem: {
4760
+ type: "hosted_tool_call";
4761
+ name: string;
4762
+ status?: string | undefined;
4763
+ providerData?: Record<string, any> | undefined;
4764
+ id?: string | undefined;
4765
+ arguments?: string | undefined;
4766
+ output?: string | undefined;
4767
+ } | {
4655
4768
  type: "function_call";
4656
4769
  name: string;
4657
- callId: string;
4658
4770
  arguments: string;
4771
+ callId: string;
4659
4772
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4660
4773
  providerData?: Record<string, any> | undefined;
4661
4774
  id?: string | undefined;
@@ -4692,6 +4805,88 @@ export declare const SerializedRunState: z.ZodObject<{
4692
4805
  computer?: any;
4693
4806
  toolCall?: any;
4694
4807
  }>, "many">;
4808
+ mcpApprovalRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
4809
+ requestItem: z.ZodObject<{
4810
+ rawItem: z.ZodObject<{
4811
+ type: z.ZodLiteral<"hosted_tool_call">;
4812
+ name: z.ZodString;
4813
+ arguments: z.ZodOptional<z.ZodString>;
4814
+ status: z.ZodOptional<z.ZodString>;
4815
+ output: z.ZodOptional<z.ZodString>;
4816
+ }, "strip", z.ZodTypeAny, {
4817
+ type: "hosted_tool_call";
4818
+ name: string;
4819
+ status?: string | undefined;
4820
+ arguments?: string | undefined;
4821
+ output?: string | undefined;
4822
+ }, {
4823
+ type: "hosted_tool_call";
4824
+ name: string;
4825
+ status?: string | undefined;
4826
+ arguments?: string | undefined;
4827
+ output?: string | undefined;
4828
+ }>;
4829
+ }, "strip", z.ZodTypeAny, {
4830
+ rawItem: {
4831
+ type: "hosted_tool_call";
4832
+ name: string;
4833
+ status?: string | undefined;
4834
+ arguments?: string | undefined;
4835
+ output?: string | undefined;
4836
+ };
4837
+ }, {
4838
+ rawItem: {
4839
+ type: "hosted_tool_call";
4840
+ name: string;
4841
+ status?: string | undefined;
4842
+ arguments?: string | undefined;
4843
+ output?: string | undefined;
4844
+ };
4845
+ }>;
4846
+ mcpTool: z.ZodObject<{
4847
+ type: z.ZodLiteral<"hosted_tool">;
4848
+ name: z.ZodLiteral<"hosted_mcp">;
4849
+ providerData: z.ZodRecord<z.ZodString, z.ZodAny>;
4850
+ }, "strip", z.ZodTypeAny, {
4851
+ type: "hosted_tool";
4852
+ providerData: Record<string, any>;
4853
+ name: "hosted_mcp";
4854
+ }, {
4855
+ type: "hosted_tool";
4856
+ providerData: Record<string, any>;
4857
+ name: "hosted_mcp";
4858
+ }>;
4859
+ }, "strip", z.ZodTypeAny, {
4860
+ requestItem: {
4861
+ rawItem: {
4862
+ type: "hosted_tool_call";
4863
+ name: string;
4864
+ status?: string | undefined;
4865
+ arguments?: string | undefined;
4866
+ output?: string | undefined;
4867
+ };
4868
+ };
4869
+ mcpTool: {
4870
+ type: "hosted_tool";
4871
+ providerData: Record<string, any>;
4872
+ name: "hosted_mcp";
4873
+ };
4874
+ }, {
4875
+ requestItem: {
4876
+ rawItem: {
4877
+ type: "hosted_tool_call";
4878
+ name: string;
4879
+ status?: string | undefined;
4880
+ arguments?: string | undefined;
4881
+ output?: string | undefined;
4882
+ };
4883
+ };
4884
+ mcpTool: {
4885
+ type: "hosted_tool";
4886
+ providerData: Record<string, any>;
4887
+ name: "hosted_mcp";
4888
+ };
4889
+ }>, "many">>;
4695
4890
  }, "strip", z.ZodTypeAny, {
4696
4891
  handoffs: {
4697
4892
  toolCall?: any;
@@ -4745,12 +4940,13 @@ export declare const SerializedRunState: z.ZodObject<{
4745
4940
  status?: string | undefined;
4746
4941
  providerData?: Record<string, any> | undefined;
4747
4942
  id?: string | undefined;
4943
+ arguments?: string | undefined;
4748
4944
  output?: string | undefined;
4749
4945
  } | {
4750
4946
  type: "function_call";
4751
4947
  name: string;
4752
- callId: string;
4753
4948
  arguments: string;
4949
+ callId: string;
4754
4950
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4755
4951
  providerData?: Record<string, any> | undefined;
4756
4952
  id?: string | undefined;
@@ -4844,8 +5040,8 @@ export declare const SerializedRunState: z.ZodObject<{
4844
5040
  rawItem: {
4845
5041
  type: "function_call";
4846
5042
  name: string;
4847
- callId: string;
4848
5043
  arguments: string;
5044
+ callId: string;
4849
5045
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4850
5046
  providerData?: Record<string, any> | undefined;
4851
5047
  id?: string | undefined;
@@ -4882,10 +5078,18 @@ export declare const SerializedRunState: z.ZodObject<{
4882
5078
  name: string;
4883
5079
  };
4884
5080
  rawItem: {
5081
+ type: "hosted_tool_call";
5082
+ name: string;
5083
+ status?: string | undefined;
5084
+ providerData?: Record<string, any> | undefined;
5085
+ id?: string | undefined;
5086
+ arguments?: string | undefined;
5087
+ output?: string | undefined;
5088
+ } | {
4885
5089
  type: "function_call";
4886
5090
  name: string;
4887
- callId: string;
4888
5091
  arguments: string;
5092
+ callId: string;
4889
5093
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4890
5094
  providerData?: Record<string, any> | undefined;
4891
5095
  id?: string | undefined;
@@ -4900,6 +5104,22 @@ export declare const SerializedRunState: z.ZodObject<{
4900
5104
  computer?: any;
4901
5105
  toolCall?: any;
4902
5106
  }[];
5107
+ mcpApprovalRequests?: {
5108
+ requestItem: {
5109
+ rawItem: {
5110
+ type: "hosted_tool_call";
5111
+ name: string;
5112
+ status?: string | undefined;
5113
+ arguments?: string | undefined;
5114
+ output?: string | undefined;
5115
+ };
5116
+ };
5117
+ mcpTool: {
5118
+ type: "hosted_tool";
5119
+ providerData: Record<string, any>;
5120
+ name: "hosted_mcp";
5121
+ };
5122
+ }[] | undefined;
4903
5123
  }, {
4904
5124
  handoffs: {
4905
5125
  toolCall?: any;
@@ -4953,12 +5173,13 @@ export declare const SerializedRunState: z.ZodObject<{
4953
5173
  status?: string | undefined;
4954
5174
  providerData?: Record<string, any> | undefined;
4955
5175
  id?: string | undefined;
5176
+ arguments?: string | undefined;
4956
5177
  output?: string | undefined;
4957
5178
  } | {
4958
5179
  type: "function_call";
4959
5180
  name: string;
4960
- callId: string;
4961
5181
  arguments: string;
5182
+ callId: string;
4962
5183
  status?: "in_progress" | "completed" | "incomplete" | undefined;
4963
5184
  providerData?: Record<string, any> | undefined;
4964
5185
  id?: string | undefined;
@@ -5052,8 +5273,8 @@ export declare const SerializedRunState: z.ZodObject<{
5052
5273
  rawItem: {
5053
5274
  type: "function_call";
5054
5275
  name: string;
5055
- callId: string;
5056
5276
  arguments: string;
5277
+ callId: string;
5057
5278
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5058
5279
  providerData?: Record<string, any> | undefined;
5059
5280
  id?: string | undefined;
@@ -5090,10 +5311,18 @@ export declare const SerializedRunState: z.ZodObject<{
5090
5311
  name: string;
5091
5312
  };
5092
5313
  rawItem: {
5314
+ type: "hosted_tool_call";
5315
+ name: string;
5316
+ status?: string | undefined;
5317
+ providerData?: Record<string, any> | undefined;
5318
+ id?: string | undefined;
5319
+ arguments?: string | undefined;
5320
+ output?: string | undefined;
5321
+ } | {
5093
5322
  type: "function_call";
5094
5323
  name: string;
5095
- callId: string;
5096
5324
  arguments: string;
5325
+ callId: string;
5097
5326
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5098
5327
  providerData?: Record<string, any> | undefined;
5099
5328
  id?: string | undefined;
@@ -5108,6 +5337,22 @@ export declare const SerializedRunState: z.ZodObject<{
5108
5337
  computer?: any;
5109
5338
  toolCall?: any;
5110
5339
  }[];
5340
+ mcpApprovalRequests?: {
5341
+ requestItem: {
5342
+ rawItem: {
5343
+ type: "hosted_tool_call";
5344
+ name: string;
5345
+ status?: string | undefined;
5346
+ arguments?: string | undefined;
5347
+ output?: string | undefined;
5348
+ };
5349
+ };
5350
+ mcpTool: {
5351
+ type: "hosted_tool";
5352
+ providerData: Record<string, any>;
5353
+ name: "hosted_mcp";
5354
+ };
5355
+ }[] | undefined;
5111
5356
  }>>;
5112
5357
  trace: z.ZodNullable<z.ZodObject<{
5113
5358
  object: z.ZodLiteral<"trace">;
@@ -5207,12 +5452,13 @@ export declare const SerializedRunState: z.ZodObject<{
5207
5452
  status?: string | undefined;
5208
5453
  providerData?: Record<string, any> | undefined;
5209
5454
  id?: string | undefined;
5455
+ arguments?: string | undefined;
5210
5456
  output?: string | undefined;
5211
5457
  } | {
5212
5458
  type: "function_call";
5213
5459
  name: string;
5214
- callId: string;
5215
5460
  arguments: string;
5461
+ callId: string;
5216
5462
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5217
5463
  providerData?: Record<string, any> | undefined;
5218
5464
  id?: string | undefined;
@@ -5337,12 +5583,13 @@ export declare const SerializedRunState: z.ZodObject<{
5337
5583
  status?: string | undefined;
5338
5584
  providerData?: Record<string, any> | undefined;
5339
5585
  id?: string | undefined;
5586
+ arguments?: string | undefined;
5340
5587
  output?: string | undefined;
5341
5588
  } | {
5342
5589
  type: "function_call";
5343
5590
  name: string;
5344
- callId: string;
5345
5591
  arguments: string;
5592
+ callId: string;
5346
5593
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5347
5594
  providerData?: Record<string, any> | undefined;
5348
5595
  id?: string | undefined;
@@ -5498,12 +5745,13 @@ export declare const SerializedRunState: z.ZodObject<{
5498
5745
  status?: string | undefined;
5499
5746
  providerData?: Record<string, any> | undefined;
5500
5747
  id?: string | undefined;
5748
+ arguments?: string | undefined;
5501
5749
  output?: string | undefined;
5502
5750
  } | {
5503
5751
  type: "function_call";
5504
5752
  name: string;
5505
- callId: string;
5506
5753
  arguments: string;
5754
+ callId: string;
5507
5755
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5508
5756
  providerData?: Record<string, any> | undefined;
5509
5757
  id?: string | undefined;
@@ -5597,8 +5845,8 @@ export declare const SerializedRunState: z.ZodObject<{
5597
5845
  rawItem: {
5598
5846
  type: "function_call";
5599
5847
  name: string;
5600
- callId: string;
5601
5848
  arguments: string;
5849
+ callId: string;
5602
5850
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5603
5851
  providerData?: Record<string, any> | undefined;
5604
5852
  id?: string | undefined;
@@ -5635,10 +5883,18 @@ export declare const SerializedRunState: z.ZodObject<{
5635
5883
  name: string;
5636
5884
  };
5637
5885
  rawItem: {
5886
+ type: "hosted_tool_call";
5887
+ name: string;
5888
+ status?: string | undefined;
5889
+ providerData?: Record<string, any> | undefined;
5890
+ id?: string | undefined;
5891
+ arguments?: string | undefined;
5892
+ output?: string | undefined;
5893
+ } | {
5638
5894
  type: "function_call";
5639
5895
  name: string;
5640
- callId: string;
5641
5896
  arguments: string;
5897
+ callId: string;
5642
5898
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5643
5899
  providerData?: Record<string, any> | undefined;
5644
5900
  id?: string | undefined;
@@ -5702,12 +5958,13 @@ export declare const SerializedRunState: z.ZodObject<{
5702
5958
  status?: string | undefined;
5703
5959
  providerData?: Record<string, any> | undefined;
5704
5960
  id?: string | undefined;
5961
+ arguments?: string | undefined;
5705
5962
  output?: string | undefined;
5706
5963
  } | {
5707
5964
  type: "function_call";
5708
5965
  name: string;
5709
- callId: string;
5710
5966
  arguments: string;
5967
+ callId: string;
5711
5968
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5712
5969
  providerData?: Record<string, any> | undefined;
5713
5970
  id?: string | undefined;
@@ -5828,12 +6085,13 @@ export declare const SerializedRunState: z.ZodObject<{
5828
6085
  status?: string | undefined;
5829
6086
  providerData?: Record<string, any> | undefined;
5830
6087
  id?: string | undefined;
6088
+ arguments?: string | undefined;
5831
6089
  output?: string | undefined;
5832
6090
  } | {
5833
6091
  type: "function_call";
5834
6092
  name: string;
5835
- callId: string;
5836
6093
  arguments: string;
6094
+ callId: string;
5837
6095
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5838
6096
  providerData?: Record<string, any> | undefined;
5839
6097
  id?: string | undefined;
@@ -5927,8 +6185,8 @@ export declare const SerializedRunState: z.ZodObject<{
5927
6185
  rawItem: {
5928
6186
  type: "function_call";
5929
6187
  name: string;
5930
- callId: string;
5931
6188
  arguments: string;
6189
+ callId: string;
5932
6190
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5933
6191
  providerData?: Record<string, any> | undefined;
5934
6192
  id?: string | undefined;
@@ -5965,10 +6223,18 @@ export declare const SerializedRunState: z.ZodObject<{
5965
6223
  name: string;
5966
6224
  };
5967
6225
  rawItem: {
6226
+ type: "hosted_tool_call";
6227
+ name: string;
6228
+ status?: string | undefined;
6229
+ providerData?: Record<string, any> | undefined;
6230
+ id?: string | undefined;
6231
+ arguments?: string | undefined;
6232
+ output?: string | undefined;
6233
+ } | {
5968
6234
  type: "function_call";
5969
6235
  name: string;
5970
- callId: string;
5971
6236
  arguments: string;
6237
+ callId: string;
5972
6238
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5973
6239
  providerData?: Record<string, any> | undefined;
5974
6240
  id?: string | undefined;
@@ -5983,6 +6249,22 @@ export declare const SerializedRunState: z.ZodObject<{
5983
6249
  computer?: any;
5984
6250
  toolCall?: any;
5985
6251
  }[];
6252
+ mcpApprovalRequests?: {
6253
+ requestItem: {
6254
+ rawItem: {
6255
+ type: "hosted_tool_call";
6256
+ name: string;
6257
+ status?: string | undefined;
6258
+ arguments?: string | undefined;
6259
+ output?: string | undefined;
6260
+ };
6261
+ };
6262
+ mcpTool: {
6263
+ type: "hosted_tool";
6264
+ providerData: Record<string, any>;
6265
+ name: "hosted_mcp";
6266
+ };
6267
+ }[] | undefined;
5986
6268
  } | undefined;
5987
6269
  }, {
5988
6270
  $schemaVersion: "1.0";
@@ -6063,12 +6345,13 @@ export declare const SerializedRunState: z.ZodObject<{
6063
6345
  status?: string | undefined;
6064
6346
  providerData?: Record<string, any> | undefined;
6065
6347
  id?: string | undefined;
6348
+ arguments?: string | undefined;
6066
6349
  output?: string | undefined;
6067
6350
  } | {
6068
6351
  type: "function_call";
6069
6352
  name: string;
6070
- callId: string;
6071
6353
  arguments: string;
6354
+ callId: string;
6072
6355
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6073
6356
  providerData?: Record<string, any> | undefined;
6074
6357
  id?: string | undefined;
@@ -6193,12 +6476,13 @@ export declare const SerializedRunState: z.ZodObject<{
6193
6476
  status?: string | undefined;
6194
6477
  providerData?: Record<string, any> | undefined;
6195
6478
  id?: string | undefined;
6479
+ arguments?: string | undefined;
6196
6480
  output?: string | undefined;
6197
6481
  } | {
6198
6482
  type: "function_call";
6199
6483
  name: string;
6200
- callId: string;
6201
6484
  arguments: string;
6485
+ callId: string;
6202
6486
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6203
6487
  providerData?: Record<string, any> | undefined;
6204
6488
  id?: string | undefined;
@@ -6354,12 +6638,13 @@ export declare const SerializedRunState: z.ZodObject<{
6354
6638
  status?: string | undefined;
6355
6639
  providerData?: Record<string, any> | undefined;
6356
6640
  id?: string | undefined;
6641
+ arguments?: string | undefined;
6357
6642
  output?: string | undefined;
6358
6643
  } | {
6359
6644
  type: "function_call";
6360
6645
  name: string;
6361
- callId: string;
6362
6646
  arguments: string;
6647
+ callId: string;
6363
6648
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6364
6649
  providerData?: Record<string, any> | undefined;
6365
6650
  id?: string | undefined;
@@ -6453,8 +6738,8 @@ export declare const SerializedRunState: z.ZodObject<{
6453
6738
  rawItem: {
6454
6739
  type: "function_call";
6455
6740
  name: string;
6456
- callId: string;
6457
6741
  arguments: string;
6742
+ callId: string;
6458
6743
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6459
6744
  providerData?: Record<string, any> | undefined;
6460
6745
  id?: string | undefined;
@@ -6491,10 +6776,18 @@ export declare const SerializedRunState: z.ZodObject<{
6491
6776
  name: string;
6492
6777
  };
6493
6778
  rawItem: {
6779
+ type: "hosted_tool_call";
6780
+ name: string;
6781
+ status?: string | undefined;
6782
+ providerData?: Record<string, any> | undefined;
6783
+ id?: string | undefined;
6784
+ arguments?: string | undefined;
6785
+ output?: string | undefined;
6786
+ } | {
6494
6787
  type: "function_call";
6495
6788
  name: string;
6496
- callId: string;
6497
6789
  arguments: string;
6790
+ callId: string;
6498
6791
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6499
6792
  providerData?: Record<string, any> | undefined;
6500
6793
  id?: string | undefined;
@@ -6558,12 +6851,13 @@ export declare const SerializedRunState: z.ZodObject<{
6558
6851
  status?: string | undefined;
6559
6852
  providerData?: Record<string, any> | undefined;
6560
6853
  id?: string | undefined;
6854
+ arguments?: string | undefined;
6561
6855
  output?: string | undefined;
6562
6856
  } | {
6563
6857
  type: "function_call";
6564
6858
  name: string;
6565
- callId: string;
6566
6859
  arguments: string;
6860
+ callId: string;
6567
6861
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6568
6862
  providerData?: Record<string, any> | undefined;
6569
6863
  id?: string | undefined;
@@ -6684,12 +6978,13 @@ export declare const SerializedRunState: z.ZodObject<{
6684
6978
  status?: string | undefined;
6685
6979
  providerData?: Record<string, any> | undefined;
6686
6980
  id?: string | undefined;
6981
+ arguments?: string | undefined;
6687
6982
  output?: string | undefined;
6688
6983
  } | {
6689
6984
  type: "function_call";
6690
6985
  name: string;
6691
- callId: string;
6692
6986
  arguments: string;
6987
+ callId: string;
6693
6988
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6694
6989
  providerData?: Record<string, any> | undefined;
6695
6990
  id?: string | undefined;
@@ -6783,8 +7078,8 @@ export declare const SerializedRunState: z.ZodObject<{
6783
7078
  rawItem: {
6784
7079
  type: "function_call";
6785
7080
  name: string;
6786
- callId: string;
6787
7081
  arguments: string;
7082
+ callId: string;
6788
7083
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6789
7084
  providerData?: Record<string, any> | undefined;
6790
7085
  id?: string | undefined;
@@ -6821,10 +7116,18 @@ export declare const SerializedRunState: z.ZodObject<{
6821
7116
  name: string;
6822
7117
  };
6823
7118
  rawItem: {
7119
+ type: "hosted_tool_call";
7120
+ name: string;
7121
+ status?: string | undefined;
7122
+ providerData?: Record<string, any> | undefined;
7123
+ id?: string | undefined;
7124
+ arguments?: string | undefined;
7125
+ output?: string | undefined;
7126
+ } | {
6824
7127
  type: "function_call";
6825
7128
  name: string;
6826
- callId: string;
6827
7129
  arguments: string;
7130
+ callId: string;
6828
7131
  status?: "in_progress" | "completed" | "incomplete" | undefined;
6829
7132
  providerData?: Record<string, any> | undefined;
6830
7133
  id?: string | undefined;
@@ -6839,6 +7142,22 @@ export declare const SerializedRunState: z.ZodObject<{
6839
7142
  computer?: any;
6840
7143
  toolCall?: any;
6841
7144
  }[];
7145
+ mcpApprovalRequests?: {
7146
+ requestItem: {
7147
+ rawItem: {
7148
+ type: "hosted_tool_call";
7149
+ name: string;
7150
+ status?: string | undefined;
7151
+ arguments?: string | undefined;
7152
+ output?: string | undefined;
7153
+ };
7154
+ };
7155
+ mcpTool: {
7156
+ type: "hosted_tool";
7157
+ providerData: Record<string, any>;
7158
+ name: "hosted_mcp";
7159
+ };
7160
+ }[] | undefined;
6842
7161
  } | undefined;
6843
7162
  }>;
6844
7163
  /**