@openai/agents-core 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/computer.d.ts +10 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.js.map +1 -1
- package/dist/events.mjs.map +1 -1
- package/dist/extensions/handoffFilters.d.ts +4 -3
- package/dist/extensions/handoffFilters.js +8 -3
- package/dist/extensions/handoffFilters.js.map +1 -1
- package/dist/extensions/handoffFilters.mjs +9 -4
- package/dist/extensions/handoffFilters.mjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +1158 -32
- package/dist/items.js +56 -2
- package/dist/items.js.map +1 -1
- package/dist/items.mjs +53 -1
- package/dist/items.mjs.map +1 -1
- package/dist/metadata.js +3 -3
- package/dist/metadata.mjs +3 -3
- package/dist/model.d.ts +14 -2
- package/dist/run.js +2 -2
- package/dist/run.js.map +1 -1
- package/dist/run.mjs +3 -3
- package/dist/run.mjs.map +1 -1
- package/dist/runContext.js +116 -67
- package/dist/runContext.js.map +1 -1
- package/dist/runContext.mjs +116 -67
- package/dist/runContext.mjs.map +1 -1
- package/dist/runState.d.ts +493 -17
- package/dist/runState.js +303 -12
- package/dist/runState.js.map +1 -1
- package/dist/runState.mjs +304 -13
- package/dist/runState.mjs.map +1 -1
- package/dist/runner/modelOutputs.d.ts +5 -1
- package/dist/runner/modelOutputs.js +552 -12
- package/dist/runner/modelOutputs.js.map +1 -1
- package/dist/runner/modelOutputs.mjs +552 -13
- package/dist/runner/modelOutputs.mjs.map +1 -1
- package/dist/runner/modelPreparation.js +5 -2
- package/dist/runner/modelPreparation.js.map +1 -1
- package/dist/runner/modelPreparation.mjs +5 -2
- package/dist/runner/modelPreparation.mjs.map +1 -1
- package/dist/runner/sessionPersistence.js +17 -3
- package/dist/runner/sessionPersistence.js.map +1 -1
- package/dist/runner/sessionPersistence.mjs +17 -3
- package/dist/runner/sessionPersistence.mjs.map +1 -1
- package/dist/runner/streaming.js +8 -0
- package/dist/runner/streaming.js.map +1 -1
- package/dist/runner/streaming.mjs +9 -1
- package/dist/runner/streaming.mjs.map +1 -1
- package/dist/runner/toolExecution.js +102 -67
- package/dist/runner/toolExecution.js.map +1 -1
- package/dist/runner/toolExecution.mjs +102 -67
- package/dist/runner/toolExecution.mjs.map +1 -1
- package/dist/runner/toolSearch.d.ts +23 -0
- package/dist/runner/toolSearch.js +426 -0
- package/dist/runner/toolSearch.js.map +1 -0
- package/dist/runner/toolSearch.mjs +416 -0
- package/dist/runner/toolSearch.mjs.map +1 -0
- package/dist/runner/turnResolution.js +2 -1
- package/dist/runner/turnResolution.js.map +1 -1
- package/dist/runner/turnResolution.mjs +2 -1
- package/dist/runner/turnResolution.mjs.map +1 -1
- package/dist/tool.d.ts +50 -0
- package/dist/tool.js +79 -0
- package/dist/tool.js.map +1 -1
- package/dist/tool.mjs +74 -0
- package/dist/tool.mjs.map +1 -1
- package/dist/toolIdentity.d.ts +23 -0
- package/dist/toolIdentity.js +105 -0
- package/dist/toolIdentity.js.map +1 -0
- package/dist/toolIdentity.mjs +89 -0
- package/dist/toolIdentity.mjs.map +1 -0
- package/dist/tooling.d.ts +24 -0
- package/dist/tooling.js +110 -0
- package/dist/tooling.js.map +1 -0
- package/dist/tooling.mjs +97 -0
- package/dist/tooling.mjs.map +1 -0
- package/dist/types/aliases.d.ts +3 -3
- package/dist/types/protocol.d.ts +417 -12
- package/dist/types/protocol.js +59 -4
- package/dist/types/protocol.js.map +1 -1
- package/dist/types/protocol.mjs +57 -2
- package/dist/types/protocol.mjs.map +1 -1
- package/dist/types/providerData.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +15 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +2 -0
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/serialize.js +37 -6
- package/dist/utils/serialize.js.map +1 -1
- package/dist/utils/serialize.mjs +37 -6
- package/dist/utils/serialize.mjs.map +1 -1
- package/dist/utils/toolSearch.d.ts +1 -0
- package/dist/utils/toolSearch.js +13 -0
- package/dist/utils/toolSearch.js.map +1 -0
- package/dist/utils/toolSearch.mjs +2 -0
- package/dist/utils/toolSearch.mjs.map +1 -0
- package/package.json +2 -2
package/dist/items.d.ts
CHANGED
|
@@ -87,7 +87,26 @@ export declare class RunItemBase {
|
|
|
87
87
|
arguments: string;
|
|
88
88
|
providerData?: Record<string, any> | undefined;
|
|
89
89
|
id?: string | undefined;
|
|
90
|
+
namespace?: string | undefined;
|
|
90
91
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
type: "tool_search_call";
|
|
94
|
+
arguments: unknown;
|
|
95
|
+
providerData?: Record<string, any> | undefined;
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
call_id?: string | null | undefined;
|
|
98
|
+
callId?: string | null | undefined;
|
|
99
|
+
execution?: "client" | "server" | undefined;
|
|
100
|
+
status?: string | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
type: "tool_search_output";
|
|
103
|
+
tools: Record<string, any>[];
|
|
104
|
+
providerData?: Record<string, any> | undefined;
|
|
105
|
+
id?: string | undefined;
|
|
106
|
+
call_id?: string | null | undefined;
|
|
107
|
+
callId?: string | null | undefined;
|
|
108
|
+
execution?: "client" | "server" | undefined;
|
|
109
|
+
status?: string | undefined;
|
|
91
110
|
} | {
|
|
92
111
|
type: "function_call_result";
|
|
93
112
|
name: string;
|
|
@@ -146,11 +165,14 @@ export declare class RunItemBase {
|
|
|
146
165
|
})[];
|
|
147
166
|
providerData?: Record<string, any> | undefined;
|
|
148
167
|
id?: string | undefined;
|
|
168
|
+
namespace?: string | undefined;
|
|
149
169
|
} | {
|
|
150
170
|
type: "computer_call";
|
|
151
171
|
callId: string;
|
|
152
172
|
status: "in_progress" | "completed" | "incomplete";
|
|
153
|
-
|
|
173
|
+
providerData?: Record<string, any> | undefined;
|
|
174
|
+
id?: string | undefined;
|
|
175
|
+
action?: {
|
|
154
176
|
type: "screenshot";
|
|
155
177
|
} | {
|
|
156
178
|
type: "click";
|
|
@@ -185,9 +207,43 @@ export declare class RunItemBase {
|
|
|
185
207
|
x: number;
|
|
186
208
|
y: number;
|
|
187
209
|
}[];
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
|
|
210
|
+
} | undefined;
|
|
211
|
+
actions?: ({
|
|
212
|
+
type: "screenshot";
|
|
213
|
+
} | {
|
|
214
|
+
type: "click";
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
218
|
+
} | {
|
|
219
|
+
type: "double_click";
|
|
220
|
+
x: number;
|
|
221
|
+
y: number;
|
|
222
|
+
} | {
|
|
223
|
+
type: "scroll";
|
|
224
|
+
x: number;
|
|
225
|
+
y: number;
|
|
226
|
+
scroll_x: number;
|
|
227
|
+
scroll_y: number;
|
|
228
|
+
} | {
|
|
229
|
+
type: "type";
|
|
230
|
+
text: string;
|
|
231
|
+
} | {
|
|
232
|
+
type: "wait";
|
|
233
|
+
} | {
|
|
234
|
+
type: "move";
|
|
235
|
+
x: number;
|
|
236
|
+
y: number;
|
|
237
|
+
} | {
|
|
238
|
+
type: "keypress";
|
|
239
|
+
keys: string[];
|
|
240
|
+
} | {
|
|
241
|
+
type: "drag";
|
|
242
|
+
path: {
|
|
243
|
+
x: number;
|
|
244
|
+
y: number;
|
|
245
|
+
}[];
|
|
246
|
+
})[] | undefined;
|
|
191
247
|
} | {
|
|
192
248
|
type: "computer_call_result";
|
|
193
249
|
callId: string;
|
|
@@ -370,7 +426,26 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
370
426
|
arguments: string;
|
|
371
427
|
providerData?: Record<string, any> | undefined;
|
|
372
428
|
id?: string | undefined;
|
|
429
|
+
namespace?: string | undefined;
|
|
373
430
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
431
|
+
} | {
|
|
432
|
+
type: "tool_search_call";
|
|
433
|
+
arguments: unknown;
|
|
434
|
+
providerData?: Record<string, any> | undefined;
|
|
435
|
+
id?: string | undefined;
|
|
436
|
+
call_id?: string | null | undefined;
|
|
437
|
+
callId?: string | null | undefined;
|
|
438
|
+
execution?: "client" | "server" | undefined;
|
|
439
|
+
status?: string | undefined;
|
|
440
|
+
} | {
|
|
441
|
+
type: "tool_search_output";
|
|
442
|
+
tools: Record<string, any>[];
|
|
443
|
+
providerData?: Record<string, any> | undefined;
|
|
444
|
+
id?: string | undefined;
|
|
445
|
+
call_id?: string | null | undefined;
|
|
446
|
+
callId?: string | null | undefined;
|
|
447
|
+
execution?: "client" | "server" | undefined;
|
|
448
|
+
status?: string | undefined;
|
|
374
449
|
} | {
|
|
375
450
|
type: "function_call_result";
|
|
376
451
|
name: string;
|
|
@@ -429,11 +504,14 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
429
504
|
})[];
|
|
430
505
|
providerData?: Record<string, any> | undefined;
|
|
431
506
|
id?: string | undefined;
|
|
507
|
+
namespace?: string | undefined;
|
|
432
508
|
} | {
|
|
433
509
|
type: "computer_call";
|
|
434
510
|
callId: string;
|
|
435
511
|
status: "in_progress" | "completed" | "incomplete";
|
|
436
|
-
|
|
512
|
+
providerData?: Record<string, any> | undefined;
|
|
513
|
+
id?: string | undefined;
|
|
514
|
+
action?: {
|
|
437
515
|
type: "screenshot";
|
|
438
516
|
} | {
|
|
439
517
|
type: "click";
|
|
@@ -468,9 +546,43 @@ export declare class RunMessageOutputItem extends RunItemBase {
|
|
|
468
546
|
x: number;
|
|
469
547
|
y: number;
|
|
470
548
|
}[];
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
|
|
549
|
+
} | undefined;
|
|
550
|
+
actions?: ({
|
|
551
|
+
type: "screenshot";
|
|
552
|
+
} | {
|
|
553
|
+
type: "click";
|
|
554
|
+
x: number;
|
|
555
|
+
y: number;
|
|
556
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
557
|
+
} | {
|
|
558
|
+
type: "double_click";
|
|
559
|
+
x: number;
|
|
560
|
+
y: number;
|
|
561
|
+
} | {
|
|
562
|
+
type: "scroll";
|
|
563
|
+
x: number;
|
|
564
|
+
y: number;
|
|
565
|
+
scroll_x: number;
|
|
566
|
+
scroll_y: number;
|
|
567
|
+
} | {
|
|
568
|
+
type: "type";
|
|
569
|
+
text: string;
|
|
570
|
+
} | {
|
|
571
|
+
type: "wait";
|
|
572
|
+
} | {
|
|
573
|
+
type: "move";
|
|
574
|
+
x: number;
|
|
575
|
+
y: number;
|
|
576
|
+
} | {
|
|
577
|
+
type: "keypress";
|
|
578
|
+
keys: string[];
|
|
579
|
+
} | {
|
|
580
|
+
type: "drag";
|
|
581
|
+
path: {
|
|
582
|
+
x: number;
|
|
583
|
+
y: number;
|
|
584
|
+
}[];
|
|
585
|
+
})[] | undefined;
|
|
474
586
|
} | {
|
|
475
587
|
type: "computer_call_result";
|
|
476
588
|
callId: string;
|
|
@@ -654,7 +766,26 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
654
766
|
arguments: string;
|
|
655
767
|
providerData?: Record<string, any> | undefined;
|
|
656
768
|
id?: string | undefined;
|
|
769
|
+
namespace?: string | undefined;
|
|
657
770
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
771
|
+
} | {
|
|
772
|
+
type: "tool_search_call";
|
|
773
|
+
arguments: unknown;
|
|
774
|
+
providerData?: Record<string, any> | undefined;
|
|
775
|
+
id?: string | undefined;
|
|
776
|
+
call_id?: string | null | undefined;
|
|
777
|
+
callId?: string | null | undefined;
|
|
778
|
+
execution?: "client" | "server" | undefined;
|
|
779
|
+
status?: string | undefined;
|
|
780
|
+
} | {
|
|
781
|
+
type: "tool_search_output";
|
|
782
|
+
tools: Record<string, any>[];
|
|
783
|
+
providerData?: Record<string, any> | undefined;
|
|
784
|
+
id?: string | undefined;
|
|
785
|
+
call_id?: string | null | undefined;
|
|
786
|
+
callId?: string | null | undefined;
|
|
787
|
+
execution?: "client" | "server" | undefined;
|
|
788
|
+
status?: string | undefined;
|
|
658
789
|
} | {
|
|
659
790
|
type: "function_call_result";
|
|
660
791
|
name: string;
|
|
@@ -713,11 +844,728 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
713
844
|
})[];
|
|
714
845
|
providerData?: Record<string, any> | undefined;
|
|
715
846
|
id?: string | undefined;
|
|
847
|
+
namespace?: string | undefined;
|
|
716
848
|
} | {
|
|
717
849
|
type: "computer_call";
|
|
718
850
|
callId: string;
|
|
719
851
|
status: "in_progress" | "completed" | "incomplete";
|
|
852
|
+
providerData?: Record<string, any> | undefined;
|
|
853
|
+
id?: string | undefined;
|
|
854
|
+
action?: {
|
|
855
|
+
type: "screenshot";
|
|
856
|
+
} | {
|
|
857
|
+
type: "click";
|
|
858
|
+
x: number;
|
|
859
|
+
y: number;
|
|
860
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
861
|
+
} | {
|
|
862
|
+
type: "double_click";
|
|
863
|
+
x: number;
|
|
864
|
+
y: number;
|
|
865
|
+
} | {
|
|
866
|
+
type: "scroll";
|
|
867
|
+
x: number;
|
|
868
|
+
y: number;
|
|
869
|
+
scroll_x: number;
|
|
870
|
+
scroll_y: number;
|
|
871
|
+
} | {
|
|
872
|
+
type: "type";
|
|
873
|
+
text: string;
|
|
874
|
+
} | {
|
|
875
|
+
type: "wait";
|
|
876
|
+
} | {
|
|
877
|
+
type: "move";
|
|
878
|
+
x: number;
|
|
879
|
+
y: number;
|
|
880
|
+
} | {
|
|
881
|
+
type: "keypress";
|
|
882
|
+
keys: string[];
|
|
883
|
+
} | {
|
|
884
|
+
type: "drag";
|
|
885
|
+
path: {
|
|
886
|
+
x: number;
|
|
887
|
+
y: number;
|
|
888
|
+
}[];
|
|
889
|
+
} | undefined;
|
|
890
|
+
actions?: ({
|
|
891
|
+
type: "screenshot";
|
|
892
|
+
} | {
|
|
893
|
+
type: "click";
|
|
894
|
+
x: number;
|
|
895
|
+
y: number;
|
|
896
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
897
|
+
} | {
|
|
898
|
+
type: "double_click";
|
|
899
|
+
x: number;
|
|
900
|
+
y: number;
|
|
901
|
+
} | {
|
|
902
|
+
type: "scroll";
|
|
903
|
+
x: number;
|
|
904
|
+
y: number;
|
|
905
|
+
scroll_x: number;
|
|
906
|
+
scroll_y: number;
|
|
907
|
+
} | {
|
|
908
|
+
type: "type";
|
|
909
|
+
text: string;
|
|
910
|
+
} | {
|
|
911
|
+
type: "wait";
|
|
912
|
+
} | {
|
|
913
|
+
type: "move";
|
|
914
|
+
x: number;
|
|
915
|
+
y: number;
|
|
916
|
+
} | {
|
|
917
|
+
type: "keypress";
|
|
918
|
+
keys: string[];
|
|
919
|
+
} | {
|
|
920
|
+
type: "drag";
|
|
921
|
+
path: {
|
|
922
|
+
x: number;
|
|
923
|
+
y: number;
|
|
924
|
+
}[];
|
|
925
|
+
})[] | undefined;
|
|
926
|
+
} | {
|
|
927
|
+
type: "computer_call_result";
|
|
928
|
+
callId: string;
|
|
929
|
+
output: {
|
|
930
|
+
type: "computer_screenshot";
|
|
931
|
+
data: string;
|
|
932
|
+
providerData?: Record<string, any> | undefined;
|
|
933
|
+
};
|
|
934
|
+
providerData?: Record<string, any> | undefined;
|
|
935
|
+
id?: string | undefined;
|
|
936
|
+
} | {
|
|
937
|
+
type: "shell_call";
|
|
938
|
+
callId: string;
|
|
720
939
|
action: {
|
|
940
|
+
commands: string[];
|
|
941
|
+
timeoutMs?: number | undefined;
|
|
942
|
+
maxOutputLength?: number | undefined;
|
|
943
|
+
};
|
|
944
|
+
providerData?: Record<string, any> | undefined;
|
|
945
|
+
id?: string | undefined;
|
|
946
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
947
|
+
} | {
|
|
948
|
+
type: "shell_call_output";
|
|
949
|
+
callId: string;
|
|
950
|
+
output: {
|
|
951
|
+
[x: string]: unknown;
|
|
952
|
+
stdout: string;
|
|
953
|
+
stderr: string;
|
|
954
|
+
outcome: {
|
|
955
|
+
type: "timeout";
|
|
956
|
+
} | {
|
|
957
|
+
type: "exit";
|
|
958
|
+
exitCode: number | null;
|
|
959
|
+
};
|
|
960
|
+
}[];
|
|
961
|
+
providerData?: Record<string, any> | undefined;
|
|
962
|
+
id?: string | undefined;
|
|
963
|
+
maxOutputLength?: number | undefined;
|
|
964
|
+
} | {
|
|
965
|
+
type: "apply_patch_call";
|
|
966
|
+
callId: string;
|
|
967
|
+
status: "in_progress" | "completed";
|
|
968
|
+
operation: {
|
|
969
|
+
type: "create_file";
|
|
970
|
+
path: string;
|
|
971
|
+
diff: string;
|
|
972
|
+
} | {
|
|
973
|
+
type: "update_file";
|
|
974
|
+
path: string;
|
|
975
|
+
diff: string;
|
|
976
|
+
} | {
|
|
977
|
+
type: "delete_file";
|
|
978
|
+
path: string;
|
|
979
|
+
};
|
|
980
|
+
providerData?: Record<string, any> | undefined;
|
|
981
|
+
id?: string | undefined;
|
|
982
|
+
} | {
|
|
983
|
+
type: "apply_patch_call_output";
|
|
984
|
+
callId: string;
|
|
985
|
+
status: "completed" | "failed";
|
|
986
|
+
providerData?: Record<string, any> | undefined;
|
|
987
|
+
id?: string | undefined;
|
|
988
|
+
output?: string | undefined;
|
|
989
|
+
} | {
|
|
990
|
+
type: "reasoning";
|
|
991
|
+
content: {
|
|
992
|
+
type: "input_text";
|
|
993
|
+
text: string;
|
|
994
|
+
providerData?: Record<string, any> | undefined;
|
|
995
|
+
}[];
|
|
996
|
+
providerData?: Record<string, any> | undefined;
|
|
997
|
+
id?: string | undefined;
|
|
998
|
+
rawContent?: {
|
|
999
|
+
type: "reasoning_text";
|
|
1000
|
+
text: string;
|
|
1001
|
+
providerData?: Record<string, any> | undefined;
|
|
1002
|
+
}[] | undefined;
|
|
1003
|
+
} | {
|
|
1004
|
+
type: "compaction";
|
|
1005
|
+
encrypted_content: string;
|
|
1006
|
+
providerData?: Record<string, any> | undefined;
|
|
1007
|
+
id?: string | undefined;
|
|
1008
|
+
created_by?: string | undefined;
|
|
1009
|
+
} | {
|
|
1010
|
+
type: "unknown";
|
|
1011
|
+
providerData?: Record<string, any> | undefined;
|
|
1012
|
+
id?: string | undefined;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
export declare class RunToolSearchCallItem extends RunItemBase {
|
|
1017
|
+
rawItem: protocol.ToolSearchCallItem;
|
|
1018
|
+
agent: Agent;
|
|
1019
|
+
readonly type: "tool_search_call_item";
|
|
1020
|
+
constructor(rawItem: protocol.ToolSearchCallItem, agent: Agent);
|
|
1021
|
+
toJSON(): {
|
|
1022
|
+
agent: {
|
|
1023
|
+
name: string;
|
|
1024
|
+
};
|
|
1025
|
+
type: string;
|
|
1026
|
+
rawItem: {
|
|
1027
|
+
role: "assistant";
|
|
1028
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1029
|
+
content: ({
|
|
1030
|
+
type: "refusal";
|
|
1031
|
+
refusal: string;
|
|
1032
|
+
providerData?: Record<string, any> | undefined;
|
|
1033
|
+
} | {
|
|
1034
|
+
type: "output_text";
|
|
1035
|
+
text: string;
|
|
1036
|
+
providerData?: Record<string, any> | undefined;
|
|
1037
|
+
} | {
|
|
1038
|
+
type: "audio";
|
|
1039
|
+
audio: string | {
|
|
1040
|
+
id: string;
|
|
1041
|
+
};
|
|
1042
|
+
providerData?: Record<string, any> | undefined;
|
|
1043
|
+
format?: string | null | undefined;
|
|
1044
|
+
transcript?: string | null | undefined;
|
|
1045
|
+
} | {
|
|
1046
|
+
type: "image";
|
|
1047
|
+
image: string;
|
|
1048
|
+
providerData?: Record<string, any> | undefined;
|
|
1049
|
+
})[];
|
|
1050
|
+
providerData?: Record<string, any> | undefined;
|
|
1051
|
+
id?: string | undefined;
|
|
1052
|
+
type?: "message" | undefined;
|
|
1053
|
+
} | {
|
|
1054
|
+
role: "user";
|
|
1055
|
+
content: string | ({
|
|
1056
|
+
type: "input_text";
|
|
1057
|
+
text: string;
|
|
1058
|
+
providerData?: Record<string, any> | undefined;
|
|
1059
|
+
} | {
|
|
1060
|
+
type: "input_image";
|
|
1061
|
+
providerData?: Record<string, any> | undefined;
|
|
1062
|
+
image?: string | {
|
|
1063
|
+
id: string;
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
detail?: string | undefined;
|
|
1066
|
+
} | {
|
|
1067
|
+
type: "input_file";
|
|
1068
|
+
providerData?: Record<string, any> | undefined;
|
|
1069
|
+
file?: string | {
|
|
1070
|
+
id: string;
|
|
1071
|
+
} | {
|
|
1072
|
+
url: string;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
filename?: string | undefined;
|
|
1075
|
+
} | {
|
|
1076
|
+
type: "audio";
|
|
1077
|
+
audio: string | {
|
|
1078
|
+
id: string;
|
|
1079
|
+
};
|
|
1080
|
+
providerData?: Record<string, any> | undefined;
|
|
1081
|
+
format?: string | null | undefined;
|
|
1082
|
+
transcript?: string | null | undefined;
|
|
1083
|
+
})[];
|
|
1084
|
+
providerData?: Record<string, any> | undefined;
|
|
1085
|
+
id?: string | undefined;
|
|
1086
|
+
type?: "message" | undefined;
|
|
1087
|
+
} | {
|
|
1088
|
+
role: "system";
|
|
1089
|
+
content: string;
|
|
1090
|
+
providerData?: Record<string, any> | undefined;
|
|
1091
|
+
id?: string | undefined;
|
|
1092
|
+
type?: "message" | undefined;
|
|
1093
|
+
} | {
|
|
1094
|
+
type: "hosted_tool_call";
|
|
1095
|
+
name: string;
|
|
1096
|
+
providerData?: Record<string, any> | undefined;
|
|
1097
|
+
id?: string | undefined;
|
|
1098
|
+
arguments?: string | undefined;
|
|
1099
|
+
status?: string | undefined;
|
|
1100
|
+
output?: string | undefined;
|
|
1101
|
+
} | {
|
|
1102
|
+
type: "function_call";
|
|
1103
|
+
callId: string;
|
|
1104
|
+
name: string;
|
|
1105
|
+
arguments: string;
|
|
1106
|
+
providerData?: Record<string, any> | undefined;
|
|
1107
|
+
id?: string | undefined;
|
|
1108
|
+
namespace?: string | undefined;
|
|
1109
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1110
|
+
} | {
|
|
1111
|
+
type: "tool_search_call";
|
|
1112
|
+
arguments: unknown;
|
|
1113
|
+
providerData?: Record<string, any> | undefined;
|
|
1114
|
+
id?: string | undefined;
|
|
1115
|
+
call_id?: string | null | undefined;
|
|
1116
|
+
callId?: string | null | undefined;
|
|
1117
|
+
execution?: "client" | "server" | undefined;
|
|
1118
|
+
status?: string | undefined;
|
|
1119
|
+
} | {
|
|
1120
|
+
type: "tool_search_output";
|
|
1121
|
+
tools: Record<string, any>[];
|
|
1122
|
+
providerData?: Record<string, any> | undefined;
|
|
1123
|
+
id?: string | undefined;
|
|
1124
|
+
call_id?: string | null | undefined;
|
|
1125
|
+
callId?: string | null | undefined;
|
|
1126
|
+
execution?: "client" | "server" | undefined;
|
|
1127
|
+
status?: string | undefined;
|
|
1128
|
+
} | {
|
|
1129
|
+
type: "function_call_result";
|
|
1130
|
+
name: string;
|
|
1131
|
+
callId: string;
|
|
1132
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1133
|
+
output: string | {
|
|
1134
|
+
type: "text";
|
|
1135
|
+
text: string;
|
|
1136
|
+
providerData?: Record<string, any> | undefined;
|
|
1137
|
+
} | {
|
|
1138
|
+
type: "image";
|
|
1139
|
+
providerData?: Record<string, any> | undefined;
|
|
1140
|
+
image?: string | {
|
|
1141
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
1142
|
+
mediaType?: string | undefined;
|
|
1143
|
+
} | {
|
|
1144
|
+
url: string;
|
|
1145
|
+
} | {
|
|
1146
|
+
fileId: string;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
1149
|
+
} | {
|
|
1150
|
+
type: "file";
|
|
1151
|
+
file: string | {
|
|
1152
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
1153
|
+
mediaType: string;
|
|
1154
|
+
filename: string;
|
|
1155
|
+
} | {
|
|
1156
|
+
url: string;
|
|
1157
|
+
filename?: string | undefined;
|
|
1158
|
+
} | {
|
|
1159
|
+
id: string;
|
|
1160
|
+
filename?: string | undefined;
|
|
1161
|
+
};
|
|
1162
|
+
providerData?: Record<string, any> | undefined;
|
|
1163
|
+
} | ({
|
|
1164
|
+
type: "input_text";
|
|
1165
|
+
text: string;
|
|
1166
|
+
providerData?: Record<string, any> | undefined;
|
|
1167
|
+
} | {
|
|
1168
|
+
type: "input_image";
|
|
1169
|
+
providerData?: Record<string, any> | undefined;
|
|
1170
|
+
image?: string | {
|
|
1171
|
+
id: string;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
detail?: string | undefined;
|
|
1174
|
+
} | {
|
|
1175
|
+
type: "input_file";
|
|
1176
|
+
providerData?: Record<string, any> | undefined;
|
|
1177
|
+
file?: string | {
|
|
1178
|
+
id: string;
|
|
1179
|
+
} | {
|
|
1180
|
+
url: string;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
filename?: string | undefined;
|
|
1183
|
+
})[];
|
|
1184
|
+
providerData?: Record<string, any> | undefined;
|
|
1185
|
+
id?: string | undefined;
|
|
1186
|
+
namespace?: string | undefined;
|
|
1187
|
+
} | {
|
|
1188
|
+
type: "computer_call";
|
|
1189
|
+
callId: string;
|
|
1190
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1191
|
+
providerData?: Record<string, any> | undefined;
|
|
1192
|
+
id?: string | undefined;
|
|
1193
|
+
action?: {
|
|
1194
|
+
type: "screenshot";
|
|
1195
|
+
} | {
|
|
1196
|
+
type: "click";
|
|
1197
|
+
x: number;
|
|
1198
|
+
y: number;
|
|
1199
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
1200
|
+
} | {
|
|
1201
|
+
type: "double_click";
|
|
1202
|
+
x: number;
|
|
1203
|
+
y: number;
|
|
1204
|
+
} | {
|
|
1205
|
+
type: "scroll";
|
|
1206
|
+
x: number;
|
|
1207
|
+
y: number;
|
|
1208
|
+
scroll_x: number;
|
|
1209
|
+
scroll_y: number;
|
|
1210
|
+
} | {
|
|
1211
|
+
type: "type";
|
|
1212
|
+
text: string;
|
|
1213
|
+
} | {
|
|
1214
|
+
type: "wait";
|
|
1215
|
+
} | {
|
|
1216
|
+
type: "move";
|
|
1217
|
+
x: number;
|
|
1218
|
+
y: number;
|
|
1219
|
+
} | {
|
|
1220
|
+
type: "keypress";
|
|
1221
|
+
keys: string[];
|
|
1222
|
+
} | {
|
|
1223
|
+
type: "drag";
|
|
1224
|
+
path: {
|
|
1225
|
+
x: number;
|
|
1226
|
+
y: number;
|
|
1227
|
+
}[];
|
|
1228
|
+
} | undefined;
|
|
1229
|
+
actions?: ({
|
|
1230
|
+
type: "screenshot";
|
|
1231
|
+
} | {
|
|
1232
|
+
type: "click";
|
|
1233
|
+
x: number;
|
|
1234
|
+
y: number;
|
|
1235
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
1236
|
+
} | {
|
|
1237
|
+
type: "double_click";
|
|
1238
|
+
x: number;
|
|
1239
|
+
y: number;
|
|
1240
|
+
} | {
|
|
1241
|
+
type: "scroll";
|
|
1242
|
+
x: number;
|
|
1243
|
+
y: number;
|
|
1244
|
+
scroll_x: number;
|
|
1245
|
+
scroll_y: number;
|
|
1246
|
+
} | {
|
|
1247
|
+
type: "type";
|
|
1248
|
+
text: string;
|
|
1249
|
+
} | {
|
|
1250
|
+
type: "wait";
|
|
1251
|
+
} | {
|
|
1252
|
+
type: "move";
|
|
1253
|
+
x: number;
|
|
1254
|
+
y: number;
|
|
1255
|
+
} | {
|
|
1256
|
+
type: "keypress";
|
|
1257
|
+
keys: string[];
|
|
1258
|
+
} | {
|
|
1259
|
+
type: "drag";
|
|
1260
|
+
path: {
|
|
1261
|
+
x: number;
|
|
1262
|
+
y: number;
|
|
1263
|
+
}[];
|
|
1264
|
+
})[] | undefined;
|
|
1265
|
+
} | {
|
|
1266
|
+
type: "computer_call_result";
|
|
1267
|
+
callId: string;
|
|
1268
|
+
output: {
|
|
1269
|
+
type: "computer_screenshot";
|
|
1270
|
+
data: string;
|
|
1271
|
+
providerData?: Record<string, any> | undefined;
|
|
1272
|
+
};
|
|
1273
|
+
providerData?: Record<string, any> | undefined;
|
|
1274
|
+
id?: string | undefined;
|
|
1275
|
+
} | {
|
|
1276
|
+
type: "shell_call";
|
|
1277
|
+
callId: string;
|
|
1278
|
+
action: {
|
|
1279
|
+
commands: string[];
|
|
1280
|
+
timeoutMs?: number | undefined;
|
|
1281
|
+
maxOutputLength?: number | undefined;
|
|
1282
|
+
};
|
|
1283
|
+
providerData?: Record<string, any> | undefined;
|
|
1284
|
+
id?: string | undefined;
|
|
1285
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
type: "shell_call_output";
|
|
1288
|
+
callId: string;
|
|
1289
|
+
output: {
|
|
1290
|
+
[x: string]: unknown;
|
|
1291
|
+
stdout: string;
|
|
1292
|
+
stderr: string;
|
|
1293
|
+
outcome: {
|
|
1294
|
+
type: "timeout";
|
|
1295
|
+
} | {
|
|
1296
|
+
type: "exit";
|
|
1297
|
+
exitCode: number | null;
|
|
1298
|
+
};
|
|
1299
|
+
}[];
|
|
1300
|
+
providerData?: Record<string, any> | undefined;
|
|
1301
|
+
id?: string | undefined;
|
|
1302
|
+
maxOutputLength?: number | undefined;
|
|
1303
|
+
} | {
|
|
1304
|
+
type: "apply_patch_call";
|
|
1305
|
+
callId: string;
|
|
1306
|
+
status: "in_progress" | "completed";
|
|
1307
|
+
operation: {
|
|
1308
|
+
type: "create_file";
|
|
1309
|
+
path: string;
|
|
1310
|
+
diff: string;
|
|
1311
|
+
} | {
|
|
1312
|
+
type: "update_file";
|
|
1313
|
+
path: string;
|
|
1314
|
+
diff: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
type: "delete_file";
|
|
1317
|
+
path: string;
|
|
1318
|
+
};
|
|
1319
|
+
providerData?: Record<string, any> | undefined;
|
|
1320
|
+
id?: string | undefined;
|
|
1321
|
+
} | {
|
|
1322
|
+
type: "apply_patch_call_output";
|
|
1323
|
+
callId: string;
|
|
1324
|
+
status: "completed" | "failed";
|
|
1325
|
+
providerData?: Record<string, any> | undefined;
|
|
1326
|
+
id?: string | undefined;
|
|
1327
|
+
output?: string | undefined;
|
|
1328
|
+
} | {
|
|
1329
|
+
type: "reasoning";
|
|
1330
|
+
content: {
|
|
1331
|
+
type: "input_text";
|
|
1332
|
+
text: string;
|
|
1333
|
+
providerData?: Record<string, any> | undefined;
|
|
1334
|
+
}[];
|
|
1335
|
+
providerData?: Record<string, any> | undefined;
|
|
1336
|
+
id?: string | undefined;
|
|
1337
|
+
rawContent?: {
|
|
1338
|
+
type: "reasoning_text";
|
|
1339
|
+
text: string;
|
|
1340
|
+
providerData?: Record<string, any> | undefined;
|
|
1341
|
+
}[] | undefined;
|
|
1342
|
+
} | {
|
|
1343
|
+
type: "compaction";
|
|
1344
|
+
encrypted_content: string;
|
|
1345
|
+
providerData?: Record<string, any> | undefined;
|
|
1346
|
+
id?: string | undefined;
|
|
1347
|
+
created_by?: string | undefined;
|
|
1348
|
+
} | {
|
|
1349
|
+
type: "unknown";
|
|
1350
|
+
providerData?: Record<string, any> | undefined;
|
|
1351
|
+
id?: string | undefined;
|
|
1352
|
+
} | undefined;
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
export declare class RunToolSearchOutputItem extends RunItemBase {
|
|
1356
|
+
rawItem: protocol.ToolSearchOutputItem;
|
|
1357
|
+
agent: Agent;
|
|
1358
|
+
readonly type: "tool_search_output_item";
|
|
1359
|
+
constructor(rawItem: protocol.ToolSearchOutputItem, agent: Agent);
|
|
1360
|
+
toJSON(): {
|
|
1361
|
+
agent: {
|
|
1362
|
+
name: string;
|
|
1363
|
+
};
|
|
1364
|
+
type: string;
|
|
1365
|
+
rawItem: {
|
|
1366
|
+
role: "assistant";
|
|
1367
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1368
|
+
content: ({
|
|
1369
|
+
type: "refusal";
|
|
1370
|
+
refusal: string;
|
|
1371
|
+
providerData?: Record<string, any> | undefined;
|
|
1372
|
+
} | {
|
|
1373
|
+
type: "output_text";
|
|
1374
|
+
text: string;
|
|
1375
|
+
providerData?: Record<string, any> | undefined;
|
|
1376
|
+
} | {
|
|
1377
|
+
type: "audio";
|
|
1378
|
+
audio: string | {
|
|
1379
|
+
id: string;
|
|
1380
|
+
};
|
|
1381
|
+
providerData?: Record<string, any> | undefined;
|
|
1382
|
+
format?: string | null | undefined;
|
|
1383
|
+
transcript?: string | null | undefined;
|
|
1384
|
+
} | {
|
|
1385
|
+
type: "image";
|
|
1386
|
+
image: string;
|
|
1387
|
+
providerData?: Record<string, any> | undefined;
|
|
1388
|
+
})[];
|
|
1389
|
+
providerData?: Record<string, any> | undefined;
|
|
1390
|
+
id?: string | undefined;
|
|
1391
|
+
type?: "message" | undefined;
|
|
1392
|
+
} | {
|
|
1393
|
+
role: "user";
|
|
1394
|
+
content: string | ({
|
|
1395
|
+
type: "input_text";
|
|
1396
|
+
text: string;
|
|
1397
|
+
providerData?: Record<string, any> | undefined;
|
|
1398
|
+
} | {
|
|
1399
|
+
type: "input_image";
|
|
1400
|
+
providerData?: Record<string, any> | undefined;
|
|
1401
|
+
image?: string | {
|
|
1402
|
+
id: string;
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
detail?: string | undefined;
|
|
1405
|
+
} | {
|
|
1406
|
+
type: "input_file";
|
|
1407
|
+
providerData?: Record<string, any> | undefined;
|
|
1408
|
+
file?: string | {
|
|
1409
|
+
id: string;
|
|
1410
|
+
} | {
|
|
1411
|
+
url: string;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
filename?: string | undefined;
|
|
1414
|
+
} | {
|
|
1415
|
+
type: "audio";
|
|
1416
|
+
audio: string | {
|
|
1417
|
+
id: string;
|
|
1418
|
+
};
|
|
1419
|
+
providerData?: Record<string, any> | undefined;
|
|
1420
|
+
format?: string | null | undefined;
|
|
1421
|
+
transcript?: string | null | undefined;
|
|
1422
|
+
})[];
|
|
1423
|
+
providerData?: Record<string, any> | undefined;
|
|
1424
|
+
id?: string | undefined;
|
|
1425
|
+
type?: "message" | undefined;
|
|
1426
|
+
} | {
|
|
1427
|
+
role: "system";
|
|
1428
|
+
content: string;
|
|
1429
|
+
providerData?: Record<string, any> | undefined;
|
|
1430
|
+
id?: string | undefined;
|
|
1431
|
+
type?: "message" | undefined;
|
|
1432
|
+
} | {
|
|
1433
|
+
type: "hosted_tool_call";
|
|
1434
|
+
name: string;
|
|
1435
|
+
providerData?: Record<string, any> | undefined;
|
|
1436
|
+
id?: string | undefined;
|
|
1437
|
+
arguments?: string | undefined;
|
|
1438
|
+
status?: string | undefined;
|
|
1439
|
+
output?: string | undefined;
|
|
1440
|
+
} | {
|
|
1441
|
+
type: "function_call";
|
|
1442
|
+
callId: string;
|
|
1443
|
+
name: string;
|
|
1444
|
+
arguments: string;
|
|
1445
|
+
providerData?: Record<string, any> | undefined;
|
|
1446
|
+
id?: string | undefined;
|
|
1447
|
+
namespace?: string | undefined;
|
|
1448
|
+
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1449
|
+
} | {
|
|
1450
|
+
type: "tool_search_call";
|
|
1451
|
+
arguments: unknown;
|
|
1452
|
+
providerData?: Record<string, any> | undefined;
|
|
1453
|
+
id?: string | undefined;
|
|
1454
|
+
call_id?: string | null | undefined;
|
|
1455
|
+
callId?: string | null | undefined;
|
|
1456
|
+
execution?: "client" | "server" | undefined;
|
|
1457
|
+
status?: string | undefined;
|
|
1458
|
+
} | {
|
|
1459
|
+
type: "tool_search_output";
|
|
1460
|
+
tools: Record<string, any>[];
|
|
1461
|
+
providerData?: Record<string, any> | undefined;
|
|
1462
|
+
id?: string | undefined;
|
|
1463
|
+
call_id?: string | null | undefined;
|
|
1464
|
+
callId?: string | null | undefined;
|
|
1465
|
+
execution?: "client" | "server" | undefined;
|
|
1466
|
+
status?: string | undefined;
|
|
1467
|
+
} | {
|
|
1468
|
+
type: "function_call_result";
|
|
1469
|
+
name: string;
|
|
1470
|
+
callId: string;
|
|
1471
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1472
|
+
output: string | {
|
|
1473
|
+
type: "text";
|
|
1474
|
+
text: string;
|
|
1475
|
+
providerData?: Record<string, any> | undefined;
|
|
1476
|
+
} | {
|
|
1477
|
+
type: "image";
|
|
1478
|
+
providerData?: Record<string, any> | undefined;
|
|
1479
|
+
image?: string | {
|
|
1480
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
1481
|
+
mediaType?: string | undefined;
|
|
1482
|
+
} | {
|
|
1483
|
+
url: string;
|
|
1484
|
+
} | {
|
|
1485
|
+
fileId: string;
|
|
1486
|
+
} | undefined;
|
|
1487
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
1488
|
+
} | {
|
|
1489
|
+
type: "file";
|
|
1490
|
+
file: string | {
|
|
1491
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
1492
|
+
mediaType: string;
|
|
1493
|
+
filename: string;
|
|
1494
|
+
} | {
|
|
1495
|
+
url: string;
|
|
1496
|
+
filename?: string | undefined;
|
|
1497
|
+
} | {
|
|
1498
|
+
id: string;
|
|
1499
|
+
filename?: string | undefined;
|
|
1500
|
+
};
|
|
1501
|
+
providerData?: Record<string, any> | undefined;
|
|
1502
|
+
} | ({
|
|
1503
|
+
type: "input_text";
|
|
1504
|
+
text: string;
|
|
1505
|
+
providerData?: Record<string, any> | undefined;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: "input_image";
|
|
1508
|
+
providerData?: Record<string, any> | undefined;
|
|
1509
|
+
image?: string | {
|
|
1510
|
+
id: string;
|
|
1511
|
+
} | undefined;
|
|
1512
|
+
detail?: string | undefined;
|
|
1513
|
+
} | {
|
|
1514
|
+
type: "input_file";
|
|
1515
|
+
providerData?: Record<string, any> | undefined;
|
|
1516
|
+
file?: string | {
|
|
1517
|
+
id: string;
|
|
1518
|
+
} | {
|
|
1519
|
+
url: string;
|
|
1520
|
+
} | undefined;
|
|
1521
|
+
filename?: string | undefined;
|
|
1522
|
+
})[];
|
|
1523
|
+
providerData?: Record<string, any> | undefined;
|
|
1524
|
+
id?: string | undefined;
|
|
1525
|
+
namespace?: string | undefined;
|
|
1526
|
+
} | {
|
|
1527
|
+
type: "computer_call";
|
|
1528
|
+
callId: string;
|
|
1529
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
1530
|
+
providerData?: Record<string, any> | undefined;
|
|
1531
|
+
id?: string | undefined;
|
|
1532
|
+
action?: {
|
|
1533
|
+
type: "screenshot";
|
|
1534
|
+
} | {
|
|
1535
|
+
type: "click";
|
|
1536
|
+
x: number;
|
|
1537
|
+
y: number;
|
|
1538
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
1539
|
+
} | {
|
|
1540
|
+
type: "double_click";
|
|
1541
|
+
x: number;
|
|
1542
|
+
y: number;
|
|
1543
|
+
} | {
|
|
1544
|
+
type: "scroll";
|
|
1545
|
+
x: number;
|
|
1546
|
+
y: number;
|
|
1547
|
+
scroll_x: number;
|
|
1548
|
+
scroll_y: number;
|
|
1549
|
+
} | {
|
|
1550
|
+
type: "type";
|
|
1551
|
+
text: string;
|
|
1552
|
+
} | {
|
|
1553
|
+
type: "wait";
|
|
1554
|
+
} | {
|
|
1555
|
+
type: "move";
|
|
1556
|
+
x: number;
|
|
1557
|
+
y: number;
|
|
1558
|
+
} | {
|
|
1559
|
+
type: "keypress";
|
|
1560
|
+
keys: string[];
|
|
1561
|
+
} | {
|
|
1562
|
+
type: "drag";
|
|
1563
|
+
path: {
|
|
1564
|
+
x: number;
|
|
1565
|
+
y: number;
|
|
1566
|
+
}[];
|
|
1567
|
+
} | undefined;
|
|
1568
|
+
actions?: ({
|
|
721
1569
|
type: "screenshot";
|
|
722
1570
|
} | {
|
|
723
1571
|
type: "click";
|
|
@@ -752,9 +1600,7 @@ export declare class RunToolCallItem extends RunItemBase {
|
|
|
752
1600
|
x: number;
|
|
753
1601
|
y: number;
|
|
754
1602
|
}[];
|
|
755
|
-
};
|
|
756
|
-
providerData?: Record<string, any> | undefined;
|
|
757
|
-
id?: string | undefined;
|
|
1603
|
+
})[] | undefined;
|
|
758
1604
|
} | {
|
|
759
1605
|
type: "computer_call_result";
|
|
760
1606
|
callId: string;
|
|
@@ -939,7 +1785,26 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
939
1785
|
arguments: string;
|
|
940
1786
|
providerData?: Record<string, any> | undefined;
|
|
941
1787
|
id?: string | undefined;
|
|
1788
|
+
namespace?: string | undefined;
|
|
942
1789
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
1790
|
+
} | {
|
|
1791
|
+
type: "tool_search_call";
|
|
1792
|
+
arguments: unknown;
|
|
1793
|
+
providerData?: Record<string, any> | undefined;
|
|
1794
|
+
id?: string | undefined;
|
|
1795
|
+
call_id?: string | null | undefined;
|
|
1796
|
+
callId?: string | null | undefined;
|
|
1797
|
+
execution?: "client" | "server" | undefined;
|
|
1798
|
+
status?: string | undefined;
|
|
1799
|
+
} | {
|
|
1800
|
+
type: "tool_search_output";
|
|
1801
|
+
tools: Record<string, any>[];
|
|
1802
|
+
providerData?: Record<string, any> | undefined;
|
|
1803
|
+
id?: string | undefined;
|
|
1804
|
+
call_id?: string | null | undefined;
|
|
1805
|
+
callId?: string | null | undefined;
|
|
1806
|
+
execution?: "client" | "server" | undefined;
|
|
1807
|
+
status?: string | undefined;
|
|
943
1808
|
} | {
|
|
944
1809
|
type: "function_call_result";
|
|
945
1810
|
name: string;
|
|
@@ -998,11 +1863,14 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
998
1863
|
})[];
|
|
999
1864
|
providerData?: Record<string, any> | undefined;
|
|
1000
1865
|
id?: string | undefined;
|
|
1866
|
+
namespace?: string | undefined;
|
|
1001
1867
|
} | {
|
|
1002
1868
|
type: "computer_call";
|
|
1003
1869
|
callId: string;
|
|
1004
1870
|
status: "in_progress" | "completed" | "incomplete";
|
|
1005
|
-
|
|
1871
|
+
providerData?: Record<string, any> | undefined;
|
|
1872
|
+
id?: string | undefined;
|
|
1873
|
+
action?: {
|
|
1006
1874
|
type: "screenshot";
|
|
1007
1875
|
} | {
|
|
1008
1876
|
type: "click";
|
|
@@ -1037,9 +1905,43 @@ export declare class RunToolCallOutputItem extends RunItemBase {
|
|
|
1037
1905
|
x: number;
|
|
1038
1906
|
y: number;
|
|
1039
1907
|
}[];
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
|
|
1908
|
+
} | undefined;
|
|
1909
|
+
actions?: ({
|
|
1910
|
+
type: "screenshot";
|
|
1911
|
+
} | {
|
|
1912
|
+
type: "click";
|
|
1913
|
+
x: number;
|
|
1914
|
+
y: number;
|
|
1915
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
1916
|
+
} | {
|
|
1917
|
+
type: "double_click";
|
|
1918
|
+
x: number;
|
|
1919
|
+
y: number;
|
|
1920
|
+
} | {
|
|
1921
|
+
type: "scroll";
|
|
1922
|
+
x: number;
|
|
1923
|
+
y: number;
|
|
1924
|
+
scroll_x: number;
|
|
1925
|
+
scroll_y: number;
|
|
1926
|
+
} | {
|
|
1927
|
+
type: "type";
|
|
1928
|
+
text: string;
|
|
1929
|
+
} | {
|
|
1930
|
+
type: "wait";
|
|
1931
|
+
} | {
|
|
1932
|
+
type: "move";
|
|
1933
|
+
x: number;
|
|
1934
|
+
y: number;
|
|
1935
|
+
} | {
|
|
1936
|
+
type: "keypress";
|
|
1937
|
+
keys: string[];
|
|
1938
|
+
} | {
|
|
1939
|
+
type: "drag";
|
|
1940
|
+
path: {
|
|
1941
|
+
x: number;
|
|
1942
|
+
y: number;
|
|
1943
|
+
}[];
|
|
1944
|
+
})[] | undefined;
|
|
1043
1945
|
} | {
|
|
1044
1946
|
type: "computer_call_result";
|
|
1045
1947
|
callId: string;
|
|
@@ -1222,7 +2124,26 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1222
2124
|
arguments: string;
|
|
1223
2125
|
providerData?: Record<string, any> | undefined;
|
|
1224
2126
|
id?: string | undefined;
|
|
2127
|
+
namespace?: string | undefined;
|
|
1225
2128
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2129
|
+
} | {
|
|
2130
|
+
type: "tool_search_call";
|
|
2131
|
+
arguments: unknown;
|
|
2132
|
+
providerData?: Record<string, any> | undefined;
|
|
2133
|
+
id?: string | undefined;
|
|
2134
|
+
call_id?: string | null | undefined;
|
|
2135
|
+
callId?: string | null | undefined;
|
|
2136
|
+
execution?: "client" | "server" | undefined;
|
|
2137
|
+
status?: string | undefined;
|
|
2138
|
+
} | {
|
|
2139
|
+
type: "tool_search_output";
|
|
2140
|
+
tools: Record<string, any>[];
|
|
2141
|
+
providerData?: Record<string, any> | undefined;
|
|
2142
|
+
id?: string | undefined;
|
|
2143
|
+
call_id?: string | null | undefined;
|
|
2144
|
+
callId?: string | null | undefined;
|
|
2145
|
+
execution?: "client" | "server" | undefined;
|
|
2146
|
+
status?: string | undefined;
|
|
1226
2147
|
} | {
|
|
1227
2148
|
type: "function_call_result";
|
|
1228
2149
|
name: string;
|
|
@@ -1281,11 +2202,14 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1281
2202
|
})[];
|
|
1282
2203
|
providerData?: Record<string, any> | undefined;
|
|
1283
2204
|
id?: string | undefined;
|
|
2205
|
+
namespace?: string | undefined;
|
|
1284
2206
|
} | {
|
|
1285
2207
|
type: "computer_call";
|
|
1286
2208
|
callId: string;
|
|
1287
2209
|
status: "in_progress" | "completed" | "incomplete";
|
|
1288
|
-
|
|
2210
|
+
providerData?: Record<string, any> | undefined;
|
|
2211
|
+
id?: string | undefined;
|
|
2212
|
+
action?: {
|
|
1289
2213
|
type: "screenshot";
|
|
1290
2214
|
} | {
|
|
1291
2215
|
type: "click";
|
|
@@ -1320,9 +2244,43 @@ export declare class RunReasoningItem extends RunItemBase {
|
|
|
1320
2244
|
x: number;
|
|
1321
2245
|
y: number;
|
|
1322
2246
|
}[];
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
|
|
2247
|
+
} | undefined;
|
|
2248
|
+
actions?: ({
|
|
2249
|
+
type: "screenshot";
|
|
2250
|
+
} | {
|
|
2251
|
+
type: "click";
|
|
2252
|
+
x: number;
|
|
2253
|
+
y: number;
|
|
2254
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
2255
|
+
} | {
|
|
2256
|
+
type: "double_click";
|
|
2257
|
+
x: number;
|
|
2258
|
+
y: number;
|
|
2259
|
+
} | {
|
|
2260
|
+
type: "scroll";
|
|
2261
|
+
x: number;
|
|
2262
|
+
y: number;
|
|
2263
|
+
scroll_x: number;
|
|
2264
|
+
scroll_y: number;
|
|
2265
|
+
} | {
|
|
2266
|
+
type: "type";
|
|
2267
|
+
text: string;
|
|
2268
|
+
} | {
|
|
2269
|
+
type: "wait";
|
|
2270
|
+
} | {
|
|
2271
|
+
type: "move";
|
|
2272
|
+
x: number;
|
|
2273
|
+
y: number;
|
|
2274
|
+
} | {
|
|
2275
|
+
type: "keypress";
|
|
2276
|
+
keys: string[];
|
|
2277
|
+
} | {
|
|
2278
|
+
type: "drag";
|
|
2279
|
+
path: {
|
|
2280
|
+
x: number;
|
|
2281
|
+
y: number;
|
|
2282
|
+
}[];
|
|
2283
|
+
})[] | undefined;
|
|
1326
2284
|
} | {
|
|
1327
2285
|
type: "computer_call_result";
|
|
1328
2286
|
callId: string;
|
|
@@ -1505,7 +2463,26 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1505
2463
|
arguments: string;
|
|
1506
2464
|
providerData?: Record<string, any> | undefined;
|
|
1507
2465
|
id?: string | undefined;
|
|
2466
|
+
namespace?: string | undefined;
|
|
1508
2467
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2468
|
+
} | {
|
|
2469
|
+
type: "tool_search_call";
|
|
2470
|
+
arguments: unknown;
|
|
2471
|
+
providerData?: Record<string, any> | undefined;
|
|
2472
|
+
id?: string | undefined;
|
|
2473
|
+
call_id?: string | null | undefined;
|
|
2474
|
+
callId?: string | null | undefined;
|
|
2475
|
+
execution?: "client" | "server" | undefined;
|
|
2476
|
+
status?: string | undefined;
|
|
2477
|
+
} | {
|
|
2478
|
+
type: "tool_search_output";
|
|
2479
|
+
tools: Record<string, any>[];
|
|
2480
|
+
providerData?: Record<string, any> | undefined;
|
|
2481
|
+
id?: string | undefined;
|
|
2482
|
+
call_id?: string | null | undefined;
|
|
2483
|
+
callId?: string | null | undefined;
|
|
2484
|
+
execution?: "client" | "server" | undefined;
|
|
2485
|
+
status?: string | undefined;
|
|
1509
2486
|
} | {
|
|
1510
2487
|
type: "function_call_result";
|
|
1511
2488
|
name: string;
|
|
@@ -1564,11 +2541,14 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1564
2541
|
})[];
|
|
1565
2542
|
providerData?: Record<string, any> | undefined;
|
|
1566
2543
|
id?: string | undefined;
|
|
2544
|
+
namespace?: string | undefined;
|
|
1567
2545
|
} | {
|
|
1568
2546
|
type: "computer_call";
|
|
1569
2547
|
callId: string;
|
|
1570
2548
|
status: "in_progress" | "completed" | "incomplete";
|
|
1571
|
-
|
|
2549
|
+
providerData?: Record<string, any> | undefined;
|
|
2550
|
+
id?: string | undefined;
|
|
2551
|
+
action?: {
|
|
1572
2552
|
type: "screenshot";
|
|
1573
2553
|
} | {
|
|
1574
2554
|
type: "click";
|
|
@@ -1603,9 +2583,43 @@ export declare class RunHandoffCallItem extends RunItemBase {
|
|
|
1603
2583
|
x: number;
|
|
1604
2584
|
y: number;
|
|
1605
2585
|
}[];
|
|
1606
|
-
};
|
|
1607
|
-
|
|
1608
|
-
|
|
2586
|
+
} | undefined;
|
|
2587
|
+
actions?: ({
|
|
2588
|
+
type: "screenshot";
|
|
2589
|
+
} | {
|
|
2590
|
+
type: "click";
|
|
2591
|
+
x: number;
|
|
2592
|
+
y: number;
|
|
2593
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
2594
|
+
} | {
|
|
2595
|
+
type: "double_click";
|
|
2596
|
+
x: number;
|
|
2597
|
+
y: number;
|
|
2598
|
+
} | {
|
|
2599
|
+
type: "scroll";
|
|
2600
|
+
x: number;
|
|
2601
|
+
y: number;
|
|
2602
|
+
scroll_x: number;
|
|
2603
|
+
scroll_y: number;
|
|
2604
|
+
} | {
|
|
2605
|
+
type: "type";
|
|
2606
|
+
text: string;
|
|
2607
|
+
} | {
|
|
2608
|
+
type: "wait";
|
|
2609
|
+
} | {
|
|
2610
|
+
type: "move";
|
|
2611
|
+
x: number;
|
|
2612
|
+
y: number;
|
|
2613
|
+
} | {
|
|
2614
|
+
type: "keypress";
|
|
2615
|
+
keys: string[];
|
|
2616
|
+
} | {
|
|
2617
|
+
type: "drag";
|
|
2618
|
+
path: {
|
|
2619
|
+
x: number;
|
|
2620
|
+
y: number;
|
|
2621
|
+
}[];
|
|
2622
|
+
})[] | undefined;
|
|
1609
2623
|
} | {
|
|
1610
2624
|
type: "computer_call_result";
|
|
1611
2625
|
callId: string;
|
|
@@ -1792,7 +2806,26 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1792
2806
|
arguments: string;
|
|
1793
2807
|
providerData?: Record<string, any> | undefined;
|
|
1794
2808
|
id?: string | undefined;
|
|
2809
|
+
namespace?: string | undefined;
|
|
1795
2810
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
2811
|
+
} | {
|
|
2812
|
+
type: "tool_search_call";
|
|
2813
|
+
arguments: unknown;
|
|
2814
|
+
providerData?: Record<string, any> | undefined;
|
|
2815
|
+
id?: string | undefined;
|
|
2816
|
+
call_id?: string | null | undefined;
|
|
2817
|
+
callId?: string | null | undefined;
|
|
2818
|
+
execution?: "client" | "server" | undefined;
|
|
2819
|
+
status?: string | undefined;
|
|
2820
|
+
} | {
|
|
2821
|
+
type: "tool_search_output";
|
|
2822
|
+
tools: Record<string, any>[];
|
|
2823
|
+
providerData?: Record<string, any> | undefined;
|
|
2824
|
+
id?: string | undefined;
|
|
2825
|
+
call_id?: string | null | undefined;
|
|
2826
|
+
callId?: string | null | undefined;
|
|
2827
|
+
execution?: "client" | "server" | undefined;
|
|
2828
|
+
status?: string | undefined;
|
|
1796
2829
|
} | {
|
|
1797
2830
|
type: "function_call_result";
|
|
1798
2831
|
name: string;
|
|
@@ -1851,11 +2884,14 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1851
2884
|
})[];
|
|
1852
2885
|
providerData?: Record<string, any> | undefined;
|
|
1853
2886
|
id?: string | undefined;
|
|
2887
|
+
namespace?: string | undefined;
|
|
1854
2888
|
} | {
|
|
1855
2889
|
type: "computer_call";
|
|
1856
2890
|
callId: string;
|
|
1857
2891
|
status: "in_progress" | "completed" | "incomplete";
|
|
1858
|
-
|
|
2892
|
+
providerData?: Record<string, any> | undefined;
|
|
2893
|
+
id?: string | undefined;
|
|
2894
|
+
action?: {
|
|
1859
2895
|
type: "screenshot";
|
|
1860
2896
|
} | {
|
|
1861
2897
|
type: "click";
|
|
@@ -1890,9 +2926,43 @@ export declare class RunHandoffOutputItem extends RunItemBase {
|
|
|
1890
2926
|
x: number;
|
|
1891
2927
|
y: number;
|
|
1892
2928
|
}[];
|
|
1893
|
-
};
|
|
1894
|
-
|
|
1895
|
-
|
|
2929
|
+
} | undefined;
|
|
2930
|
+
actions?: ({
|
|
2931
|
+
type: "screenshot";
|
|
2932
|
+
} | {
|
|
2933
|
+
type: "click";
|
|
2934
|
+
x: number;
|
|
2935
|
+
y: number;
|
|
2936
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
2937
|
+
} | {
|
|
2938
|
+
type: "double_click";
|
|
2939
|
+
x: number;
|
|
2940
|
+
y: number;
|
|
2941
|
+
} | {
|
|
2942
|
+
type: "scroll";
|
|
2943
|
+
x: number;
|
|
2944
|
+
y: number;
|
|
2945
|
+
scroll_x: number;
|
|
2946
|
+
scroll_y: number;
|
|
2947
|
+
} | {
|
|
2948
|
+
type: "type";
|
|
2949
|
+
text: string;
|
|
2950
|
+
} | {
|
|
2951
|
+
type: "wait";
|
|
2952
|
+
} | {
|
|
2953
|
+
type: "move";
|
|
2954
|
+
x: number;
|
|
2955
|
+
y: number;
|
|
2956
|
+
} | {
|
|
2957
|
+
type: "keypress";
|
|
2958
|
+
keys: string[];
|
|
2959
|
+
} | {
|
|
2960
|
+
type: "drag";
|
|
2961
|
+
path: {
|
|
2962
|
+
x: number;
|
|
2963
|
+
y: number;
|
|
2964
|
+
}[];
|
|
2965
|
+
})[] | undefined;
|
|
1896
2966
|
} | {
|
|
1897
2967
|
type: "computer_call_result";
|
|
1898
2968
|
callId: string;
|
|
@@ -2093,7 +3163,26 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2093
3163
|
arguments: string;
|
|
2094
3164
|
providerData?: Record<string, any> | undefined;
|
|
2095
3165
|
id?: string | undefined;
|
|
3166
|
+
namespace?: string | undefined;
|
|
2096
3167
|
status?: "in_progress" | "completed" | "incomplete" | undefined;
|
|
3168
|
+
} | {
|
|
3169
|
+
type: "tool_search_call";
|
|
3170
|
+
arguments: unknown;
|
|
3171
|
+
providerData?: Record<string, any> | undefined;
|
|
3172
|
+
id?: string | undefined;
|
|
3173
|
+
call_id?: string | null | undefined;
|
|
3174
|
+
callId?: string | null | undefined;
|
|
3175
|
+
execution?: "client" | "server" | undefined;
|
|
3176
|
+
status?: string | undefined;
|
|
3177
|
+
} | {
|
|
3178
|
+
type: "tool_search_output";
|
|
3179
|
+
tools: Record<string, any>[];
|
|
3180
|
+
providerData?: Record<string, any> | undefined;
|
|
3181
|
+
id?: string | undefined;
|
|
3182
|
+
call_id?: string | null | undefined;
|
|
3183
|
+
callId?: string | null | undefined;
|
|
3184
|
+
execution?: "client" | "server" | undefined;
|
|
3185
|
+
status?: string | undefined;
|
|
2097
3186
|
} | {
|
|
2098
3187
|
type: "function_call_result";
|
|
2099
3188
|
name: string;
|
|
@@ -2152,11 +3241,14 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2152
3241
|
})[];
|
|
2153
3242
|
providerData?: Record<string, any> | undefined;
|
|
2154
3243
|
id?: string | undefined;
|
|
3244
|
+
namespace?: string | undefined;
|
|
2155
3245
|
} | {
|
|
2156
3246
|
type: "computer_call";
|
|
2157
3247
|
callId: string;
|
|
2158
3248
|
status: "in_progress" | "completed" | "incomplete";
|
|
2159
|
-
|
|
3249
|
+
providerData?: Record<string, any> | undefined;
|
|
3250
|
+
id?: string | undefined;
|
|
3251
|
+
action?: {
|
|
2160
3252
|
type: "screenshot";
|
|
2161
3253
|
} | {
|
|
2162
3254
|
type: "click";
|
|
@@ -2191,9 +3283,43 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2191
3283
|
x: number;
|
|
2192
3284
|
y: number;
|
|
2193
3285
|
}[];
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
|
|
3286
|
+
} | undefined;
|
|
3287
|
+
actions?: ({
|
|
3288
|
+
type: "screenshot";
|
|
3289
|
+
} | {
|
|
3290
|
+
type: "click";
|
|
3291
|
+
x: number;
|
|
3292
|
+
y: number;
|
|
3293
|
+
button: "left" | "right" | "wheel" | "back" | "forward";
|
|
3294
|
+
} | {
|
|
3295
|
+
type: "double_click";
|
|
3296
|
+
x: number;
|
|
3297
|
+
y: number;
|
|
3298
|
+
} | {
|
|
3299
|
+
type: "scroll";
|
|
3300
|
+
x: number;
|
|
3301
|
+
y: number;
|
|
3302
|
+
scroll_x: number;
|
|
3303
|
+
scroll_y: number;
|
|
3304
|
+
} | {
|
|
3305
|
+
type: "type";
|
|
3306
|
+
text: string;
|
|
3307
|
+
} | {
|
|
3308
|
+
type: "wait";
|
|
3309
|
+
} | {
|
|
3310
|
+
type: "move";
|
|
3311
|
+
x: number;
|
|
3312
|
+
y: number;
|
|
3313
|
+
} | {
|
|
3314
|
+
type: "keypress";
|
|
3315
|
+
keys: string[];
|
|
3316
|
+
} | {
|
|
3317
|
+
type: "drag";
|
|
3318
|
+
path: {
|
|
3319
|
+
x: number;
|
|
3320
|
+
y: number;
|
|
3321
|
+
}[];
|
|
3322
|
+
})[] | undefined;
|
|
2197
3323
|
} | {
|
|
2198
3324
|
type: "computer_call_result";
|
|
2199
3325
|
callId: string;
|
|
@@ -2284,7 +3410,7 @@ export declare class RunToolApprovalItem extends RunItemBase {
|
|
|
2284
3410
|
} | undefined;
|
|
2285
3411
|
};
|
|
2286
3412
|
}
|
|
2287
|
-
export type RunItem = RunMessageOutputItem | RunToolCallItem | RunReasoningItem | RunHandoffCallItem | RunToolCallOutputItem | RunHandoffOutputItem | RunToolApprovalItem;
|
|
3413
|
+
export type RunItem = RunMessageOutputItem | RunToolCallItem | RunToolSearchCallItem | RunToolSearchOutputItem | RunReasoningItem | RunHandoffCallItem | RunToolCallOutputItem | RunHandoffOutputItem | RunToolApprovalItem;
|
|
2288
3414
|
/**
|
|
2289
3415
|
* Extract all text output from a list of run items by concatenating the content of all
|
|
2290
3416
|
* message output items.
|