@openai/agents-core 0.3.9 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +1 -5
- package/dist/defaultModel.js +12 -3
- package/dist/defaultModel.js.map +1 -1
- package/dist/defaultModel.mjs +12 -3
- package/dist/defaultModel.mjs.map +1 -1
- package/dist/items.d.ts +232 -304
- package/dist/mcp.d.ts +3 -31
- package/dist/memory/session.d.ts +12 -0
- package/dist/memory/session.js.map +1 -1
- package/dist/memory/session.mjs.map +1 -1
- package/dist/metadata.js +2 -2
- package/dist/metadata.mjs +2 -2
- package/dist/model.d.ts +3 -3
- package/dist/run.js +1 -0
- package/dist/run.js.map +1 -1
- package/dist/run.mjs +1 -0
- package/dist/run.mjs.map +1 -1
- package/dist/runState.d.ts +752 -13345
- package/dist/runState.js +4 -0
- package/dist/runState.js.map +1 -1
- package/dist/runState.mjs +4 -0
- package/dist/runState.mjs.map +1 -1
- package/dist/runner/sessionPersistence.js +8 -1
- package/dist/runner/sessionPersistence.js.map +1 -1
- package/dist/runner/sessionPersistence.mjs +8 -1
- package/dist/runner/sessionPersistence.mjs.map +1 -1
- package/dist/runner/steps.d.ts +5 -27
- package/dist/runner/toolExecution.js +29 -10
- package/dist/runner/toolExecution.js.map +1 -1
- package/dist/runner/toolExecution.mjs +29 -10
- package/dist/runner/toolExecution.mjs.map +1 -1
- package/dist/types/protocol.d.ts +744 -10641
- package/dist/utils/zodCompat.d.ts +5 -6
- package/dist/utils/zodCompat.js.map +1 -1
- package/dist/utils/zodCompat.mjs.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.d.ts +1 -1
- package/dist/utils/zodJsonSchemaCompat.js +3 -0
- package/dist/utils/zodJsonSchemaCompat.js.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.mjs +3 -0
- package/dist/utils/zodJsonSchemaCompat.mjs.map +1 -1
- package/package.json +3 -3
package/dist/items.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare class RunItemBase {
|
|
|
6
6
|
toJSON(): {
|
|
7
7
|
type: string;
|
|
8
8
|
rawItem: {
|
|
9
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
10
9
|
role: "assistant";
|
|
10
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
11
11
|
content: ({
|
|
12
12
|
type: "refusal";
|
|
13
13
|
refusal: string;
|
|
@@ -29,9 +29,9 @@ export declare class RunItemBase {
|
|
|
29
29
|
image: string;
|
|
30
30
|
providerData?: Record<string, any> | undefined;
|
|
31
31
|
})[];
|
|
32
|
-
type?: "message" | undefined;
|
|
33
32
|
providerData?: Record<string, any> | undefined;
|
|
34
33
|
id?: string | undefined;
|
|
34
|
+
type?: "message" | undefined;
|
|
35
35
|
} | {
|
|
36
36
|
role: "user";
|
|
37
37
|
content: string | ({
|
|
@@ -63,35 +63,36 @@ export declare class RunItemBase {
|
|
|
63
63
|
format?: string | null | undefined;
|
|
64
64
|
transcript?: string | null | undefined;
|
|
65
65
|
})[];
|
|
66
|
-
type?: "message" | undefined;
|
|
67
66
|
providerData?: Record<string, any> | undefined;
|
|
68
67
|
id?: string | undefined;
|
|
68
|
+
type?: "message" | undefined;
|
|
69
69
|
} | {
|
|
70
70
|
role: "system";
|
|
71
71
|
content: string;
|
|
72
|
-
type?: "message" | undefined;
|
|
73
72
|
providerData?: Record<string, any> | undefined;
|
|
74
73
|
id?: string | undefined;
|
|
74
|
+
type?: "message" | undefined;
|
|
75
75
|
} | {
|
|
76
76
|
type: "hosted_tool_call";
|
|
77
77
|
name: string;
|
|
78
|
-
status?: string | undefined;
|
|
79
78
|
providerData?: Record<string, any> | undefined;
|
|
80
79
|
id?: string | undefined;
|
|
81
80
|
arguments?: string | undefined;
|
|
81
|
+
status?: string | undefined;
|
|
82
82
|
output?: string | undefined;
|
|
83
83
|
} | {
|
|
84
84
|
type: "function_call";
|
|
85
|
+
callId: string;
|
|
85
86
|
name: string;
|
|
86
87
|
arguments: string;
|
|
87
|
-
callId: string;
|
|
88
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
89
88
|
providerData?: Record<string, any> | undefined;
|
|
90
89
|
id?: string | undefined;
|
|
90
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
91
91
|
} | {
|
|
92
92
|
type: "function_call_result";
|
|
93
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
94
93
|
name: string;
|
|
94
|
+
callId: string;
|
|
95
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
95
96
|
output: string | {
|
|
96
97
|
type: "text";
|
|
97
98
|
text: string;
|
|
@@ -111,9 +112,9 @@ export declare class RunItemBase {
|
|
|
111
112
|
} | {
|
|
112
113
|
type: "file";
|
|
113
114
|
file: string | {
|
|
114
|
-
filename: string;
|
|
115
115
|
data: string | Uint8Array<ArrayBuffer>;
|
|
116
116
|
mediaType: string;
|
|
117
|
+
filename: string;
|
|
117
118
|
} | {
|
|
118
119
|
url: string;
|
|
119
120
|
filename?: string | undefined;
|
|
@@ -143,13 +144,12 @@ export declare class RunItemBase {
|
|
|
143
144
|
} | undefined;
|
|
144
145
|
filename?: string | undefined;
|
|
145
146
|
})[];
|
|
146
|
-
callId: string;
|
|
147
147
|
providerData?: Record<string, any> | undefined;
|
|
148
148
|
id?: string | undefined;
|
|
149
149
|
} | {
|
|
150
150
|
type: "computer_call";
|
|
151
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
152
151
|
callId: string;
|
|
152
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
153
153
|
action: {
|
|
154
154
|
type: "screenshot";
|
|
155
155
|
} | {
|
|
@@ -177,25 +177,25 @@ export declare class RunItemBase {
|
|
|
177
177
|
x: number;
|
|
178
178
|
y: number;
|
|
179
179
|
} | {
|
|
180
|
-
keys: string[];
|
|
181
180
|
type: "keypress";
|
|
181
|
+
keys: string[];
|
|
182
182
|
} | {
|
|
183
|
+
type: "drag";
|
|
183
184
|
path: {
|
|
184
185
|
x: number;
|
|
185
186
|
y: number;
|
|
186
187
|
}[];
|
|
187
|
-
type: "drag";
|
|
188
188
|
};
|
|
189
189
|
providerData?: Record<string, any> | undefined;
|
|
190
190
|
id?: string | undefined;
|
|
191
191
|
} | {
|
|
192
192
|
type: "computer_call_result";
|
|
193
|
+
callId: string;
|
|
193
194
|
output: {
|
|
194
195
|
type: "computer_screenshot";
|
|
195
196
|
data: string;
|
|
196
197
|
providerData?: Record<string, any> | undefined;
|
|
197
198
|
};
|
|
198
|
-
callId: string;
|
|
199
199
|
providerData?: Record<string, any> | undefined;
|
|
200
200
|
id?: string | undefined;
|
|
201
201
|
} | {
|
|
@@ -206,57 +206,48 @@ export declare class RunItemBase {
|
|
|
206
206
|
timeoutMs?: number | undefined;
|
|
207
207
|
maxOutputLength?: number | undefined;
|
|
208
208
|
};
|
|
209
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
210
209
|
providerData?: Record<string, any> | undefined;
|
|
211
210
|
id?: string | undefined;
|
|
211
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
212
212
|
} | {
|
|
213
213
|
type: "shell_call_output";
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
type: "timeout";
|
|
221
|
-
}, {
|
|
214
|
+
callId: string;
|
|
215
|
+
output: {
|
|
216
|
+
[x: string]: unknown;
|
|
217
|
+
stdout: string;
|
|
218
|
+
stderr: string;
|
|
219
|
+
outcome: {
|
|
222
220
|
type: "timeout";
|
|
223
|
-
}
|
|
224
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
225
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
226
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
227
|
-
type: "exit";
|
|
228
|
-
exitCode: number | null;
|
|
229
|
-
}, {
|
|
221
|
+
} | {
|
|
230
222
|
type: "exit";
|
|
231
223
|
exitCode: number | null;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
callId: string;
|
|
224
|
+
};
|
|
225
|
+
}[];
|
|
235
226
|
providerData?: Record<string, any> | undefined;
|
|
236
227
|
id?: string | undefined;
|
|
237
228
|
maxOutputLength?: number | undefined;
|
|
238
229
|
} | {
|
|
239
230
|
type: "apply_patch_call";
|
|
240
|
-
status: "in_progress" | "completed";
|
|
241
231
|
callId: string;
|
|
232
|
+
status: "in_progress" | "completed";
|
|
242
233
|
operation: {
|
|
243
|
-
path: string;
|
|
244
234
|
type: "create_file";
|
|
235
|
+
path: string;
|
|
245
236
|
diff: string;
|
|
246
237
|
} | {
|
|
247
|
-
path: string;
|
|
248
238
|
type: "update_file";
|
|
239
|
+
path: string;
|
|
249
240
|
diff: string;
|
|
250
241
|
} | {
|
|
251
|
-
path: string;
|
|
252
242
|
type: "delete_file";
|
|
243
|
+
path: string;
|
|
253
244
|
};
|
|
254
245
|
providerData?: Record<string, any> | undefined;
|
|
255
246
|
id?: string | undefined;
|
|
256
247
|
} | {
|
|
257
248
|
type: "apply_patch_call_output";
|
|
258
|
-
status: "completed" | "failed";
|
|
259
249
|
callId: string;
|
|
250
|
+
status: "completed" | "failed";
|
|
260
251
|
providerData?: Record<string, any> | undefined;
|
|
261
252
|
id?: string | undefined;
|
|
262
253
|
output?: string | undefined;
|
|
@@ -298,8 +289,8 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
298
289
|
};
|
|
299
290
|
type: string;
|
|
300
291
|
rawItem: {
|
|
301
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
302
292
|
role: "assistant";
|
|
293
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
303
294
|
content: ({
|
|
304
295
|
type: "refusal";
|
|
305
296
|
refusal: string;
|
|
@@ -321,9 +312,9 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
321
312
|
image: string;
|
|
322
313
|
providerData?: Record<string, any> | undefined;
|
|
323
314
|
})[];
|
|
324
|
-
type?: "message" | undefined;
|
|
325
315
|
providerData?: Record<string, any> | undefined;
|
|
326
316
|
id?: string | undefined;
|
|
317
|
+
type?: "message" | undefined;
|
|
327
318
|
} | {
|
|
328
319
|
role: "user";
|
|
329
320
|
content: string | ({
|
|
@@ -355,35 +346,36 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
355
346
|
format?: string | null | undefined;
|
|
356
347
|
transcript?: string | null | undefined;
|
|
357
348
|
})[];
|
|
358
|
-
type?: "message" | undefined;
|
|
359
349
|
providerData?: Record<string, any> | undefined;
|
|
360
350
|
id?: string | undefined;
|
|
351
|
+
type?: "message" | undefined;
|
|
361
352
|
} | {
|
|
362
353
|
role: "system";
|
|
363
354
|
content: string;
|
|
364
|
-
type?: "message" | undefined;
|
|
365
355
|
providerData?: Record<string, any> | undefined;
|
|
366
356
|
id?: string | undefined;
|
|
357
|
+
type?: "message" | undefined;
|
|
367
358
|
} | {
|
|
368
359
|
type: "hosted_tool_call";
|
|
369
360
|
name: string;
|
|
370
|
-
status?: string | undefined;
|
|
371
361
|
providerData?: Record<string, any> | undefined;
|
|
372
362
|
id?: string | undefined;
|
|
373
363
|
arguments?: string | undefined;
|
|
364
|
+
status?: string | undefined;
|
|
374
365
|
output?: string | undefined;
|
|
375
366
|
} | {
|
|
376
367
|
type: "function_call";
|
|
368
|
+
callId: string;
|
|
377
369
|
name: string;
|
|
378
370
|
arguments: string;
|
|
379
|
-
callId: string;
|
|
380
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
381
371
|
providerData?: Record<string, any> | undefined;
|
|
382
372
|
id?: string | undefined;
|
|
373
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
383
374
|
} | {
|
|
384
375
|
type: "function_call_result";
|
|
385
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
386
376
|
name: string;
|
|
377
|
+
callId: string;
|
|
378
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
387
379
|
output: string | {
|
|
388
380
|
type: "text";
|
|
389
381
|
text: string;
|
|
@@ -403,9 +395,9 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
403
395
|
} | {
|
|
404
396
|
type: "file";
|
|
405
397
|
file: string | {
|
|
406
|
-
filename: string;
|
|
407
398
|
data: string | Uint8Array<ArrayBuffer>;
|
|
408
399
|
mediaType: string;
|
|
400
|
+
filename: string;
|
|
409
401
|
} | {
|
|
410
402
|
url: string;
|
|
411
403
|
filename?: string | undefined;
|
|
@@ -435,13 +427,12 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
435
427
|
} | undefined;
|
|
436
428
|
filename?: string | undefined;
|
|
437
429
|
})[];
|
|
438
|
-
callId: string;
|
|
439
430
|
providerData?: Record<string, any> | undefined;
|
|
440
431
|
id?: string | undefined;
|
|
441
432
|
} | {
|
|
442
433
|
type: "computer_call";
|
|
443
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
444
434
|
callId: string;
|
|
435
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
445
436
|
action: {
|
|
446
437
|
type: "screenshot";
|
|
447
438
|
} | {
|
|
@@ -469,25 +460,25 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
469
460
|
x: number;
|
|
470
461
|
y: number;
|
|
471
462
|
} | {
|
|
472
|
-
keys: string[];
|
|
473
463
|
type: "keypress";
|
|
464
|
+
keys: string[];
|
|
474
465
|
} | {
|
|
466
|
+
type: "drag";
|
|
475
467
|
path: {
|
|
476
468
|
x: number;
|
|
477
469
|
y: number;
|
|
478
470
|
}[];
|
|
479
|
-
type: "drag";
|
|
480
471
|
};
|
|
481
472
|
providerData?: Record<string, any> | undefined;
|
|
482
473
|
id?: string | undefined;
|
|
483
474
|
} | {
|
|
484
475
|
type: "computer_call_result";
|
|
476
|
+
callId: string;
|
|
485
477
|
output: {
|
|
486
478
|
type: "computer_screenshot";
|
|
487
479
|
data: string;
|
|
488
480
|
providerData?: Record<string, any> | undefined;
|
|
489
481
|
};
|
|
490
|
-
callId: string;
|
|
491
482
|
providerData?: Record<string, any> | undefined;
|
|
492
483
|
id?: string | undefined;
|
|
493
484
|
} | {
|
|
@@ -498,57 +489,48 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
498
489
|
timeoutMs?: number | undefined;
|
|
499
490
|
maxOutputLength?: number | undefined;
|
|
500
491
|
};
|
|
501
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
502
492
|
providerData?: Record<string, any> | undefined;
|
|
503
493
|
id?: string | undefined;
|
|
494
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
504
495
|
} | {
|
|
505
496
|
type: "shell_call_output";
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
type: "timeout";
|
|
513
|
-
}, {
|
|
497
|
+
callId: string;
|
|
498
|
+
output: {
|
|
499
|
+
[x: string]: unknown;
|
|
500
|
+
stdout: string;
|
|
501
|
+
stderr: string;
|
|
502
|
+
outcome: {
|
|
514
503
|
type: "timeout";
|
|
515
|
-
}
|
|
516
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
517
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
518
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
519
|
-
type: "exit";
|
|
520
|
-
exitCode: number | null;
|
|
521
|
-
}, {
|
|
504
|
+
} | {
|
|
522
505
|
type: "exit";
|
|
523
506
|
exitCode: number | null;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
callId: string;
|
|
507
|
+
};
|
|
508
|
+
}[];
|
|
527
509
|
providerData?: Record<string, any> | undefined;
|
|
528
510
|
id?: string | undefined;
|
|
529
511
|
maxOutputLength?: number | undefined;
|
|
530
512
|
} | {
|
|
531
513
|
type: "apply_patch_call";
|
|
532
|
-
status: "in_progress" | "completed";
|
|
533
514
|
callId: string;
|
|
515
|
+
status: "in_progress" | "completed";
|
|
534
516
|
operation: {
|
|
535
|
-
path: string;
|
|
536
517
|
type: "create_file";
|
|
518
|
+
path: string;
|
|
537
519
|
diff: string;
|
|
538
520
|
} | {
|
|
539
|
-
path: string;
|
|
540
521
|
type: "update_file";
|
|
522
|
+
path: string;
|
|
541
523
|
diff: string;
|
|
542
524
|
} | {
|
|
543
|
-
path: string;
|
|
544
525
|
type: "delete_file";
|
|
526
|
+
path: string;
|
|
545
527
|
};
|
|
546
528
|
providerData?: Record<string, any> | undefined;
|
|
547
529
|
id?: string | undefined;
|
|
548
530
|
} | {
|
|
549
531
|
type: "apply_patch_call_output";
|
|
550
|
-
status: "completed" | "failed";
|
|
551
532
|
callId: string;
|
|
533
|
+
status: "completed" | "failed";
|
|
552
534
|
providerData?: Record<string, any> | undefined;
|
|
553
535
|
id?: string | undefined;
|
|
554
536
|
output?: string | undefined;
|
|
@@ -591,8 +573,8 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
591
573
|
};
|
|
592
574
|
type: string;
|
|
593
575
|
rawItem: {
|
|
594
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
595
576
|
role: "assistant";
|
|
577
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
596
578
|
content: ({
|
|
597
579
|
type: "refusal";
|
|
598
580
|
refusal: string;
|
|
@@ -614,9 +596,9 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
614
596
|
image: string;
|
|
615
597
|
providerData?: Record<string, any> | undefined;
|
|
616
598
|
})[];
|
|
617
|
-
type?: "message" | undefined;
|
|
618
599
|
providerData?: Record<string, any> | undefined;
|
|
619
600
|
id?: string | undefined;
|
|
601
|
+
type?: "message" | undefined;
|
|
620
602
|
} | {
|
|
621
603
|
role: "user";
|
|
622
604
|
content: string | ({
|
|
@@ -648,35 +630,36 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
648
630
|
format?: string | null | undefined;
|
|
649
631
|
transcript?: string | null | undefined;
|
|
650
632
|
})[];
|
|
651
|
-
type?: "message" | undefined;
|
|
652
633
|
providerData?: Record<string, any> | undefined;
|
|
653
634
|
id?: string | undefined;
|
|
635
|
+
type?: "message" | undefined;
|
|
654
636
|
} | {
|
|
655
637
|
role: "system";
|
|
656
638
|
content: string;
|
|
657
|
-
type?: "message" | undefined;
|
|
658
639
|
providerData?: Record<string, any> | undefined;
|
|
659
640
|
id?: string | undefined;
|
|
641
|
+
type?: "message" | undefined;
|
|
660
642
|
} | {
|
|
661
643
|
type: "hosted_tool_call";
|
|
662
644
|
name: string;
|
|
663
|
-
status?: string | undefined;
|
|
664
645
|
providerData?: Record<string, any> | undefined;
|
|
665
646
|
id?: string | undefined;
|
|
666
647
|
arguments?: string | undefined;
|
|
648
|
+
status?: string | undefined;
|
|
667
649
|
output?: string | undefined;
|
|
668
650
|
} | {
|
|
669
651
|
type: "function_call";
|
|
652
|
+
callId: string;
|
|
670
653
|
name: string;
|
|
671
654
|
arguments: string;
|
|
672
|
-
callId: string;
|
|
673
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
674
655
|
providerData?: Record<string, any> | undefined;
|
|
675
656
|
id?: string | undefined;
|
|
657
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
676
658
|
} | {
|
|
677
659
|
type: "function_call_result";
|
|
678
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
679
660
|
name: string;
|
|
661
|
+
callId: string;
|
|
662
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
680
663
|
output: string | {
|
|
681
664
|
type: "text";
|
|
682
665
|
text: string;
|
|
@@ -696,9 +679,9 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
696
679
|
} | {
|
|
697
680
|
type: "file";
|
|
698
681
|
file: string | {
|
|
699
|
-
filename: string;
|
|
700
682
|
data: string | Uint8Array<ArrayBuffer>;
|
|
701
683
|
mediaType: string;
|
|
684
|
+
filename: string;
|
|
702
685
|
} | {
|
|
703
686
|
url: string;
|
|
704
687
|
filename?: string | undefined;
|
|
@@ -728,13 +711,12 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
728
711
|
} | undefined;
|
|
729
712
|
filename?: string | undefined;
|
|
730
713
|
})[];
|
|
731
|
-
callId: string;
|
|
732
714
|
providerData?: Record<string, any> | undefined;
|
|
733
715
|
id?: string | undefined;
|
|
734
716
|
} | {
|
|
735
717
|
type: "computer_call";
|
|
736
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
737
718
|
callId: string;
|
|
719
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
738
720
|
action: {
|
|
739
721
|
type: "screenshot";
|
|
740
722
|
} | {
|
|
@@ -762,25 +744,25 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
762
744
|
x: number;
|
|
763
745
|
y: number;
|
|
764
746
|
} | {
|
|
765
|
-
keys: string[];
|
|
766
747
|
type: "keypress";
|
|
748
|
+
keys: string[];
|
|
767
749
|
} | {
|
|
750
|
+
type: "drag";
|
|
768
751
|
path: {
|
|
769
752
|
x: number;
|
|
770
753
|
y: number;
|
|
771
754
|
}[];
|
|
772
|
-
type: "drag";
|
|
773
755
|
};
|
|
774
756
|
providerData?: Record<string, any> | undefined;
|
|
775
757
|
id?: string | undefined;
|
|
776
758
|
} | {
|
|
777
759
|
type: "computer_call_result";
|
|
760
|
+
callId: string;
|
|
778
761
|
output: {
|
|
779
762
|
type: "computer_screenshot";
|
|
780
763
|
data: string;
|
|
781
764
|
providerData?: Record<string, any> | undefined;
|
|
782
765
|
};
|
|
783
|
-
callId: string;
|
|
784
766
|
providerData?: Record<string, any> | undefined;
|
|
785
767
|
id?: string | undefined;
|
|
786
768
|
} | {
|
|
@@ -791,57 +773,48 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
791
773
|
timeoutMs?: number | undefined;
|
|
792
774
|
maxOutputLength?: number | undefined;
|
|
793
775
|
};
|
|
794
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
795
776
|
providerData?: Record<string, any> | undefined;
|
|
796
777
|
id?: string | undefined;
|
|
778
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
797
779
|
} | {
|
|
798
780
|
type: "shell_call_output";
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
type: "timeout";
|
|
806
|
-
}, {
|
|
781
|
+
callId: string;
|
|
782
|
+
output: {
|
|
783
|
+
[x: string]: unknown;
|
|
784
|
+
stdout: string;
|
|
785
|
+
stderr: string;
|
|
786
|
+
outcome: {
|
|
807
787
|
type: "timeout";
|
|
808
|
-
}
|
|
809
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
810
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
811
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
812
|
-
type: "exit";
|
|
813
|
-
exitCode: number | null;
|
|
814
|
-
}, {
|
|
788
|
+
} | {
|
|
815
789
|
type: "exit";
|
|
816
790
|
exitCode: number | null;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
callId: string;
|
|
791
|
+
};
|
|
792
|
+
}[];
|
|
820
793
|
providerData?: Record<string, any> | undefined;
|
|
821
794
|
id?: string | undefined;
|
|
822
795
|
maxOutputLength?: number | undefined;
|
|
823
796
|
} | {
|
|
824
797
|
type: "apply_patch_call";
|
|
825
|
-
status: "in_progress" | "completed";
|
|
826
798
|
callId: string;
|
|
799
|
+
status: "in_progress" | "completed";
|
|
827
800
|
operation: {
|
|
828
|
-
path: string;
|
|
829
801
|
type: "create_file";
|
|
802
|
+
path: string;
|
|
830
803
|
diff: string;
|
|
831
804
|
} | {
|
|
832
|
-
path: string;
|
|
833
805
|
type: "update_file";
|
|
806
|
+
path: string;
|
|
834
807
|
diff: string;
|
|
835
808
|
} | {
|
|
836
|
-
path: string;
|
|
837
809
|
type: "delete_file";
|
|
810
|
+
path: string;
|
|
838
811
|
};
|
|
839
812
|
providerData?: Record<string, any> | undefined;
|
|
840
813
|
id?: string | undefined;
|
|
841
814
|
} | {
|
|
842
815
|
type: "apply_patch_call_output";
|
|
843
|
-
status: "completed" | "failed";
|
|
844
816
|
callId: string;
|
|
817
|
+
status: "completed" | "failed";
|
|
845
818
|
providerData?: Record<string, any> | undefined;
|
|
846
819
|
id?: string | undefined;
|
|
847
820
|
output?: string | undefined;
|
|
@@ -885,8 +858,8 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
885
858
|
output: string;
|
|
886
859
|
type: string;
|
|
887
860
|
rawItem: {
|
|
888
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
889
861
|
role: "assistant";
|
|
862
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
890
863
|
content: ({
|
|
891
864
|
type: "refusal";
|
|
892
865
|
refusal: string;
|
|
@@ -908,9 +881,9 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
908
881
|
image: string;
|
|
909
882
|
providerData?: Record<string, any> | undefined;
|
|
910
883
|
})[];
|
|
911
|
-
type?: "message" | undefined;
|
|
912
884
|
providerData?: Record<string, any> | undefined;
|
|
913
885
|
id?: string | undefined;
|
|
886
|
+
type?: "message" | undefined;
|
|
914
887
|
} | {
|
|
915
888
|
role: "user";
|
|
916
889
|
content: string | ({
|
|
@@ -942,35 +915,36 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
942
915
|
format?: string | null | undefined;
|
|
943
916
|
transcript?: string | null | undefined;
|
|
944
917
|
})[];
|
|
945
|
-
type?: "message" | undefined;
|
|
946
918
|
providerData?: Record<string, any> | undefined;
|
|
947
919
|
id?: string | undefined;
|
|
920
|
+
type?: "message" | undefined;
|
|
948
921
|
} | {
|
|
949
922
|
role: "system";
|
|
950
923
|
content: string;
|
|
951
|
-
type?: "message" | undefined;
|
|
952
924
|
providerData?: Record<string, any> | undefined;
|
|
953
925
|
id?: string | undefined;
|
|
926
|
+
type?: "message" | undefined;
|
|
954
927
|
} | {
|
|
955
928
|
type: "hosted_tool_call";
|
|
956
929
|
name: string;
|
|
957
|
-
status?: string | undefined;
|
|
958
930
|
providerData?: Record<string, any> | undefined;
|
|
959
931
|
id?: string | undefined;
|
|
960
932
|
arguments?: string | undefined;
|
|
933
|
+
status?: string | undefined;
|
|
961
934
|
output?: string | undefined;
|
|
962
935
|
} | {
|
|
963
936
|
type: "function_call";
|
|
937
|
+
callId: string;
|
|
964
938
|
name: string;
|
|
965
939
|
arguments: string;
|
|
966
|
-
callId: string;
|
|
967
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
968
940
|
providerData?: Record<string, any> | undefined;
|
|
969
941
|
id?: string | undefined;
|
|
942
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
970
943
|
} | {
|
|
971
944
|
type: "function_call_result";
|
|
972
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
973
945
|
name: string;
|
|
946
|
+
callId: string;
|
|
947
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
974
948
|
output: string | {
|
|
975
949
|
type: "text";
|
|
976
950
|
text: string;
|
|
@@ -990,9 +964,9 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
990
964
|
} | {
|
|
991
965
|
type: "file";
|
|
992
966
|
file: string | {
|
|
993
|
-
filename: string;
|
|
994
967
|
data: string | Uint8Array<ArrayBuffer>;
|
|
995
968
|
mediaType: string;
|
|
969
|
+
filename: string;
|
|
996
970
|
} | {
|
|
997
971
|
url: string;
|
|
998
972
|
filename?: string | undefined;
|
|
@@ -1022,13 +996,12 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
1022
996
|
} | undefined;
|
|
1023
997
|
filename?: string | undefined;
|
|
1024
998
|
})[];
|
|
1025
|
-
callId: string;
|
|
1026
999
|
providerData?: Record<string, any> | undefined;
|
|
1027
1000
|
id?: string | undefined;
|
|
1028
1001
|
} | {
|
|
1029
1002
|
type: "computer_call";
|
|
1030
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1031
1003
|
callId: string;
|
|
1004
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1032
1005
|
action: {
|
|
1033
1006
|
type: "screenshot";
|
|
1034
1007
|
} | {
|
|
@@ -1056,25 +1029,25 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
1056
1029
|
x: number;
|
|
1057
1030
|
y: number;
|
|
1058
1031
|
} | {
|
|
1059
|
-
keys: string[];
|
|
1060
1032
|
type: "keypress";
|
|
1033
|
+
keys: string[];
|
|
1061
1034
|
} | {
|
|
1035
|
+
type: "drag";
|
|
1062
1036
|
path: {
|
|
1063
1037
|
x: number;
|
|
1064
1038
|
y: number;
|
|
1065
1039
|
}[];
|
|
1066
|
-
type: "drag";
|
|
1067
1040
|
};
|
|
1068
1041
|
providerData?: Record<string, any> | undefined;
|
|
1069
1042
|
id?: string | undefined;
|
|
1070
1043
|
} | {
|
|
1071
1044
|
type: "computer_call_result";
|
|
1045
|
+
callId: string;
|
|
1072
1046
|
output: {
|
|
1073
1047
|
type: "computer_screenshot";
|
|
1074
1048
|
data: string;
|
|
1075
1049
|
providerData?: Record<string, any> | undefined;
|
|
1076
1050
|
};
|
|
1077
|
-
callId: string;
|
|
1078
1051
|
providerData?: Record<string, any> | undefined;
|
|
1079
1052
|
id?: string | undefined;
|
|
1080
1053
|
} | {
|
|
@@ -1085,57 +1058,48 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
1085
1058
|
timeoutMs?: number | undefined;
|
|
1086
1059
|
maxOutputLength?: number | undefined;
|
|
1087
1060
|
};
|
|
1088
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1089
1061
|
providerData?: Record<string, any> | undefined;
|
|
1090
1062
|
id?: string | undefined;
|
|
1063
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1091
1064
|
} | {
|
|
1092
1065
|
type: "shell_call_output";
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
type: "timeout";
|
|
1100
|
-
}, {
|
|
1066
|
+
callId: string;
|
|
1067
|
+
output: {
|
|
1068
|
+
[x: string]: unknown;
|
|
1069
|
+
stdout: string;
|
|
1070
|
+
stderr: string;
|
|
1071
|
+
outcome: {
|
|
1101
1072
|
type: "timeout";
|
|
1102
|
-
}
|
|
1103
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
1104
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1105
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1106
|
-
type: "exit";
|
|
1107
|
-
exitCode: number | null;
|
|
1108
|
-
}, {
|
|
1073
|
+
} | {
|
|
1109
1074
|
type: "exit";
|
|
1110
1075
|
exitCode: number | null;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
callId: string;
|
|
1076
|
+
};
|
|
1077
|
+
}[];
|
|
1114
1078
|
providerData?: Record<string, any> | undefined;
|
|
1115
1079
|
id?: string | undefined;
|
|
1116
1080
|
maxOutputLength?: number | undefined;
|
|
1117
1081
|
} | {
|
|
1118
1082
|
type: "apply_patch_call";
|
|
1119
|
-
status: "in_progress" | "completed";
|
|
1120
1083
|
callId: string;
|
|
1084
|
+
status: "in_progress" | "completed";
|
|
1121
1085
|
operation: {
|
|
1122
|
-
path: string;
|
|
1123
1086
|
type: "create_file";
|
|
1087
|
+
path: string;
|
|
1124
1088
|
diff: string;
|
|
1125
1089
|
} | {
|
|
1126
|
-
path: string;
|
|
1127
1090
|
type: "update_file";
|
|
1091
|
+
path: string;
|
|
1128
1092
|
diff: string;
|
|
1129
1093
|
} | {
|
|
1130
|
-
path: string;
|
|
1131
1094
|
type: "delete_file";
|
|
1095
|
+
path: string;
|
|
1132
1096
|
};
|
|
1133
1097
|
providerData?: Record<string, any> | undefined;
|
|
1134
1098
|
id?: string | undefined;
|
|
1135
1099
|
} | {
|
|
1136
1100
|
type: "apply_patch_call_output";
|
|
1137
|
-
status: "completed" | "failed";
|
|
1138
1101
|
callId: string;
|
|
1102
|
+
status: "completed" | "failed";
|
|
1139
1103
|
providerData?: Record<string, any> | undefined;
|
|
1140
1104
|
id?: string | undefined;
|
|
1141
1105
|
output?: string | undefined;
|
|
@@ -1177,8 +1141,8 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1177
1141
|
};
|
|
1178
1142
|
type: string;
|
|
1179
1143
|
rawItem: {
|
|
1180
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1181
1144
|
role: "assistant";
|
|
1145
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1182
1146
|
content: ({
|
|
1183
1147
|
type: "refusal";
|
|
1184
1148
|
refusal: string;
|
|
@@ -1200,9 +1164,9 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1200
1164
|
image: string;
|
|
1201
1165
|
providerData?: Record<string, any> | undefined;
|
|
1202
1166
|
})[];
|
|
1203
|
-
type?: "message" | undefined;
|
|
1204
1167
|
providerData?: Record<string, any> | undefined;
|
|
1205
1168
|
id?: string | undefined;
|
|
1169
|
+
type?: "message" | undefined;
|
|
1206
1170
|
} | {
|
|
1207
1171
|
role: "user";
|
|
1208
1172
|
content: string | ({
|
|
@@ -1234,35 +1198,36 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1234
1198
|
format?: string | null | undefined;
|
|
1235
1199
|
transcript?: string | null | undefined;
|
|
1236
1200
|
})[];
|
|
1237
|
-
type?: "message" | undefined;
|
|
1238
1201
|
providerData?: Record<string, any> | undefined;
|
|
1239
1202
|
id?: string | undefined;
|
|
1203
|
+
type?: "message" | undefined;
|
|
1240
1204
|
} | {
|
|
1241
1205
|
role: "system";
|
|
1242
1206
|
content: string;
|
|
1243
|
-
type?: "message" | undefined;
|
|
1244
1207
|
providerData?: Record<string, any> | undefined;
|
|
1245
1208
|
id?: string | undefined;
|
|
1209
|
+
type?: "message" | undefined;
|
|
1246
1210
|
} | {
|
|
1247
1211
|
type: "hosted_tool_call";
|
|
1248
1212
|
name: string;
|
|
1249
|
-
status?: string | undefined;
|
|
1250
1213
|
providerData?: Record<string, any> | undefined;
|
|
1251
1214
|
id?: string | undefined;
|
|
1252
1215
|
arguments?: string | undefined;
|
|
1216
|
+
status?: string | undefined;
|
|
1253
1217
|
output?: string | undefined;
|
|
1254
1218
|
} | {
|
|
1255
1219
|
type: "function_call";
|
|
1220
|
+
callId: string;
|
|
1256
1221
|
name: string;
|
|
1257
1222
|
arguments: string;
|
|
1258
|
-
callId: string;
|
|
1259
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1260
1223
|
providerData?: Record<string, any> | undefined;
|
|
1261
1224
|
id?: string | undefined;
|
|
1225
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1262
1226
|
} | {
|
|
1263
1227
|
type: "function_call_result";
|
|
1264
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1265
1228
|
name: string;
|
|
1229
|
+
callId: string;
|
|
1230
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1266
1231
|
output: string | {
|
|
1267
1232
|
type: "text";
|
|
1268
1233
|
text: string;
|
|
@@ -1282,9 +1247,9 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1282
1247
|
} | {
|
|
1283
1248
|
type: "file";
|
|
1284
1249
|
file: string | {
|
|
1285
|
-
filename: string;
|
|
1286
1250
|
data: string | Uint8Array<ArrayBuffer>;
|
|
1287
1251
|
mediaType: string;
|
|
1252
|
+
filename: string;
|
|
1288
1253
|
} | {
|
|
1289
1254
|
url: string;
|
|
1290
1255
|
filename?: string | undefined;
|
|
@@ -1314,13 +1279,12 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1314
1279
|
} | undefined;
|
|
1315
1280
|
filename?: string | undefined;
|
|
1316
1281
|
})[];
|
|
1317
|
-
callId: string;
|
|
1318
1282
|
providerData?: Record<string, any> | undefined;
|
|
1319
1283
|
id?: string | undefined;
|
|
1320
1284
|
} | {
|
|
1321
1285
|
type: "computer_call";
|
|
1322
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1323
1286
|
callId: string;
|
|
1287
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1324
1288
|
action: {
|
|
1325
1289
|
type: "screenshot";
|
|
1326
1290
|
} | {
|
|
@@ -1348,25 +1312,25 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1348
1312
|
x: number;
|
|
1349
1313
|
y: number;
|
|
1350
1314
|
} | {
|
|
1351
|
-
keys: string[];
|
|
1352
1315
|
type: "keypress";
|
|
1316
|
+
keys: string[];
|
|
1353
1317
|
} | {
|
|
1318
|
+
type: "drag";
|
|
1354
1319
|
path: {
|
|
1355
1320
|
x: number;
|
|
1356
1321
|
y: number;
|
|
1357
1322
|
}[];
|
|
1358
|
-
type: "drag";
|
|
1359
1323
|
};
|
|
1360
1324
|
providerData?: Record<string, any> | undefined;
|
|
1361
1325
|
id?: string | undefined;
|
|
1362
1326
|
} | {
|
|
1363
1327
|
type: "computer_call_result";
|
|
1328
|
+
callId: string;
|
|
1364
1329
|
output: {
|
|
1365
1330
|
type: "computer_screenshot";
|
|
1366
1331
|
data: string;
|
|
1367
1332
|
providerData?: Record<string, any> | undefined;
|
|
1368
1333
|
};
|
|
1369
|
-
callId: string;
|
|
1370
1334
|
providerData?: Record<string, any> | undefined;
|
|
1371
1335
|
id?: string | undefined;
|
|
1372
1336
|
} | {
|
|
@@ -1377,57 +1341,48 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1377
1341
|
timeoutMs?: number | undefined;
|
|
1378
1342
|
maxOutputLength?: number | undefined;
|
|
1379
1343
|
};
|
|
1380
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1381
1344
|
providerData?: Record<string, any> | undefined;
|
|
1382
1345
|
id?: string | undefined;
|
|
1346
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1383
1347
|
} | {
|
|
1384
1348
|
type: "shell_call_output";
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
type: "timeout";
|
|
1392
|
-
}, {
|
|
1349
|
+
callId: string;
|
|
1350
|
+
output: {
|
|
1351
|
+
[x: string]: unknown;
|
|
1352
|
+
stdout: string;
|
|
1353
|
+
stderr: string;
|
|
1354
|
+
outcome: {
|
|
1393
1355
|
type: "timeout";
|
|
1394
|
-
}
|
|
1395
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
1396
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1397
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1398
|
-
type: "exit";
|
|
1399
|
-
exitCode: number | null;
|
|
1400
|
-
}, {
|
|
1356
|
+
} | {
|
|
1401
1357
|
type: "exit";
|
|
1402
1358
|
exitCode: number | null;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
callId: string;
|
|
1359
|
+
};
|
|
1360
|
+
}[];
|
|
1406
1361
|
providerData?: Record<string, any> | undefined;
|
|
1407
1362
|
id?: string | undefined;
|
|
1408
1363
|
maxOutputLength?: number | undefined;
|
|
1409
1364
|
} | {
|
|
1410
1365
|
type: "apply_patch_call";
|
|
1411
|
-
status: "in_progress" | "completed";
|
|
1412
1366
|
callId: string;
|
|
1367
|
+
status: "in_progress" | "completed";
|
|
1413
1368
|
operation: {
|
|
1414
|
-
path: string;
|
|
1415
1369
|
type: "create_file";
|
|
1370
|
+
path: string;
|
|
1416
1371
|
diff: string;
|
|
1417
1372
|
} | {
|
|
1418
|
-
path: string;
|
|
1419
1373
|
type: "update_file";
|
|
1374
|
+
path: string;
|
|
1420
1375
|
diff: string;
|
|
1421
1376
|
} | {
|
|
1422
|
-
path: string;
|
|
1423
1377
|
type: "delete_file";
|
|
1378
|
+
path: string;
|
|
1424
1379
|
};
|
|
1425
1380
|
providerData?: Record<string, any> | undefined;
|
|
1426
1381
|
id?: string | undefined;
|
|
1427
1382
|
} | {
|
|
1428
1383
|
type: "apply_patch_call_output";
|
|
1429
|
-
status: "completed" | "failed";
|
|
1430
1384
|
callId: string;
|
|
1385
|
+
status: "completed" | "failed";
|
|
1431
1386
|
providerData?: Record<string, any> | undefined;
|
|
1432
1387
|
id?: string | undefined;
|
|
1433
1388
|
output?: string | undefined;
|
|
@@ -1469,8 +1424,8 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1469
1424
|
};
|
|
1470
1425
|
type: string;
|
|
1471
1426
|
rawItem: {
|
|
1472
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1473
1427
|
role: "assistant";
|
|
1428
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1474
1429
|
content: ({
|
|
1475
1430
|
type: "refusal";
|
|
1476
1431
|
refusal: string;
|
|
@@ -1492,9 +1447,9 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1492
1447
|
image: string;
|
|
1493
1448
|
providerData?: Record<string, any> | undefined;
|
|
1494
1449
|
})[];
|
|
1495
|
-
type?: "message" | undefined;
|
|
1496
1450
|
providerData?: Record<string, any> | undefined;
|
|
1497
1451
|
id?: string | undefined;
|
|
1452
|
+
type?: "message" | undefined;
|
|
1498
1453
|
} | {
|
|
1499
1454
|
role: "user";
|
|
1500
1455
|
content: string | ({
|
|
@@ -1526,35 +1481,36 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1526
1481
|
format?: string | null | undefined;
|
|
1527
1482
|
transcript?: string | null | undefined;
|
|
1528
1483
|
})[];
|
|
1529
|
-
type?: "message" | undefined;
|
|
1530
1484
|
providerData?: Record<string, any> | undefined;
|
|
1531
1485
|
id?: string | undefined;
|
|
1486
|
+
type?: "message" | undefined;
|
|
1532
1487
|
} | {
|
|
1533
1488
|
role: "system";
|
|
1534
1489
|
content: string;
|
|
1535
|
-
type?: "message" | undefined;
|
|
1536
1490
|
providerData?: Record<string, any> | undefined;
|
|
1537
1491
|
id?: string | undefined;
|
|
1492
|
+
type?: "message" | undefined;
|
|
1538
1493
|
} | {
|
|
1539
1494
|
type: "hosted_tool_call";
|
|
1540
1495
|
name: string;
|
|
1541
|
-
status?: string | undefined;
|
|
1542
1496
|
providerData?: Record<string, any> | undefined;
|
|
1543
1497
|
id?: string | undefined;
|
|
1544
1498
|
arguments?: string | undefined;
|
|
1499
|
+
status?: string | undefined;
|
|
1545
1500
|
output?: string | undefined;
|
|
1546
1501
|
} | {
|
|
1547
1502
|
type: "function_call";
|
|
1503
|
+
callId: string;
|
|
1548
1504
|
name: string;
|
|
1549
1505
|
arguments: string;
|
|
1550
|
-
callId: string;
|
|
1551
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1552
1506
|
providerData?: Record<string, any> | undefined;
|
|
1553
1507
|
id?: string | undefined;
|
|
1508
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1554
1509
|
} | {
|
|
1555
1510
|
type: "function_call_result";
|
|
1556
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1557
1511
|
name: string;
|
|
1512
|
+
callId: string;
|
|
1513
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1558
1514
|
output: string | {
|
|
1559
1515
|
type: "text";
|
|
1560
1516
|
text: string;
|
|
@@ -1574,9 +1530,9 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1574
1530
|
} | {
|
|
1575
1531
|
type: "file";
|
|
1576
1532
|
file: string | {
|
|
1577
|
-
filename: string;
|
|
1578
1533
|
data: string | Uint8Array<ArrayBuffer>;
|
|
1579
1534
|
mediaType: string;
|
|
1535
|
+
filename: string;
|
|
1580
1536
|
} | {
|
|
1581
1537
|
url: string;
|
|
1582
1538
|
filename?: string | undefined;
|
|
@@ -1606,13 +1562,12 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1606
1562
|
} | undefined;
|
|
1607
1563
|
filename?: string | undefined;
|
|
1608
1564
|
})[];
|
|
1609
|
-
callId: string;
|
|
1610
1565
|
providerData?: Record<string, any> | undefined;
|
|
1611
1566
|
id?: string | undefined;
|
|
1612
1567
|
} | {
|
|
1613
1568
|
type: "computer_call";
|
|
1614
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1615
1569
|
callId: string;
|
|
1570
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1616
1571
|
action: {
|
|
1617
1572
|
type: "screenshot";
|
|
1618
1573
|
} | {
|
|
@@ -1640,25 +1595,25 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1640
1595
|
x: number;
|
|
1641
1596
|
y: number;
|
|
1642
1597
|
} | {
|
|
1643
|
-
keys: string[];
|
|
1644
1598
|
type: "keypress";
|
|
1599
|
+
keys: string[];
|
|
1645
1600
|
} | {
|
|
1601
|
+
type: "drag";
|
|
1646
1602
|
path: {
|
|
1647
1603
|
x: number;
|
|
1648
1604
|
y: number;
|
|
1649
1605
|
}[];
|
|
1650
|
-
type: "drag";
|
|
1651
1606
|
};
|
|
1652
1607
|
providerData?: Record<string, any> | undefined;
|
|
1653
1608
|
id?: string | undefined;
|
|
1654
1609
|
} | {
|
|
1655
1610
|
type: "computer_call_result";
|
|
1611
|
+
callId: string;
|
|
1656
1612
|
output: {
|
|
1657
1613
|
type: "computer_screenshot";
|
|
1658
1614
|
data: string;
|
|
1659
1615
|
providerData?: Record<string, any> | undefined;
|
|
1660
1616
|
};
|
|
1661
|
-
callId: string;
|
|
1662
1617
|
providerData?: Record<string, any> | undefined;
|
|
1663
1618
|
id?: string | undefined;
|
|
1664
1619
|
} | {
|
|
@@ -1669,57 +1624,48 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1669
1624
|
timeoutMs?: number | undefined;
|
|
1670
1625
|
maxOutputLength?: number | undefined;
|
|
1671
1626
|
};
|
|
1672
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1673
1627
|
providerData?: Record<string, any> | undefined;
|
|
1674
1628
|
id?: string | undefined;
|
|
1629
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1675
1630
|
} | {
|
|
1676
1631
|
type: "shell_call_output";
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
type: "timeout";
|
|
1684
|
-
}, {
|
|
1632
|
+
callId: string;
|
|
1633
|
+
output: {
|
|
1634
|
+
[x: string]: unknown;
|
|
1635
|
+
stdout: string;
|
|
1636
|
+
stderr: string;
|
|
1637
|
+
outcome: {
|
|
1685
1638
|
type: "timeout";
|
|
1686
|
-
}
|
|
1687
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
1688
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1689
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1690
|
-
type: "exit";
|
|
1691
|
-
exitCode: number | null;
|
|
1692
|
-
}, {
|
|
1639
|
+
} | {
|
|
1693
1640
|
type: "exit";
|
|
1694
1641
|
exitCode: number | null;
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
callId: string;
|
|
1642
|
+
};
|
|
1643
|
+
}[];
|
|
1698
1644
|
providerData?: Record<string, any> | undefined;
|
|
1699
1645
|
id?: string | undefined;
|
|
1700
1646
|
maxOutputLength?: number | undefined;
|
|
1701
1647
|
} | {
|
|
1702
1648
|
type: "apply_patch_call";
|
|
1703
|
-
status: "in_progress" | "completed";
|
|
1704
1649
|
callId: string;
|
|
1650
|
+
status: "in_progress" | "completed";
|
|
1705
1651
|
operation: {
|
|
1706
|
-
path: string;
|
|
1707
1652
|
type: "create_file";
|
|
1653
|
+
path: string;
|
|
1708
1654
|
diff: string;
|
|
1709
1655
|
} | {
|
|
1710
|
-
path: string;
|
|
1711
1656
|
type: "update_file";
|
|
1657
|
+
path: string;
|
|
1712
1658
|
diff: string;
|
|
1713
1659
|
} | {
|
|
1714
|
-
path: string;
|
|
1715
1660
|
type: "delete_file";
|
|
1661
|
+
path: string;
|
|
1716
1662
|
};
|
|
1717
1663
|
providerData?: Record<string, any> | undefined;
|
|
1718
1664
|
id?: string | undefined;
|
|
1719
1665
|
} | {
|
|
1720
1666
|
type: "apply_patch_call_output";
|
|
1721
|
-
status: "completed" | "failed";
|
|
1722
1667
|
callId: string;
|
|
1668
|
+
status: "completed" | "failed";
|
|
1723
1669
|
providerData?: Record<string, any> | undefined;
|
|
1724
1670
|
id?: string | undefined;
|
|
1725
1671
|
output?: string | undefined;
|
|
@@ -1765,8 +1711,8 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1765
1711
|
};
|
|
1766
1712
|
type: string;
|
|
1767
1713
|
rawItem: {
|
|
1768
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1769
1714
|
role: "assistant";
|
|
1715
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1770
1716
|
content: ({
|
|
1771
1717
|
type: "refusal";
|
|
1772
1718
|
refusal: string;
|
|
@@ -1788,9 +1734,9 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1788
1734
|
image: string;
|
|
1789
1735
|
providerData?: Record<string, any> | undefined;
|
|
1790
1736
|
})[];
|
|
1791
|
-
type?: "message" | undefined;
|
|
1792
1737
|
providerData?: Record<string, any> | undefined;
|
|
1793
1738
|
id?: string | undefined;
|
|
1739
|
+
type?: "message" | undefined;
|
|
1794
1740
|
} | {
|
|
1795
1741
|
role: "user";
|
|
1796
1742
|
content: string | ({
|
|
@@ -1822,35 +1768,36 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1822
1768
|
format?: string | null | undefined;
|
|
1823
1769
|
transcript?: string | null | undefined;
|
|
1824
1770
|
})[];
|
|
1825
|
-
type?: "message" | undefined;
|
|
1826
1771
|
providerData?: Record<string, any> | undefined;
|
|
1827
1772
|
id?: string | undefined;
|
|
1773
|
+
type?: "message" | undefined;
|
|
1828
1774
|
} | {
|
|
1829
1775
|
role: "system";
|
|
1830
1776
|
content: string;
|
|
1831
|
-
type?: "message" | undefined;
|
|
1832
1777
|
providerData?: Record<string, any> | undefined;
|
|
1833
1778
|
id?: string | undefined;
|
|
1779
|
+
type?: "message" | undefined;
|
|
1834
1780
|
} | {
|
|
1835
1781
|
type: "hosted_tool_call";
|
|
1836
1782
|
name: string;
|
|
1837
|
-
status?: string | undefined;
|
|
1838
1783
|
providerData?: Record<string, any> | undefined;
|
|
1839
1784
|
id?: string | undefined;
|
|
1840
1785
|
arguments?: string | undefined;
|
|
1786
|
+
status?: string | undefined;
|
|
1841
1787
|
output?: string | undefined;
|
|
1842
1788
|
} | {
|
|
1843
1789
|
type: "function_call";
|
|
1790
|
+
callId: string;
|
|
1844
1791
|
name: string;
|
|
1845
1792
|
arguments: string;
|
|
1846
|
-
callId: string;
|
|
1847
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1848
1793
|
providerData?: Record<string, any> | undefined;
|
|
1849
1794
|
id?: string | undefined;
|
|
1795
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1850
1796
|
} | {
|
|
1851
1797
|
type: "function_call_result";
|
|
1852
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1853
1798
|
name: string;
|
|
1799
|
+
callId: string;
|
|
1800
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1854
1801
|
output: string | {
|
|
1855
1802
|
type: "text";
|
|
1856
1803
|
text: string;
|
|
@@ -1870,9 +1817,9 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1870
1817
|
} | {
|
|
1871
1818
|
type: "file";
|
|
1872
1819
|
file: string | {
|
|
1873
|
-
filename: string;
|
|
1874
1820
|
data: string | Uint8Array<ArrayBuffer>;
|
|
1875
1821
|
mediaType: string;
|
|
1822
|
+
filename: string;
|
|
1876
1823
|
} | {
|
|
1877
1824
|
url: string;
|
|
1878
1825
|
filename?: string | undefined;
|
|
@@ -1902,13 +1849,12 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1902
1849
|
} | undefined;
|
|
1903
1850
|
filename?: string | undefined;
|
|
1904
1851
|
})[];
|
|
1905
|
-
callId: string;
|
|
1906
1852
|
providerData?: Record<string, any> | undefined;
|
|
1907
1853
|
id?: string | undefined;
|
|
1908
1854
|
} | {
|
|
1909
1855
|
type: "computer_call";
|
|
1910
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
1911
1856
|
callId: string;
|
|
1857
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1912
1858
|
action: {
|
|
1913
1859
|
type: "screenshot";
|
|
1914
1860
|
} | {
|
|
@@ -1936,25 +1882,25 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1936
1882
|
x: number;
|
|
1937
1883
|
y: number;
|
|
1938
1884
|
} | {
|
|
1939
|
-
keys: string[];
|
|
1940
1885
|
type: "keypress";
|
|
1886
|
+
keys: string[];
|
|
1941
1887
|
} | {
|
|
1888
|
+
type: "drag";
|
|
1942
1889
|
path: {
|
|
1943
1890
|
x: number;
|
|
1944
1891
|
y: number;
|
|
1945
1892
|
}[];
|
|
1946
|
-
type: "drag";
|
|
1947
1893
|
};
|
|
1948
1894
|
providerData?: Record<string, any> | undefined;
|
|
1949
1895
|
id?: string | undefined;
|
|
1950
1896
|
} | {
|
|
1951
1897
|
type: "computer_call_result";
|
|
1898
|
+
callId: string;
|
|
1952
1899
|
output: {
|
|
1953
1900
|
type: "computer_screenshot";
|
|
1954
1901
|
data: string;
|
|
1955
1902
|
providerData?: Record<string, any> | undefined;
|
|
1956
1903
|
};
|
|
1957
|
-
callId: string;
|
|
1958
1904
|
providerData?: Record<string, any> | undefined;
|
|
1959
1905
|
id?: string | undefined;
|
|
1960
1906
|
} | {
|
|
@@ -1965,57 +1911,48 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1965
1911
|
timeoutMs?: number | undefined;
|
|
1966
1912
|
maxOutputLength?: number | undefined;
|
|
1967
1913
|
};
|
|
1968
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1969
1914
|
providerData?: Record<string, any> | undefined;
|
|
1970
1915
|
id?: string | undefined;
|
|
1916
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1971
1917
|
} | {
|
|
1972
1918
|
type: "shell_call_output";
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
type: "timeout";
|
|
1980
|
-
}, {
|
|
1919
|
+
callId: string;
|
|
1920
|
+
output: {
|
|
1921
|
+
[x: string]: unknown;
|
|
1922
|
+
stdout: string;
|
|
1923
|
+
stderr: string;
|
|
1924
|
+
outcome: {
|
|
1981
1925
|
type: "timeout";
|
|
1982
|
-
}
|
|
1983
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
1984
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1985
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1986
|
-
type: "exit";
|
|
1987
|
-
exitCode: number | null;
|
|
1988
|
-
}, {
|
|
1926
|
+
} | {
|
|
1989
1927
|
type: "exit";
|
|
1990
1928
|
exitCode: number | null;
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
callId: string;
|
|
1929
|
+
};
|
|
1930
|
+
}[];
|
|
1994
1931
|
providerData?: Record<string, any> | undefined;
|
|
1995
1932
|
id?: string | undefined;
|
|
1996
1933
|
maxOutputLength?: number | undefined;
|
|
1997
1934
|
} | {
|
|
1998
1935
|
type: "apply_patch_call";
|
|
1999
|
-
status: "in_progress" | "completed";
|
|
2000
1936
|
callId: string;
|
|
1937
|
+
status: "in_progress" | "completed";
|
|
2001
1938
|
operation: {
|
|
2002
|
-
path: string;
|
|
2003
1939
|
type: "create_file";
|
|
1940
|
+
path: string;
|
|
2004
1941
|
diff: string;
|
|
2005
1942
|
} | {
|
|
2006
|
-
path: string;
|
|
2007
1943
|
type: "update_file";
|
|
1944
|
+
path: string;
|
|
2008
1945
|
diff: string;
|
|
2009
1946
|
} | {
|
|
2010
|
-
path: string;
|
|
2011
1947
|
type: "delete_file";
|
|
1948
|
+
path: string;
|
|
2012
1949
|
};
|
|
2013
1950
|
providerData?: Record<string, any> | undefined;
|
|
2014
1951
|
id?: string | undefined;
|
|
2015
1952
|
} | {
|
|
2016
1953
|
type: "apply_patch_call_output";
|
|
2017
|
-
status: "completed" | "failed";
|
|
2018
1954
|
callId: string;
|
|
1955
|
+
status: "completed" | "failed";
|
|
2019
1956
|
providerData?: Record<string, any> | undefined;
|
|
2020
1957
|
id?: string | undefined;
|
|
2021
1958
|
output?: string | undefined;
|
|
@@ -2075,8 +2012,8 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2075
2012
|
toolName: string | undefined;
|
|
2076
2013
|
type: string;
|
|
2077
2014
|
rawItem: {
|
|
2078
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
2079
2015
|
role: "assistant";
|
|
2016
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
2080
2017
|
content: ({
|
|
2081
2018
|
type: "refusal";
|
|
2082
2019
|
refusal: string;
|
|
@@ -2098,9 +2035,9 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2098
2035
|
image: string;
|
|
2099
2036
|
providerData?: Record<string, any> | undefined;
|
|
2100
2037
|
})[];
|
|
2101
|
-
type?: "message" | undefined;
|
|
2102
2038
|
providerData?: Record<string, any> | undefined;
|
|
2103
2039
|
id?: string | undefined;
|
|
2040
|
+
type?: "message" | undefined;
|
|
2104
2041
|
} | {
|
|
2105
2042
|
role: "user";
|
|
2106
2043
|
content: string | ({
|
|
@@ -2132,35 +2069,36 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2132
2069
|
format?: string | null | undefined;
|
|
2133
2070
|
transcript?: string | null | undefined;
|
|
2134
2071
|
})[];
|
|
2135
|
-
type?: "message" | undefined;
|
|
2136
2072
|
providerData?: Record<string, any> | undefined;
|
|
2137
2073
|
id?: string | undefined;
|
|
2074
|
+
type?: "message" | undefined;
|
|
2138
2075
|
} | {
|
|
2139
2076
|
role: "system";
|
|
2140
2077
|
content: string;
|
|
2141
|
-
type?: "message" | undefined;
|
|
2142
2078
|
providerData?: Record<string, any> | undefined;
|
|
2143
2079
|
id?: string | undefined;
|
|
2080
|
+
type?: "message" | undefined;
|
|
2144
2081
|
} | {
|
|
2145
2082
|
type: "hosted_tool_call";
|
|
2146
2083
|
name: string;
|
|
2147
|
-
status?: string | undefined;
|
|
2148
2084
|
providerData?: Record<string, any> | undefined;
|
|
2149
2085
|
id?: string | undefined;
|
|
2150
2086
|
arguments?: string | undefined;
|
|
2087
|
+
status?: string | undefined;
|
|
2151
2088
|
output?: string | undefined;
|
|
2152
2089
|
} | {
|
|
2153
2090
|
type: "function_call";
|
|
2091
|
+
callId: string;
|
|
2154
2092
|
name: string;
|
|
2155
2093
|
arguments: string;
|
|
2156
|
-
callId: string;
|
|
2157
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2158
2094
|
providerData?: Record<string, any> | undefined;
|
|
2159
2095
|
id?: string | undefined;
|
|
2096
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2160
2097
|
} | {
|
|
2161
2098
|
type: "function_call_result";
|
|
2162
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
2163
2099
|
name: string;
|
|
2100
|
+
callId: string;
|
|
2101
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
2164
2102
|
output: string | {
|
|
2165
2103
|
type: "text";
|
|
2166
2104
|
text: string;
|
|
@@ -2180,9 +2118,9 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2180
2118
|
} | {
|
|
2181
2119
|
type: "file";
|
|
2182
2120
|
file: string | {
|
|
2183
|
-
filename: string;
|
|
2184
2121
|
data: string | Uint8Array<ArrayBuffer>;
|
|
2185
2122
|
mediaType: string;
|
|
2123
|
+
filename: string;
|
|
2186
2124
|
} | {
|
|
2187
2125
|
url: string;
|
|
2188
2126
|
filename?: string | undefined;
|
|
@@ -2212,13 +2150,12 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2212
2150
|
} | undefined;
|
|
2213
2151
|
filename?: string | undefined;
|
|
2214
2152
|
})[];
|
|
2215
|
-
callId: string;
|
|
2216
2153
|
providerData?: Record<string, any> | undefined;
|
|
2217
2154
|
id?: string | undefined;
|
|
2218
2155
|
} | {
|
|
2219
2156
|
type: "computer_call";
|
|
2220
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
2221
2157
|
callId: string;
|
|
2158
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
2222
2159
|
action: {
|
|
2223
2160
|
type: "screenshot";
|
|
2224
2161
|
} | {
|
|
@@ -2246,25 +2183,25 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2246
2183
|
x: number;
|
|
2247
2184
|
y: number;
|
|
2248
2185
|
} | {
|
|
2249
|
-
keys: string[];
|
|
2250
2186
|
type: "keypress";
|
|
2187
|
+
keys: string[];
|
|
2251
2188
|
} | {
|
|
2189
|
+
type: "drag";
|
|
2252
2190
|
path: {
|
|
2253
2191
|
x: number;
|
|
2254
2192
|
y: number;
|
|
2255
2193
|
}[];
|
|
2256
|
-
type: "drag";
|
|
2257
2194
|
};
|
|
2258
2195
|
providerData?: Record<string, any> | undefined;
|
|
2259
2196
|
id?: string | undefined;
|
|
2260
2197
|
} | {
|
|
2261
2198
|
type: "computer_call_result";
|
|
2199
|
+
callId: string;
|
|
2262
2200
|
output: {
|
|
2263
2201
|
type: "computer_screenshot";
|
|
2264
2202
|
data: string;
|
|
2265
2203
|
providerData?: Record<string, any> | undefined;
|
|
2266
2204
|
};
|
|
2267
|
-
callId: string;
|
|
2268
2205
|
providerData?: Record<string, any> | undefined;
|
|
2269
2206
|
id?: string | undefined;
|
|
2270
2207
|
} | {
|
|
@@ -2275,57 +2212,48 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2275
2212
|
timeoutMs?: number | undefined;
|
|
2276
2213
|
maxOutputLength?: number | undefined;
|
|
2277
2214
|
};
|
|
2278
|
-
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2279
2215
|
providerData?: Record<string, any> | undefined;
|
|
2280
2216
|
id?: string | undefined;
|
|
2217
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2281
2218
|
} | {
|
|
2282
2219
|
type: "shell_call_output";
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
type: "timeout";
|
|
2290
|
-
}, {
|
|
2220
|
+
callId: string;
|
|
2221
|
+
output: {
|
|
2222
|
+
[x: string]: unknown;
|
|
2223
|
+
stdout: string;
|
|
2224
|
+
stderr: string;
|
|
2225
|
+
outcome: {
|
|
2291
2226
|
type: "timeout";
|
|
2292
|
-
}
|
|
2293
|
-
type: import("zod").ZodLiteral<"exit">;
|
|
2294
|
-
exitCode: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
2295
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
2296
|
-
type: "exit";
|
|
2297
|
-
exitCode: number | null;
|
|
2298
|
-
}, {
|
|
2227
|
+
} | {
|
|
2299
2228
|
type: "exit";
|
|
2300
2229
|
exitCode: number | null;
|
|
2301
|
-
}
|
|
2302
|
-
}
|
|
2303
|
-
callId: string;
|
|
2230
|
+
};
|
|
2231
|
+
}[];
|
|
2304
2232
|
providerData?: Record<string, any> | undefined;
|
|
2305
2233
|
id?: string | undefined;
|
|
2306
2234
|
maxOutputLength?: number | undefined;
|
|
2307
2235
|
} | {
|
|
2308
2236
|
type: "apply_patch_call";
|
|
2309
|
-
status: "in_progress" | "completed";
|
|
2310
2237
|
callId: string;
|
|
2238
|
+
status: "in_progress" | "completed";
|
|
2311
2239
|
operation: {
|
|
2312
|
-
path: string;
|
|
2313
2240
|
type: "create_file";
|
|
2241
|
+
path: string;
|
|
2314
2242
|
diff: string;
|
|
2315
2243
|
} | {
|
|
2316
|
-
path: string;
|
|
2317
2244
|
type: "update_file";
|
|
2245
|
+
path: string;
|
|
2318
2246
|
diff: string;
|
|
2319
2247
|
} | {
|
|
2320
|
-
path: string;
|
|
2321
2248
|
type: "delete_file";
|
|
2249
|
+
path: string;
|
|
2322
2250
|
};
|
|
2323
2251
|
providerData?: Record<string, any> | undefined;
|
|
2324
2252
|
id?: string | undefined;
|
|
2325
2253
|
} | {
|
|
2326
2254
|
type: "apply_patch_call_output";
|
|
2327
|
-
status: "completed" | "failed";
|
|
2328
2255
|
callId: string;
|
|
2256
|
+
status: "completed" | "failed";
|
|
2329
2257
|
providerData?: Record<string, any> | undefined;
|
|
2330
2258
|
id?: string | undefined;
|
|
2331
2259
|
output?: string | undefined;
|