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