@oh-my-pi/pi-ai 17.2.6 → 17.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/types/auth-broker/client.d.ts +7 -0
- package/dist/types/auth-broker/server.d.ts +11 -0
- package/dist/types/auth-broker/wire-schema-resource.d.ts +1 -1
- package/dist/types/auth-broker/wire-schemas.d.ts +4 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/providers/anthropic-messages-server-schema.d.ts +695 -255
- package/dist/types/providers/openai-chat-server-schema.d.ts +909 -293
- package/dist/types/providers/openai-responses-server-schema.d.ts +980 -353
- package/dist/types/types.d.ts +8 -5
- package/dist/types/usage.d.ts +152 -46
- package/dist/types/utils/schema/wire.d.ts +1 -1
- package/dist/types/utils/validation.d.ts +24 -0
- package/package.json +5 -5
- package/src/auth-broker/client.ts +2 -1
- package/src/auth-broker/server.ts +2 -1
- package/src/auth-broker/wire-schema-resource.ts +1 -6
- package/src/index.ts +1 -1
- package/src/providers/anthropic-messages-server-schema.ts +1 -1
- package/src/providers/anthropic-messages-server.ts +1 -1
- package/src/providers/cursor.ts +31 -3
- package/src/providers/google-gemini-cli.ts +1 -1
- package/src/providers/openai-chat-server-schema.ts +1 -1
- package/src/providers/openai-chat-server.ts +1 -1
- package/src/providers/openai-codex-responses.ts +1 -1
- package/src/providers/openai-responses-server-schema.ts +1 -1
- package/src/providers/openai-responses-server.ts +1 -1
- package/src/types.ts +9 -6
- package/src/usage.ts +1 -1
- package/src/utils/schema/wire.ts +1 -1
- package/src/utils/validation.ts +2 -1
|
@@ -8,671 +8,1298 @@
|
|
|
8
8
|
* is a worse outcome than dropping them on the floor.
|
|
9
9
|
*/
|
|
10
10
|
import type { EasyInputMessage, ResponseCreateParams, ResponseFunctionToolCall, ResponseInputContent, ResponseInputItem, ResponseOutputMessage, ResponseReasoningItem, Tool as ResponsesTool } from "./openai-responses-wire.js";
|
|
11
|
-
declare const inputImageBlockSchema: import("
|
|
12
|
-
type: "input_image";
|
|
11
|
+
declare const inputImageBlockSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
13
12
|
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
13
|
+
file_id?: string | undefined;
|
|
14
14
|
image_url?: string | undefined;
|
|
15
|
+
type: "input_image";
|
|
16
|
+
}, {
|
|
17
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
15
18
|
file_id?: string | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
image_url?: string | undefined;
|
|
20
|
+
type: "input_image";
|
|
21
|
+
}>;
|
|
22
|
+
declare const inputFileBlockSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
23
|
+
file_data?: string | undefined;
|
|
19
24
|
file_id?: string | undefined;
|
|
25
|
+
file_url?: string | undefined;
|
|
20
26
|
filename?: string | undefined;
|
|
27
|
+
type: "input_file";
|
|
28
|
+
}, {
|
|
21
29
|
file_data?: string | undefined;
|
|
30
|
+
file_id?: string | undefined;
|
|
22
31
|
file_url?: string | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
filename?: string | undefined;
|
|
33
|
+
type: "input_file";
|
|
34
|
+
}>;
|
|
35
|
+
declare const outputRefusalSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
36
|
+
refusal: string;
|
|
25
37
|
type: "refusal";
|
|
38
|
+
}, {
|
|
26
39
|
refusal: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
id?: string | undefined;
|
|
40
|
+
type: "refusal";
|
|
41
|
+
}>;
|
|
42
|
+
declare const customToolCallItemSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
31
43
|
call_id: string;
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
input: string;
|
|
32
46
|
name: string;
|
|
47
|
+
type: "custom_tool_call";
|
|
48
|
+
}, {
|
|
49
|
+
call_id: string;
|
|
50
|
+
id?: string | undefined;
|
|
33
51
|
input: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
type: "custom_tool_call";
|
|
54
|
+
}>;
|
|
55
|
+
declare const customToolCallOutputItemSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
37
56
|
call_id: string;
|
|
38
57
|
output: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
type: "computer_call";
|
|
42
|
-
id: string;
|
|
58
|
+
type: "custom_tool_call_output";
|
|
59
|
+
}, {
|
|
43
60
|
call_id: string;
|
|
61
|
+
output: string;
|
|
62
|
+
type: "custom_tool_call_output";
|
|
63
|
+
}>;
|
|
64
|
+
declare const computerCallItemSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
44
65
|
action?: {
|
|
45
|
-
type: "click";
|
|
46
66
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
67
|
+
keys?: string[] | null | undefined;
|
|
68
|
+
type: "click";
|
|
47
69
|
x: number;
|
|
48
70
|
y: number;
|
|
49
|
-
keys?: string[] | null | undefined;
|
|
50
71
|
} | {
|
|
72
|
+
keys: string[] | null;
|
|
51
73
|
type: "double_click";
|
|
52
74
|
x: number;
|
|
53
75
|
y: number;
|
|
54
|
-
keys: string[] | null;
|
|
55
76
|
} | {
|
|
56
|
-
|
|
77
|
+
keys?: string[] | null | undefined;
|
|
57
78
|
path: {
|
|
58
79
|
x: number;
|
|
59
80
|
y: number;
|
|
60
81
|
}[];
|
|
61
|
-
|
|
82
|
+
type: "drag";
|
|
62
83
|
} | {
|
|
63
|
-
type: "keypress";
|
|
64
84
|
keys: string[];
|
|
85
|
+
type: "keypress";
|
|
65
86
|
} | {
|
|
87
|
+
keys?: string[] | null | undefined;
|
|
66
88
|
type: "move";
|
|
67
89
|
x: number;
|
|
68
90
|
y: number;
|
|
69
|
-
keys?: string[] | null | undefined;
|
|
70
91
|
} | {
|
|
71
92
|
type: "screenshot";
|
|
72
93
|
} | {
|
|
94
|
+
keys?: string[] | null | undefined;
|
|
95
|
+
scroll_x: number;
|
|
96
|
+
scroll_y: number;
|
|
73
97
|
type: "scroll";
|
|
74
98
|
x: number;
|
|
75
99
|
y: number;
|
|
76
|
-
scroll_x: number;
|
|
77
|
-
scroll_y: number;
|
|
78
|
-
keys?: string[] | null | undefined;
|
|
79
100
|
} | {
|
|
80
|
-
type: "type";
|
|
81
101
|
text: string;
|
|
102
|
+
type: "type";
|
|
82
103
|
} | {
|
|
83
104
|
type: "wait";
|
|
84
105
|
} | undefined;
|
|
85
106
|
actions?: ({
|
|
86
|
-
type: "click";
|
|
87
107
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
108
|
+
keys?: string[] | null | undefined;
|
|
109
|
+
type: "click";
|
|
88
110
|
x: number;
|
|
89
111
|
y: number;
|
|
90
|
-
keys?: string[] | null | undefined;
|
|
91
112
|
} | {
|
|
113
|
+
keys: string[] | null;
|
|
92
114
|
type: "double_click";
|
|
93
115
|
x: number;
|
|
94
116
|
y: number;
|
|
95
|
-
keys: string[] | null;
|
|
96
117
|
} | {
|
|
97
|
-
|
|
118
|
+
keys?: string[] | null | undefined;
|
|
98
119
|
path: {
|
|
99
120
|
x: number;
|
|
100
121
|
y: number;
|
|
101
122
|
}[];
|
|
102
|
-
|
|
123
|
+
type: "drag";
|
|
103
124
|
} | {
|
|
104
|
-
type: "keypress";
|
|
105
125
|
keys: string[];
|
|
126
|
+
type: "keypress";
|
|
106
127
|
} | {
|
|
128
|
+
keys?: string[] | null | undefined;
|
|
107
129
|
type: "move";
|
|
108
130
|
x: number;
|
|
109
131
|
y: number;
|
|
110
|
-
keys?: string[] | null | undefined;
|
|
111
132
|
} | {
|
|
112
133
|
type: "screenshot";
|
|
113
134
|
} | {
|
|
135
|
+
keys?: string[] | null | undefined;
|
|
136
|
+
scroll_x: number;
|
|
137
|
+
scroll_y: number;
|
|
114
138
|
type: "scroll";
|
|
115
139
|
x: number;
|
|
116
140
|
y: number;
|
|
117
|
-
scroll_x: number;
|
|
118
|
-
scroll_y: number;
|
|
119
|
-
keys?: string[] | null | undefined;
|
|
120
141
|
} | {
|
|
121
|
-
type: "type";
|
|
122
142
|
text: string;
|
|
143
|
+
type: "type";
|
|
123
144
|
} | {
|
|
124
145
|
type: "wait";
|
|
125
146
|
})[] | undefined;
|
|
147
|
+
call_id: string;
|
|
148
|
+
id: string;
|
|
126
149
|
pending_safety_checks: {
|
|
127
|
-
id: string;
|
|
128
150
|
code?: string | null | undefined;
|
|
151
|
+
id: string;
|
|
129
152
|
message?: string | null | undefined;
|
|
130
153
|
}[];
|
|
131
154
|
status: "completed" | "in_progress" | "incomplete";
|
|
132
|
-
}, {}>;
|
|
133
|
-
declare const computerCallOutputItemSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
134
|
-
type: "computer_call_output";
|
|
135
|
-
id?: string | null | undefined;
|
|
136
|
-
call_id: string;
|
|
137
|
-
output: {
|
|
138
|
-
type: "computer_screenshot";
|
|
139
|
-
image_url: string;
|
|
140
|
-
} | {
|
|
141
|
-
type: "computer_screenshot";
|
|
142
|
-
file_id: string;
|
|
143
|
-
};
|
|
144
|
-
acknowledged_safety_checks?: {
|
|
145
|
-
id: string;
|
|
146
|
-
code?: string | null | undefined;
|
|
147
|
-
message?: string | null | undefined;
|
|
148
|
-
}[] | null | undefined;
|
|
149
|
-
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
150
|
-
}, {}>;
|
|
151
|
-
/**
|
|
152
|
-
* Direct mapping to standard types.
|
|
153
|
-
*/
|
|
154
|
-
export declare const inputItemSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
155
|
-
type?: "message" | undefined;
|
|
156
|
-
role: "developer" | "user";
|
|
157
|
-
content?: string | ({
|
|
158
|
-
type: "input_text";
|
|
159
|
-
text: string;
|
|
160
|
-
} | {
|
|
161
|
-
type: "text";
|
|
162
|
-
text: string;
|
|
163
|
-
} | {
|
|
164
|
-
type: "input_image";
|
|
165
|
-
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
166
|
-
image_url?: string | undefined;
|
|
167
|
-
file_id?: string | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
type: "input_file";
|
|
170
|
-
file_id?: string | undefined;
|
|
171
|
-
filename?: string | undefined;
|
|
172
|
-
file_data?: string | undefined;
|
|
173
|
-
file_url?: string | undefined;
|
|
174
|
-
})[] | undefined;
|
|
175
|
-
} | {
|
|
176
|
-
type?: "message" | undefined;
|
|
177
|
-
role: "system";
|
|
178
|
-
content?: string | ({
|
|
179
|
-
type: "input_text";
|
|
180
|
-
text: string;
|
|
181
|
-
} | {
|
|
182
|
-
type: "text";
|
|
183
|
-
text: string;
|
|
184
|
-
} | {
|
|
185
|
-
type: "input_image";
|
|
186
|
-
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
187
|
-
image_url?: string | undefined;
|
|
188
|
-
file_id?: string | undefined;
|
|
189
|
-
} | {
|
|
190
|
-
type: "input_file";
|
|
191
|
-
file_id?: string | undefined;
|
|
192
|
-
filename?: string | undefined;
|
|
193
|
-
file_data?: string | undefined;
|
|
194
|
-
file_url?: string | undefined;
|
|
195
|
-
})[] | undefined;
|
|
196
|
-
} | {
|
|
197
|
-
type?: "message" | undefined;
|
|
198
|
-
id?: string | undefined;
|
|
199
|
-
role: "assistant";
|
|
200
|
-
content?: string | ({
|
|
201
|
-
type: "text";
|
|
202
|
-
text: string;
|
|
203
|
-
} | {
|
|
204
|
-
type: "output_text";
|
|
205
|
-
text: string;
|
|
206
|
-
} | {
|
|
207
|
-
type: "refusal";
|
|
208
|
-
refusal: string;
|
|
209
|
-
})[] | undefined;
|
|
210
|
-
status?: "completed" | "in_progress" | "incomplete" | undefined;
|
|
211
|
-
phase?: "commentary" | "final_answer" | null | undefined;
|
|
212
|
-
} | {
|
|
213
|
-
type: "reasoning";
|
|
214
|
-
id?: string | undefined;
|
|
215
|
-
summary?: {
|
|
216
|
-
type: "summary_text";
|
|
217
|
-
text: string;
|
|
218
|
-
}[] | undefined;
|
|
219
|
-
content?: {
|
|
220
|
-
type: "reasoning_text";
|
|
221
|
-
text: string;
|
|
222
|
-
}[] | undefined;
|
|
223
|
-
} | {
|
|
224
|
-
type: "function_call";
|
|
225
|
-
id?: string | undefined;
|
|
226
|
-
call_id: string;
|
|
227
|
-
name: string;
|
|
228
|
-
arguments?: string | undefined;
|
|
229
|
-
} | {
|
|
230
|
-
type: "function_call_output";
|
|
231
|
-
call_id: string;
|
|
232
|
-
output?: string | ({
|
|
233
|
-
type: "text";
|
|
234
|
-
text: string;
|
|
235
|
-
} | {
|
|
236
|
-
type: "output_text";
|
|
237
|
-
text: string;
|
|
238
|
-
} | {
|
|
239
|
-
type: "refusal";
|
|
240
|
-
refusal: string;
|
|
241
|
-
})[] | undefined;
|
|
242
|
-
} | {
|
|
243
|
-
type: "custom_tool_call";
|
|
244
|
-
id?: string | undefined;
|
|
245
|
-
call_id: string;
|
|
246
|
-
name: string;
|
|
247
|
-
input: string;
|
|
248
|
-
} | {
|
|
249
|
-
type: "custom_tool_call_output";
|
|
250
|
-
call_id: string;
|
|
251
|
-
output: string;
|
|
252
|
-
} | {
|
|
253
155
|
type: "computer_call";
|
|
254
|
-
|
|
255
|
-
call_id: string;
|
|
156
|
+
}, {
|
|
256
157
|
action?: {
|
|
257
|
-
type: "click";
|
|
258
158
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
159
|
+
keys?: string[] | null | undefined;
|
|
160
|
+
type: "click";
|
|
259
161
|
x: number;
|
|
260
162
|
y: number;
|
|
261
|
-
keys?: string[] | null | undefined;
|
|
262
163
|
} | {
|
|
164
|
+
keys: string[] | null;
|
|
263
165
|
type: "double_click";
|
|
264
166
|
x: number;
|
|
265
167
|
y: number;
|
|
266
|
-
keys: string[] | null;
|
|
267
168
|
} | {
|
|
268
|
-
|
|
169
|
+
keys?: string[] | null | undefined;
|
|
269
170
|
path: {
|
|
270
171
|
x: number;
|
|
271
172
|
y: number;
|
|
272
173
|
}[];
|
|
273
|
-
|
|
174
|
+
type: "drag";
|
|
274
175
|
} | {
|
|
275
|
-
type: "keypress";
|
|
276
176
|
keys: string[];
|
|
177
|
+
type: "keypress";
|
|
277
178
|
} | {
|
|
179
|
+
keys?: string[] | null | undefined;
|
|
278
180
|
type: "move";
|
|
279
181
|
x: number;
|
|
280
182
|
y: number;
|
|
281
|
-
keys?: string[] | null | undefined;
|
|
282
183
|
} | {
|
|
283
184
|
type: "screenshot";
|
|
284
185
|
} | {
|
|
186
|
+
keys?: string[] | null | undefined;
|
|
187
|
+
scroll_x: number;
|
|
188
|
+
scroll_y: number;
|
|
285
189
|
type: "scroll";
|
|
286
190
|
x: number;
|
|
287
191
|
y: number;
|
|
288
|
-
scroll_x: number;
|
|
289
|
-
scroll_y: number;
|
|
290
|
-
keys?: string[] | null | undefined;
|
|
291
192
|
} | {
|
|
292
|
-
type: "type";
|
|
293
193
|
text: string;
|
|
194
|
+
type: "type";
|
|
294
195
|
} | {
|
|
295
196
|
type: "wait";
|
|
296
197
|
} | undefined;
|
|
297
198
|
actions?: ({
|
|
298
|
-
type: "click";
|
|
299
199
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
200
|
+
keys?: string[] | null | undefined;
|
|
201
|
+
type: "click";
|
|
300
202
|
x: number;
|
|
301
203
|
y: number;
|
|
302
|
-
keys?: string[] | null | undefined;
|
|
303
204
|
} | {
|
|
205
|
+
keys: string[] | null;
|
|
304
206
|
type: "double_click";
|
|
305
207
|
x: number;
|
|
306
208
|
y: number;
|
|
307
|
-
keys: string[] | null;
|
|
308
209
|
} | {
|
|
309
|
-
|
|
210
|
+
keys?: string[] | null | undefined;
|
|
310
211
|
path: {
|
|
311
212
|
x: number;
|
|
312
213
|
y: number;
|
|
313
214
|
}[];
|
|
314
|
-
|
|
215
|
+
type: "drag";
|
|
315
216
|
} | {
|
|
316
|
-
type: "keypress";
|
|
317
217
|
keys: string[];
|
|
218
|
+
type: "keypress";
|
|
318
219
|
} | {
|
|
220
|
+
keys?: string[] | null | undefined;
|
|
319
221
|
type: "move";
|
|
320
222
|
x: number;
|
|
321
223
|
y: number;
|
|
322
|
-
keys?: string[] | null | undefined;
|
|
323
224
|
} | {
|
|
324
225
|
type: "screenshot";
|
|
325
226
|
} | {
|
|
227
|
+
keys?: string[] | null | undefined;
|
|
228
|
+
scroll_x: number;
|
|
229
|
+
scroll_y: number;
|
|
326
230
|
type: "scroll";
|
|
327
231
|
x: number;
|
|
328
232
|
y: number;
|
|
329
|
-
scroll_x: number;
|
|
330
|
-
scroll_y: number;
|
|
331
|
-
keys?: string[] | null | undefined;
|
|
332
233
|
} | {
|
|
333
|
-
type: "type";
|
|
334
234
|
text: string;
|
|
235
|
+
type: "type";
|
|
335
236
|
} | {
|
|
336
237
|
type: "wait";
|
|
337
238
|
})[] | undefined;
|
|
239
|
+
call_id: string;
|
|
240
|
+
id: string;
|
|
338
241
|
pending_safety_checks: {
|
|
339
|
-
id: string;
|
|
340
242
|
code?: string | null | undefined;
|
|
243
|
+
id: string;
|
|
341
244
|
message?: string | null | undefined;
|
|
342
245
|
}[];
|
|
343
246
|
status: "completed" | "in_progress" | "incomplete";
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
247
|
+
type: "computer_call";
|
|
248
|
+
}>;
|
|
249
|
+
declare const computerCallOutputItemSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
250
|
+
acknowledged_safety_checks?: {
|
|
251
|
+
code?: string | null | undefined;
|
|
252
|
+
id: string;
|
|
253
|
+
message?: string | null | undefined;
|
|
254
|
+
}[] | null | undefined;
|
|
347
255
|
call_id: string;
|
|
256
|
+
id?: string | null | undefined;
|
|
348
257
|
output: {
|
|
349
|
-
type: "computer_screenshot";
|
|
350
258
|
image_url: string;
|
|
351
|
-
} | {
|
|
352
259
|
type: "computer_screenshot";
|
|
260
|
+
} | {
|
|
353
261
|
file_id: string;
|
|
262
|
+
type: "computer_screenshot";
|
|
354
263
|
};
|
|
264
|
+
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
265
|
+
type: "computer_call_output";
|
|
266
|
+
}, {
|
|
355
267
|
acknowledged_safety_checks?: {
|
|
356
|
-
id: string;
|
|
357
268
|
code?: string | null | undefined;
|
|
269
|
+
id: string;
|
|
358
270
|
message?: string | null | undefined;
|
|
359
271
|
}[] | null | undefined;
|
|
272
|
+
call_id: string;
|
|
273
|
+
id?: string | null | undefined;
|
|
274
|
+
output: {
|
|
275
|
+
image_url: string;
|
|
276
|
+
type: "computer_screenshot";
|
|
277
|
+
} | {
|
|
278
|
+
file_id: string;
|
|
279
|
+
type: "computer_screenshot";
|
|
280
|
+
};
|
|
360
281
|
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
282
|
+
type: "computer_call_output";
|
|
283
|
+
}>;
|
|
284
|
+
/**
|
|
285
|
+
* Direct mapping to standard types.
|
|
286
|
+
*/
|
|
287
|
+
export declare const inputItemSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
288
|
+
content?: string | ({
|
|
289
|
+
text: string;
|
|
290
|
+
type: "input_text";
|
|
291
|
+
} | {
|
|
292
|
+
text: string;
|
|
293
|
+
type: "text";
|
|
294
|
+
} | {
|
|
295
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
296
|
+
file_id?: string | undefined;
|
|
297
|
+
image_url?: string | undefined;
|
|
298
|
+
type: "input_image";
|
|
299
|
+
} | {
|
|
300
|
+
file_data?: string | undefined;
|
|
301
|
+
file_id?: string | undefined;
|
|
302
|
+
file_url?: string | undefined;
|
|
303
|
+
filename?: string | undefined;
|
|
304
|
+
type: "input_file";
|
|
305
|
+
})[] | undefined;
|
|
306
|
+
role: "developer" | "user";
|
|
307
|
+
type?: "message" | undefined;
|
|
361
308
|
} | {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
309
|
+
content?: string | ({
|
|
310
|
+
text: string;
|
|
311
|
+
type: "input_text";
|
|
312
|
+
} | {
|
|
313
|
+
text: string;
|
|
314
|
+
type: "text";
|
|
315
|
+
} | {
|
|
316
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
317
|
+
file_id?: string | undefined;
|
|
318
|
+
image_url?: string | undefined;
|
|
319
|
+
type: "input_image";
|
|
320
|
+
} | {
|
|
321
|
+
file_data?: string | undefined;
|
|
322
|
+
file_id?: string | undefined;
|
|
323
|
+
file_url?: string | undefined;
|
|
324
|
+
filename?: string | undefined;
|
|
325
|
+
type: "input_file";
|
|
326
|
+
})[] | undefined;
|
|
327
|
+
role: "system";
|
|
328
|
+
type?: "message" | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
content?: string | ({
|
|
331
|
+
text: string;
|
|
332
|
+
type: "text";
|
|
333
|
+
} | {
|
|
334
|
+
text: string;
|
|
335
|
+
type: "output_text";
|
|
336
|
+
} | {
|
|
337
|
+
refusal: string;
|
|
338
|
+
type: "refusal";
|
|
339
|
+
})[] | undefined;
|
|
340
|
+
id?: string | undefined;
|
|
341
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
342
|
+
role: "assistant";
|
|
343
|
+
status?: "completed" | "in_progress" | "incomplete" | undefined;
|
|
344
|
+
type?: "message" | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
content?: {
|
|
347
|
+
text: string;
|
|
348
|
+
type: "reasoning_text";
|
|
349
|
+
}[] | undefined;
|
|
350
|
+
id?: string | undefined;
|
|
351
|
+
summary?: {
|
|
352
|
+
text: string;
|
|
353
|
+
type: "summary_text";
|
|
354
|
+
}[] | undefined;
|
|
355
|
+
type: "reasoning";
|
|
356
|
+
} | {
|
|
357
|
+
arguments?: string | undefined;
|
|
358
|
+
call_id: string;
|
|
359
|
+
id?: string | undefined;
|
|
389
360
|
name: string;
|
|
361
|
+
type: "function_call";
|
|
390
362
|
} | {
|
|
391
|
-
|
|
363
|
+
call_id: string;
|
|
364
|
+
output?: string | ({
|
|
365
|
+
text: string;
|
|
366
|
+
type: "text";
|
|
367
|
+
} | {
|
|
368
|
+
text: string;
|
|
369
|
+
type: "output_text";
|
|
370
|
+
} | {
|
|
371
|
+
refusal: string;
|
|
372
|
+
type: "refusal";
|
|
373
|
+
})[] | undefined;
|
|
374
|
+
type: "function_call_output";
|
|
375
|
+
} | {
|
|
376
|
+
call_id: string;
|
|
377
|
+
id?: string | undefined;
|
|
378
|
+
input: string;
|
|
392
379
|
name: string;
|
|
380
|
+
type: "custom_tool_call";
|
|
393
381
|
} | {
|
|
394
|
-
|
|
382
|
+
call_id: string;
|
|
383
|
+
output: string;
|
|
384
|
+
type: "custom_tool_call_output";
|
|
395
385
|
} | {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
386
|
+
action?: {
|
|
387
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
388
|
+
keys?: string[] | null | undefined;
|
|
389
|
+
type: "click";
|
|
390
|
+
x: number;
|
|
391
|
+
y: number;
|
|
392
|
+
} | {
|
|
393
|
+
keys: string[] | null;
|
|
394
|
+
type: "double_click";
|
|
395
|
+
x: number;
|
|
396
|
+
y: number;
|
|
397
|
+
} | {
|
|
398
|
+
keys?: string[] | null | undefined;
|
|
399
|
+
path: {
|
|
400
|
+
x: number;
|
|
401
|
+
y: number;
|
|
402
|
+
}[];
|
|
403
|
+
type: "drag";
|
|
404
|
+
} | {
|
|
405
|
+
keys: string[];
|
|
406
|
+
type: "keypress";
|
|
407
|
+
} | {
|
|
408
|
+
keys?: string[] | null | undefined;
|
|
409
|
+
type: "move";
|
|
410
|
+
x: number;
|
|
411
|
+
y: number;
|
|
412
|
+
} | {
|
|
413
|
+
type: "screenshot";
|
|
414
|
+
} | {
|
|
415
|
+
keys?: string[] | null | undefined;
|
|
416
|
+
scroll_x: number;
|
|
417
|
+
scroll_y: number;
|
|
418
|
+
type: "scroll";
|
|
419
|
+
x: number;
|
|
420
|
+
y: number;
|
|
421
|
+
} | {
|
|
422
|
+
text: string;
|
|
423
|
+
type: "type";
|
|
424
|
+
} | {
|
|
425
|
+
type: "wait";
|
|
426
|
+
} | undefined;
|
|
427
|
+
actions?: ({
|
|
428
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
429
|
+
keys?: string[] | null | undefined;
|
|
430
|
+
type: "click";
|
|
431
|
+
x: number;
|
|
432
|
+
y: number;
|
|
433
|
+
} | {
|
|
434
|
+
keys: string[] | null;
|
|
435
|
+
type: "double_click";
|
|
436
|
+
x: number;
|
|
437
|
+
y: number;
|
|
438
|
+
} | {
|
|
439
|
+
keys?: string[] | null | undefined;
|
|
440
|
+
path: {
|
|
441
|
+
x: number;
|
|
442
|
+
y: number;
|
|
443
|
+
}[];
|
|
444
|
+
type: "drag";
|
|
445
|
+
} | {
|
|
446
|
+
keys: string[];
|
|
447
|
+
type: "keypress";
|
|
448
|
+
} | {
|
|
449
|
+
keys?: string[] | null | undefined;
|
|
450
|
+
type: "move";
|
|
451
|
+
x: number;
|
|
452
|
+
y: number;
|
|
453
|
+
} | {
|
|
454
|
+
type: "screenshot";
|
|
455
|
+
} | {
|
|
456
|
+
keys?: string[] | null | undefined;
|
|
457
|
+
scroll_x: number;
|
|
458
|
+
scroll_y: number;
|
|
459
|
+
type: "scroll";
|
|
460
|
+
x: number;
|
|
461
|
+
y: number;
|
|
462
|
+
} | {
|
|
463
|
+
text: string;
|
|
464
|
+
type: "type";
|
|
465
|
+
} | {
|
|
466
|
+
type: "wait";
|
|
467
|
+
})[] | undefined;
|
|
468
|
+
call_id: string;
|
|
469
|
+
id: string;
|
|
470
|
+
pending_safety_checks: {
|
|
471
|
+
code?: string | null | undefined;
|
|
472
|
+
id: string;
|
|
473
|
+
message?: string | null | undefined;
|
|
474
|
+
}[];
|
|
475
|
+
status: "completed" | "in_progress" | "incomplete";
|
|
476
|
+
type: "computer_call";
|
|
477
|
+
} | {
|
|
478
|
+
acknowledged_safety_checks?: {
|
|
479
|
+
code?: string | null | undefined;
|
|
480
|
+
id: string;
|
|
481
|
+
message?: string | null | undefined;
|
|
482
|
+
}[] | null | undefined;
|
|
483
|
+
call_id: string;
|
|
484
|
+
id?: string | null | undefined;
|
|
485
|
+
output: {
|
|
486
|
+
image_url: string;
|
|
487
|
+
type: "computer_screenshot";
|
|
488
|
+
} | {
|
|
489
|
+
file_id: string;
|
|
490
|
+
type: "computer_screenshot";
|
|
491
|
+
};
|
|
492
|
+
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
493
|
+
type: "computer_call_output";
|
|
494
|
+
} | {
|
|
495
|
+
type: string;
|
|
496
|
+
}, {
|
|
497
|
+
content?: string | ({
|
|
498
|
+
text: string;
|
|
499
|
+
type: "input_text";
|
|
500
|
+
} | {
|
|
501
|
+
text: string;
|
|
502
|
+
type: "text";
|
|
503
|
+
} | {
|
|
504
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
505
|
+
file_id?: string | undefined;
|
|
506
|
+
image_url?: string | undefined;
|
|
507
|
+
type: "input_image";
|
|
508
|
+
} | {
|
|
509
|
+
file_data?: string | undefined;
|
|
510
|
+
file_id?: string | undefined;
|
|
511
|
+
file_url?: string | undefined;
|
|
512
|
+
filename?: string | undefined;
|
|
513
|
+
type: "input_file";
|
|
514
|
+
})[] | undefined;
|
|
515
|
+
role: "developer" | "user";
|
|
516
|
+
type?: "message" | undefined;
|
|
517
|
+
} | {
|
|
518
|
+
content?: string | ({
|
|
519
|
+
text: string;
|
|
520
|
+
type: "input_text";
|
|
521
|
+
} | {
|
|
522
|
+
text: string;
|
|
523
|
+
type: "text";
|
|
524
|
+
} | {
|
|
525
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
526
|
+
file_id?: string | undefined;
|
|
527
|
+
image_url?: string | undefined;
|
|
528
|
+
type: "input_image";
|
|
529
|
+
} | {
|
|
530
|
+
file_data?: string | undefined;
|
|
531
|
+
file_id?: string | undefined;
|
|
532
|
+
file_url?: string | undefined;
|
|
533
|
+
filename?: string | undefined;
|
|
534
|
+
type: "input_file";
|
|
535
|
+
})[] | undefined;
|
|
536
|
+
role: "system";
|
|
537
|
+
type?: "message" | undefined;
|
|
538
|
+
} | {
|
|
539
|
+
content?: string | ({
|
|
540
|
+
text: string;
|
|
541
|
+
type: "text";
|
|
542
|
+
} | {
|
|
543
|
+
text: string;
|
|
544
|
+
type: "output_text";
|
|
545
|
+
} | {
|
|
546
|
+
refusal: string;
|
|
547
|
+
type: "refusal";
|
|
548
|
+
})[] | undefined;
|
|
549
|
+
id?: string | undefined;
|
|
550
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
551
|
+
role: "assistant";
|
|
552
|
+
status?: "completed" | "in_progress" | "incomplete" | undefined;
|
|
553
|
+
type?: "message" | undefined;
|
|
554
|
+
} | {
|
|
555
|
+
content?: {
|
|
556
|
+
text: string;
|
|
557
|
+
type: "reasoning_text";
|
|
558
|
+
}[] | undefined;
|
|
559
|
+
id?: string | undefined;
|
|
560
|
+
summary?: {
|
|
561
|
+
text: string;
|
|
562
|
+
type: "summary_text";
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
type: "reasoning";
|
|
565
|
+
} | {
|
|
566
|
+
arguments?: string | undefined;
|
|
567
|
+
call_id: string;
|
|
568
|
+
id?: string | undefined;
|
|
569
|
+
name: string;
|
|
570
|
+
type: "function_call";
|
|
571
|
+
} | {
|
|
572
|
+
call_id: string;
|
|
573
|
+
output?: string | ({
|
|
574
|
+
text: string;
|
|
575
|
+
type: "text";
|
|
576
|
+
} | {
|
|
577
|
+
text: string;
|
|
578
|
+
type: "output_text";
|
|
579
|
+
} | {
|
|
580
|
+
refusal: string;
|
|
581
|
+
type: "refusal";
|
|
582
|
+
})[] | undefined;
|
|
583
|
+
type: "function_call_output";
|
|
584
|
+
} | {
|
|
585
|
+
call_id: string;
|
|
586
|
+
id?: string | undefined;
|
|
587
|
+
input: string;
|
|
588
|
+
name: string;
|
|
589
|
+
type: "custom_tool_call";
|
|
590
|
+
} | {
|
|
591
|
+
call_id: string;
|
|
592
|
+
output: string;
|
|
593
|
+
type: "custom_tool_call_output";
|
|
594
|
+
} | {
|
|
595
|
+
action?: {
|
|
596
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
597
|
+
keys?: string[] | null | undefined;
|
|
598
|
+
type: "click";
|
|
599
|
+
x: number;
|
|
600
|
+
y: number;
|
|
601
|
+
} | {
|
|
602
|
+
keys: string[] | null;
|
|
603
|
+
type: "double_click";
|
|
604
|
+
x: number;
|
|
605
|
+
y: number;
|
|
606
|
+
} | {
|
|
607
|
+
keys?: string[] | null | undefined;
|
|
608
|
+
path: {
|
|
609
|
+
x: number;
|
|
610
|
+
y: number;
|
|
611
|
+
}[];
|
|
612
|
+
type: "drag";
|
|
613
|
+
} | {
|
|
614
|
+
keys: string[];
|
|
615
|
+
type: "keypress";
|
|
616
|
+
} | {
|
|
617
|
+
keys?: string[] | null | undefined;
|
|
618
|
+
type: "move";
|
|
619
|
+
x: number;
|
|
620
|
+
y: number;
|
|
621
|
+
} | {
|
|
622
|
+
type: "screenshot";
|
|
623
|
+
} | {
|
|
624
|
+
keys?: string[] | null | undefined;
|
|
625
|
+
scroll_x: number;
|
|
626
|
+
scroll_y: number;
|
|
627
|
+
type: "scroll";
|
|
628
|
+
x: number;
|
|
629
|
+
y: number;
|
|
630
|
+
} | {
|
|
631
|
+
text: string;
|
|
632
|
+
type: "type";
|
|
633
|
+
} | {
|
|
634
|
+
type: "wait";
|
|
635
|
+
} | undefined;
|
|
636
|
+
actions?: ({
|
|
637
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
638
|
+
keys?: string[] | null | undefined;
|
|
639
|
+
type: "click";
|
|
640
|
+
x: number;
|
|
641
|
+
y: number;
|
|
642
|
+
} | {
|
|
643
|
+
keys: string[] | null;
|
|
644
|
+
type: "double_click";
|
|
645
|
+
x: number;
|
|
646
|
+
y: number;
|
|
647
|
+
} | {
|
|
648
|
+
keys?: string[] | null | undefined;
|
|
649
|
+
path: {
|
|
650
|
+
x: number;
|
|
651
|
+
y: number;
|
|
652
|
+
}[];
|
|
653
|
+
type: "drag";
|
|
654
|
+
} | {
|
|
655
|
+
keys: string[];
|
|
656
|
+
type: "keypress";
|
|
657
|
+
} | {
|
|
658
|
+
keys?: string[] | null | undefined;
|
|
659
|
+
type: "move";
|
|
660
|
+
x: number;
|
|
661
|
+
y: number;
|
|
662
|
+
} | {
|
|
663
|
+
type: "screenshot";
|
|
664
|
+
} | {
|
|
665
|
+
keys?: string[] | null | undefined;
|
|
666
|
+
scroll_x: number;
|
|
667
|
+
scroll_y: number;
|
|
668
|
+
type: "scroll";
|
|
669
|
+
x: number;
|
|
670
|
+
y: number;
|
|
671
|
+
} | {
|
|
672
|
+
text: string;
|
|
673
|
+
type: "type";
|
|
674
|
+
} | {
|
|
675
|
+
type: "wait";
|
|
676
|
+
})[] | undefined;
|
|
677
|
+
call_id: string;
|
|
678
|
+
id: string;
|
|
679
|
+
pending_safety_checks: {
|
|
680
|
+
code?: string | null | undefined;
|
|
681
|
+
id: string;
|
|
682
|
+
message?: string | null | undefined;
|
|
683
|
+
}[];
|
|
684
|
+
status: "completed" | "in_progress" | "incomplete";
|
|
685
|
+
type: "computer_call";
|
|
686
|
+
} | {
|
|
687
|
+
acknowledged_safety_checks?: {
|
|
688
|
+
code?: string | null | undefined;
|
|
689
|
+
id: string;
|
|
690
|
+
message?: string | null | undefined;
|
|
691
|
+
}[] | null | undefined;
|
|
692
|
+
call_id: string;
|
|
693
|
+
id?: string | null | undefined;
|
|
694
|
+
output: {
|
|
695
|
+
image_url: string;
|
|
696
|
+
type: "computer_screenshot";
|
|
697
|
+
} | {
|
|
698
|
+
file_id: string;
|
|
699
|
+
type: "computer_screenshot";
|
|
700
|
+
};
|
|
701
|
+
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
702
|
+
type: "computer_call_output";
|
|
703
|
+
} | {
|
|
704
|
+
type: string;
|
|
705
|
+
}>;
|
|
706
|
+
export type OpenAIResponsesUserItem = EasyInputMessage | ResponseInputItem.Message;
|
|
707
|
+
export type OpenAIResponsesSystemItem = EasyInputMessage | ResponseInputItem.Message;
|
|
708
|
+
export type OpenAIResponsesAssistantItem = EasyInputMessage | ResponseOutputMessage;
|
|
709
|
+
export type OpenAIResponsesReasoningItem = ResponseReasoningItem;
|
|
710
|
+
export type OpenAIResponsesFunctionCallItem = ResponseFunctionToolCall;
|
|
711
|
+
export type OpenAIResponsesFunctionCallOutputItem = ResponseInputItem.FunctionCallOutput;
|
|
712
|
+
/** Inferred shape of the custom tool call input item (no canonical SDK alias). */
|
|
713
|
+
export type OpenAIResponsesCustomToolCallItem = typeof customToolCallItemSchema.infer;
|
|
714
|
+
export type OpenAIResponsesCustomToolCallOutputItem = typeof customToolCallOutputItemSchema.infer;
|
|
715
|
+
export type OpenAIResponsesComputerCallItem = typeof computerCallItemSchema.infer;
|
|
716
|
+
export type OpenAIResponsesComputerCallOutputItem = typeof computerCallOutputItemSchema.infer;
|
|
717
|
+
export type OpenAIResponsesInputImageBlock = typeof inputImageBlockSchema.infer;
|
|
718
|
+
export type OpenAIResponsesInputFileBlock = typeof inputFileBlockSchema.infer;
|
|
719
|
+
export type OpenAIResponsesOutputRefusalBlock = typeof outputRefusalSchema.infer;
|
|
720
|
+
export declare const toolSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
721
|
+
description?: string | undefined;
|
|
722
|
+
name: string;
|
|
723
|
+
parameters?: Record<string, unknown> | undefined;
|
|
724
|
+
strict?: boolean | undefined;
|
|
725
|
+
type: "function";
|
|
726
|
+
}, {
|
|
727
|
+
description?: string | undefined;
|
|
728
|
+
name: string;
|
|
729
|
+
parameters?: Record<string, unknown> | undefined;
|
|
730
|
+
strict?: boolean | undefined;
|
|
731
|
+
type: "function";
|
|
732
|
+
}>;
|
|
733
|
+
export declare const toolChoiceSchema: import("@oh-my-pi/omptype").FluentType<"auto" | "none" | "required" | {
|
|
734
|
+
name: string;
|
|
735
|
+
type: "function";
|
|
736
|
+
} | {
|
|
737
|
+
name: string;
|
|
738
|
+
type: "custom";
|
|
739
|
+
} | {
|
|
740
|
+
type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview";
|
|
741
|
+
} | {
|
|
742
|
+
mode: "auto" | "required";
|
|
743
|
+
tools: {
|
|
744
|
+
name?: string | undefined;
|
|
745
|
+
type: string;
|
|
746
|
+
}[];
|
|
747
|
+
type: "allowed_tools";
|
|
748
|
+
}, "auto" | "none" | "required" | {
|
|
749
|
+
name: string;
|
|
750
|
+
type: "function";
|
|
751
|
+
} | {
|
|
752
|
+
name: string;
|
|
753
|
+
type: "custom";
|
|
754
|
+
} | {
|
|
755
|
+
type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview";
|
|
756
|
+
} | {
|
|
757
|
+
mode: "auto" | "required";
|
|
758
|
+
tools: {
|
|
759
|
+
name?: string | undefined;
|
|
760
|
+
type: string;
|
|
761
|
+
}[];
|
|
762
|
+
type: "allowed_tools";
|
|
763
|
+
}>;
|
|
764
|
+
export declare const reasoningConfigSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
765
|
+
effort?: string | undefined;
|
|
766
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
effort?: string | undefined;
|
|
769
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
770
|
+
}>;
|
|
771
|
+
export declare const stopSchema: import("@oh-my-pi/omptype").FluentType<string | string[] | null, string | string[] | null>;
|
|
772
|
+
export declare const openaiResponsesRequestSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
773
|
+
background?: unknown;
|
|
774
|
+
frequency_penalty?: number | undefined;
|
|
775
|
+
include?: string[] | null | undefined;
|
|
776
|
+
input?: string | ({
|
|
777
|
+
content?: string | ({
|
|
778
|
+
text: string;
|
|
779
|
+
type: "input_text";
|
|
780
|
+
} | {
|
|
781
|
+
text: string;
|
|
782
|
+
type: "text";
|
|
783
|
+
} | {
|
|
784
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
785
|
+
file_id?: string | undefined;
|
|
786
|
+
image_url?: string | undefined;
|
|
787
|
+
type: "input_image";
|
|
788
|
+
} | {
|
|
789
|
+
file_data?: string | undefined;
|
|
790
|
+
file_id?: string | undefined;
|
|
791
|
+
file_url?: string | undefined;
|
|
792
|
+
filename?: string | undefined;
|
|
793
|
+
type: "input_file";
|
|
794
|
+
})[] | undefined;
|
|
795
|
+
role: "developer" | "user";
|
|
796
|
+
type?: "message" | undefined;
|
|
797
|
+
} | {
|
|
798
|
+
content?: string | ({
|
|
799
|
+
text: string;
|
|
800
|
+
type: "input_text";
|
|
801
|
+
} | {
|
|
802
|
+
text: string;
|
|
803
|
+
type: "text";
|
|
804
|
+
} | {
|
|
805
|
+
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
806
|
+
file_id?: string | undefined;
|
|
807
|
+
image_url?: string | undefined;
|
|
808
|
+
type: "input_image";
|
|
809
|
+
} | {
|
|
810
|
+
file_data?: string | undefined;
|
|
811
|
+
file_id?: string | undefined;
|
|
812
|
+
file_url?: string | undefined;
|
|
813
|
+
filename?: string | undefined;
|
|
814
|
+
type: "input_file";
|
|
815
|
+
})[] | undefined;
|
|
816
|
+
role: "system";
|
|
817
|
+
type?: "message" | undefined;
|
|
818
|
+
} | {
|
|
819
|
+
content?: string | ({
|
|
820
|
+
text: string;
|
|
821
|
+
type: "text";
|
|
822
|
+
} | {
|
|
823
|
+
text: string;
|
|
824
|
+
type: "output_text";
|
|
825
|
+
} | {
|
|
826
|
+
refusal: string;
|
|
827
|
+
type: "refusal";
|
|
828
|
+
})[] | undefined;
|
|
829
|
+
id?: string | undefined;
|
|
830
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
831
|
+
role: "assistant";
|
|
832
|
+
status?: "completed" | "in_progress" | "incomplete" | undefined;
|
|
833
|
+
type?: "message" | undefined;
|
|
834
|
+
} | {
|
|
835
|
+
content?: {
|
|
836
|
+
text: string;
|
|
837
|
+
type: "reasoning_text";
|
|
838
|
+
}[] | undefined;
|
|
839
|
+
id?: string | undefined;
|
|
840
|
+
summary?: {
|
|
841
|
+
text: string;
|
|
842
|
+
type: "summary_text";
|
|
843
|
+
}[] | undefined;
|
|
844
|
+
type: "reasoning";
|
|
845
|
+
} | {
|
|
846
|
+
arguments?: string | undefined;
|
|
847
|
+
call_id: string;
|
|
848
|
+
id?: string | undefined;
|
|
849
|
+
name: string;
|
|
850
|
+
type: "function_call";
|
|
851
|
+
} | {
|
|
852
|
+
call_id: string;
|
|
853
|
+
output?: string | ({
|
|
854
|
+
text: string;
|
|
855
|
+
type: "text";
|
|
856
|
+
} | {
|
|
857
|
+
text: string;
|
|
858
|
+
type: "output_text";
|
|
859
|
+
} | {
|
|
860
|
+
refusal: string;
|
|
861
|
+
type: "refusal";
|
|
862
|
+
})[] | undefined;
|
|
863
|
+
type: "function_call_output";
|
|
864
|
+
} | {
|
|
865
|
+
call_id: string;
|
|
866
|
+
id?: string | undefined;
|
|
867
|
+
input: string;
|
|
868
|
+
name: string;
|
|
869
|
+
type: "custom_tool_call";
|
|
870
|
+
} | {
|
|
871
|
+
call_id: string;
|
|
872
|
+
output: string;
|
|
873
|
+
type: "custom_tool_call_output";
|
|
874
|
+
} | {
|
|
875
|
+
action?: {
|
|
876
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
877
|
+
keys?: string[] | null | undefined;
|
|
878
|
+
type: "click";
|
|
879
|
+
x: number;
|
|
880
|
+
y: number;
|
|
881
|
+
} | {
|
|
882
|
+
keys: string[] | null;
|
|
883
|
+
type: "double_click";
|
|
884
|
+
x: number;
|
|
885
|
+
y: number;
|
|
886
|
+
} | {
|
|
887
|
+
keys?: string[] | null | undefined;
|
|
888
|
+
path: {
|
|
889
|
+
x: number;
|
|
890
|
+
y: number;
|
|
891
|
+
}[];
|
|
892
|
+
type: "drag";
|
|
893
|
+
} | {
|
|
894
|
+
keys: string[];
|
|
895
|
+
type: "keypress";
|
|
896
|
+
} | {
|
|
897
|
+
keys?: string[] | null | undefined;
|
|
898
|
+
type: "move";
|
|
899
|
+
x: number;
|
|
900
|
+
y: number;
|
|
901
|
+
} | {
|
|
902
|
+
type: "screenshot";
|
|
903
|
+
} | {
|
|
904
|
+
keys?: string[] | null | undefined;
|
|
905
|
+
scroll_x: number;
|
|
906
|
+
scroll_y: number;
|
|
907
|
+
type: "scroll";
|
|
908
|
+
x: number;
|
|
909
|
+
y: number;
|
|
910
|
+
} | {
|
|
911
|
+
text: string;
|
|
912
|
+
type: "type";
|
|
913
|
+
} | {
|
|
914
|
+
type: "wait";
|
|
915
|
+
} | undefined;
|
|
916
|
+
actions?: ({
|
|
917
|
+
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
918
|
+
keys?: string[] | null | undefined;
|
|
919
|
+
type: "click";
|
|
920
|
+
x: number;
|
|
921
|
+
y: number;
|
|
922
|
+
} | {
|
|
923
|
+
keys: string[] | null;
|
|
924
|
+
type: "double_click";
|
|
925
|
+
x: number;
|
|
926
|
+
y: number;
|
|
927
|
+
} | {
|
|
928
|
+
keys?: string[] | null | undefined;
|
|
929
|
+
path: {
|
|
930
|
+
x: number;
|
|
931
|
+
y: number;
|
|
932
|
+
}[];
|
|
933
|
+
type: "drag";
|
|
934
|
+
} | {
|
|
935
|
+
keys: string[];
|
|
936
|
+
type: "keypress";
|
|
937
|
+
} | {
|
|
938
|
+
keys?: string[] | null | undefined;
|
|
939
|
+
type: "move";
|
|
940
|
+
x: number;
|
|
941
|
+
y: number;
|
|
942
|
+
} | {
|
|
943
|
+
type: "screenshot";
|
|
944
|
+
} | {
|
|
945
|
+
keys?: string[] | null | undefined;
|
|
946
|
+
scroll_x: number;
|
|
947
|
+
scroll_y: number;
|
|
948
|
+
type: "scroll";
|
|
949
|
+
x: number;
|
|
950
|
+
y: number;
|
|
951
|
+
} | {
|
|
952
|
+
text: string;
|
|
953
|
+
type: "type";
|
|
954
|
+
} | {
|
|
955
|
+
type: "wait";
|
|
956
|
+
})[] | undefined;
|
|
957
|
+
call_id: string;
|
|
958
|
+
id: string;
|
|
959
|
+
pending_safety_checks: {
|
|
960
|
+
code?: string | null | undefined;
|
|
961
|
+
id: string;
|
|
962
|
+
message?: string | null | undefined;
|
|
963
|
+
}[];
|
|
964
|
+
status: "completed" | "in_progress" | "incomplete";
|
|
965
|
+
type: "computer_call";
|
|
966
|
+
} | {
|
|
967
|
+
acknowledged_safety_checks?: {
|
|
968
|
+
code?: string | null | undefined;
|
|
969
|
+
id: string;
|
|
970
|
+
message?: string | null | undefined;
|
|
971
|
+
}[] | null | undefined;
|
|
972
|
+
call_id: string;
|
|
973
|
+
id?: string | null | undefined;
|
|
974
|
+
output: {
|
|
975
|
+
image_url: string;
|
|
976
|
+
type: "computer_screenshot";
|
|
977
|
+
} | {
|
|
978
|
+
file_id: string;
|
|
979
|
+
type: "computer_screenshot";
|
|
980
|
+
};
|
|
981
|
+
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
982
|
+
type: "computer_call_output";
|
|
983
|
+
} | {
|
|
984
|
+
type: string;
|
|
985
|
+
})[] | undefined;
|
|
986
|
+
instructions?: string | null | undefined;
|
|
987
|
+
max_output_tokens?: number | undefined;
|
|
988
|
+
metadata?: unknown;
|
|
989
|
+
model: string;
|
|
990
|
+
parallel_tool_calls?: boolean | undefined;
|
|
991
|
+
presence_penalty?: number | undefined;
|
|
992
|
+
previous_response_id?: string | undefined;
|
|
993
|
+
prompt?: unknown;
|
|
994
|
+
prompt_cache_key?: string | undefined;
|
|
995
|
+
reasoning?: {
|
|
996
|
+
effort?: string | undefined;
|
|
997
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
998
|
+
} | undefined;
|
|
999
|
+
safety_identifier?: unknown;
|
|
1000
|
+
service_tier?: string | undefined;
|
|
1001
|
+
stop?: string | string[] | null | undefined;
|
|
1002
|
+
store?: boolean | undefined;
|
|
1003
|
+
stream?: boolean | undefined;
|
|
1004
|
+
temperature?: number | undefined;
|
|
1005
|
+
text?: unknown;
|
|
1006
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1007
|
+
name: string;
|
|
1008
|
+
type: "function";
|
|
1009
|
+
} | {
|
|
1010
|
+
name: string;
|
|
1011
|
+
type: "custom";
|
|
1012
|
+
} | {
|
|
1013
|
+
type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview";
|
|
1014
|
+
} | {
|
|
1015
|
+
mode: "auto" | "required";
|
|
1016
|
+
tools: {
|
|
1017
|
+
name?: string | undefined;
|
|
1018
|
+
type: string;
|
|
1019
|
+
}[];
|
|
1020
|
+
type: "allowed_tools";
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
tools?: ({
|
|
1023
|
+
description?: string | undefined;
|
|
1024
|
+
name: string;
|
|
1025
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1026
|
+
strict?: boolean | undefined;
|
|
1027
|
+
type: "function";
|
|
1028
|
+
} | {
|
|
1029
|
+
type: "computer";
|
|
1030
|
+
} | {
|
|
399
1031
|
type: string;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
model: string;
|
|
1032
|
+
})[] | undefined;
|
|
1033
|
+
top_logprobs?: unknown;
|
|
1034
|
+
top_p?: number | undefined;
|
|
1035
|
+
truncation?: unknown;
|
|
1036
|
+
user?: string | undefined;
|
|
1037
|
+
}, {
|
|
1038
|
+
background?: unknown;
|
|
1039
|
+
frequency_penalty?: number | undefined;
|
|
1040
|
+
include?: string[] | null | undefined;
|
|
410
1041
|
input?: string | ({
|
|
411
|
-
type?: "message" | undefined;
|
|
412
|
-
role: "developer" | "user";
|
|
413
1042
|
content?: string | ({
|
|
414
|
-
type: "input_text";
|
|
415
1043
|
text: string;
|
|
1044
|
+
type: "input_text";
|
|
416
1045
|
} | {
|
|
417
|
-
type: "text";
|
|
418
1046
|
text: string;
|
|
1047
|
+
type: "text";
|
|
419
1048
|
} | {
|
|
420
|
-
type: "input_image";
|
|
421
1049
|
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
422
|
-
image_url?: string | undefined;
|
|
423
1050
|
file_id?: string | undefined;
|
|
1051
|
+
image_url?: string | undefined;
|
|
1052
|
+
type: "input_image";
|
|
424
1053
|
} | {
|
|
425
|
-
type: "input_file";
|
|
426
|
-
file_id?: string | undefined;
|
|
427
|
-
filename?: string | undefined;
|
|
428
1054
|
file_data?: string | undefined;
|
|
1055
|
+
file_id?: string | undefined;
|
|
429
1056
|
file_url?: string | undefined;
|
|
1057
|
+
filename?: string | undefined;
|
|
1058
|
+
type: "input_file";
|
|
430
1059
|
})[] | undefined;
|
|
431
|
-
|
|
1060
|
+
role: "developer" | "user";
|
|
432
1061
|
type?: "message" | undefined;
|
|
433
|
-
|
|
1062
|
+
} | {
|
|
434
1063
|
content?: string | ({
|
|
435
|
-
type: "input_text";
|
|
436
1064
|
text: string;
|
|
1065
|
+
type: "input_text";
|
|
437
1066
|
} | {
|
|
438
|
-
type: "text";
|
|
439
1067
|
text: string;
|
|
1068
|
+
type: "text";
|
|
440
1069
|
} | {
|
|
441
|
-
type: "input_image";
|
|
442
1070
|
detail?: "auto" | "high" | "low" | "original" | undefined;
|
|
443
|
-
image_url?: string | undefined;
|
|
444
1071
|
file_id?: string | undefined;
|
|
1072
|
+
image_url?: string | undefined;
|
|
1073
|
+
type: "input_image";
|
|
445
1074
|
} | {
|
|
446
|
-
type: "input_file";
|
|
447
|
-
file_id?: string | undefined;
|
|
448
|
-
filename?: string | undefined;
|
|
449
1075
|
file_data?: string | undefined;
|
|
1076
|
+
file_id?: string | undefined;
|
|
450
1077
|
file_url?: string | undefined;
|
|
1078
|
+
filename?: string | undefined;
|
|
1079
|
+
type: "input_file";
|
|
451
1080
|
})[] | undefined;
|
|
452
|
-
|
|
1081
|
+
role: "system";
|
|
453
1082
|
type?: "message" | undefined;
|
|
454
|
-
|
|
455
|
-
role: "assistant";
|
|
1083
|
+
} | {
|
|
456
1084
|
content?: string | ({
|
|
457
|
-
type: "text";
|
|
458
1085
|
text: string;
|
|
1086
|
+
type: "text";
|
|
459
1087
|
} | {
|
|
460
|
-
type: "output_text";
|
|
461
1088
|
text: string;
|
|
1089
|
+
type: "output_text";
|
|
462
1090
|
} | {
|
|
463
|
-
type: "refusal";
|
|
464
1091
|
refusal: string;
|
|
1092
|
+
type: "refusal";
|
|
465
1093
|
})[] | undefined;
|
|
466
|
-
|
|
1094
|
+
id?: string | undefined;
|
|
467
1095
|
phase?: "commentary" | "final_answer" | null | undefined;
|
|
1096
|
+
role: "assistant";
|
|
1097
|
+
status?: "completed" | "in_progress" | "incomplete" | undefined;
|
|
1098
|
+
type?: "message" | undefined;
|
|
468
1099
|
} | {
|
|
469
|
-
type: "reasoning";
|
|
470
|
-
id?: string | undefined;
|
|
471
|
-
summary?: {
|
|
472
|
-
type: "summary_text";
|
|
473
|
-
text: string;
|
|
474
|
-
}[] | undefined;
|
|
475
1100
|
content?: {
|
|
1101
|
+
text: string;
|
|
476
1102
|
type: "reasoning_text";
|
|
1103
|
+
}[] | undefined;
|
|
1104
|
+
id?: string | undefined;
|
|
1105
|
+
summary?: {
|
|
477
1106
|
text: string;
|
|
1107
|
+
type: "summary_text";
|
|
478
1108
|
}[] | undefined;
|
|
1109
|
+
type: "reasoning";
|
|
479
1110
|
} | {
|
|
480
|
-
|
|
481
|
-
id?: string | undefined;
|
|
1111
|
+
arguments?: string | undefined;
|
|
482
1112
|
call_id: string;
|
|
1113
|
+
id?: string | undefined;
|
|
483
1114
|
name: string;
|
|
484
|
-
|
|
1115
|
+
type: "function_call";
|
|
485
1116
|
} | {
|
|
486
|
-
type: "function_call_output";
|
|
487
1117
|
call_id: string;
|
|
488
1118
|
output?: string | ({
|
|
489
|
-
type: "text";
|
|
490
1119
|
text: string;
|
|
1120
|
+
type: "text";
|
|
491
1121
|
} | {
|
|
492
|
-
type: "output_text";
|
|
493
1122
|
text: string;
|
|
1123
|
+
type: "output_text";
|
|
494
1124
|
} | {
|
|
495
|
-
type: "refusal";
|
|
496
1125
|
refusal: string;
|
|
1126
|
+
type: "refusal";
|
|
497
1127
|
})[] | undefined;
|
|
1128
|
+
type: "function_call_output";
|
|
498
1129
|
} | {
|
|
499
|
-
type: "custom_tool_call";
|
|
500
|
-
id?: string | undefined;
|
|
501
1130
|
call_id: string;
|
|
502
|
-
|
|
1131
|
+
id?: string | undefined;
|
|
503
1132
|
input: string;
|
|
1133
|
+
name: string;
|
|
1134
|
+
type: "custom_tool_call";
|
|
504
1135
|
} | {
|
|
505
|
-
type: "custom_tool_call_output";
|
|
506
1136
|
call_id: string;
|
|
507
1137
|
output: string;
|
|
1138
|
+
type: "custom_tool_call_output";
|
|
508
1139
|
} | {
|
|
509
|
-
type: "computer_call";
|
|
510
|
-
id: string;
|
|
511
|
-
call_id: string;
|
|
512
1140
|
action?: {
|
|
513
|
-
type: "click";
|
|
514
1141
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
1142
|
+
keys?: string[] | null | undefined;
|
|
1143
|
+
type: "click";
|
|
515
1144
|
x: number;
|
|
516
1145
|
y: number;
|
|
517
|
-
keys?: string[] | null | undefined;
|
|
518
1146
|
} | {
|
|
1147
|
+
keys: string[] | null;
|
|
519
1148
|
type: "double_click";
|
|
520
1149
|
x: number;
|
|
521
1150
|
y: number;
|
|
522
|
-
keys: string[] | null;
|
|
523
1151
|
} | {
|
|
524
|
-
|
|
1152
|
+
keys?: string[] | null | undefined;
|
|
525
1153
|
path: {
|
|
526
1154
|
x: number;
|
|
527
1155
|
y: number;
|
|
528
1156
|
}[];
|
|
529
|
-
|
|
1157
|
+
type: "drag";
|
|
530
1158
|
} | {
|
|
531
|
-
type: "keypress";
|
|
532
1159
|
keys: string[];
|
|
1160
|
+
type: "keypress";
|
|
533
1161
|
} | {
|
|
1162
|
+
keys?: string[] | null | undefined;
|
|
534
1163
|
type: "move";
|
|
535
1164
|
x: number;
|
|
536
1165
|
y: number;
|
|
537
|
-
keys?: string[] | null | undefined;
|
|
538
1166
|
} | {
|
|
539
1167
|
type: "screenshot";
|
|
540
1168
|
} | {
|
|
1169
|
+
keys?: string[] | null | undefined;
|
|
1170
|
+
scroll_x: number;
|
|
1171
|
+
scroll_y: number;
|
|
541
1172
|
type: "scroll";
|
|
542
1173
|
x: number;
|
|
543
1174
|
y: number;
|
|
544
|
-
scroll_x: number;
|
|
545
|
-
scroll_y: number;
|
|
546
|
-
keys?: string[] | null | undefined;
|
|
547
1175
|
} | {
|
|
548
|
-
type: "type";
|
|
549
1176
|
text: string;
|
|
1177
|
+
type: "type";
|
|
550
1178
|
} | {
|
|
551
1179
|
type: "wait";
|
|
552
1180
|
} | undefined;
|
|
553
1181
|
actions?: ({
|
|
554
|
-
type: "click";
|
|
555
1182
|
button: "back" | "forward" | "left" | "right" | "wheel";
|
|
1183
|
+
keys?: string[] | null | undefined;
|
|
1184
|
+
type: "click";
|
|
556
1185
|
x: number;
|
|
557
1186
|
y: number;
|
|
558
|
-
keys?: string[] | null | undefined;
|
|
559
1187
|
} | {
|
|
1188
|
+
keys: string[] | null;
|
|
560
1189
|
type: "double_click";
|
|
561
1190
|
x: number;
|
|
562
1191
|
y: number;
|
|
563
|
-
keys: string[] | null;
|
|
564
1192
|
} | {
|
|
565
|
-
|
|
1193
|
+
keys?: string[] | null | undefined;
|
|
566
1194
|
path: {
|
|
567
1195
|
x: number;
|
|
568
1196
|
y: number;
|
|
569
1197
|
}[];
|
|
570
|
-
|
|
1198
|
+
type: "drag";
|
|
571
1199
|
} | {
|
|
572
|
-
type: "keypress";
|
|
573
1200
|
keys: string[];
|
|
1201
|
+
type: "keypress";
|
|
574
1202
|
} | {
|
|
1203
|
+
keys?: string[] | null | undefined;
|
|
575
1204
|
type: "move";
|
|
576
1205
|
x: number;
|
|
577
1206
|
y: number;
|
|
578
|
-
keys?: string[] | null | undefined;
|
|
579
1207
|
} | {
|
|
580
1208
|
type: "screenshot";
|
|
581
1209
|
} | {
|
|
1210
|
+
keys?: string[] | null | undefined;
|
|
1211
|
+
scroll_x: number;
|
|
1212
|
+
scroll_y: number;
|
|
582
1213
|
type: "scroll";
|
|
583
1214
|
x: number;
|
|
584
1215
|
y: number;
|
|
585
|
-
scroll_x: number;
|
|
586
|
-
scroll_y: number;
|
|
587
|
-
keys?: string[] | null | undefined;
|
|
588
1216
|
} | {
|
|
589
|
-
type: "type";
|
|
590
1217
|
text: string;
|
|
1218
|
+
type: "type";
|
|
591
1219
|
} | {
|
|
592
1220
|
type: "wait";
|
|
593
1221
|
})[] | undefined;
|
|
1222
|
+
call_id: string;
|
|
1223
|
+
id: string;
|
|
594
1224
|
pending_safety_checks: {
|
|
595
|
-
id: string;
|
|
596
1225
|
code?: string | null | undefined;
|
|
1226
|
+
id: string;
|
|
597
1227
|
message?: string | null | undefined;
|
|
598
1228
|
}[];
|
|
599
1229
|
status: "completed" | "in_progress" | "incomplete";
|
|
1230
|
+
type: "computer_call";
|
|
600
1231
|
} | {
|
|
601
|
-
|
|
602
|
-
|
|
1232
|
+
acknowledged_safety_checks?: {
|
|
1233
|
+
code?: string | null | undefined;
|
|
1234
|
+
id: string;
|
|
1235
|
+
message?: string | null | undefined;
|
|
1236
|
+
}[] | null | undefined;
|
|
603
1237
|
call_id: string;
|
|
1238
|
+
id?: string | null | undefined;
|
|
604
1239
|
output: {
|
|
605
|
-
type: "computer_screenshot";
|
|
606
1240
|
image_url: string;
|
|
607
|
-
} | {
|
|
608
1241
|
type: "computer_screenshot";
|
|
1242
|
+
} | {
|
|
609
1243
|
file_id: string;
|
|
1244
|
+
type: "computer_screenshot";
|
|
610
1245
|
};
|
|
611
|
-
acknowledged_safety_checks?: {
|
|
612
|
-
id: string;
|
|
613
|
-
code?: string | null | undefined;
|
|
614
|
-
message?: string | null | undefined;
|
|
615
|
-
}[] | null | undefined;
|
|
616
1246
|
status?: "completed" | "failed" | "in_progress" | "incomplete" | null | undefined;
|
|
1247
|
+
type: "computer_call_output";
|
|
617
1248
|
} | {
|
|
618
1249
|
type: string;
|
|
619
1250
|
})[] | undefined;
|
|
620
1251
|
instructions?: string | null | undefined;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
1252
|
+
max_output_tokens?: number | undefined;
|
|
1253
|
+
metadata?: unknown;
|
|
1254
|
+
model: string;
|
|
1255
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1256
|
+
presence_penalty?: number | undefined;
|
|
1257
|
+
previous_response_id?: string | undefined;
|
|
1258
|
+
prompt?: unknown;
|
|
1259
|
+
prompt_cache_key?: string | undefined;
|
|
1260
|
+
reasoning?: {
|
|
1261
|
+
effort?: string | undefined;
|
|
1262
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
1263
|
+
} | undefined;
|
|
1264
|
+
safety_identifier?: unknown;
|
|
1265
|
+
service_tier?: string | undefined;
|
|
1266
|
+
stop?: string | string[] | null | undefined;
|
|
1267
|
+
store?: boolean | undefined;
|
|
1268
|
+
stream?: boolean | undefined;
|
|
1269
|
+
temperature?: number | undefined;
|
|
1270
|
+
text?: unknown;
|
|
634
1271
|
tool_choice?: "auto" | "none" | "required" | {
|
|
635
|
-
type: "function";
|
|
636
1272
|
name: string;
|
|
1273
|
+
type: "function";
|
|
637
1274
|
} | {
|
|
638
|
-
type: "custom";
|
|
639
1275
|
name: string;
|
|
1276
|
+
type: "custom";
|
|
640
1277
|
} | {
|
|
641
1278
|
type: "code_interpreter" | "computer" | "computer_use_preview" | "file_search" | "image_generation" | "mcp" | "web_search_preview";
|
|
642
1279
|
} | {
|
|
643
|
-
type: "allowed_tools";
|
|
644
1280
|
mode: "auto" | "required";
|
|
645
1281
|
tools: {
|
|
646
|
-
type: string;
|
|
647
1282
|
name?: string | undefined;
|
|
1283
|
+
type: string;
|
|
648
1284
|
}[];
|
|
1285
|
+
type: "allowed_tools";
|
|
649
1286
|
} | undefined;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
} |
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
parallel_tool_calls?: boolean | undefined;
|
|
662
|
-
prompt_cache_key?: string | undefined;
|
|
663
|
-
metadata?: unknown;
|
|
664
|
-
user?: string | undefined;
|
|
665
|
-
service_tier?: string | undefined;
|
|
666
|
-
presence_penalty?: number | undefined;
|
|
667
|
-
frequency_penalty?: number | undefined;
|
|
668
|
-
background?: unknown;
|
|
669
|
-
include?: string[] | null | undefined;
|
|
670
|
-
prompt?: unknown;
|
|
671
|
-
safety_identifier?: unknown;
|
|
672
|
-
text?: unknown;
|
|
1287
|
+
tools?: ({
|
|
1288
|
+
description?: string | undefined;
|
|
1289
|
+
name: string;
|
|
1290
|
+
parameters?: Record<string, unknown> | undefined;
|
|
1291
|
+
strict?: boolean | undefined;
|
|
1292
|
+
type: "function";
|
|
1293
|
+
} | {
|
|
1294
|
+
type: "computer";
|
|
1295
|
+
} | {
|
|
1296
|
+
type: string;
|
|
1297
|
+
})[] | undefined;
|
|
673
1298
|
top_logprobs?: unknown;
|
|
1299
|
+
top_p?: number | undefined;
|
|
674
1300
|
truncation?: unknown;
|
|
675
|
-
|
|
1301
|
+
user?: string | undefined;
|
|
1302
|
+
}>;
|
|
676
1303
|
/**
|
|
677
1304
|
* Public types are sourced from the OpenAI SDK so the gateway stays in
|
|
678
1305
|
* lock-step with the canonical API surface; the schemas above are runtime
|