@deepagents/toolbox 4.2.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,84 +1,1102 @@
1
- export declare const read_file_tool: import("ai").Tool<{
2
- filePath: string;
3
- lineStart?: number | undefined;
4
- lineEnd?: number | undefined;
5
- }, string>;
6
- export declare const read_dir_tool: import("ai").Tool<{
7
- dir_path: string;
8
- }, string[]>;
9
- export declare const glob_tool: import("ai").Tool<{
10
- pattern: string;
11
- }, string[]>;
12
- export declare const search_files_tool: import("ai").Tool<{
13
- pattern: string;
14
- max_results: number;
15
- depth: number;
16
- }, string[]>;
17
- export declare const file_exists_tool: import("ai").Tool<{
18
- filePath: string;
19
- }, boolean>;
20
- export declare const search_content_tool: ({
21
- description?: string;
22
- title?: string;
23
- providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
24
- metadata?: import("@ai-sdk/provider").JSONObject;
25
- inputSchema: import("ai").FlexibleSchema<unknown>;
1
+ export declare const read_file_tool: ({
2
+ title?: string;
3
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
+ metadata?: import("@ai-sdk/provider").JSONObject;
5
+ inputSchema: import("ai").FlexibleSchema<{
6
+ filePath: string;
7
+ lineStart?: number | undefined;
8
+ lineEnd?: number | undefined;
9
+ }>;
10
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
11
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
12
+ filePath: string;
13
+ lineStart?: number | undefined;
14
+ lineEnd?: number | undefined;
15
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
16
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
17
+ onInputDelta?: ((options: {
18
+ inputTextDelta: string;
19
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
20
+ onInputAvailable?: ((options: {
21
+ input: {
22
+ filePath: string;
23
+ lineStart?: number | undefined;
24
+ lineEnd?: number | undefined;
25
+ };
26
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
27
+ toModelOutput?: ((options: {
28
+ toolCallId: string;
29
+ input: {
30
+ filePath: string;
31
+ lineStart?: number | undefined;
32
+ lineEnd?: number | undefined;
33
+ };
34
+ output: string;
35
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
36
+ } & {
37
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
38
+ execute: import("ai").ToolExecuteFunction<{
39
+ filePath: string;
40
+ lineStart?: number | undefined;
41
+ lineEnd?: number | undefined;
42
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
43
+ } & {
44
+ description?: string | ((options: {
45
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
46
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
47
+ }) => string) | undefined;
48
+ strict?: boolean;
26
49
  inputExamples?: {
27
- input: unknown;
50
+ input: NoInfer<{
51
+ filePath: string;
52
+ lineStart?: number | undefined;
53
+ lineEnd?: number | undefined;
54
+ }>;
28
55
  }[] | undefined;
29
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<unknown> | undefined;
56
+ id?: never;
57
+ isProviderExecuted?: never;
58
+ args?: never;
59
+ supportsDeferredResults?: never;
60
+ } & {
61
+ type?: undefined | "function";
62
+ } & {
63
+ execute: import("ai").ToolExecuteFunction<{
64
+ filePath: string;
65
+ lineStart?: number | undefined;
66
+ lineEnd?: number | undefined;
67
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
68
+ }) | ({
69
+ title?: string;
70
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
71
+ metadata?: import("@ai-sdk/provider").JSONObject;
72
+ inputSchema: import("ai").FlexibleSchema<{
73
+ filePath: string;
74
+ lineStart?: number | undefined;
75
+ lineEnd?: number | undefined;
76
+ }>;
77
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
78
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
79
+ filePath: string;
80
+ lineStart?: number | undefined;
81
+ lineEnd?: number | undefined;
82
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
83
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
84
+ onInputDelta?: ((options: {
85
+ inputTextDelta: string;
86
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
87
+ onInputAvailable?: ((options: {
88
+ input: {
89
+ filePath: string;
90
+ lineStart?: number | undefined;
91
+ lineEnd?: number | undefined;
92
+ };
93
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
94
+ toModelOutput?: ((options: {
95
+ toolCallId: string;
96
+ input: {
97
+ filePath: string;
98
+ lineStart?: number | undefined;
99
+ lineEnd?: number | undefined;
100
+ };
101
+ output: string;
102
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
103
+ } & {
104
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
105
+ execute: import("ai").ToolExecuteFunction<{
106
+ filePath: string;
107
+ lineStart?: number | undefined;
108
+ lineEnd?: number | undefined;
109
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
110
+ } & {
111
+ description?: string | ((options: {
112
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
113
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
114
+ }) => string) | undefined;
30
115
  strict?: boolean;
31
- onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
32
- onInputDelta?: (options: {
116
+ inputExamples?: {
117
+ input: NoInfer<{
118
+ filePath: string;
119
+ lineStart?: number | undefined;
120
+ lineEnd?: number | undefined;
121
+ }>;
122
+ }[] | undefined;
123
+ id?: never;
124
+ isProviderExecuted?: never;
125
+ args?: never;
126
+ supportsDeferredResults?: never;
127
+ } & {
128
+ type: "dynamic";
129
+ } & {
130
+ execute: import("ai").ToolExecuteFunction<{
131
+ filePath: string;
132
+ lineStart?: number | undefined;
133
+ lineEnd?: number | undefined;
134
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
135
+ }) | ({
136
+ title?: string;
137
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
138
+ metadata?: import("@ai-sdk/provider").JSONObject;
139
+ inputSchema: import("ai").FlexibleSchema<{
140
+ filePath: string;
141
+ lineStart?: number | undefined;
142
+ lineEnd?: number | undefined;
143
+ }>;
144
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
145
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
146
+ filePath: string;
147
+ lineStart?: number | undefined;
148
+ lineEnd?: number | undefined;
149
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
150
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
151
+ onInputDelta?: ((options: {
33
152
  inputTextDelta: string;
34
- } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
153
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
35
154
  onInputAvailable?: ((options: {
36
- input: unknown;
37
- } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
155
+ input: {
156
+ filePath: string;
157
+ lineStart?: number | undefined;
158
+ lineEnd?: number | undefined;
159
+ };
160
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
161
+ toModelOutput?: ((options: {
162
+ toolCallId: string;
163
+ input: {
164
+ filePath: string;
165
+ lineStart?: number | undefined;
166
+ lineEnd?: number | undefined;
167
+ };
168
+ output: string;
169
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
170
+ } & {
171
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
172
+ execute: import("ai").ToolExecuteFunction<{
173
+ filePath: string;
174
+ lineStart?: number | undefined;
175
+ lineEnd?: number | undefined;
176
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
177
+ } & {
178
+ type: "provider";
179
+ id: `${string}.${string}`;
180
+ args: Record<string, unknown>;
181
+ description?: never;
182
+ strict?: never;
183
+ inputExamples?: never;
38
184
  } & {
39
- outputSchema: import("ai").FlexibleSchema<unknown>;
40
- execute?: never;
185
+ isProviderExecuted: false;
186
+ supportsDeferredResults?: never;
41
187
  } & {
188
+ execute: import("ai").ToolExecuteFunction<{
189
+ filePath: string;
190
+ lineStart?: number | undefined;
191
+ lineEnd?: number | undefined;
192
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
193
+ }) | ({
194
+ title?: string;
195
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
196
+ metadata?: import("@ai-sdk/provider").JSONObject;
197
+ inputSchema: import("ai").FlexibleSchema<{
198
+ filePath: string;
199
+ lineStart?: number | undefined;
200
+ lineEnd?: number | undefined;
201
+ }>;
202
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
203
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
204
+ filePath: string;
205
+ lineStart?: number | undefined;
206
+ lineEnd?: number | undefined;
207
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
208
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
209
+ onInputDelta?: ((options: {
210
+ inputTextDelta: string;
211
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
212
+ onInputAvailable?: ((options: {
213
+ input: {
214
+ filePath: string;
215
+ lineStart?: number | undefined;
216
+ lineEnd?: number | undefined;
217
+ };
218
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
42
219
  toModelOutput?: ((options: {
43
220
  toolCallId: string;
44
- input: unknown;
45
- output: unknown;
221
+ input: {
222
+ filePath: string;
223
+ lineStart?: number | undefined;
224
+ lineEnd?: number | undefined;
225
+ };
226
+ output: string;
46
227
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
47
228
  } & {
48
- type: "dynamic";
229
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
230
+ execute: import("ai").ToolExecuteFunction<{
231
+ filePath: string;
232
+ lineStart?: number | undefined;
233
+ lineEnd?: number | undefined;
234
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
235
+ } & {
236
+ type: "provider";
237
+ id: `${string}.${string}`;
238
+ args: Record<string, unknown>;
239
+ description?: never;
240
+ strict?: never;
241
+ inputExamples?: never;
242
+ } & {
243
+ isProviderExecuted: true;
244
+ supportsDeferredResults?: boolean;
245
+ } & {
246
+ execute: import("ai").ToolExecuteFunction<{
247
+ filePath: string;
248
+ lineStart?: number | undefined;
249
+ lineEnd?: number | undefined;
250
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
251
+ });
252
+ export declare const read_dir_tool: ({
253
+ title?: string;
254
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
255
+ metadata?: import("@ai-sdk/provider").JSONObject;
256
+ inputSchema: import("ai").FlexibleSchema<{
257
+ dir_path: string;
258
+ }>;
259
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
260
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
261
+ dir_path: string;
262
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
263
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
264
+ onInputDelta?: ((options: {
265
+ inputTextDelta: string;
266
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
267
+ onInputAvailable?: ((options: {
268
+ input: {
269
+ dir_path: string;
270
+ };
271
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
272
+ toModelOutput?: ((options: {
273
+ toolCallId: string;
274
+ input: {
275
+ dir_path: string;
276
+ };
277
+ output: NoInfer<string[]>;
278
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
279
+ } & {
280
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
281
+ execute: import("ai").ToolExecuteFunction<{
282
+ dir_path: string;
283
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
284
+ } & {
285
+ description?: string | ((options: {
286
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
287
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
288
+ }) => string) | undefined;
289
+ strict?: boolean;
290
+ inputExamples?: {
291
+ input: NoInfer<{
292
+ dir_path: string;
293
+ }>;
294
+ }[] | undefined;
295
+ id?: never;
296
+ isProviderExecuted?: never;
297
+ args?: never;
298
+ supportsDeferredResults?: never;
299
+ } & {
300
+ type?: undefined | "function";
301
+ } & {
302
+ execute: import("ai").ToolExecuteFunction<{
303
+ dir_path: string;
304
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
305
+ }) | ({
306
+ title?: string;
307
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
308
+ metadata?: import("@ai-sdk/provider").JSONObject;
309
+ inputSchema: import("ai").FlexibleSchema<{
310
+ dir_path: string;
311
+ }>;
312
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
313
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
314
+ dir_path: string;
315
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
316
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
317
+ onInputDelta?: ((options: {
318
+ inputTextDelta: string;
319
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
320
+ onInputAvailable?: ((options: {
321
+ input: {
322
+ dir_path: string;
323
+ };
324
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
325
+ toModelOutput?: ((options: {
326
+ toolCallId: string;
327
+ input: {
328
+ dir_path: string;
329
+ };
330
+ output: NoInfer<string[]>;
331
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
332
+ } & {
333
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
334
+ execute: import("ai").ToolExecuteFunction<{
335
+ dir_path: string;
336
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
337
+ } & {
338
+ description?: string | ((options: {
339
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
340
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
341
+ }) => string) | undefined;
342
+ strict?: boolean;
343
+ inputExamples?: {
344
+ input: NoInfer<{
345
+ dir_path: string;
346
+ }>;
347
+ }[] | undefined;
348
+ id?: never;
349
+ isProviderExecuted?: never;
350
+ args?: never;
351
+ supportsDeferredResults?: never;
49
352
  } & {
50
353
  type: "dynamic";
354
+ } & {
355
+ execute: import("ai").ToolExecuteFunction<{
356
+ dir_path: string;
357
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
51
358
  }) | ({
52
- description?: string;
53
359
  title?: string;
54
360
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
55
361
  metadata?: import("@ai-sdk/provider").JSONObject;
56
- inputSchema: import("ai").FlexibleSchema<unknown>;
362
+ inputSchema: import("ai").FlexibleSchema<{
363
+ dir_path: string;
364
+ }>;
365
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
366
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
367
+ dir_path: string;
368
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
369
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
370
+ onInputDelta?: ((options: {
371
+ inputTextDelta: string;
372
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
373
+ onInputAvailable?: ((options: {
374
+ input: {
375
+ dir_path: string;
376
+ };
377
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
378
+ toModelOutput?: ((options: {
379
+ toolCallId: string;
380
+ input: {
381
+ dir_path: string;
382
+ };
383
+ output: NoInfer<string[]>;
384
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
385
+ } & {
386
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
387
+ execute: import("ai").ToolExecuteFunction<{
388
+ dir_path: string;
389
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
390
+ } & {
391
+ type: "provider";
392
+ id: `${string}.${string}`;
393
+ args: Record<string, unknown>;
394
+ description?: never;
395
+ strict?: never;
396
+ inputExamples?: never;
397
+ } & {
398
+ isProviderExecuted: false;
399
+ supportsDeferredResults?: never;
400
+ } & {
401
+ execute: import("ai").ToolExecuteFunction<{
402
+ dir_path: string;
403
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
404
+ }) | ({
405
+ title?: string;
406
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
407
+ metadata?: import("@ai-sdk/provider").JSONObject;
408
+ inputSchema: import("ai").FlexibleSchema<{
409
+ dir_path: string;
410
+ }>;
411
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
412
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
413
+ dir_path: string;
414
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
415
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
416
+ onInputDelta?: ((options: {
417
+ inputTextDelta: string;
418
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
419
+ onInputAvailable?: ((options: {
420
+ input: {
421
+ dir_path: string;
422
+ };
423
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
424
+ toModelOutput?: ((options: {
425
+ toolCallId: string;
426
+ input: {
427
+ dir_path: string;
428
+ };
429
+ output: NoInfer<string[]>;
430
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
431
+ } & {
432
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
433
+ execute: import("ai").ToolExecuteFunction<{
434
+ dir_path: string;
435
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
436
+ } & {
437
+ type: "provider";
438
+ id: `${string}.${string}`;
439
+ args: Record<string, unknown>;
440
+ description?: never;
441
+ strict?: never;
442
+ inputExamples?: never;
443
+ } & {
444
+ isProviderExecuted: true;
445
+ supportsDeferredResults?: boolean;
446
+ } & {
447
+ execute: import("ai").ToolExecuteFunction<{
448
+ dir_path: string;
449
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
450
+ });
451
+ export declare const glob_tool: ({
452
+ title?: string;
453
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
454
+ metadata?: import("@ai-sdk/provider").JSONObject;
455
+ inputSchema: import("ai").FlexibleSchema<{
456
+ pattern: string;
457
+ }>;
458
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
459
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
460
+ pattern: string;
461
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
462
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
463
+ onInputDelta?: ((options: {
464
+ inputTextDelta: string;
465
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
466
+ onInputAvailable?: ((options: {
467
+ input: {
468
+ pattern: string;
469
+ };
470
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
471
+ toModelOutput?: ((options: {
472
+ toolCallId: string;
473
+ input: {
474
+ pattern: string;
475
+ };
476
+ output: NoInfer<string[]>;
477
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
478
+ } & {
479
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
480
+ execute: import("ai").ToolExecuteFunction<{
481
+ pattern: string;
482
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
483
+ } & {
484
+ description?: string | ((options: {
485
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
486
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
487
+ }) => string) | undefined;
488
+ strict?: boolean;
57
489
  inputExamples?: {
58
- input: unknown;
490
+ input: NoInfer<{
491
+ pattern: string;
492
+ }>;
59
493
  }[] | undefined;
60
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<unknown> | undefined;
494
+ id?: never;
495
+ isProviderExecuted?: never;
496
+ args?: never;
497
+ supportsDeferredResults?: never;
498
+ } & {
499
+ type?: undefined | "function";
500
+ } & {
501
+ execute: import("ai").ToolExecuteFunction<{
502
+ pattern: string;
503
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
504
+ }) | ({
505
+ title?: string;
506
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
507
+ metadata?: import("@ai-sdk/provider").JSONObject;
508
+ inputSchema: import("ai").FlexibleSchema<{
509
+ pattern: string;
510
+ }>;
511
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
512
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
513
+ pattern: string;
514
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
515
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
516
+ onInputDelta?: ((options: {
517
+ inputTextDelta: string;
518
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
519
+ onInputAvailable?: ((options: {
520
+ input: {
521
+ pattern: string;
522
+ };
523
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
524
+ toModelOutput?: ((options: {
525
+ toolCallId: string;
526
+ input: {
527
+ pattern: string;
528
+ };
529
+ output: NoInfer<string[]>;
530
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
531
+ } & {
532
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
533
+ execute: import("ai").ToolExecuteFunction<{
534
+ pattern: string;
535
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
536
+ } & {
537
+ description?: string | ((options: {
538
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
539
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
540
+ }) => string) | undefined;
61
541
  strict?: boolean;
62
- onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
63
- onInputDelta?: (options: {
542
+ inputExamples?: {
543
+ input: NoInfer<{
544
+ pattern: string;
545
+ }>;
546
+ }[] | undefined;
547
+ id?: never;
548
+ isProviderExecuted?: never;
549
+ args?: never;
550
+ supportsDeferredResults?: never;
551
+ } & {
552
+ type: "dynamic";
553
+ } & {
554
+ execute: import("ai").ToolExecuteFunction<{
555
+ pattern: string;
556
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
557
+ }) | ({
558
+ title?: string;
559
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
560
+ metadata?: import("@ai-sdk/provider").JSONObject;
561
+ inputSchema: import("ai").FlexibleSchema<{
562
+ pattern: string;
563
+ }>;
564
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
565
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
566
+ pattern: string;
567
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
568
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
569
+ onInputDelta?: ((options: {
64
570
  inputTextDelta: string;
65
- } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
571
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
66
572
  onInputAvailable?: ((options: {
67
- input: unknown;
68
- } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
573
+ input: {
574
+ pattern: string;
575
+ };
576
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
577
+ toModelOutput?: ((options: {
578
+ toolCallId: string;
579
+ input: {
580
+ pattern: string;
581
+ };
582
+ output: NoInfer<string[]>;
583
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
584
+ } & {
585
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
586
+ execute: import("ai").ToolExecuteFunction<{
587
+ pattern: string;
588
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
589
+ } & {
590
+ type: "provider";
591
+ id: `${string}.${string}`;
592
+ args: Record<string, unknown>;
593
+ description?: never;
594
+ strict?: never;
595
+ inputExamples?: never;
596
+ } & {
597
+ isProviderExecuted: false;
598
+ supportsDeferredResults?: never;
599
+ } & {
600
+ execute: import("ai").ToolExecuteFunction<{
601
+ pattern: string;
602
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
603
+ }) | ({
604
+ title?: string;
605
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
606
+ metadata?: import("@ai-sdk/provider").JSONObject;
607
+ inputSchema: import("ai").FlexibleSchema<{
608
+ pattern: string;
609
+ }>;
610
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
611
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
612
+ pattern: string;
613
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
614
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
615
+ onInputDelta?: ((options: {
616
+ inputTextDelta: string;
617
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
618
+ onInputAvailable?: ((options: {
619
+ input: {
620
+ pattern: string;
621
+ };
622
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
623
+ toModelOutput?: ((options: {
624
+ toolCallId: string;
625
+ input: {
626
+ pattern: string;
627
+ };
628
+ output: NoInfer<string[]>;
629
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
630
+ } & {
631
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
632
+ execute: import("ai").ToolExecuteFunction<{
633
+ pattern: string;
634
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
635
+ } & {
636
+ type: "provider";
637
+ id: `${string}.${string}`;
638
+ args: Record<string, unknown>;
639
+ description?: never;
640
+ strict?: never;
641
+ inputExamples?: never;
642
+ } & {
643
+ isProviderExecuted: true;
644
+ supportsDeferredResults?: boolean;
645
+ } & {
646
+ execute: import("ai").ToolExecuteFunction<{
647
+ pattern: string;
648
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
649
+ });
650
+ export declare const search_files_tool: ({
651
+ title?: string;
652
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
653
+ metadata?: import("@ai-sdk/provider").JSONObject;
654
+ inputSchema: import("ai").FlexibleSchema<{
655
+ pattern: string;
656
+ max_results: number;
657
+ depth: number;
658
+ }>;
659
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
660
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
661
+ pattern: string;
662
+ max_results: number;
663
+ depth: number;
664
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
665
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
666
+ onInputDelta?: ((options: {
667
+ inputTextDelta: string;
668
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
669
+ onInputAvailable?: ((options: {
670
+ input: {
671
+ pattern: string;
672
+ max_results: number;
673
+ depth: number;
674
+ };
675
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
676
+ toModelOutput?: ((options: {
677
+ toolCallId: string;
678
+ input: {
679
+ pattern: string;
680
+ max_results: number;
681
+ depth: number;
682
+ };
683
+ output: NoInfer<string[]>;
684
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
685
+ } & {
686
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
687
+ execute: import("ai").ToolExecuteFunction<{
688
+ pattern: string;
689
+ max_results: number;
690
+ depth: number;
691
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
69
692
  } & {
70
- execute: import("ai").ToolExecuteFunction<unknown, unknown>;
71
- outputSchema?: import("ai").FlexibleSchema<unknown> | undefined;
693
+ description?: string | ((options: {
694
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
695
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
696
+ }) => string) | undefined;
697
+ strict?: boolean;
698
+ inputExamples?: {
699
+ input: NoInfer<{
700
+ pattern: string;
701
+ max_results: number;
702
+ depth: number;
703
+ }>;
704
+ }[] | undefined;
705
+ id?: never;
706
+ isProviderExecuted?: never;
707
+ args?: never;
708
+ supportsDeferredResults?: never;
72
709
  } & {
710
+ type?: undefined | "function";
711
+ } & {
712
+ execute: import("ai").ToolExecuteFunction<{
713
+ pattern: string;
714
+ max_results: number;
715
+ depth: number;
716
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
717
+ }) | ({
718
+ title?: string;
719
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
720
+ metadata?: import("@ai-sdk/provider").JSONObject;
721
+ inputSchema: import("ai").FlexibleSchema<{
722
+ pattern: string;
723
+ max_results: number;
724
+ depth: number;
725
+ }>;
726
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
727
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
728
+ pattern: string;
729
+ max_results: number;
730
+ depth: number;
731
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
732
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
733
+ onInputDelta?: ((options: {
734
+ inputTextDelta: string;
735
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
736
+ onInputAvailable?: ((options: {
737
+ input: {
738
+ pattern: string;
739
+ max_results: number;
740
+ depth: number;
741
+ };
742
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
73
743
  toModelOutput?: ((options: {
74
744
  toolCallId: string;
75
- input: unknown;
76
- output: unknown;
745
+ input: {
746
+ pattern: string;
747
+ max_results: number;
748
+ depth: number;
749
+ };
750
+ output: NoInfer<string[]>;
77
751
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
752
+ } & {
753
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
754
+ execute: import("ai").ToolExecuteFunction<{
755
+ pattern: string;
756
+ max_results: number;
757
+ depth: number;
758
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
759
+ } & {
760
+ description?: string | ((options: {
761
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
762
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
763
+ }) => string) | undefined;
764
+ strict?: boolean;
765
+ inputExamples?: {
766
+ input: NoInfer<{
767
+ pattern: string;
768
+ max_results: number;
769
+ depth: number;
770
+ }>;
771
+ }[] | undefined;
772
+ id?: never;
773
+ isProviderExecuted?: never;
774
+ args?: never;
775
+ supportsDeferredResults?: never;
78
776
  } & {
79
777
  type: "dynamic";
778
+ } & {
779
+ execute: import("ai").ToolExecuteFunction<{
780
+ pattern: string;
781
+ max_results: number;
782
+ depth: number;
783
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
784
+ }) | ({
785
+ title?: string;
786
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
787
+ metadata?: import("@ai-sdk/provider").JSONObject;
788
+ inputSchema: import("ai").FlexibleSchema<{
789
+ pattern: string;
790
+ max_results: number;
791
+ depth: number;
792
+ }>;
793
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
794
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
795
+ pattern: string;
796
+ max_results: number;
797
+ depth: number;
798
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
799
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
800
+ onInputDelta?: ((options: {
801
+ inputTextDelta: string;
802
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
803
+ onInputAvailable?: ((options: {
804
+ input: {
805
+ pattern: string;
806
+ max_results: number;
807
+ depth: number;
808
+ };
809
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
810
+ toModelOutput?: ((options: {
811
+ toolCallId: string;
812
+ input: {
813
+ pattern: string;
814
+ max_results: number;
815
+ depth: number;
816
+ };
817
+ output: NoInfer<string[]>;
818
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
819
+ } & {
820
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
821
+ execute: import("ai").ToolExecuteFunction<{
822
+ pattern: string;
823
+ max_results: number;
824
+ depth: number;
825
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
826
+ } & {
827
+ type: "provider";
828
+ id: `${string}.${string}`;
829
+ args: Record<string, unknown>;
830
+ description?: never;
831
+ strict?: never;
832
+ inputExamples?: never;
833
+ } & {
834
+ isProviderExecuted: false;
835
+ supportsDeferredResults?: never;
836
+ } & {
837
+ execute: import("ai").ToolExecuteFunction<{
838
+ pattern: string;
839
+ max_results: number;
840
+ depth: number;
841
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
842
+ }) | ({
843
+ title?: string;
844
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
845
+ metadata?: import("@ai-sdk/provider").JSONObject;
846
+ inputSchema: import("ai").FlexibleSchema<{
847
+ pattern: string;
848
+ max_results: number;
849
+ depth: number;
850
+ }>;
851
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
852
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
853
+ pattern: string;
854
+ max_results: number;
855
+ depth: number;
856
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
857
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
858
+ onInputDelta?: ((options: {
859
+ inputTextDelta: string;
860
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
861
+ onInputAvailable?: ((options: {
862
+ input: {
863
+ pattern: string;
864
+ max_results: number;
865
+ depth: number;
866
+ };
867
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
868
+ toModelOutput?: ((options: {
869
+ toolCallId: string;
870
+ input: {
871
+ pattern: string;
872
+ max_results: number;
873
+ depth: number;
874
+ };
875
+ output: NoInfer<string[]>;
876
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
877
+ } & {
878
+ outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
879
+ execute: import("ai").ToolExecuteFunction<{
880
+ pattern: string;
881
+ max_results: number;
882
+ depth: number;
883
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
884
+ } & {
885
+ type: "provider";
886
+ id: `${string}.${string}`;
887
+ args: Record<string, unknown>;
888
+ description?: never;
889
+ strict?: never;
890
+ inputExamples?: never;
891
+ } & {
892
+ isProviderExecuted: true;
893
+ supportsDeferredResults?: boolean;
894
+ } & {
895
+ execute: import("ai").ToolExecuteFunction<{
896
+ pattern: string;
897
+ max_results: number;
898
+ depth: number;
899
+ }, string[], NoInfer<import("@ai-sdk/provider-utils").Context>>;
900
+ });
901
+ export declare const file_exists_tool: ({
902
+ title?: string;
903
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
904
+ metadata?: import("@ai-sdk/provider").JSONObject;
905
+ inputSchema: import("ai").FlexibleSchema<{
906
+ filePath: string;
907
+ }>;
908
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
909
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
910
+ filePath: string;
911
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
912
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
913
+ onInputDelta?: ((options: {
914
+ inputTextDelta: string;
915
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
916
+ onInputAvailable?: ((options: {
917
+ input: {
918
+ filePath: string;
919
+ };
920
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
921
+ toModelOutput?: ((options: {
922
+ toolCallId: string;
923
+ input: {
924
+ filePath: string;
925
+ };
926
+ output: boolean;
927
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
928
+ } & {
929
+ outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
930
+ execute: import("ai").ToolExecuteFunction<{
931
+ filePath: string;
932
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
933
+ } & {
934
+ description?: string | ((options: {
935
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
936
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
937
+ }) => string) | undefined;
938
+ strict?: boolean;
939
+ inputExamples?: {
940
+ input: NoInfer<{
941
+ filePath: string;
942
+ }>;
943
+ }[] | undefined;
944
+ id?: never;
945
+ isProviderExecuted?: never;
946
+ args?: never;
947
+ supportsDeferredResults?: never;
948
+ } & {
949
+ type?: undefined | "function";
950
+ } & {
951
+ execute: import("ai").ToolExecuteFunction<{
952
+ filePath: string;
953
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
954
+ }) | ({
955
+ title?: string;
956
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
957
+ metadata?: import("@ai-sdk/provider").JSONObject;
958
+ inputSchema: import("ai").FlexibleSchema<{
959
+ filePath: string;
960
+ }>;
961
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
962
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
963
+ filePath: string;
964
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
965
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
966
+ onInputDelta?: ((options: {
967
+ inputTextDelta: string;
968
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
969
+ onInputAvailable?: ((options: {
970
+ input: {
971
+ filePath: string;
972
+ };
973
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
974
+ toModelOutput?: ((options: {
975
+ toolCallId: string;
976
+ input: {
977
+ filePath: string;
978
+ };
979
+ output: boolean;
980
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
981
+ } & {
982
+ outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
983
+ execute: import("ai").ToolExecuteFunction<{
984
+ filePath: string;
985
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
986
+ } & {
987
+ description?: string | ((options: {
988
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
989
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
990
+ }) => string) | undefined;
991
+ strict?: boolean;
992
+ inputExamples?: {
993
+ input: NoInfer<{
994
+ filePath: string;
995
+ }>;
996
+ }[] | undefined;
997
+ id?: never;
998
+ isProviderExecuted?: never;
999
+ args?: never;
1000
+ supportsDeferredResults?: never;
80
1001
  } & {
81
1002
  type: "dynamic";
1003
+ } & {
1004
+ execute: import("ai").ToolExecuteFunction<{
1005
+ filePath: string;
1006
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1007
+ }) | ({
1008
+ title?: string;
1009
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1010
+ metadata?: import("@ai-sdk/provider").JSONObject;
1011
+ inputSchema: import("ai").FlexibleSchema<{
1012
+ filePath: string;
1013
+ }>;
1014
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1015
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1016
+ filePath: string;
1017
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1018
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1019
+ onInputDelta?: ((options: {
1020
+ inputTextDelta: string;
1021
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1022
+ onInputAvailable?: ((options: {
1023
+ input: {
1024
+ filePath: string;
1025
+ };
1026
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1027
+ toModelOutput?: ((options: {
1028
+ toolCallId: string;
1029
+ input: {
1030
+ filePath: string;
1031
+ };
1032
+ output: boolean;
1033
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1034
+ } & {
1035
+ outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
1036
+ execute: import("ai").ToolExecuteFunction<{
1037
+ filePath: string;
1038
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1039
+ } & {
1040
+ type: "provider";
1041
+ id: `${string}.${string}`;
1042
+ args: Record<string, unknown>;
1043
+ description?: never;
1044
+ strict?: never;
1045
+ inputExamples?: never;
1046
+ } & {
1047
+ isProviderExecuted: false;
1048
+ supportsDeferredResults?: never;
1049
+ } & {
1050
+ execute: import("ai").ToolExecuteFunction<{
1051
+ filePath: string;
1052
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1053
+ }) | ({
1054
+ title?: string;
1055
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1056
+ metadata?: import("@ai-sdk/provider").JSONObject;
1057
+ inputSchema: import("ai").FlexibleSchema<{
1058
+ filePath: string;
1059
+ }>;
1060
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1061
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1062
+ filePath: string;
1063
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1064
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1065
+ onInputDelta?: ((options: {
1066
+ inputTextDelta: string;
1067
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1068
+ onInputAvailable?: ((options: {
1069
+ input: {
1070
+ filePath: string;
1071
+ };
1072
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1073
+ toModelOutput?: ((options: {
1074
+ toolCallId: string;
1075
+ input: {
1076
+ filePath: string;
1077
+ };
1078
+ output: boolean;
1079
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1080
+ } & {
1081
+ outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
1082
+ execute: import("ai").ToolExecuteFunction<{
1083
+ filePath: string;
1084
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1085
+ } & {
1086
+ type: "provider";
1087
+ id: `${string}.${string}`;
1088
+ args: Record<string, unknown>;
1089
+ description?: never;
1090
+ strict?: never;
1091
+ inputExamples?: never;
1092
+ } & {
1093
+ isProviderExecuted: true;
1094
+ supportsDeferredResults?: boolean;
1095
+ } & {
1096
+ execute: import("ai").ToolExecuteFunction<{
1097
+ filePath: string;
1098
+ }, boolean, NoInfer<import("@ai-sdk/provider-utils").Context>>;
82
1099
  });
1100
+ export declare const search_content_tool: import("@ai-sdk/provider-utils").DynamicTool<unknown, unknown, import("@ai-sdk/provider-utils").Context>;
83
1101
  export declare function repoTree(dir_path: string): Promise<string>;
84
1102
  //# sourceMappingURL=filesystem.d.ts.map