@ai-sdk/harness-codex 1.0.126 → 1.0.129

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/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as _ai_sdk_provider from '@ai-sdk/provider';
2
+ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
+ import { Experimental_SandboxSession } from '@ai-sdk/provider-utils';
1
4
  import * as _ai_sdk_harness from '@ai-sdk/harness';
2
5
  import { HarnessV1Authentication, HarnessV1CredentialForwarding, HarnessV1PortEndpoint, HarnessV1MintBridgeTokenCallback, HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
3
6
  import { SandboxChannelReconnectOptions } from '@ai-sdk/harness/utils';
@@ -66,6 +69,704 @@ declare const CODEX_BUILTIN_TOOLS: {
66
69
  readonly webSearch: HarnessV1BuiltinTool<{
67
70
  query: string;
68
71
  }, unknown>;
72
+ readonly apply_patch: {
73
+ readonly toolUseKind: "edit";
74
+ readonly deferLoading?: boolean;
75
+ readonly title?: string;
76
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
77
+ readonly metadata?: _ai_sdk_provider.JSONObject;
78
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
79
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
80
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
81
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
82
+ readonly onInputDelta?: ((options: {
83
+ inputTextDelta: string;
84
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
85
+ readonly onInputAvailable?: ((options: {
86
+ input: string;
87
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
88
+ readonly toModelOutput?: ((options: {
89
+ toolCallId: string;
90
+ input: string;
91
+ output: any;
92
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
93
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
94
+ readonly execute?: never;
95
+ readonly description?: string | ((options: {
96
+ context: any;
97
+ experimental_sandbox?: Experimental_SandboxSession;
98
+ }) => string) | undefined;
99
+ readonly strict?: boolean;
100
+ readonly inputExamples?: {
101
+ input: string;
102
+ }[] | undefined;
103
+ readonly id?: never;
104
+ readonly isProviderExecuted?: never;
105
+ readonly args?: never;
106
+ readonly supportsDeferredResults?: never;
107
+ readonly type?: undefined | "function";
108
+ } | {
109
+ readonly toolUseKind: "edit";
110
+ readonly deferLoading?: boolean;
111
+ readonly title?: string;
112
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
113
+ readonly metadata?: _ai_sdk_provider.JSONObject;
114
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
115
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
116
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
117
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
118
+ readonly onInputDelta?: ((options: {
119
+ inputTextDelta: string;
120
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
121
+ readonly onInputAvailable?: ((options: {
122
+ input: string;
123
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
124
+ readonly toModelOutput?: ((options: {
125
+ toolCallId: string;
126
+ input: string;
127
+ output: any;
128
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
129
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
130
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
131
+ readonly description?: string | ((options: {
132
+ context: any;
133
+ experimental_sandbox?: Experimental_SandboxSession;
134
+ }) => string) | undefined;
135
+ readonly strict?: boolean;
136
+ readonly inputExamples?: {
137
+ input: string;
138
+ }[] | undefined;
139
+ readonly id?: never;
140
+ readonly isProviderExecuted?: never;
141
+ readonly args?: never;
142
+ readonly supportsDeferredResults?: never;
143
+ readonly type?: undefined | "function";
144
+ } | {
145
+ readonly toolUseKind: "edit";
146
+ readonly deferLoading?: boolean;
147
+ readonly title?: string;
148
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
149
+ readonly metadata?: _ai_sdk_provider.JSONObject;
150
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
151
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
152
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
153
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
154
+ readonly onInputDelta?: ((options: {
155
+ inputTextDelta: string;
156
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
157
+ readonly onInputAvailable?: ((options: {
158
+ input: string;
159
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
160
+ readonly toModelOutput?: ((options: {
161
+ toolCallId: string;
162
+ input: string;
163
+ output: any;
164
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
165
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
166
+ readonly execute?: never;
167
+ readonly description?: string | ((options: {
168
+ context: any;
169
+ experimental_sandbox?: Experimental_SandboxSession;
170
+ }) => string) | undefined;
171
+ readonly strict?: boolean;
172
+ readonly inputExamples?: {
173
+ input: string;
174
+ }[] | undefined;
175
+ readonly id?: never;
176
+ readonly isProviderExecuted?: never;
177
+ readonly args?: never;
178
+ readonly supportsDeferredResults?: never;
179
+ readonly type: "dynamic";
180
+ } | {
181
+ readonly toolUseKind: "edit";
182
+ readonly deferLoading?: boolean;
183
+ readonly title?: string;
184
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
185
+ readonly metadata?: _ai_sdk_provider.JSONObject;
186
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
187
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
188
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
189
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
190
+ readonly onInputDelta?: ((options: {
191
+ inputTextDelta: string;
192
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
193
+ readonly onInputAvailable?: ((options: {
194
+ input: string;
195
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
196
+ readonly toModelOutput?: ((options: {
197
+ toolCallId: string;
198
+ input: string;
199
+ output: any;
200
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
201
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
202
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
203
+ readonly description?: string | ((options: {
204
+ context: any;
205
+ experimental_sandbox?: Experimental_SandboxSession;
206
+ }) => string) | undefined;
207
+ readonly strict?: boolean;
208
+ readonly inputExamples?: {
209
+ input: string;
210
+ }[] | undefined;
211
+ readonly id?: never;
212
+ readonly isProviderExecuted?: never;
213
+ readonly args?: never;
214
+ readonly supportsDeferredResults?: never;
215
+ readonly type: "dynamic";
216
+ } | {
217
+ readonly toolUseKind: "edit";
218
+ readonly deferLoading?: boolean;
219
+ readonly title?: string;
220
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
221
+ readonly metadata?: _ai_sdk_provider.JSONObject;
222
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
223
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
224
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
225
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
226
+ readonly onInputDelta?: ((options: {
227
+ inputTextDelta: string;
228
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
229
+ readonly onInputAvailable?: ((options: {
230
+ input: string;
231
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
232
+ readonly toModelOutput?: ((options: {
233
+ toolCallId: string;
234
+ input: string;
235
+ output: any;
236
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
237
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
238
+ readonly execute?: never;
239
+ readonly type: "provider";
240
+ readonly id: `${string}.${string}`;
241
+ readonly args: Record<string, unknown>;
242
+ readonly description?: never;
243
+ readonly strict?: never;
244
+ readonly inputExamples?: never;
245
+ readonly isProviderExecuted: false;
246
+ readonly supportsDeferredResults?: never;
247
+ } | {
248
+ readonly toolUseKind: "edit";
249
+ readonly deferLoading?: boolean;
250
+ readonly title?: string;
251
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
252
+ readonly metadata?: _ai_sdk_provider.JSONObject;
253
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
254
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
255
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
256
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
257
+ readonly onInputDelta?: ((options: {
258
+ inputTextDelta: string;
259
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
260
+ readonly onInputAvailable?: ((options: {
261
+ input: string;
262
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
263
+ readonly toModelOutput?: ((options: {
264
+ toolCallId: string;
265
+ input: string;
266
+ output: any;
267
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
268
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
269
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
270
+ readonly type: "provider";
271
+ readonly id: `${string}.${string}`;
272
+ readonly args: Record<string, unknown>;
273
+ readonly description?: never;
274
+ readonly strict?: never;
275
+ readonly inputExamples?: never;
276
+ readonly isProviderExecuted: false;
277
+ readonly supportsDeferredResults?: never;
278
+ } | {
279
+ readonly toolUseKind: "edit";
280
+ readonly deferLoading?: boolean;
281
+ readonly title?: string;
282
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
283
+ readonly metadata?: _ai_sdk_provider.JSONObject;
284
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
285
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
286
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
287
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
288
+ readonly onInputDelta?: ((options: {
289
+ inputTextDelta: string;
290
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
291
+ readonly onInputAvailable?: ((options: {
292
+ input: string;
293
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
294
+ readonly toModelOutput?: ((options: {
295
+ toolCallId: string;
296
+ input: string;
297
+ output: any;
298
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
299
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
300
+ readonly execute?: never;
301
+ readonly type: "provider";
302
+ readonly id: `${string}.${string}`;
303
+ readonly args: Record<string, unknown>;
304
+ readonly description?: never;
305
+ readonly strict?: never;
306
+ readonly inputExamples?: never;
307
+ readonly isProviderExecuted: true;
308
+ readonly supportsDeferredResults?: boolean;
309
+ } | {
310
+ readonly toolUseKind: "edit";
311
+ readonly deferLoading?: boolean;
312
+ readonly title?: string;
313
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
314
+ readonly metadata?: _ai_sdk_provider.JSONObject;
315
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
316
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
317
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
318
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
319
+ readonly onInputDelta?: ((options: {
320
+ inputTextDelta: string;
321
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
322
+ readonly onInputAvailable?: ((options: {
323
+ input: string;
324
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
325
+ readonly toModelOutput?: ((options: {
326
+ toolCallId: string;
327
+ input: string;
328
+ output: any;
329
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
330
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
331
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
332
+ readonly type: "provider";
333
+ readonly id: `${string}.${string}`;
334
+ readonly args: Record<string, unknown>;
335
+ readonly description?: never;
336
+ readonly strict?: never;
337
+ readonly inputExamples?: never;
338
+ readonly isProviderExecuted: true;
339
+ readonly supportsDeferredResults?: boolean;
340
+ };
341
+ readonly view_image: {
342
+ readonly toolUseKind: "readonly";
343
+ readonly deferLoading?: boolean;
344
+ readonly title?: string;
345
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
346
+ readonly metadata?: _ai_sdk_provider.JSONObject;
347
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
348
+ path: string;
349
+ detail?: "high" | "original" | undefined;
350
+ environment_id?: string | undefined;
351
+ }>;
352
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
353
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
354
+ path: string;
355
+ detail?: "high" | "original" | undefined;
356
+ environment_id?: string | undefined;
357
+ }, any> | undefined;
358
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
359
+ readonly onInputDelta?: ((options: {
360
+ inputTextDelta: string;
361
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
362
+ readonly onInputAvailable?: ((options: {
363
+ input: {
364
+ path: string;
365
+ detail?: "high" | "original" | undefined;
366
+ environment_id?: string | undefined;
367
+ };
368
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
369
+ readonly toModelOutput?: ((options: {
370
+ toolCallId: string;
371
+ input: {
372
+ path: string;
373
+ detail?: "high" | "original" | undefined;
374
+ environment_id?: string | undefined;
375
+ };
376
+ output: any;
377
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
378
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
379
+ readonly execute?: never;
380
+ readonly description?: string | ((options: {
381
+ context: any;
382
+ experimental_sandbox?: Experimental_SandboxSession;
383
+ }) => string) | undefined;
384
+ readonly strict?: boolean;
385
+ readonly inputExamples?: {
386
+ input: NoInfer<{
387
+ path: string;
388
+ detail?: "high" | "original" | undefined;
389
+ environment_id?: string | undefined;
390
+ }>;
391
+ }[] | undefined;
392
+ readonly id?: never;
393
+ readonly isProviderExecuted?: never;
394
+ readonly args?: never;
395
+ readonly supportsDeferredResults?: never;
396
+ readonly type?: undefined | "function";
397
+ } | {
398
+ readonly toolUseKind: "readonly";
399
+ readonly deferLoading?: boolean;
400
+ readonly title?: string;
401
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
402
+ readonly metadata?: _ai_sdk_provider.JSONObject;
403
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
404
+ path: string;
405
+ detail?: "high" | "original" | undefined;
406
+ environment_id?: string | undefined;
407
+ }>;
408
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
409
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
410
+ path: string;
411
+ detail?: "high" | "original" | undefined;
412
+ environment_id?: string | undefined;
413
+ }, any> | undefined;
414
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
415
+ readonly onInputDelta?: ((options: {
416
+ inputTextDelta: string;
417
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
418
+ readonly onInputAvailable?: ((options: {
419
+ input: {
420
+ path: string;
421
+ detail?: "high" | "original" | undefined;
422
+ environment_id?: string | undefined;
423
+ };
424
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
425
+ readonly toModelOutput?: ((options: {
426
+ toolCallId: string;
427
+ input: {
428
+ path: string;
429
+ detail?: "high" | "original" | undefined;
430
+ environment_id?: string | undefined;
431
+ };
432
+ output: any;
433
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
434
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
435
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
436
+ path: string;
437
+ detail?: "high" | "original" | undefined;
438
+ environment_id?: string | undefined;
439
+ }, any, any> | undefined;
440
+ readonly description?: string | ((options: {
441
+ context: any;
442
+ experimental_sandbox?: Experimental_SandboxSession;
443
+ }) => string) | undefined;
444
+ readonly strict?: boolean;
445
+ readonly inputExamples?: {
446
+ input: NoInfer<{
447
+ path: string;
448
+ detail?: "high" | "original" | undefined;
449
+ environment_id?: string | undefined;
450
+ }>;
451
+ }[] | undefined;
452
+ readonly id?: never;
453
+ readonly isProviderExecuted?: never;
454
+ readonly args?: never;
455
+ readonly supportsDeferredResults?: never;
456
+ readonly type?: undefined | "function";
457
+ } | {
458
+ readonly toolUseKind: "readonly";
459
+ readonly deferLoading?: boolean;
460
+ readonly title?: string;
461
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
462
+ readonly metadata?: _ai_sdk_provider.JSONObject;
463
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
464
+ path: string;
465
+ detail?: "high" | "original" | undefined;
466
+ environment_id?: string | undefined;
467
+ }>;
468
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
469
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
470
+ path: string;
471
+ detail?: "high" | "original" | undefined;
472
+ environment_id?: string | undefined;
473
+ }, any> | undefined;
474
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
475
+ readonly onInputDelta?: ((options: {
476
+ inputTextDelta: string;
477
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
478
+ readonly onInputAvailable?: ((options: {
479
+ input: {
480
+ path: string;
481
+ detail?: "high" | "original" | undefined;
482
+ environment_id?: string | undefined;
483
+ };
484
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
485
+ readonly toModelOutput?: ((options: {
486
+ toolCallId: string;
487
+ input: {
488
+ path: string;
489
+ detail?: "high" | "original" | undefined;
490
+ environment_id?: string | undefined;
491
+ };
492
+ output: any;
493
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
494
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
495
+ readonly execute?: never;
496
+ readonly description?: string | ((options: {
497
+ context: any;
498
+ experimental_sandbox?: Experimental_SandboxSession;
499
+ }) => string) | undefined;
500
+ readonly strict?: boolean;
501
+ readonly inputExamples?: {
502
+ input: NoInfer<{
503
+ path: string;
504
+ detail?: "high" | "original" | undefined;
505
+ environment_id?: string | undefined;
506
+ }>;
507
+ }[] | undefined;
508
+ readonly id?: never;
509
+ readonly isProviderExecuted?: never;
510
+ readonly args?: never;
511
+ readonly supportsDeferredResults?: never;
512
+ readonly type: "dynamic";
513
+ } | {
514
+ readonly toolUseKind: "readonly";
515
+ readonly deferLoading?: boolean;
516
+ readonly title?: string;
517
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
518
+ readonly metadata?: _ai_sdk_provider.JSONObject;
519
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
520
+ path: string;
521
+ detail?: "high" | "original" | undefined;
522
+ environment_id?: string | undefined;
523
+ }>;
524
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
525
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
526
+ path: string;
527
+ detail?: "high" | "original" | undefined;
528
+ environment_id?: string | undefined;
529
+ }, any> | undefined;
530
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
531
+ readonly onInputDelta?: ((options: {
532
+ inputTextDelta: string;
533
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
534
+ readonly onInputAvailable?: ((options: {
535
+ input: {
536
+ path: string;
537
+ detail?: "high" | "original" | undefined;
538
+ environment_id?: string | undefined;
539
+ };
540
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
541
+ readonly toModelOutput?: ((options: {
542
+ toolCallId: string;
543
+ input: {
544
+ path: string;
545
+ detail?: "high" | "original" | undefined;
546
+ environment_id?: string | undefined;
547
+ };
548
+ output: any;
549
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
550
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
551
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
552
+ path: string;
553
+ detail?: "high" | "original" | undefined;
554
+ environment_id?: string | undefined;
555
+ }, any, any> | undefined;
556
+ readonly description?: string | ((options: {
557
+ context: any;
558
+ experimental_sandbox?: Experimental_SandboxSession;
559
+ }) => string) | undefined;
560
+ readonly strict?: boolean;
561
+ readonly inputExamples?: {
562
+ input: NoInfer<{
563
+ path: string;
564
+ detail?: "high" | "original" | undefined;
565
+ environment_id?: string | undefined;
566
+ }>;
567
+ }[] | undefined;
568
+ readonly id?: never;
569
+ readonly isProviderExecuted?: never;
570
+ readonly args?: never;
571
+ readonly supportsDeferredResults?: never;
572
+ readonly type: "dynamic";
573
+ } | {
574
+ readonly toolUseKind: "readonly";
575
+ readonly deferLoading?: boolean;
576
+ readonly title?: string;
577
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
578
+ readonly metadata?: _ai_sdk_provider.JSONObject;
579
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
580
+ path: string;
581
+ detail?: "high" | "original" | undefined;
582
+ environment_id?: string | undefined;
583
+ }>;
584
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
585
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
586
+ path: string;
587
+ detail?: "high" | "original" | undefined;
588
+ environment_id?: string | undefined;
589
+ }, any> | undefined;
590
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
591
+ readonly onInputDelta?: ((options: {
592
+ inputTextDelta: string;
593
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
594
+ readonly onInputAvailable?: ((options: {
595
+ input: {
596
+ path: string;
597
+ detail?: "high" | "original" | undefined;
598
+ environment_id?: string | undefined;
599
+ };
600
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
601
+ readonly toModelOutput?: ((options: {
602
+ toolCallId: string;
603
+ input: {
604
+ path: string;
605
+ detail?: "high" | "original" | undefined;
606
+ environment_id?: string | undefined;
607
+ };
608
+ output: any;
609
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
610
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
611
+ readonly execute?: never;
612
+ readonly type: "provider";
613
+ readonly id: `${string}.${string}`;
614
+ readonly args: Record<string, unknown>;
615
+ readonly description?: never;
616
+ readonly strict?: never;
617
+ readonly inputExamples?: never;
618
+ readonly isProviderExecuted: false;
619
+ readonly supportsDeferredResults?: never;
620
+ } | {
621
+ readonly toolUseKind: "readonly";
622
+ readonly deferLoading?: boolean;
623
+ readonly title?: string;
624
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
625
+ readonly metadata?: _ai_sdk_provider.JSONObject;
626
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
627
+ path: string;
628
+ detail?: "high" | "original" | undefined;
629
+ environment_id?: string | undefined;
630
+ }>;
631
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
632
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
633
+ path: string;
634
+ detail?: "high" | "original" | undefined;
635
+ environment_id?: string | undefined;
636
+ }, any> | undefined;
637
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
638
+ readonly onInputDelta?: ((options: {
639
+ inputTextDelta: string;
640
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
641
+ readonly onInputAvailable?: ((options: {
642
+ input: {
643
+ path: string;
644
+ detail?: "high" | "original" | undefined;
645
+ environment_id?: string | undefined;
646
+ };
647
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
648
+ readonly toModelOutput?: ((options: {
649
+ toolCallId: string;
650
+ input: {
651
+ path: string;
652
+ detail?: "high" | "original" | undefined;
653
+ environment_id?: string | undefined;
654
+ };
655
+ output: any;
656
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
657
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
658
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
659
+ path: string;
660
+ detail?: "high" | "original" | undefined;
661
+ environment_id?: string | undefined;
662
+ }, any, any> | undefined;
663
+ readonly type: "provider";
664
+ readonly id: `${string}.${string}`;
665
+ readonly args: Record<string, unknown>;
666
+ readonly description?: never;
667
+ readonly strict?: never;
668
+ readonly inputExamples?: never;
669
+ readonly isProviderExecuted: false;
670
+ readonly supportsDeferredResults?: never;
671
+ } | {
672
+ readonly toolUseKind: "readonly";
673
+ readonly deferLoading?: boolean;
674
+ readonly title?: string;
675
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
676
+ readonly metadata?: _ai_sdk_provider.JSONObject;
677
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
678
+ path: string;
679
+ detail?: "high" | "original" | undefined;
680
+ environment_id?: string | undefined;
681
+ }>;
682
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
683
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
684
+ path: string;
685
+ detail?: "high" | "original" | undefined;
686
+ environment_id?: string | undefined;
687
+ }, any> | undefined;
688
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
689
+ readonly onInputDelta?: ((options: {
690
+ inputTextDelta: string;
691
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
692
+ readonly onInputAvailable?: ((options: {
693
+ input: {
694
+ path: string;
695
+ detail?: "high" | "original" | undefined;
696
+ environment_id?: string | undefined;
697
+ };
698
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
699
+ readonly toModelOutput?: ((options: {
700
+ toolCallId: string;
701
+ input: {
702
+ path: string;
703
+ detail?: "high" | "original" | undefined;
704
+ environment_id?: string | undefined;
705
+ };
706
+ output: any;
707
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
708
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
709
+ readonly execute?: never;
710
+ readonly type: "provider";
711
+ readonly id: `${string}.${string}`;
712
+ readonly args: Record<string, unknown>;
713
+ readonly description?: never;
714
+ readonly strict?: never;
715
+ readonly inputExamples?: never;
716
+ readonly isProviderExecuted: true;
717
+ readonly supportsDeferredResults?: boolean;
718
+ } | {
719
+ readonly toolUseKind: "readonly";
720
+ readonly deferLoading?: boolean;
721
+ readonly title?: string;
722
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
723
+ readonly metadata?: _ai_sdk_provider.JSONObject;
724
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
725
+ path: string;
726
+ detail?: "high" | "original" | undefined;
727
+ environment_id?: string | undefined;
728
+ }>;
729
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
730
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
731
+ path: string;
732
+ detail?: "high" | "original" | undefined;
733
+ environment_id?: string | undefined;
734
+ }, any> | undefined;
735
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
736
+ readonly onInputDelta?: ((options: {
737
+ inputTextDelta: string;
738
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
739
+ readonly onInputAvailable?: ((options: {
740
+ input: {
741
+ path: string;
742
+ detail?: "high" | "original" | undefined;
743
+ environment_id?: string | undefined;
744
+ };
745
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
746
+ readonly toModelOutput?: ((options: {
747
+ toolCallId: string;
748
+ input: {
749
+ path: string;
750
+ detail?: "high" | "original" | undefined;
751
+ environment_id?: string | undefined;
752
+ };
753
+ output: any;
754
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
755
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
756
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
757
+ path: string;
758
+ detail?: "high" | "original" | undefined;
759
+ environment_id?: string | undefined;
760
+ }, any, any> | undefined;
761
+ readonly type: "provider";
762
+ readonly id: `${string}.${string}`;
763
+ readonly args: Record<string, unknown>;
764
+ readonly description?: never;
765
+ readonly strict?: never;
766
+ readonly inputExamples?: never;
767
+ readonly isProviderExecuted: true;
768
+ readonly supportsDeferredResults?: boolean;
769
+ };
69
770
  };
70
771
  declare function createCodex(settings?: CodexHarnessSettings): HarnessV1<typeof CODEX_BUILTIN_TOOLS>;
71
772
 
@@ -83,6 +784,704 @@ declare const codex: _ai_sdk_harness.HarnessV1<{
83
784
  readonly webSearch: _ai_sdk_harness.HarnessV1BuiltinTool<{
84
785
  query: string;
85
786
  }, unknown>;
787
+ readonly apply_patch: {
788
+ readonly toolUseKind: "edit";
789
+ readonly deferLoading?: boolean;
790
+ readonly title?: string;
791
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
792
+ readonly metadata?: _ai_sdk_provider.JSONObject;
793
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
794
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
795
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
796
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
797
+ readonly onInputDelta?: ((options: {
798
+ inputTextDelta: string;
799
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
800
+ readonly onInputAvailable?: ((options: {
801
+ input: string;
802
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
803
+ readonly toModelOutput?: ((options: {
804
+ toolCallId: string;
805
+ input: string;
806
+ output: any;
807
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
808
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
809
+ readonly execute?: never;
810
+ readonly description?: string | ((options: {
811
+ context: any;
812
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
813
+ }) => string) | undefined;
814
+ readonly strict?: boolean;
815
+ readonly inputExamples?: {
816
+ input: string;
817
+ }[] | undefined;
818
+ readonly id?: never;
819
+ readonly isProviderExecuted?: never;
820
+ readonly args?: never;
821
+ readonly supportsDeferredResults?: never;
822
+ readonly type?: undefined | "function";
823
+ } | {
824
+ readonly toolUseKind: "edit";
825
+ readonly deferLoading?: boolean;
826
+ readonly title?: string;
827
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
828
+ readonly metadata?: _ai_sdk_provider.JSONObject;
829
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
830
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
831
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
832
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
833
+ readonly onInputDelta?: ((options: {
834
+ inputTextDelta: string;
835
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
836
+ readonly onInputAvailable?: ((options: {
837
+ input: string;
838
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
839
+ readonly toModelOutput?: ((options: {
840
+ toolCallId: string;
841
+ input: string;
842
+ output: any;
843
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
844
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
845
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
846
+ readonly description?: string | ((options: {
847
+ context: any;
848
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
849
+ }) => string) | undefined;
850
+ readonly strict?: boolean;
851
+ readonly inputExamples?: {
852
+ input: string;
853
+ }[] | undefined;
854
+ readonly id?: never;
855
+ readonly isProviderExecuted?: never;
856
+ readonly args?: never;
857
+ readonly supportsDeferredResults?: never;
858
+ readonly type?: undefined | "function";
859
+ } | {
860
+ readonly toolUseKind: "edit";
861
+ readonly deferLoading?: boolean;
862
+ readonly title?: string;
863
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
864
+ readonly metadata?: _ai_sdk_provider.JSONObject;
865
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
866
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
867
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
868
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
869
+ readonly onInputDelta?: ((options: {
870
+ inputTextDelta: string;
871
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
872
+ readonly onInputAvailable?: ((options: {
873
+ input: string;
874
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
875
+ readonly toModelOutput?: ((options: {
876
+ toolCallId: string;
877
+ input: string;
878
+ output: any;
879
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
880
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
881
+ readonly execute?: never;
882
+ readonly description?: string | ((options: {
883
+ context: any;
884
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
885
+ }) => string) | undefined;
886
+ readonly strict?: boolean;
887
+ readonly inputExamples?: {
888
+ input: string;
889
+ }[] | undefined;
890
+ readonly id?: never;
891
+ readonly isProviderExecuted?: never;
892
+ readonly args?: never;
893
+ readonly supportsDeferredResults?: never;
894
+ readonly type: "dynamic";
895
+ } | {
896
+ readonly toolUseKind: "edit";
897
+ readonly deferLoading?: boolean;
898
+ readonly title?: string;
899
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
900
+ readonly metadata?: _ai_sdk_provider.JSONObject;
901
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
902
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
903
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
904
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
905
+ readonly onInputDelta?: ((options: {
906
+ inputTextDelta: string;
907
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
908
+ readonly onInputAvailable?: ((options: {
909
+ input: string;
910
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
911
+ readonly toModelOutput?: ((options: {
912
+ toolCallId: string;
913
+ input: string;
914
+ output: any;
915
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
916
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
917
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
918
+ readonly description?: string | ((options: {
919
+ context: any;
920
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
921
+ }) => string) | undefined;
922
+ readonly strict?: boolean;
923
+ readonly inputExamples?: {
924
+ input: string;
925
+ }[] | undefined;
926
+ readonly id?: never;
927
+ readonly isProviderExecuted?: never;
928
+ readonly args?: never;
929
+ readonly supportsDeferredResults?: never;
930
+ readonly type: "dynamic";
931
+ } | {
932
+ readonly toolUseKind: "edit";
933
+ readonly deferLoading?: boolean;
934
+ readonly title?: string;
935
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
936
+ readonly metadata?: _ai_sdk_provider.JSONObject;
937
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
938
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
939
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
940
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
941
+ readonly onInputDelta?: ((options: {
942
+ inputTextDelta: string;
943
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
944
+ readonly onInputAvailable?: ((options: {
945
+ input: string;
946
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
947
+ readonly toModelOutput?: ((options: {
948
+ toolCallId: string;
949
+ input: string;
950
+ output: any;
951
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
952
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
953
+ readonly execute?: never;
954
+ readonly type: "provider";
955
+ readonly id: `${string}.${string}`;
956
+ readonly args: Record<string, unknown>;
957
+ readonly description?: never;
958
+ readonly strict?: never;
959
+ readonly inputExamples?: never;
960
+ readonly isProviderExecuted: false;
961
+ readonly supportsDeferredResults?: never;
962
+ } | {
963
+ readonly toolUseKind: "edit";
964
+ readonly deferLoading?: boolean;
965
+ readonly title?: string;
966
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
967
+ readonly metadata?: _ai_sdk_provider.JSONObject;
968
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
969
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
970
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
971
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
972
+ readonly onInputDelta?: ((options: {
973
+ inputTextDelta: string;
974
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
975
+ readonly onInputAvailable?: ((options: {
976
+ input: string;
977
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
978
+ readonly toModelOutput?: ((options: {
979
+ toolCallId: string;
980
+ input: string;
981
+ output: any;
982
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
983
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
984
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
985
+ readonly type: "provider";
986
+ readonly id: `${string}.${string}`;
987
+ readonly args: Record<string, unknown>;
988
+ readonly description?: never;
989
+ readonly strict?: never;
990
+ readonly inputExamples?: never;
991
+ readonly isProviderExecuted: false;
992
+ readonly supportsDeferredResults?: never;
993
+ } | {
994
+ readonly toolUseKind: "edit";
995
+ readonly deferLoading?: boolean;
996
+ readonly title?: string;
997
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
998
+ readonly metadata?: _ai_sdk_provider.JSONObject;
999
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
1000
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1001
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
1002
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1003
+ readonly onInputDelta?: ((options: {
1004
+ inputTextDelta: string;
1005
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1006
+ readonly onInputAvailable?: ((options: {
1007
+ input: string;
1008
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1009
+ readonly toModelOutput?: ((options: {
1010
+ toolCallId: string;
1011
+ input: string;
1012
+ output: any;
1013
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1014
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1015
+ readonly execute?: never;
1016
+ readonly type: "provider";
1017
+ readonly id: `${string}.${string}`;
1018
+ readonly args: Record<string, unknown>;
1019
+ readonly description?: never;
1020
+ readonly strict?: never;
1021
+ readonly inputExamples?: never;
1022
+ readonly isProviderExecuted: true;
1023
+ readonly supportsDeferredResults?: boolean;
1024
+ } | {
1025
+ readonly toolUseKind: "edit";
1026
+ readonly deferLoading?: boolean;
1027
+ readonly title?: string;
1028
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1029
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1030
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<string>;
1031
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1032
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<string, any> | undefined;
1033
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1034
+ readonly onInputDelta?: ((options: {
1035
+ inputTextDelta: string;
1036
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1037
+ readonly onInputAvailable?: ((options: {
1038
+ input: string;
1039
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1040
+ readonly toModelOutput?: ((options: {
1041
+ toolCallId: string;
1042
+ input: string;
1043
+ output: any;
1044
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1045
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1046
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<string, any, any> | undefined;
1047
+ readonly type: "provider";
1048
+ readonly id: `${string}.${string}`;
1049
+ readonly args: Record<string, unknown>;
1050
+ readonly description?: never;
1051
+ readonly strict?: never;
1052
+ readonly inputExamples?: never;
1053
+ readonly isProviderExecuted: true;
1054
+ readonly supportsDeferredResults?: boolean;
1055
+ };
1056
+ readonly view_image: {
1057
+ readonly toolUseKind: "readonly";
1058
+ readonly deferLoading?: boolean;
1059
+ readonly title?: string;
1060
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1061
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1062
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1063
+ path: string;
1064
+ detail?: "high" | "original" | undefined;
1065
+ environment_id?: string | undefined;
1066
+ }>;
1067
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1068
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1069
+ path: string;
1070
+ detail?: "high" | "original" | undefined;
1071
+ environment_id?: string | undefined;
1072
+ }, any> | undefined;
1073
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1074
+ readonly onInputDelta?: ((options: {
1075
+ inputTextDelta: string;
1076
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1077
+ readonly onInputAvailable?: ((options: {
1078
+ input: {
1079
+ path: string;
1080
+ detail?: "high" | "original" | undefined;
1081
+ environment_id?: string | undefined;
1082
+ };
1083
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1084
+ readonly toModelOutput?: ((options: {
1085
+ toolCallId: string;
1086
+ input: {
1087
+ path: string;
1088
+ detail?: "high" | "original" | undefined;
1089
+ environment_id?: string | undefined;
1090
+ };
1091
+ output: any;
1092
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1093
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1094
+ readonly execute?: never;
1095
+ readonly description?: string | ((options: {
1096
+ context: any;
1097
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
1098
+ }) => string) | undefined;
1099
+ readonly strict?: boolean;
1100
+ readonly inputExamples?: {
1101
+ input: NoInfer<{
1102
+ path: string;
1103
+ detail?: "high" | "original" | undefined;
1104
+ environment_id?: string | undefined;
1105
+ }>;
1106
+ }[] | undefined;
1107
+ readonly id?: never;
1108
+ readonly isProviderExecuted?: never;
1109
+ readonly args?: never;
1110
+ readonly supportsDeferredResults?: never;
1111
+ readonly type?: undefined | "function";
1112
+ } | {
1113
+ readonly toolUseKind: "readonly";
1114
+ readonly deferLoading?: boolean;
1115
+ readonly title?: string;
1116
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1117
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1118
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1119
+ path: string;
1120
+ detail?: "high" | "original" | undefined;
1121
+ environment_id?: string | undefined;
1122
+ }>;
1123
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1124
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1125
+ path: string;
1126
+ detail?: "high" | "original" | undefined;
1127
+ environment_id?: string | undefined;
1128
+ }, any> | undefined;
1129
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1130
+ readonly onInputDelta?: ((options: {
1131
+ inputTextDelta: string;
1132
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1133
+ readonly onInputAvailable?: ((options: {
1134
+ input: {
1135
+ path: string;
1136
+ detail?: "high" | "original" | undefined;
1137
+ environment_id?: string | undefined;
1138
+ };
1139
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1140
+ readonly toModelOutput?: ((options: {
1141
+ toolCallId: string;
1142
+ input: {
1143
+ path: string;
1144
+ detail?: "high" | "original" | undefined;
1145
+ environment_id?: string | undefined;
1146
+ };
1147
+ output: any;
1148
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1149
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1150
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1151
+ path: string;
1152
+ detail?: "high" | "original" | undefined;
1153
+ environment_id?: string | undefined;
1154
+ }, any, any> | undefined;
1155
+ readonly description?: string | ((options: {
1156
+ context: any;
1157
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
1158
+ }) => string) | undefined;
1159
+ readonly strict?: boolean;
1160
+ readonly inputExamples?: {
1161
+ input: NoInfer<{
1162
+ path: string;
1163
+ detail?: "high" | "original" | undefined;
1164
+ environment_id?: string | undefined;
1165
+ }>;
1166
+ }[] | undefined;
1167
+ readonly id?: never;
1168
+ readonly isProviderExecuted?: never;
1169
+ readonly args?: never;
1170
+ readonly supportsDeferredResults?: never;
1171
+ readonly type?: undefined | "function";
1172
+ } | {
1173
+ readonly toolUseKind: "readonly";
1174
+ readonly deferLoading?: boolean;
1175
+ readonly title?: string;
1176
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1177
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1178
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1179
+ path: string;
1180
+ detail?: "high" | "original" | undefined;
1181
+ environment_id?: string | undefined;
1182
+ }>;
1183
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1184
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1185
+ path: string;
1186
+ detail?: "high" | "original" | undefined;
1187
+ environment_id?: string | undefined;
1188
+ }, any> | undefined;
1189
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1190
+ readonly onInputDelta?: ((options: {
1191
+ inputTextDelta: string;
1192
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1193
+ readonly onInputAvailable?: ((options: {
1194
+ input: {
1195
+ path: string;
1196
+ detail?: "high" | "original" | undefined;
1197
+ environment_id?: string | undefined;
1198
+ };
1199
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1200
+ readonly toModelOutput?: ((options: {
1201
+ toolCallId: string;
1202
+ input: {
1203
+ path: string;
1204
+ detail?: "high" | "original" | undefined;
1205
+ environment_id?: string | undefined;
1206
+ };
1207
+ output: any;
1208
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1209
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1210
+ readonly execute?: never;
1211
+ readonly description?: string | ((options: {
1212
+ context: any;
1213
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
1214
+ }) => string) | undefined;
1215
+ readonly strict?: boolean;
1216
+ readonly inputExamples?: {
1217
+ input: NoInfer<{
1218
+ path: string;
1219
+ detail?: "high" | "original" | undefined;
1220
+ environment_id?: string | undefined;
1221
+ }>;
1222
+ }[] | undefined;
1223
+ readonly id?: never;
1224
+ readonly isProviderExecuted?: never;
1225
+ readonly args?: never;
1226
+ readonly supportsDeferredResults?: never;
1227
+ readonly type: "dynamic";
1228
+ } | {
1229
+ readonly toolUseKind: "readonly";
1230
+ readonly deferLoading?: boolean;
1231
+ readonly title?: string;
1232
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1233
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1234
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1235
+ path: string;
1236
+ detail?: "high" | "original" | undefined;
1237
+ environment_id?: string | undefined;
1238
+ }>;
1239
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1240
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1241
+ path: string;
1242
+ detail?: "high" | "original" | undefined;
1243
+ environment_id?: string | undefined;
1244
+ }, any> | undefined;
1245
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1246
+ readonly onInputDelta?: ((options: {
1247
+ inputTextDelta: string;
1248
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1249
+ readonly onInputAvailable?: ((options: {
1250
+ input: {
1251
+ path: string;
1252
+ detail?: "high" | "original" | undefined;
1253
+ environment_id?: string | undefined;
1254
+ };
1255
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1256
+ readonly toModelOutput?: ((options: {
1257
+ toolCallId: string;
1258
+ input: {
1259
+ path: string;
1260
+ detail?: "high" | "original" | undefined;
1261
+ environment_id?: string | undefined;
1262
+ };
1263
+ output: any;
1264
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1265
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1266
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1267
+ path: string;
1268
+ detail?: "high" | "original" | undefined;
1269
+ environment_id?: string | undefined;
1270
+ }, any, any> | undefined;
1271
+ readonly description?: string | ((options: {
1272
+ context: any;
1273
+ experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
1274
+ }) => string) | undefined;
1275
+ readonly strict?: boolean;
1276
+ readonly inputExamples?: {
1277
+ input: NoInfer<{
1278
+ path: string;
1279
+ detail?: "high" | "original" | undefined;
1280
+ environment_id?: string | undefined;
1281
+ }>;
1282
+ }[] | undefined;
1283
+ readonly id?: never;
1284
+ readonly isProviderExecuted?: never;
1285
+ readonly args?: never;
1286
+ readonly supportsDeferredResults?: never;
1287
+ readonly type: "dynamic";
1288
+ } | {
1289
+ readonly toolUseKind: "readonly";
1290
+ readonly deferLoading?: boolean;
1291
+ readonly title?: string;
1292
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1293
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1294
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1295
+ path: string;
1296
+ detail?: "high" | "original" | undefined;
1297
+ environment_id?: string | undefined;
1298
+ }>;
1299
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1300
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1301
+ path: string;
1302
+ detail?: "high" | "original" | undefined;
1303
+ environment_id?: string | undefined;
1304
+ }, any> | undefined;
1305
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1306
+ readonly onInputDelta?: ((options: {
1307
+ inputTextDelta: string;
1308
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1309
+ readonly onInputAvailable?: ((options: {
1310
+ input: {
1311
+ path: string;
1312
+ detail?: "high" | "original" | undefined;
1313
+ environment_id?: string | undefined;
1314
+ };
1315
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1316
+ readonly toModelOutput?: ((options: {
1317
+ toolCallId: string;
1318
+ input: {
1319
+ path: string;
1320
+ detail?: "high" | "original" | undefined;
1321
+ environment_id?: string | undefined;
1322
+ };
1323
+ output: any;
1324
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1325
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1326
+ readonly execute?: never;
1327
+ readonly type: "provider";
1328
+ readonly id: `${string}.${string}`;
1329
+ readonly args: Record<string, unknown>;
1330
+ readonly description?: never;
1331
+ readonly strict?: never;
1332
+ readonly inputExamples?: never;
1333
+ readonly isProviderExecuted: false;
1334
+ readonly supportsDeferredResults?: never;
1335
+ } | {
1336
+ readonly toolUseKind: "readonly";
1337
+ readonly deferLoading?: boolean;
1338
+ readonly title?: string;
1339
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1340
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1341
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1342
+ path: string;
1343
+ detail?: "high" | "original" | undefined;
1344
+ environment_id?: string | undefined;
1345
+ }>;
1346
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1347
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1348
+ path: string;
1349
+ detail?: "high" | "original" | undefined;
1350
+ environment_id?: string | undefined;
1351
+ }, any> | undefined;
1352
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1353
+ readonly onInputDelta?: ((options: {
1354
+ inputTextDelta: string;
1355
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1356
+ readonly onInputAvailable?: ((options: {
1357
+ input: {
1358
+ path: string;
1359
+ detail?: "high" | "original" | undefined;
1360
+ environment_id?: string | undefined;
1361
+ };
1362
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1363
+ readonly toModelOutput?: ((options: {
1364
+ toolCallId: string;
1365
+ input: {
1366
+ path: string;
1367
+ detail?: "high" | "original" | undefined;
1368
+ environment_id?: string | undefined;
1369
+ };
1370
+ output: any;
1371
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1372
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1373
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1374
+ path: string;
1375
+ detail?: "high" | "original" | undefined;
1376
+ environment_id?: string | undefined;
1377
+ }, any, any> | undefined;
1378
+ readonly type: "provider";
1379
+ readonly id: `${string}.${string}`;
1380
+ readonly args: Record<string, unknown>;
1381
+ readonly description?: never;
1382
+ readonly strict?: never;
1383
+ readonly inputExamples?: never;
1384
+ readonly isProviderExecuted: false;
1385
+ readonly supportsDeferredResults?: never;
1386
+ } | {
1387
+ readonly toolUseKind: "readonly";
1388
+ readonly deferLoading?: boolean;
1389
+ readonly title?: string;
1390
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1391
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1392
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1393
+ path: string;
1394
+ detail?: "high" | "original" | undefined;
1395
+ environment_id?: string | undefined;
1396
+ }>;
1397
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1398
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1399
+ path: string;
1400
+ detail?: "high" | "original" | undefined;
1401
+ environment_id?: string | undefined;
1402
+ }, any> | undefined;
1403
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1404
+ readonly onInputDelta?: ((options: {
1405
+ inputTextDelta: string;
1406
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1407
+ readonly onInputAvailable?: ((options: {
1408
+ input: {
1409
+ path: string;
1410
+ detail?: "high" | "original" | undefined;
1411
+ environment_id?: string | undefined;
1412
+ };
1413
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1414
+ readonly toModelOutput?: ((options: {
1415
+ toolCallId: string;
1416
+ input: {
1417
+ path: string;
1418
+ detail?: "high" | "original" | undefined;
1419
+ environment_id?: string | undefined;
1420
+ };
1421
+ output: any;
1422
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1423
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1424
+ readonly execute?: never;
1425
+ readonly type: "provider";
1426
+ readonly id: `${string}.${string}`;
1427
+ readonly args: Record<string, unknown>;
1428
+ readonly description?: never;
1429
+ readonly strict?: never;
1430
+ readonly inputExamples?: never;
1431
+ readonly isProviderExecuted: true;
1432
+ readonly supportsDeferredResults?: boolean;
1433
+ } | {
1434
+ readonly toolUseKind: "readonly";
1435
+ readonly deferLoading?: boolean;
1436
+ readonly title?: string;
1437
+ readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
1438
+ readonly metadata?: _ai_sdk_provider.JSONObject;
1439
+ readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
1440
+ path: string;
1441
+ detail?: "high" | "original" | undefined;
1442
+ environment_id?: string | undefined;
1443
+ }>;
1444
+ readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1445
+ readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
1446
+ path: string;
1447
+ detail?: "high" | "original" | undefined;
1448
+ environment_id?: string | undefined;
1449
+ }, any> | undefined;
1450
+ readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1451
+ readonly onInputDelta?: ((options: {
1452
+ inputTextDelta: string;
1453
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1454
+ readonly onInputAvailable?: ((options: {
1455
+ input: {
1456
+ path: string;
1457
+ detail?: "high" | "original" | undefined;
1458
+ environment_id?: string | undefined;
1459
+ };
1460
+ } & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
1461
+ readonly toModelOutput?: ((options: {
1462
+ toolCallId: string;
1463
+ input: {
1464
+ path: string;
1465
+ detail?: "high" | "original" | undefined;
1466
+ environment_id?: string | undefined;
1467
+ };
1468
+ output: any;
1469
+ }) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
1470
+ readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
1471
+ readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
1472
+ path: string;
1473
+ detail?: "high" | "original" | undefined;
1474
+ environment_id?: string | undefined;
1475
+ }, any, any> | undefined;
1476
+ readonly type: "provider";
1477
+ readonly id: `${string}.${string}`;
1478
+ readonly args: Record<string, unknown>;
1479
+ readonly description?: never;
1480
+ readonly strict?: never;
1481
+ readonly inputExamples?: never;
1482
+ readonly isProviderExecuted: true;
1483
+ readonly supportsDeferredResults?: boolean;
1484
+ };
86
1485
  }>;
87
1486
 
88
1487
  export { type CodexAuthenticationMode, type CodexHarnessSettings, VERSION, codex, createCodex };