@ai-sdk/harness-grok-build 0.0.0 → 1.0.1
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 +30 -0
- package/LICENSE +13 -0
- package/README.md +41 -3
- package/dist/bridge/package.json +13 -0
- package/dist/bridge/pnpm-lock.yaml +890 -0
- package/dist/index.d.ts +4550 -0
- package/dist/index.js +297 -0
- package/dist/index.js.map +1 -0
- package/package.json +64 -10
- package/src/bridge/package.json +13 -0
- package/src/bridge/pnpm-lock.yaml +890 -0
- package/src/grok-build-harness.ts +334 -0
- package/src/index.ts +10 -0
- package/src/version.ts +5 -0
- package/index.js +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4550 @@
|
|
|
1
|
+
import * as _ai_sdk_provider from '@ai-sdk/provider';
|
|
2
|
+
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
|
+
import * as _ai_sdk_harness from '@ai-sdk/harness';
|
|
4
|
+
import { HarnessV1, HarnessV1BuiltinTool } from '@ai-sdk/harness';
|
|
5
|
+
import { ACPProviderAuthenticationMode } from '@ai-sdk/harness-acp';
|
|
6
|
+
|
|
7
|
+
type GrokBuildHarnessSettings = {
|
|
8
|
+
/**
|
|
9
|
+
* Selects direct xAI or AI Gateway authentication. Defaults to automatic
|
|
10
|
+
* environment-based selection.
|
|
11
|
+
*/
|
|
12
|
+
readonly auth?: ACPProviderAuthenticationMode;
|
|
13
|
+
/**
|
|
14
|
+
* Grok model id selected through ACP. Unset preserves Grok Build's default.
|
|
15
|
+
*/
|
|
16
|
+
readonly model?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Overrides the sandbox port used by the ACP bridge.
|
|
19
|
+
*/
|
|
20
|
+
readonly port?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum milliseconds to wait for the ACP bridge to start.
|
|
23
|
+
*/
|
|
24
|
+
readonly startupTimeoutMs?: number;
|
|
25
|
+
/**
|
|
26
|
+
* MCP server definitions keyed by server name. Each definition uses the
|
|
27
|
+
* underlying runtime's native MCP server configuration format.
|
|
28
|
+
*/
|
|
29
|
+
readonly mcpServers?: Record<string, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates the authentication token used by the sandbox bridge. Defaults to
|
|
32
|
+
* a random 32-byte hexadecimal token.
|
|
33
|
+
*/
|
|
34
|
+
readonly mintBridgeToken?: (sandboxId: string) => string;
|
|
35
|
+
};
|
|
36
|
+
declare const GROK_BUILD_BUILTIN_TOOLS: {
|
|
37
|
+
readonly bash: HarnessV1BuiltinTool<{
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
command: string;
|
|
40
|
+
timeout?: number | null | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
background?: boolean | undefined;
|
|
43
|
+
}, unknown>;
|
|
44
|
+
readonly edit: HarnessV1BuiltinTool<{
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
file_path: string;
|
|
47
|
+
old_string: string;
|
|
48
|
+
new_string: string;
|
|
49
|
+
replace_all?: boolean | undefined;
|
|
50
|
+
}, unknown>;
|
|
51
|
+
readonly grep: HarnessV1BuiltinTool<{
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
pattern: string;
|
|
54
|
+
path?: string | null | undefined;
|
|
55
|
+
glob?: string | null | undefined;
|
|
56
|
+
'-B'?: number | undefined;
|
|
57
|
+
'-A'?: number | undefined;
|
|
58
|
+
'-C'?: number | undefined;
|
|
59
|
+
'-i'?: boolean | undefined;
|
|
60
|
+
type?: string | null | undefined;
|
|
61
|
+
head_limit?: number | undefined;
|
|
62
|
+
multiline?: boolean | undefined;
|
|
63
|
+
}, unknown>;
|
|
64
|
+
readonly webSearch: HarnessV1BuiltinTool<{
|
|
65
|
+
[x: string]: unknown;
|
|
66
|
+
query: string;
|
|
67
|
+
allowed_domains?: string[] | null | undefined;
|
|
68
|
+
}, unknown>;
|
|
69
|
+
readonly write: HarnessV1BuiltinTool<{
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
file_path: string;
|
|
72
|
+
content: string;
|
|
73
|
+
}, unknown>;
|
|
74
|
+
readonly read_file: {
|
|
75
|
+
readonly toolUseKind: "readonly";
|
|
76
|
+
readonly title?: string;
|
|
77
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
78
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
79
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
target_file: string;
|
|
82
|
+
offset?: number | undefined;
|
|
83
|
+
limit?: number | undefined;
|
|
84
|
+
pages?: string | null | undefined;
|
|
85
|
+
format?: string | null | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
88
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
target_file: string;
|
|
91
|
+
offset?: number | undefined;
|
|
92
|
+
limit?: number | undefined;
|
|
93
|
+
pages?: string | null | undefined;
|
|
94
|
+
format?: string | null | undefined;
|
|
95
|
+
}, any> | undefined;
|
|
96
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
97
|
+
readonly onInputDelta?: ((options: {
|
|
98
|
+
inputTextDelta: string;
|
|
99
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
100
|
+
readonly onInputAvailable?: ((options: {
|
|
101
|
+
input: {
|
|
102
|
+
[x: string]: unknown;
|
|
103
|
+
target_file: string;
|
|
104
|
+
offset?: number | undefined;
|
|
105
|
+
limit?: number | undefined;
|
|
106
|
+
pages?: string | null | undefined;
|
|
107
|
+
format?: string | null | undefined;
|
|
108
|
+
};
|
|
109
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
110
|
+
readonly toModelOutput?: ((options: {
|
|
111
|
+
toolCallId: string;
|
|
112
|
+
input: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
target_file: string;
|
|
115
|
+
offset?: number | undefined;
|
|
116
|
+
limit?: number | undefined;
|
|
117
|
+
pages?: string | null | undefined;
|
|
118
|
+
format?: string | null | undefined;
|
|
119
|
+
};
|
|
120
|
+
output: any;
|
|
121
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
122
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
123
|
+
readonly execute?: never;
|
|
124
|
+
readonly description?: string | ((options: {
|
|
125
|
+
context: any;
|
|
126
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
127
|
+
}) => string) | undefined;
|
|
128
|
+
readonly strict?: boolean;
|
|
129
|
+
readonly inputExamples?: {
|
|
130
|
+
input: NoInfer<{
|
|
131
|
+
[x: string]: unknown;
|
|
132
|
+
target_file: string;
|
|
133
|
+
offset?: number | undefined;
|
|
134
|
+
limit?: number | undefined;
|
|
135
|
+
pages?: string | null | undefined;
|
|
136
|
+
format?: string | null | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
}[] | undefined;
|
|
139
|
+
readonly id?: never;
|
|
140
|
+
readonly isProviderExecuted?: never;
|
|
141
|
+
readonly args?: never;
|
|
142
|
+
readonly supportsDeferredResults?: never;
|
|
143
|
+
readonly type?: undefined | "function";
|
|
144
|
+
} | {
|
|
145
|
+
readonly toolUseKind: "readonly";
|
|
146
|
+
readonly title?: string;
|
|
147
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
148
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
149
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
150
|
+
[x: string]: unknown;
|
|
151
|
+
target_file: string;
|
|
152
|
+
offset?: number | undefined;
|
|
153
|
+
limit?: number | undefined;
|
|
154
|
+
pages?: string | null | undefined;
|
|
155
|
+
format?: string | null | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
158
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
target_file: string;
|
|
161
|
+
offset?: number | undefined;
|
|
162
|
+
limit?: number | undefined;
|
|
163
|
+
pages?: string | null | undefined;
|
|
164
|
+
format?: string | null | undefined;
|
|
165
|
+
}, any> | undefined;
|
|
166
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
167
|
+
readonly onInputDelta?: ((options: {
|
|
168
|
+
inputTextDelta: string;
|
|
169
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
170
|
+
readonly onInputAvailable?: ((options: {
|
|
171
|
+
input: {
|
|
172
|
+
[x: string]: unknown;
|
|
173
|
+
target_file: string;
|
|
174
|
+
offset?: number | undefined;
|
|
175
|
+
limit?: number | undefined;
|
|
176
|
+
pages?: string | null | undefined;
|
|
177
|
+
format?: string | null | undefined;
|
|
178
|
+
};
|
|
179
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
180
|
+
readonly toModelOutput?: ((options: {
|
|
181
|
+
toolCallId: string;
|
|
182
|
+
input: {
|
|
183
|
+
[x: string]: unknown;
|
|
184
|
+
target_file: string;
|
|
185
|
+
offset?: number | undefined;
|
|
186
|
+
limit?: number | undefined;
|
|
187
|
+
pages?: string | null | undefined;
|
|
188
|
+
format?: string | null | undefined;
|
|
189
|
+
};
|
|
190
|
+
output: any;
|
|
191
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
192
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
193
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
194
|
+
[x: string]: unknown;
|
|
195
|
+
target_file: string;
|
|
196
|
+
offset?: number | undefined;
|
|
197
|
+
limit?: number | undefined;
|
|
198
|
+
pages?: string | null | undefined;
|
|
199
|
+
format?: string | null | undefined;
|
|
200
|
+
}, any, any> | undefined;
|
|
201
|
+
readonly description?: string | ((options: {
|
|
202
|
+
context: any;
|
|
203
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
204
|
+
}) => string) | undefined;
|
|
205
|
+
readonly strict?: boolean;
|
|
206
|
+
readonly inputExamples?: {
|
|
207
|
+
input: NoInfer<{
|
|
208
|
+
[x: string]: unknown;
|
|
209
|
+
target_file: string;
|
|
210
|
+
offset?: number | undefined;
|
|
211
|
+
limit?: number | undefined;
|
|
212
|
+
pages?: string | null | undefined;
|
|
213
|
+
format?: string | null | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
readonly id?: never;
|
|
217
|
+
readonly isProviderExecuted?: never;
|
|
218
|
+
readonly args?: never;
|
|
219
|
+
readonly supportsDeferredResults?: never;
|
|
220
|
+
readonly type?: undefined | "function";
|
|
221
|
+
} | {
|
|
222
|
+
readonly toolUseKind: "readonly";
|
|
223
|
+
readonly title?: string;
|
|
224
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
225
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
226
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
227
|
+
[x: string]: unknown;
|
|
228
|
+
target_file: string;
|
|
229
|
+
offset?: number | undefined;
|
|
230
|
+
limit?: number | undefined;
|
|
231
|
+
pages?: string | null | undefined;
|
|
232
|
+
format?: string | null | undefined;
|
|
233
|
+
}>;
|
|
234
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
235
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
236
|
+
[x: string]: unknown;
|
|
237
|
+
target_file: string;
|
|
238
|
+
offset?: number | undefined;
|
|
239
|
+
limit?: number | undefined;
|
|
240
|
+
pages?: string | null | undefined;
|
|
241
|
+
format?: string | null | undefined;
|
|
242
|
+
}, any> | undefined;
|
|
243
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
244
|
+
readonly onInputDelta?: ((options: {
|
|
245
|
+
inputTextDelta: string;
|
|
246
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
247
|
+
readonly onInputAvailable?: ((options: {
|
|
248
|
+
input: {
|
|
249
|
+
[x: string]: unknown;
|
|
250
|
+
target_file: string;
|
|
251
|
+
offset?: number | undefined;
|
|
252
|
+
limit?: number | undefined;
|
|
253
|
+
pages?: string | null | undefined;
|
|
254
|
+
format?: string | null | undefined;
|
|
255
|
+
};
|
|
256
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
257
|
+
readonly toModelOutput?: ((options: {
|
|
258
|
+
toolCallId: string;
|
|
259
|
+
input: {
|
|
260
|
+
[x: string]: unknown;
|
|
261
|
+
target_file: string;
|
|
262
|
+
offset?: number | undefined;
|
|
263
|
+
limit?: number | undefined;
|
|
264
|
+
pages?: string | null | undefined;
|
|
265
|
+
format?: string | null | undefined;
|
|
266
|
+
};
|
|
267
|
+
output: any;
|
|
268
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
269
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
270
|
+
readonly execute?: never;
|
|
271
|
+
readonly description?: string | ((options: {
|
|
272
|
+
context: any;
|
|
273
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
274
|
+
}) => string) | undefined;
|
|
275
|
+
readonly strict?: boolean;
|
|
276
|
+
readonly inputExamples?: {
|
|
277
|
+
input: NoInfer<{
|
|
278
|
+
[x: string]: unknown;
|
|
279
|
+
target_file: string;
|
|
280
|
+
offset?: number | undefined;
|
|
281
|
+
limit?: number | undefined;
|
|
282
|
+
pages?: string | null | undefined;
|
|
283
|
+
format?: string | null | undefined;
|
|
284
|
+
}>;
|
|
285
|
+
}[] | undefined;
|
|
286
|
+
readonly id?: never;
|
|
287
|
+
readonly isProviderExecuted?: never;
|
|
288
|
+
readonly args?: never;
|
|
289
|
+
readonly supportsDeferredResults?: never;
|
|
290
|
+
readonly type: "dynamic";
|
|
291
|
+
} | {
|
|
292
|
+
readonly toolUseKind: "readonly";
|
|
293
|
+
readonly title?: string;
|
|
294
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
295
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
296
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
297
|
+
[x: string]: unknown;
|
|
298
|
+
target_file: string;
|
|
299
|
+
offset?: number | undefined;
|
|
300
|
+
limit?: number | undefined;
|
|
301
|
+
pages?: string | null | undefined;
|
|
302
|
+
format?: string | null | undefined;
|
|
303
|
+
}>;
|
|
304
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
305
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
target_file: string;
|
|
308
|
+
offset?: number | undefined;
|
|
309
|
+
limit?: number | undefined;
|
|
310
|
+
pages?: string | null | undefined;
|
|
311
|
+
format?: string | null | undefined;
|
|
312
|
+
}, any> | undefined;
|
|
313
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
314
|
+
readonly onInputDelta?: ((options: {
|
|
315
|
+
inputTextDelta: string;
|
|
316
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
317
|
+
readonly onInputAvailable?: ((options: {
|
|
318
|
+
input: {
|
|
319
|
+
[x: string]: unknown;
|
|
320
|
+
target_file: string;
|
|
321
|
+
offset?: number | undefined;
|
|
322
|
+
limit?: number | undefined;
|
|
323
|
+
pages?: string | null | undefined;
|
|
324
|
+
format?: string | null | undefined;
|
|
325
|
+
};
|
|
326
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
327
|
+
readonly toModelOutput?: ((options: {
|
|
328
|
+
toolCallId: string;
|
|
329
|
+
input: {
|
|
330
|
+
[x: string]: unknown;
|
|
331
|
+
target_file: string;
|
|
332
|
+
offset?: number | undefined;
|
|
333
|
+
limit?: number | undefined;
|
|
334
|
+
pages?: string | null | undefined;
|
|
335
|
+
format?: string | null | undefined;
|
|
336
|
+
};
|
|
337
|
+
output: any;
|
|
338
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
339
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
340
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
341
|
+
[x: string]: unknown;
|
|
342
|
+
target_file: string;
|
|
343
|
+
offset?: number | undefined;
|
|
344
|
+
limit?: number | undefined;
|
|
345
|
+
pages?: string | null | undefined;
|
|
346
|
+
format?: string | null | undefined;
|
|
347
|
+
}, any, any> | undefined;
|
|
348
|
+
readonly description?: string | ((options: {
|
|
349
|
+
context: any;
|
|
350
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
351
|
+
}) => string) | undefined;
|
|
352
|
+
readonly strict?: boolean;
|
|
353
|
+
readonly inputExamples?: {
|
|
354
|
+
input: NoInfer<{
|
|
355
|
+
[x: string]: unknown;
|
|
356
|
+
target_file: string;
|
|
357
|
+
offset?: number | undefined;
|
|
358
|
+
limit?: number | undefined;
|
|
359
|
+
pages?: string | null | undefined;
|
|
360
|
+
format?: string | null | undefined;
|
|
361
|
+
}>;
|
|
362
|
+
}[] | undefined;
|
|
363
|
+
readonly id?: never;
|
|
364
|
+
readonly isProviderExecuted?: never;
|
|
365
|
+
readonly args?: never;
|
|
366
|
+
readonly supportsDeferredResults?: never;
|
|
367
|
+
readonly type: "dynamic";
|
|
368
|
+
} | {
|
|
369
|
+
readonly toolUseKind: "readonly";
|
|
370
|
+
readonly title?: string;
|
|
371
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
372
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
373
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
374
|
+
[x: string]: unknown;
|
|
375
|
+
target_file: string;
|
|
376
|
+
offset?: number | undefined;
|
|
377
|
+
limit?: number | undefined;
|
|
378
|
+
pages?: string | null | undefined;
|
|
379
|
+
format?: string | null | undefined;
|
|
380
|
+
}>;
|
|
381
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
382
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
383
|
+
[x: string]: unknown;
|
|
384
|
+
target_file: string;
|
|
385
|
+
offset?: number | undefined;
|
|
386
|
+
limit?: number | undefined;
|
|
387
|
+
pages?: string | null | undefined;
|
|
388
|
+
format?: string | null | undefined;
|
|
389
|
+
}, any> | undefined;
|
|
390
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
391
|
+
readonly onInputDelta?: ((options: {
|
|
392
|
+
inputTextDelta: string;
|
|
393
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
394
|
+
readonly onInputAvailable?: ((options: {
|
|
395
|
+
input: {
|
|
396
|
+
[x: string]: unknown;
|
|
397
|
+
target_file: string;
|
|
398
|
+
offset?: number | undefined;
|
|
399
|
+
limit?: number | undefined;
|
|
400
|
+
pages?: string | null | undefined;
|
|
401
|
+
format?: string | null | undefined;
|
|
402
|
+
};
|
|
403
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
404
|
+
readonly toModelOutput?: ((options: {
|
|
405
|
+
toolCallId: string;
|
|
406
|
+
input: {
|
|
407
|
+
[x: string]: unknown;
|
|
408
|
+
target_file: string;
|
|
409
|
+
offset?: number | undefined;
|
|
410
|
+
limit?: number | undefined;
|
|
411
|
+
pages?: string | null | undefined;
|
|
412
|
+
format?: string | null | undefined;
|
|
413
|
+
};
|
|
414
|
+
output: any;
|
|
415
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
416
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
417
|
+
readonly execute?: never;
|
|
418
|
+
readonly type: "provider";
|
|
419
|
+
readonly id: `${string}.${string}`;
|
|
420
|
+
readonly args: Record<string, unknown>;
|
|
421
|
+
readonly description?: never;
|
|
422
|
+
readonly strict?: never;
|
|
423
|
+
readonly inputExamples?: never;
|
|
424
|
+
readonly isProviderExecuted: false;
|
|
425
|
+
readonly supportsDeferredResults?: never;
|
|
426
|
+
} | {
|
|
427
|
+
readonly toolUseKind: "readonly";
|
|
428
|
+
readonly title?: string;
|
|
429
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
430
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
431
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
432
|
+
[x: string]: unknown;
|
|
433
|
+
target_file: string;
|
|
434
|
+
offset?: number | undefined;
|
|
435
|
+
limit?: number | undefined;
|
|
436
|
+
pages?: string | null | undefined;
|
|
437
|
+
format?: string | null | undefined;
|
|
438
|
+
}>;
|
|
439
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
440
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
441
|
+
[x: string]: unknown;
|
|
442
|
+
target_file: string;
|
|
443
|
+
offset?: number | undefined;
|
|
444
|
+
limit?: number | undefined;
|
|
445
|
+
pages?: string | null | undefined;
|
|
446
|
+
format?: string | null | undefined;
|
|
447
|
+
}, any> | undefined;
|
|
448
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
449
|
+
readonly onInputDelta?: ((options: {
|
|
450
|
+
inputTextDelta: string;
|
|
451
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
452
|
+
readonly onInputAvailable?: ((options: {
|
|
453
|
+
input: {
|
|
454
|
+
[x: string]: unknown;
|
|
455
|
+
target_file: string;
|
|
456
|
+
offset?: number | undefined;
|
|
457
|
+
limit?: number | undefined;
|
|
458
|
+
pages?: string | null | undefined;
|
|
459
|
+
format?: string | null | undefined;
|
|
460
|
+
};
|
|
461
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
462
|
+
readonly toModelOutput?: ((options: {
|
|
463
|
+
toolCallId: string;
|
|
464
|
+
input: {
|
|
465
|
+
[x: string]: unknown;
|
|
466
|
+
target_file: string;
|
|
467
|
+
offset?: number | undefined;
|
|
468
|
+
limit?: number | undefined;
|
|
469
|
+
pages?: string | null | undefined;
|
|
470
|
+
format?: string | null | undefined;
|
|
471
|
+
};
|
|
472
|
+
output: any;
|
|
473
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
474
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
475
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
476
|
+
[x: string]: unknown;
|
|
477
|
+
target_file: string;
|
|
478
|
+
offset?: number | undefined;
|
|
479
|
+
limit?: number | undefined;
|
|
480
|
+
pages?: string | null | undefined;
|
|
481
|
+
format?: string | null | undefined;
|
|
482
|
+
}, any, any> | undefined;
|
|
483
|
+
readonly type: "provider";
|
|
484
|
+
readonly id: `${string}.${string}`;
|
|
485
|
+
readonly args: Record<string, unknown>;
|
|
486
|
+
readonly description?: never;
|
|
487
|
+
readonly strict?: never;
|
|
488
|
+
readonly inputExamples?: never;
|
|
489
|
+
readonly isProviderExecuted: false;
|
|
490
|
+
readonly supportsDeferredResults?: never;
|
|
491
|
+
} | {
|
|
492
|
+
readonly toolUseKind: "readonly";
|
|
493
|
+
readonly title?: string;
|
|
494
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
495
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
496
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
497
|
+
[x: string]: unknown;
|
|
498
|
+
target_file: string;
|
|
499
|
+
offset?: number | undefined;
|
|
500
|
+
limit?: number | undefined;
|
|
501
|
+
pages?: string | null | undefined;
|
|
502
|
+
format?: string | null | undefined;
|
|
503
|
+
}>;
|
|
504
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
505
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
506
|
+
[x: string]: unknown;
|
|
507
|
+
target_file: string;
|
|
508
|
+
offset?: number | undefined;
|
|
509
|
+
limit?: number | undefined;
|
|
510
|
+
pages?: string | null | undefined;
|
|
511
|
+
format?: string | null | undefined;
|
|
512
|
+
}, any> | undefined;
|
|
513
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
514
|
+
readonly onInputDelta?: ((options: {
|
|
515
|
+
inputTextDelta: string;
|
|
516
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
517
|
+
readonly onInputAvailable?: ((options: {
|
|
518
|
+
input: {
|
|
519
|
+
[x: string]: unknown;
|
|
520
|
+
target_file: string;
|
|
521
|
+
offset?: number | undefined;
|
|
522
|
+
limit?: number | undefined;
|
|
523
|
+
pages?: string | null | undefined;
|
|
524
|
+
format?: string | null | undefined;
|
|
525
|
+
};
|
|
526
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
527
|
+
readonly toModelOutput?: ((options: {
|
|
528
|
+
toolCallId: string;
|
|
529
|
+
input: {
|
|
530
|
+
[x: string]: unknown;
|
|
531
|
+
target_file: string;
|
|
532
|
+
offset?: number | undefined;
|
|
533
|
+
limit?: number | undefined;
|
|
534
|
+
pages?: string | null | undefined;
|
|
535
|
+
format?: string | null | undefined;
|
|
536
|
+
};
|
|
537
|
+
output: any;
|
|
538
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
539
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
540
|
+
readonly execute?: never;
|
|
541
|
+
readonly type: "provider";
|
|
542
|
+
readonly id: `${string}.${string}`;
|
|
543
|
+
readonly args: Record<string, unknown>;
|
|
544
|
+
readonly description?: never;
|
|
545
|
+
readonly strict?: never;
|
|
546
|
+
readonly inputExamples?: never;
|
|
547
|
+
readonly isProviderExecuted: true;
|
|
548
|
+
readonly supportsDeferredResults?: boolean;
|
|
549
|
+
} | {
|
|
550
|
+
readonly toolUseKind: "readonly";
|
|
551
|
+
readonly title?: string;
|
|
552
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
553
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
554
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
555
|
+
[x: string]: unknown;
|
|
556
|
+
target_file: string;
|
|
557
|
+
offset?: number | undefined;
|
|
558
|
+
limit?: number | undefined;
|
|
559
|
+
pages?: string | null | undefined;
|
|
560
|
+
format?: string | null | undefined;
|
|
561
|
+
}>;
|
|
562
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
563
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
564
|
+
[x: string]: unknown;
|
|
565
|
+
target_file: string;
|
|
566
|
+
offset?: number | undefined;
|
|
567
|
+
limit?: number | undefined;
|
|
568
|
+
pages?: string | null | undefined;
|
|
569
|
+
format?: string | null | undefined;
|
|
570
|
+
}, any> | undefined;
|
|
571
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
572
|
+
readonly onInputDelta?: ((options: {
|
|
573
|
+
inputTextDelta: string;
|
|
574
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
575
|
+
readonly onInputAvailable?: ((options: {
|
|
576
|
+
input: {
|
|
577
|
+
[x: string]: unknown;
|
|
578
|
+
target_file: string;
|
|
579
|
+
offset?: number | undefined;
|
|
580
|
+
limit?: number | undefined;
|
|
581
|
+
pages?: string | null | undefined;
|
|
582
|
+
format?: string | null | undefined;
|
|
583
|
+
};
|
|
584
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
585
|
+
readonly toModelOutput?: ((options: {
|
|
586
|
+
toolCallId: string;
|
|
587
|
+
input: {
|
|
588
|
+
[x: string]: unknown;
|
|
589
|
+
target_file: string;
|
|
590
|
+
offset?: number | undefined;
|
|
591
|
+
limit?: number | undefined;
|
|
592
|
+
pages?: string | null | undefined;
|
|
593
|
+
format?: string | null | undefined;
|
|
594
|
+
};
|
|
595
|
+
output: any;
|
|
596
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
597
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
598
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
599
|
+
[x: string]: unknown;
|
|
600
|
+
target_file: string;
|
|
601
|
+
offset?: number | undefined;
|
|
602
|
+
limit?: number | undefined;
|
|
603
|
+
pages?: string | null | undefined;
|
|
604
|
+
format?: string | null | undefined;
|
|
605
|
+
}, any, any> | undefined;
|
|
606
|
+
readonly type: "provider";
|
|
607
|
+
readonly id: `${string}.${string}`;
|
|
608
|
+
readonly args: Record<string, unknown>;
|
|
609
|
+
readonly description?: never;
|
|
610
|
+
readonly strict?: never;
|
|
611
|
+
readonly inputExamples?: never;
|
|
612
|
+
readonly isProviderExecuted: true;
|
|
613
|
+
readonly supportsDeferredResults?: boolean;
|
|
614
|
+
};
|
|
615
|
+
readonly list_dir: {
|
|
616
|
+
readonly toolUseKind: "readonly";
|
|
617
|
+
readonly title?: string;
|
|
618
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
619
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
620
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
621
|
+
[x: string]: unknown;
|
|
622
|
+
target_directory: string;
|
|
623
|
+
}>;
|
|
624
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
625
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
626
|
+
[x: string]: unknown;
|
|
627
|
+
target_directory: string;
|
|
628
|
+
}, any> | undefined;
|
|
629
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
630
|
+
readonly onInputDelta?: ((options: {
|
|
631
|
+
inputTextDelta: string;
|
|
632
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
633
|
+
readonly onInputAvailable?: ((options: {
|
|
634
|
+
input: {
|
|
635
|
+
[x: string]: unknown;
|
|
636
|
+
target_directory: string;
|
|
637
|
+
};
|
|
638
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
639
|
+
readonly toModelOutput?: ((options: {
|
|
640
|
+
toolCallId: string;
|
|
641
|
+
input: {
|
|
642
|
+
[x: string]: unknown;
|
|
643
|
+
target_directory: string;
|
|
644
|
+
};
|
|
645
|
+
output: any;
|
|
646
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
647
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
648
|
+
readonly execute?: never;
|
|
649
|
+
readonly description?: string | ((options: {
|
|
650
|
+
context: any;
|
|
651
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
652
|
+
}) => string) | undefined;
|
|
653
|
+
readonly strict?: boolean;
|
|
654
|
+
readonly inputExamples?: {
|
|
655
|
+
input: NoInfer<{
|
|
656
|
+
[x: string]: unknown;
|
|
657
|
+
target_directory: string;
|
|
658
|
+
}>;
|
|
659
|
+
}[] | undefined;
|
|
660
|
+
readonly id?: never;
|
|
661
|
+
readonly isProviderExecuted?: never;
|
|
662
|
+
readonly args?: never;
|
|
663
|
+
readonly supportsDeferredResults?: never;
|
|
664
|
+
readonly type?: undefined | "function";
|
|
665
|
+
} | {
|
|
666
|
+
readonly toolUseKind: "readonly";
|
|
667
|
+
readonly title?: string;
|
|
668
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
669
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
670
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
671
|
+
[x: string]: unknown;
|
|
672
|
+
target_directory: string;
|
|
673
|
+
}>;
|
|
674
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
675
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
676
|
+
[x: string]: unknown;
|
|
677
|
+
target_directory: string;
|
|
678
|
+
}, any> | undefined;
|
|
679
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
680
|
+
readonly onInputDelta?: ((options: {
|
|
681
|
+
inputTextDelta: string;
|
|
682
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
683
|
+
readonly onInputAvailable?: ((options: {
|
|
684
|
+
input: {
|
|
685
|
+
[x: string]: unknown;
|
|
686
|
+
target_directory: string;
|
|
687
|
+
};
|
|
688
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
689
|
+
readonly toModelOutput?: ((options: {
|
|
690
|
+
toolCallId: string;
|
|
691
|
+
input: {
|
|
692
|
+
[x: string]: unknown;
|
|
693
|
+
target_directory: string;
|
|
694
|
+
};
|
|
695
|
+
output: any;
|
|
696
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
697
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
698
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
699
|
+
[x: string]: unknown;
|
|
700
|
+
target_directory: string;
|
|
701
|
+
}, any, any> | undefined;
|
|
702
|
+
readonly description?: string | ((options: {
|
|
703
|
+
context: any;
|
|
704
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
705
|
+
}) => string) | undefined;
|
|
706
|
+
readonly strict?: boolean;
|
|
707
|
+
readonly inputExamples?: {
|
|
708
|
+
input: NoInfer<{
|
|
709
|
+
[x: string]: unknown;
|
|
710
|
+
target_directory: string;
|
|
711
|
+
}>;
|
|
712
|
+
}[] | undefined;
|
|
713
|
+
readonly id?: never;
|
|
714
|
+
readonly isProviderExecuted?: never;
|
|
715
|
+
readonly args?: never;
|
|
716
|
+
readonly supportsDeferredResults?: never;
|
|
717
|
+
readonly type?: undefined | "function";
|
|
718
|
+
} | {
|
|
719
|
+
readonly toolUseKind: "readonly";
|
|
720
|
+
readonly title?: string;
|
|
721
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
722
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
723
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
724
|
+
[x: string]: unknown;
|
|
725
|
+
target_directory: string;
|
|
726
|
+
}>;
|
|
727
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
728
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
729
|
+
[x: string]: unknown;
|
|
730
|
+
target_directory: string;
|
|
731
|
+
}, any> | undefined;
|
|
732
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
733
|
+
readonly onInputDelta?: ((options: {
|
|
734
|
+
inputTextDelta: string;
|
|
735
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
736
|
+
readonly onInputAvailable?: ((options: {
|
|
737
|
+
input: {
|
|
738
|
+
[x: string]: unknown;
|
|
739
|
+
target_directory: string;
|
|
740
|
+
};
|
|
741
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
742
|
+
readonly toModelOutput?: ((options: {
|
|
743
|
+
toolCallId: string;
|
|
744
|
+
input: {
|
|
745
|
+
[x: string]: unknown;
|
|
746
|
+
target_directory: string;
|
|
747
|
+
};
|
|
748
|
+
output: any;
|
|
749
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
750
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
751
|
+
readonly execute?: never;
|
|
752
|
+
readonly description?: string | ((options: {
|
|
753
|
+
context: any;
|
|
754
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
755
|
+
}) => string) | undefined;
|
|
756
|
+
readonly strict?: boolean;
|
|
757
|
+
readonly inputExamples?: {
|
|
758
|
+
input: NoInfer<{
|
|
759
|
+
[x: string]: unknown;
|
|
760
|
+
target_directory: string;
|
|
761
|
+
}>;
|
|
762
|
+
}[] | undefined;
|
|
763
|
+
readonly id?: never;
|
|
764
|
+
readonly isProviderExecuted?: never;
|
|
765
|
+
readonly args?: never;
|
|
766
|
+
readonly supportsDeferredResults?: never;
|
|
767
|
+
readonly type: "dynamic";
|
|
768
|
+
} | {
|
|
769
|
+
readonly toolUseKind: "readonly";
|
|
770
|
+
readonly title?: string;
|
|
771
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
772
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
773
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
774
|
+
[x: string]: unknown;
|
|
775
|
+
target_directory: string;
|
|
776
|
+
}>;
|
|
777
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
778
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
779
|
+
[x: string]: unknown;
|
|
780
|
+
target_directory: string;
|
|
781
|
+
}, any> | undefined;
|
|
782
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
783
|
+
readonly onInputDelta?: ((options: {
|
|
784
|
+
inputTextDelta: string;
|
|
785
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
786
|
+
readonly onInputAvailable?: ((options: {
|
|
787
|
+
input: {
|
|
788
|
+
[x: string]: unknown;
|
|
789
|
+
target_directory: string;
|
|
790
|
+
};
|
|
791
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
792
|
+
readonly toModelOutput?: ((options: {
|
|
793
|
+
toolCallId: string;
|
|
794
|
+
input: {
|
|
795
|
+
[x: string]: unknown;
|
|
796
|
+
target_directory: string;
|
|
797
|
+
};
|
|
798
|
+
output: any;
|
|
799
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
800
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
801
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
802
|
+
[x: string]: unknown;
|
|
803
|
+
target_directory: string;
|
|
804
|
+
}, any, any> | undefined;
|
|
805
|
+
readonly description?: string | ((options: {
|
|
806
|
+
context: any;
|
|
807
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
808
|
+
}) => string) | undefined;
|
|
809
|
+
readonly strict?: boolean;
|
|
810
|
+
readonly inputExamples?: {
|
|
811
|
+
input: NoInfer<{
|
|
812
|
+
[x: string]: unknown;
|
|
813
|
+
target_directory: string;
|
|
814
|
+
}>;
|
|
815
|
+
}[] | undefined;
|
|
816
|
+
readonly id?: never;
|
|
817
|
+
readonly isProviderExecuted?: never;
|
|
818
|
+
readonly args?: never;
|
|
819
|
+
readonly supportsDeferredResults?: never;
|
|
820
|
+
readonly type: "dynamic";
|
|
821
|
+
} | {
|
|
822
|
+
readonly toolUseKind: "readonly";
|
|
823
|
+
readonly title?: string;
|
|
824
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
825
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
826
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
827
|
+
[x: string]: unknown;
|
|
828
|
+
target_directory: string;
|
|
829
|
+
}>;
|
|
830
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
831
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
832
|
+
[x: string]: unknown;
|
|
833
|
+
target_directory: string;
|
|
834
|
+
}, any> | undefined;
|
|
835
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
836
|
+
readonly onInputDelta?: ((options: {
|
|
837
|
+
inputTextDelta: string;
|
|
838
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
839
|
+
readonly onInputAvailable?: ((options: {
|
|
840
|
+
input: {
|
|
841
|
+
[x: string]: unknown;
|
|
842
|
+
target_directory: string;
|
|
843
|
+
};
|
|
844
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
845
|
+
readonly toModelOutput?: ((options: {
|
|
846
|
+
toolCallId: string;
|
|
847
|
+
input: {
|
|
848
|
+
[x: string]: unknown;
|
|
849
|
+
target_directory: string;
|
|
850
|
+
};
|
|
851
|
+
output: any;
|
|
852
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
853
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
854
|
+
readonly execute?: never;
|
|
855
|
+
readonly type: "provider";
|
|
856
|
+
readonly id: `${string}.${string}`;
|
|
857
|
+
readonly args: Record<string, unknown>;
|
|
858
|
+
readonly description?: never;
|
|
859
|
+
readonly strict?: never;
|
|
860
|
+
readonly inputExamples?: never;
|
|
861
|
+
readonly isProviderExecuted: false;
|
|
862
|
+
readonly supportsDeferredResults?: never;
|
|
863
|
+
} | {
|
|
864
|
+
readonly toolUseKind: "readonly";
|
|
865
|
+
readonly title?: string;
|
|
866
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
867
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
868
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
869
|
+
[x: string]: unknown;
|
|
870
|
+
target_directory: string;
|
|
871
|
+
}>;
|
|
872
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
873
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
874
|
+
[x: string]: unknown;
|
|
875
|
+
target_directory: string;
|
|
876
|
+
}, any> | undefined;
|
|
877
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
878
|
+
readonly onInputDelta?: ((options: {
|
|
879
|
+
inputTextDelta: string;
|
|
880
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
881
|
+
readonly onInputAvailable?: ((options: {
|
|
882
|
+
input: {
|
|
883
|
+
[x: string]: unknown;
|
|
884
|
+
target_directory: string;
|
|
885
|
+
};
|
|
886
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
887
|
+
readonly toModelOutput?: ((options: {
|
|
888
|
+
toolCallId: string;
|
|
889
|
+
input: {
|
|
890
|
+
[x: string]: unknown;
|
|
891
|
+
target_directory: string;
|
|
892
|
+
};
|
|
893
|
+
output: any;
|
|
894
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
895
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
896
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
897
|
+
[x: string]: unknown;
|
|
898
|
+
target_directory: string;
|
|
899
|
+
}, any, any> | undefined;
|
|
900
|
+
readonly type: "provider";
|
|
901
|
+
readonly id: `${string}.${string}`;
|
|
902
|
+
readonly args: Record<string, unknown>;
|
|
903
|
+
readonly description?: never;
|
|
904
|
+
readonly strict?: never;
|
|
905
|
+
readonly inputExamples?: never;
|
|
906
|
+
readonly isProviderExecuted: false;
|
|
907
|
+
readonly supportsDeferredResults?: never;
|
|
908
|
+
} | {
|
|
909
|
+
readonly toolUseKind: "readonly";
|
|
910
|
+
readonly title?: string;
|
|
911
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
912
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
913
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
914
|
+
[x: string]: unknown;
|
|
915
|
+
target_directory: string;
|
|
916
|
+
}>;
|
|
917
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
918
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
919
|
+
[x: string]: unknown;
|
|
920
|
+
target_directory: string;
|
|
921
|
+
}, any> | undefined;
|
|
922
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
923
|
+
readonly onInputDelta?: ((options: {
|
|
924
|
+
inputTextDelta: string;
|
|
925
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
926
|
+
readonly onInputAvailable?: ((options: {
|
|
927
|
+
input: {
|
|
928
|
+
[x: string]: unknown;
|
|
929
|
+
target_directory: string;
|
|
930
|
+
};
|
|
931
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
932
|
+
readonly toModelOutput?: ((options: {
|
|
933
|
+
toolCallId: string;
|
|
934
|
+
input: {
|
|
935
|
+
[x: string]: unknown;
|
|
936
|
+
target_directory: string;
|
|
937
|
+
};
|
|
938
|
+
output: any;
|
|
939
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
940
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
941
|
+
readonly execute?: never;
|
|
942
|
+
readonly type: "provider";
|
|
943
|
+
readonly id: `${string}.${string}`;
|
|
944
|
+
readonly args: Record<string, unknown>;
|
|
945
|
+
readonly description?: never;
|
|
946
|
+
readonly strict?: never;
|
|
947
|
+
readonly inputExamples?: never;
|
|
948
|
+
readonly isProviderExecuted: true;
|
|
949
|
+
readonly supportsDeferredResults?: boolean;
|
|
950
|
+
} | {
|
|
951
|
+
readonly toolUseKind: "readonly";
|
|
952
|
+
readonly title?: string;
|
|
953
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
954
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
955
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
956
|
+
[x: string]: unknown;
|
|
957
|
+
target_directory: string;
|
|
958
|
+
}>;
|
|
959
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
960
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
961
|
+
[x: string]: unknown;
|
|
962
|
+
target_directory: string;
|
|
963
|
+
}, any> | undefined;
|
|
964
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
965
|
+
readonly onInputDelta?: ((options: {
|
|
966
|
+
inputTextDelta: string;
|
|
967
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
968
|
+
readonly onInputAvailable?: ((options: {
|
|
969
|
+
input: {
|
|
970
|
+
[x: string]: unknown;
|
|
971
|
+
target_directory: string;
|
|
972
|
+
};
|
|
973
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
974
|
+
readonly toModelOutput?: ((options: {
|
|
975
|
+
toolCallId: string;
|
|
976
|
+
input: {
|
|
977
|
+
[x: string]: unknown;
|
|
978
|
+
target_directory: string;
|
|
979
|
+
};
|
|
980
|
+
output: any;
|
|
981
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
982
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
983
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
984
|
+
[x: string]: unknown;
|
|
985
|
+
target_directory: string;
|
|
986
|
+
}, any, any> | undefined;
|
|
987
|
+
readonly type: "provider";
|
|
988
|
+
readonly id: `${string}.${string}`;
|
|
989
|
+
readonly args: Record<string, unknown>;
|
|
990
|
+
readonly description?: never;
|
|
991
|
+
readonly strict?: never;
|
|
992
|
+
readonly inputExamples?: never;
|
|
993
|
+
readonly isProviderExecuted: true;
|
|
994
|
+
readonly supportsDeferredResults?: boolean;
|
|
995
|
+
};
|
|
996
|
+
readonly kill_command_or_subagent: _ai_sdk_provider_utils.Tool<{
|
|
997
|
+
[x: string]: unknown;
|
|
998
|
+
task_id: string;
|
|
999
|
+
}, any, any>;
|
|
1000
|
+
readonly todo_write: _ai_sdk_provider_utils.Tool<{
|
|
1001
|
+
[x: string]: unknown;
|
|
1002
|
+
todos: {
|
|
1003
|
+
[x: string]: unknown;
|
|
1004
|
+
id: string;
|
|
1005
|
+
content?: string | null | undefined;
|
|
1006
|
+
status?: "pending" | "in_progress" | "completed" | "cancelled" | null | undefined;
|
|
1007
|
+
}[];
|
|
1008
|
+
merge?: boolean | undefined;
|
|
1009
|
+
}, any, any>;
|
|
1010
|
+
readonly get_command_or_subagent_output: {
|
|
1011
|
+
readonly toolUseKind: "readonly";
|
|
1012
|
+
readonly title?: string;
|
|
1013
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1014
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1015
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1016
|
+
[x: string]: unknown;
|
|
1017
|
+
task_ids?: string[] | undefined;
|
|
1018
|
+
timeout_ms?: number | null | undefined;
|
|
1019
|
+
}>;
|
|
1020
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1021
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1022
|
+
[x: string]: unknown;
|
|
1023
|
+
task_ids?: string[] | undefined;
|
|
1024
|
+
timeout_ms?: number | null | undefined;
|
|
1025
|
+
}, any> | undefined;
|
|
1026
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1027
|
+
readonly onInputDelta?: ((options: {
|
|
1028
|
+
inputTextDelta: string;
|
|
1029
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1030
|
+
readonly onInputAvailable?: ((options: {
|
|
1031
|
+
input: {
|
|
1032
|
+
[x: string]: unknown;
|
|
1033
|
+
task_ids?: string[] | undefined;
|
|
1034
|
+
timeout_ms?: number | null | undefined;
|
|
1035
|
+
};
|
|
1036
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1037
|
+
readonly toModelOutput?: ((options: {
|
|
1038
|
+
toolCallId: string;
|
|
1039
|
+
input: {
|
|
1040
|
+
[x: string]: unknown;
|
|
1041
|
+
task_ids?: string[] | undefined;
|
|
1042
|
+
timeout_ms?: number | null | undefined;
|
|
1043
|
+
};
|
|
1044
|
+
output: any;
|
|
1045
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1046
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1047
|
+
readonly execute?: never;
|
|
1048
|
+
readonly description?: string | ((options: {
|
|
1049
|
+
context: any;
|
|
1050
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1051
|
+
}) => string) | undefined;
|
|
1052
|
+
readonly strict?: boolean;
|
|
1053
|
+
readonly inputExamples?: {
|
|
1054
|
+
input: NoInfer<{
|
|
1055
|
+
[x: string]: unknown;
|
|
1056
|
+
task_ids?: string[] | undefined;
|
|
1057
|
+
timeout_ms?: number | null | undefined;
|
|
1058
|
+
}>;
|
|
1059
|
+
}[] | undefined;
|
|
1060
|
+
readonly id?: never;
|
|
1061
|
+
readonly isProviderExecuted?: never;
|
|
1062
|
+
readonly args?: never;
|
|
1063
|
+
readonly supportsDeferredResults?: never;
|
|
1064
|
+
readonly type?: undefined | "function";
|
|
1065
|
+
} | {
|
|
1066
|
+
readonly toolUseKind: "readonly";
|
|
1067
|
+
readonly title?: string;
|
|
1068
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1069
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1070
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1071
|
+
[x: string]: unknown;
|
|
1072
|
+
task_ids?: string[] | undefined;
|
|
1073
|
+
timeout_ms?: number | null | undefined;
|
|
1074
|
+
}>;
|
|
1075
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1076
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1077
|
+
[x: string]: unknown;
|
|
1078
|
+
task_ids?: string[] | undefined;
|
|
1079
|
+
timeout_ms?: number | null | undefined;
|
|
1080
|
+
}, any> | undefined;
|
|
1081
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1082
|
+
readonly onInputDelta?: ((options: {
|
|
1083
|
+
inputTextDelta: string;
|
|
1084
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1085
|
+
readonly onInputAvailable?: ((options: {
|
|
1086
|
+
input: {
|
|
1087
|
+
[x: string]: unknown;
|
|
1088
|
+
task_ids?: string[] | undefined;
|
|
1089
|
+
timeout_ms?: number | null | undefined;
|
|
1090
|
+
};
|
|
1091
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1092
|
+
readonly toModelOutput?: ((options: {
|
|
1093
|
+
toolCallId: string;
|
|
1094
|
+
input: {
|
|
1095
|
+
[x: string]: unknown;
|
|
1096
|
+
task_ids?: string[] | undefined;
|
|
1097
|
+
timeout_ms?: number | null | undefined;
|
|
1098
|
+
};
|
|
1099
|
+
output: any;
|
|
1100
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1101
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1102
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1103
|
+
[x: string]: unknown;
|
|
1104
|
+
task_ids?: string[] | undefined;
|
|
1105
|
+
timeout_ms?: number | null | undefined;
|
|
1106
|
+
}, any, any> | undefined;
|
|
1107
|
+
readonly description?: string | ((options: {
|
|
1108
|
+
context: any;
|
|
1109
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1110
|
+
}) => string) | undefined;
|
|
1111
|
+
readonly strict?: boolean;
|
|
1112
|
+
readonly inputExamples?: {
|
|
1113
|
+
input: NoInfer<{
|
|
1114
|
+
[x: string]: unknown;
|
|
1115
|
+
task_ids?: string[] | undefined;
|
|
1116
|
+
timeout_ms?: number | null | undefined;
|
|
1117
|
+
}>;
|
|
1118
|
+
}[] | undefined;
|
|
1119
|
+
readonly id?: never;
|
|
1120
|
+
readonly isProviderExecuted?: never;
|
|
1121
|
+
readonly args?: never;
|
|
1122
|
+
readonly supportsDeferredResults?: never;
|
|
1123
|
+
readonly type?: undefined | "function";
|
|
1124
|
+
} | {
|
|
1125
|
+
readonly toolUseKind: "readonly";
|
|
1126
|
+
readonly title?: string;
|
|
1127
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1128
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1129
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1130
|
+
[x: string]: unknown;
|
|
1131
|
+
task_ids?: string[] | undefined;
|
|
1132
|
+
timeout_ms?: number | null | undefined;
|
|
1133
|
+
}>;
|
|
1134
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1135
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1136
|
+
[x: string]: unknown;
|
|
1137
|
+
task_ids?: string[] | undefined;
|
|
1138
|
+
timeout_ms?: number | null | undefined;
|
|
1139
|
+
}, any> | undefined;
|
|
1140
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1141
|
+
readonly onInputDelta?: ((options: {
|
|
1142
|
+
inputTextDelta: string;
|
|
1143
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1144
|
+
readonly onInputAvailable?: ((options: {
|
|
1145
|
+
input: {
|
|
1146
|
+
[x: string]: unknown;
|
|
1147
|
+
task_ids?: string[] | undefined;
|
|
1148
|
+
timeout_ms?: number | null | undefined;
|
|
1149
|
+
};
|
|
1150
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1151
|
+
readonly toModelOutput?: ((options: {
|
|
1152
|
+
toolCallId: string;
|
|
1153
|
+
input: {
|
|
1154
|
+
[x: string]: unknown;
|
|
1155
|
+
task_ids?: string[] | undefined;
|
|
1156
|
+
timeout_ms?: number | null | undefined;
|
|
1157
|
+
};
|
|
1158
|
+
output: any;
|
|
1159
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1160
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1161
|
+
readonly execute?: never;
|
|
1162
|
+
readonly description?: string | ((options: {
|
|
1163
|
+
context: any;
|
|
1164
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1165
|
+
}) => string) | undefined;
|
|
1166
|
+
readonly strict?: boolean;
|
|
1167
|
+
readonly inputExamples?: {
|
|
1168
|
+
input: NoInfer<{
|
|
1169
|
+
[x: string]: unknown;
|
|
1170
|
+
task_ids?: string[] | undefined;
|
|
1171
|
+
timeout_ms?: number | null | undefined;
|
|
1172
|
+
}>;
|
|
1173
|
+
}[] | undefined;
|
|
1174
|
+
readonly id?: never;
|
|
1175
|
+
readonly isProviderExecuted?: never;
|
|
1176
|
+
readonly args?: never;
|
|
1177
|
+
readonly supportsDeferredResults?: never;
|
|
1178
|
+
readonly type: "dynamic";
|
|
1179
|
+
} | {
|
|
1180
|
+
readonly toolUseKind: "readonly";
|
|
1181
|
+
readonly title?: string;
|
|
1182
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1183
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1184
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1185
|
+
[x: string]: unknown;
|
|
1186
|
+
task_ids?: string[] | undefined;
|
|
1187
|
+
timeout_ms?: number | null | undefined;
|
|
1188
|
+
}>;
|
|
1189
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1190
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1191
|
+
[x: string]: unknown;
|
|
1192
|
+
task_ids?: string[] | undefined;
|
|
1193
|
+
timeout_ms?: number | null | undefined;
|
|
1194
|
+
}, any> | undefined;
|
|
1195
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1196
|
+
readonly onInputDelta?: ((options: {
|
|
1197
|
+
inputTextDelta: string;
|
|
1198
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1199
|
+
readonly onInputAvailable?: ((options: {
|
|
1200
|
+
input: {
|
|
1201
|
+
[x: string]: unknown;
|
|
1202
|
+
task_ids?: string[] | undefined;
|
|
1203
|
+
timeout_ms?: number | null | undefined;
|
|
1204
|
+
};
|
|
1205
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1206
|
+
readonly toModelOutput?: ((options: {
|
|
1207
|
+
toolCallId: string;
|
|
1208
|
+
input: {
|
|
1209
|
+
[x: string]: unknown;
|
|
1210
|
+
task_ids?: string[] | undefined;
|
|
1211
|
+
timeout_ms?: number | null | undefined;
|
|
1212
|
+
};
|
|
1213
|
+
output: any;
|
|
1214
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1215
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1216
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1217
|
+
[x: string]: unknown;
|
|
1218
|
+
task_ids?: string[] | undefined;
|
|
1219
|
+
timeout_ms?: number | null | undefined;
|
|
1220
|
+
}, any, any> | undefined;
|
|
1221
|
+
readonly description?: string | ((options: {
|
|
1222
|
+
context: any;
|
|
1223
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1224
|
+
}) => string) | undefined;
|
|
1225
|
+
readonly strict?: boolean;
|
|
1226
|
+
readonly inputExamples?: {
|
|
1227
|
+
input: NoInfer<{
|
|
1228
|
+
[x: string]: unknown;
|
|
1229
|
+
task_ids?: string[] | undefined;
|
|
1230
|
+
timeout_ms?: number | null | undefined;
|
|
1231
|
+
}>;
|
|
1232
|
+
}[] | undefined;
|
|
1233
|
+
readonly id?: never;
|
|
1234
|
+
readonly isProviderExecuted?: never;
|
|
1235
|
+
readonly args?: never;
|
|
1236
|
+
readonly supportsDeferredResults?: never;
|
|
1237
|
+
readonly type: "dynamic";
|
|
1238
|
+
} | {
|
|
1239
|
+
readonly toolUseKind: "readonly";
|
|
1240
|
+
readonly title?: string;
|
|
1241
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1242
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1243
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1244
|
+
[x: string]: unknown;
|
|
1245
|
+
task_ids?: string[] | undefined;
|
|
1246
|
+
timeout_ms?: number | null | undefined;
|
|
1247
|
+
}>;
|
|
1248
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1249
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1250
|
+
[x: string]: unknown;
|
|
1251
|
+
task_ids?: string[] | undefined;
|
|
1252
|
+
timeout_ms?: number | null | undefined;
|
|
1253
|
+
}, any> | undefined;
|
|
1254
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1255
|
+
readonly onInputDelta?: ((options: {
|
|
1256
|
+
inputTextDelta: string;
|
|
1257
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1258
|
+
readonly onInputAvailable?: ((options: {
|
|
1259
|
+
input: {
|
|
1260
|
+
[x: string]: unknown;
|
|
1261
|
+
task_ids?: string[] | undefined;
|
|
1262
|
+
timeout_ms?: number | null | undefined;
|
|
1263
|
+
};
|
|
1264
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1265
|
+
readonly toModelOutput?: ((options: {
|
|
1266
|
+
toolCallId: string;
|
|
1267
|
+
input: {
|
|
1268
|
+
[x: string]: unknown;
|
|
1269
|
+
task_ids?: string[] | undefined;
|
|
1270
|
+
timeout_ms?: number | null | undefined;
|
|
1271
|
+
};
|
|
1272
|
+
output: any;
|
|
1273
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1274
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1275
|
+
readonly execute?: never;
|
|
1276
|
+
readonly type: "provider";
|
|
1277
|
+
readonly id: `${string}.${string}`;
|
|
1278
|
+
readonly args: Record<string, unknown>;
|
|
1279
|
+
readonly description?: never;
|
|
1280
|
+
readonly strict?: never;
|
|
1281
|
+
readonly inputExamples?: never;
|
|
1282
|
+
readonly isProviderExecuted: false;
|
|
1283
|
+
readonly supportsDeferredResults?: never;
|
|
1284
|
+
} | {
|
|
1285
|
+
readonly toolUseKind: "readonly";
|
|
1286
|
+
readonly title?: string;
|
|
1287
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1288
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1289
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1290
|
+
[x: string]: unknown;
|
|
1291
|
+
task_ids?: string[] | undefined;
|
|
1292
|
+
timeout_ms?: number | null | undefined;
|
|
1293
|
+
}>;
|
|
1294
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1295
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1296
|
+
[x: string]: unknown;
|
|
1297
|
+
task_ids?: string[] | undefined;
|
|
1298
|
+
timeout_ms?: number | null | undefined;
|
|
1299
|
+
}, any> | undefined;
|
|
1300
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1301
|
+
readonly onInputDelta?: ((options: {
|
|
1302
|
+
inputTextDelta: string;
|
|
1303
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1304
|
+
readonly onInputAvailable?: ((options: {
|
|
1305
|
+
input: {
|
|
1306
|
+
[x: string]: unknown;
|
|
1307
|
+
task_ids?: string[] | undefined;
|
|
1308
|
+
timeout_ms?: number | null | undefined;
|
|
1309
|
+
};
|
|
1310
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1311
|
+
readonly toModelOutput?: ((options: {
|
|
1312
|
+
toolCallId: string;
|
|
1313
|
+
input: {
|
|
1314
|
+
[x: string]: unknown;
|
|
1315
|
+
task_ids?: string[] | undefined;
|
|
1316
|
+
timeout_ms?: number | null | undefined;
|
|
1317
|
+
};
|
|
1318
|
+
output: any;
|
|
1319
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1320
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1321
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1322
|
+
[x: string]: unknown;
|
|
1323
|
+
task_ids?: string[] | undefined;
|
|
1324
|
+
timeout_ms?: number | null | undefined;
|
|
1325
|
+
}, any, any> | undefined;
|
|
1326
|
+
readonly type: "provider";
|
|
1327
|
+
readonly id: `${string}.${string}`;
|
|
1328
|
+
readonly args: Record<string, unknown>;
|
|
1329
|
+
readonly description?: never;
|
|
1330
|
+
readonly strict?: never;
|
|
1331
|
+
readonly inputExamples?: never;
|
|
1332
|
+
readonly isProviderExecuted: false;
|
|
1333
|
+
readonly supportsDeferredResults?: never;
|
|
1334
|
+
} | {
|
|
1335
|
+
readonly toolUseKind: "readonly";
|
|
1336
|
+
readonly title?: string;
|
|
1337
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1338
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1339
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1340
|
+
[x: string]: unknown;
|
|
1341
|
+
task_ids?: string[] | undefined;
|
|
1342
|
+
timeout_ms?: number | null | undefined;
|
|
1343
|
+
}>;
|
|
1344
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1345
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1346
|
+
[x: string]: unknown;
|
|
1347
|
+
task_ids?: string[] | undefined;
|
|
1348
|
+
timeout_ms?: number | null | undefined;
|
|
1349
|
+
}, any> | undefined;
|
|
1350
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1351
|
+
readonly onInputDelta?: ((options: {
|
|
1352
|
+
inputTextDelta: string;
|
|
1353
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1354
|
+
readonly onInputAvailable?: ((options: {
|
|
1355
|
+
input: {
|
|
1356
|
+
[x: string]: unknown;
|
|
1357
|
+
task_ids?: string[] | undefined;
|
|
1358
|
+
timeout_ms?: number | null | undefined;
|
|
1359
|
+
};
|
|
1360
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1361
|
+
readonly toModelOutput?: ((options: {
|
|
1362
|
+
toolCallId: string;
|
|
1363
|
+
input: {
|
|
1364
|
+
[x: string]: unknown;
|
|
1365
|
+
task_ids?: string[] | undefined;
|
|
1366
|
+
timeout_ms?: number | null | undefined;
|
|
1367
|
+
};
|
|
1368
|
+
output: any;
|
|
1369
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1370
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1371
|
+
readonly execute?: never;
|
|
1372
|
+
readonly type: "provider";
|
|
1373
|
+
readonly id: `${string}.${string}`;
|
|
1374
|
+
readonly args: Record<string, unknown>;
|
|
1375
|
+
readonly description?: never;
|
|
1376
|
+
readonly strict?: never;
|
|
1377
|
+
readonly inputExamples?: never;
|
|
1378
|
+
readonly isProviderExecuted: true;
|
|
1379
|
+
readonly supportsDeferredResults?: boolean;
|
|
1380
|
+
} | {
|
|
1381
|
+
readonly toolUseKind: "readonly";
|
|
1382
|
+
readonly title?: string;
|
|
1383
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1384
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1385
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1386
|
+
[x: string]: unknown;
|
|
1387
|
+
task_ids?: string[] | undefined;
|
|
1388
|
+
timeout_ms?: number | null | undefined;
|
|
1389
|
+
}>;
|
|
1390
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1391
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1392
|
+
[x: string]: unknown;
|
|
1393
|
+
task_ids?: string[] | undefined;
|
|
1394
|
+
timeout_ms?: number | null | undefined;
|
|
1395
|
+
}, any> | undefined;
|
|
1396
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1397
|
+
readonly onInputDelta?: ((options: {
|
|
1398
|
+
inputTextDelta: string;
|
|
1399
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1400
|
+
readonly onInputAvailable?: ((options: {
|
|
1401
|
+
input: {
|
|
1402
|
+
[x: string]: unknown;
|
|
1403
|
+
task_ids?: string[] | undefined;
|
|
1404
|
+
timeout_ms?: number | null | undefined;
|
|
1405
|
+
};
|
|
1406
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1407
|
+
readonly toModelOutput?: ((options: {
|
|
1408
|
+
toolCallId: string;
|
|
1409
|
+
input: {
|
|
1410
|
+
[x: string]: unknown;
|
|
1411
|
+
task_ids?: string[] | undefined;
|
|
1412
|
+
timeout_ms?: number | null | undefined;
|
|
1413
|
+
};
|
|
1414
|
+
output: any;
|
|
1415
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1416
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1417
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1418
|
+
[x: string]: unknown;
|
|
1419
|
+
task_ids?: string[] | undefined;
|
|
1420
|
+
timeout_ms?: number | null | undefined;
|
|
1421
|
+
}, any, any> | undefined;
|
|
1422
|
+
readonly type: "provider";
|
|
1423
|
+
readonly id: `${string}.${string}`;
|
|
1424
|
+
readonly args: Record<string, unknown>;
|
|
1425
|
+
readonly description?: never;
|
|
1426
|
+
readonly strict?: never;
|
|
1427
|
+
readonly inputExamples?: never;
|
|
1428
|
+
readonly isProviderExecuted: true;
|
|
1429
|
+
readonly supportsDeferredResults?: boolean;
|
|
1430
|
+
};
|
|
1431
|
+
readonly spawn_subagent: _ai_sdk_provider_utils.Tool<{
|
|
1432
|
+
[x: string]: unknown;
|
|
1433
|
+
prompt: string;
|
|
1434
|
+
description: string;
|
|
1435
|
+
subagent_type?: string | undefined;
|
|
1436
|
+
background?: boolean | undefined;
|
|
1437
|
+
capability_mode?: "execute" | "read-only" | "read-write" | "all" | null | undefined;
|
|
1438
|
+
isolation?: "none" | "worktree" | null | undefined;
|
|
1439
|
+
resume_from?: string | null | undefined;
|
|
1440
|
+
cwd?: string | null | undefined;
|
|
1441
|
+
model?: string | null | undefined;
|
|
1442
|
+
}, any, any>;
|
|
1443
|
+
readonly scheduler_create: _ai_sdk_provider_utils.Tool<{
|
|
1444
|
+
[x: string]: unknown;
|
|
1445
|
+
task_id?: string | null | undefined;
|
|
1446
|
+
interval?: string | null | undefined;
|
|
1447
|
+
prompt?: string | null | undefined;
|
|
1448
|
+
durable?: boolean | null | undefined;
|
|
1449
|
+
foreground?: boolean | null | undefined;
|
|
1450
|
+
fire_immediately?: boolean | undefined;
|
|
1451
|
+
}, any, any>;
|
|
1452
|
+
readonly scheduler_delete: _ai_sdk_provider_utils.Tool<{
|
|
1453
|
+
[x: string]: unknown;
|
|
1454
|
+
id: string;
|
|
1455
|
+
}, any, any>;
|
|
1456
|
+
readonly scheduler_list: {
|
|
1457
|
+
readonly toolUseKind: "readonly";
|
|
1458
|
+
readonly title?: string;
|
|
1459
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1460
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1461
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1462
|
+
[x: string]: unknown;
|
|
1463
|
+
}>;
|
|
1464
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1465
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1466
|
+
[x: string]: unknown;
|
|
1467
|
+
}, any> | undefined;
|
|
1468
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1469
|
+
readonly onInputDelta?: ((options: {
|
|
1470
|
+
inputTextDelta: string;
|
|
1471
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1472
|
+
readonly onInputAvailable?: ((options: {
|
|
1473
|
+
input: {
|
|
1474
|
+
[x: string]: unknown;
|
|
1475
|
+
};
|
|
1476
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1477
|
+
readonly toModelOutput?: ((options: {
|
|
1478
|
+
toolCallId: string;
|
|
1479
|
+
input: {
|
|
1480
|
+
[x: string]: unknown;
|
|
1481
|
+
};
|
|
1482
|
+
output: any;
|
|
1483
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1484
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1485
|
+
readonly execute?: never;
|
|
1486
|
+
readonly description?: string | ((options: {
|
|
1487
|
+
context: any;
|
|
1488
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1489
|
+
}) => string) | undefined;
|
|
1490
|
+
readonly strict?: boolean;
|
|
1491
|
+
readonly inputExamples?: {
|
|
1492
|
+
input: NoInfer<{
|
|
1493
|
+
[x: string]: unknown;
|
|
1494
|
+
}>;
|
|
1495
|
+
}[] | undefined;
|
|
1496
|
+
readonly id?: never;
|
|
1497
|
+
readonly isProviderExecuted?: never;
|
|
1498
|
+
readonly args?: never;
|
|
1499
|
+
readonly supportsDeferredResults?: never;
|
|
1500
|
+
readonly type?: undefined | "function";
|
|
1501
|
+
} | {
|
|
1502
|
+
readonly toolUseKind: "readonly";
|
|
1503
|
+
readonly title?: string;
|
|
1504
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1505
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1506
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1507
|
+
[x: string]: unknown;
|
|
1508
|
+
}>;
|
|
1509
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1510
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1511
|
+
[x: string]: unknown;
|
|
1512
|
+
}, any> | undefined;
|
|
1513
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1514
|
+
readonly onInputDelta?: ((options: {
|
|
1515
|
+
inputTextDelta: string;
|
|
1516
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1517
|
+
readonly onInputAvailable?: ((options: {
|
|
1518
|
+
input: {
|
|
1519
|
+
[x: string]: unknown;
|
|
1520
|
+
};
|
|
1521
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1522
|
+
readonly toModelOutput?: ((options: {
|
|
1523
|
+
toolCallId: string;
|
|
1524
|
+
input: {
|
|
1525
|
+
[x: string]: unknown;
|
|
1526
|
+
};
|
|
1527
|
+
output: any;
|
|
1528
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1529
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1530
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1531
|
+
[x: string]: unknown;
|
|
1532
|
+
}, any, any> | undefined;
|
|
1533
|
+
readonly description?: string | ((options: {
|
|
1534
|
+
context: any;
|
|
1535
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1536
|
+
}) => string) | undefined;
|
|
1537
|
+
readonly strict?: boolean;
|
|
1538
|
+
readonly inputExamples?: {
|
|
1539
|
+
input: NoInfer<{
|
|
1540
|
+
[x: string]: unknown;
|
|
1541
|
+
}>;
|
|
1542
|
+
}[] | undefined;
|
|
1543
|
+
readonly id?: never;
|
|
1544
|
+
readonly isProviderExecuted?: never;
|
|
1545
|
+
readonly args?: never;
|
|
1546
|
+
readonly supportsDeferredResults?: never;
|
|
1547
|
+
readonly type?: undefined | "function";
|
|
1548
|
+
} | {
|
|
1549
|
+
readonly toolUseKind: "readonly";
|
|
1550
|
+
readonly title?: string;
|
|
1551
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1552
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1553
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1554
|
+
[x: string]: unknown;
|
|
1555
|
+
}>;
|
|
1556
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1557
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1558
|
+
[x: string]: unknown;
|
|
1559
|
+
}, any> | undefined;
|
|
1560
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1561
|
+
readonly onInputDelta?: ((options: {
|
|
1562
|
+
inputTextDelta: string;
|
|
1563
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1564
|
+
readonly onInputAvailable?: ((options: {
|
|
1565
|
+
input: {
|
|
1566
|
+
[x: string]: unknown;
|
|
1567
|
+
};
|
|
1568
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1569
|
+
readonly toModelOutput?: ((options: {
|
|
1570
|
+
toolCallId: string;
|
|
1571
|
+
input: {
|
|
1572
|
+
[x: string]: unknown;
|
|
1573
|
+
};
|
|
1574
|
+
output: any;
|
|
1575
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1576
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1577
|
+
readonly execute?: never;
|
|
1578
|
+
readonly description?: string | ((options: {
|
|
1579
|
+
context: any;
|
|
1580
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1581
|
+
}) => string) | undefined;
|
|
1582
|
+
readonly strict?: boolean;
|
|
1583
|
+
readonly inputExamples?: {
|
|
1584
|
+
input: NoInfer<{
|
|
1585
|
+
[x: string]: unknown;
|
|
1586
|
+
}>;
|
|
1587
|
+
}[] | undefined;
|
|
1588
|
+
readonly id?: never;
|
|
1589
|
+
readonly isProviderExecuted?: never;
|
|
1590
|
+
readonly args?: never;
|
|
1591
|
+
readonly supportsDeferredResults?: never;
|
|
1592
|
+
readonly type: "dynamic";
|
|
1593
|
+
} | {
|
|
1594
|
+
readonly toolUseKind: "readonly";
|
|
1595
|
+
readonly title?: string;
|
|
1596
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1597
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1598
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1599
|
+
[x: string]: unknown;
|
|
1600
|
+
}>;
|
|
1601
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1602
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1603
|
+
[x: string]: unknown;
|
|
1604
|
+
}, any> | undefined;
|
|
1605
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1606
|
+
readonly onInputDelta?: ((options: {
|
|
1607
|
+
inputTextDelta: string;
|
|
1608
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1609
|
+
readonly onInputAvailable?: ((options: {
|
|
1610
|
+
input: {
|
|
1611
|
+
[x: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1614
|
+
readonly toModelOutput?: ((options: {
|
|
1615
|
+
toolCallId: string;
|
|
1616
|
+
input: {
|
|
1617
|
+
[x: string]: unknown;
|
|
1618
|
+
};
|
|
1619
|
+
output: any;
|
|
1620
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1621
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1622
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1623
|
+
[x: string]: unknown;
|
|
1624
|
+
}, any, any> | undefined;
|
|
1625
|
+
readonly description?: string | ((options: {
|
|
1626
|
+
context: any;
|
|
1627
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1628
|
+
}) => string) | undefined;
|
|
1629
|
+
readonly strict?: boolean;
|
|
1630
|
+
readonly inputExamples?: {
|
|
1631
|
+
input: NoInfer<{
|
|
1632
|
+
[x: string]: unknown;
|
|
1633
|
+
}>;
|
|
1634
|
+
}[] | undefined;
|
|
1635
|
+
readonly id?: never;
|
|
1636
|
+
readonly isProviderExecuted?: never;
|
|
1637
|
+
readonly args?: never;
|
|
1638
|
+
readonly supportsDeferredResults?: never;
|
|
1639
|
+
readonly type: "dynamic";
|
|
1640
|
+
} | {
|
|
1641
|
+
readonly toolUseKind: "readonly";
|
|
1642
|
+
readonly title?: string;
|
|
1643
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1644
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1645
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1646
|
+
[x: string]: unknown;
|
|
1647
|
+
}>;
|
|
1648
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1649
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1650
|
+
[x: string]: unknown;
|
|
1651
|
+
}, any> | undefined;
|
|
1652
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1653
|
+
readonly onInputDelta?: ((options: {
|
|
1654
|
+
inputTextDelta: string;
|
|
1655
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1656
|
+
readonly onInputAvailable?: ((options: {
|
|
1657
|
+
input: {
|
|
1658
|
+
[x: string]: unknown;
|
|
1659
|
+
};
|
|
1660
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1661
|
+
readonly toModelOutput?: ((options: {
|
|
1662
|
+
toolCallId: string;
|
|
1663
|
+
input: {
|
|
1664
|
+
[x: string]: unknown;
|
|
1665
|
+
};
|
|
1666
|
+
output: any;
|
|
1667
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1668
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1669
|
+
readonly execute?: never;
|
|
1670
|
+
readonly type: "provider";
|
|
1671
|
+
readonly id: `${string}.${string}`;
|
|
1672
|
+
readonly args: Record<string, unknown>;
|
|
1673
|
+
readonly description?: never;
|
|
1674
|
+
readonly strict?: never;
|
|
1675
|
+
readonly inputExamples?: never;
|
|
1676
|
+
readonly isProviderExecuted: false;
|
|
1677
|
+
readonly supportsDeferredResults?: never;
|
|
1678
|
+
} | {
|
|
1679
|
+
readonly toolUseKind: "readonly";
|
|
1680
|
+
readonly title?: string;
|
|
1681
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1682
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1683
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1684
|
+
[x: string]: unknown;
|
|
1685
|
+
}>;
|
|
1686
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1687
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1688
|
+
[x: string]: unknown;
|
|
1689
|
+
}, any> | undefined;
|
|
1690
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1691
|
+
readonly onInputDelta?: ((options: {
|
|
1692
|
+
inputTextDelta: string;
|
|
1693
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1694
|
+
readonly onInputAvailable?: ((options: {
|
|
1695
|
+
input: {
|
|
1696
|
+
[x: string]: unknown;
|
|
1697
|
+
};
|
|
1698
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1699
|
+
readonly toModelOutput?: ((options: {
|
|
1700
|
+
toolCallId: string;
|
|
1701
|
+
input: {
|
|
1702
|
+
[x: string]: unknown;
|
|
1703
|
+
};
|
|
1704
|
+
output: any;
|
|
1705
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1706
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1707
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1708
|
+
[x: string]: unknown;
|
|
1709
|
+
}, any, any> | undefined;
|
|
1710
|
+
readonly type: "provider";
|
|
1711
|
+
readonly id: `${string}.${string}`;
|
|
1712
|
+
readonly args: Record<string, unknown>;
|
|
1713
|
+
readonly description?: never;
|
|
1714
|
+
readonly strict?: never;
|
|
1715
|
+
readonly inputExamples?: never;
|
|
1716
|
+
readonly isProviderExecuted: false;
|
|
1717
|
+
readonly supportsDeferredResults?: never;
|
|
1718
|
+
} | {
|
|
1719
|
+
readonly toolUseKind: "readonly";
|
|
1720
|
+
readonly title?: string;
|
|
1721
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1722
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1723
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1724
|
+
[x: string]: unknown;
|
|
1725
|
+
}>;
|
|
1726
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1727
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1728
|
+
[x: string]: unknown;
|
|
1729
|
+
}, any> | undefined;
|
|
1730
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1731
|
+
readonly onInputDelta?: ((options: {
|
|
1732
|
+
inputTextDelta: string;
|
|
1733
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1734
|
+
readonly onInputAvailable?: ((options: {
|
|
1735
|
+
input: {
|
|
1736
|
+
[x: string]: unknown;
|
|
1737
|
+
};
|
|
1738
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1739
|
+
readonly toModelOutput?: ((options: {
|
|
1740
|
+
toolCallId: string;
|
|
1741
|
+
input: {
|
|
1742
|
+
[x: string]: unknown;
|
|
1743
|
+
};
|
|
1744
|
+
output: any;
|
|
1745
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1746
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1747
|
+
readonly execute?: never;
|
|
1748
|
+
readonly type: "provider";
|
|
1749
|
+
readonly id: `${string}.${string}`;
|
|
1750
|
+
readonly args: Record<string, unknown>;
|
|
1751
|
+
readonly description?: never;
|
|
1752
|
+
readonly strict?: never;
|
|
1753
|
+
readonly inputExamples?: never;
|
|
1754
|
+
readonly isProviderExecuted: true;
|
|
1755
|
+
readonly supportsDeferredResults?: boolean;
|
|
1756
|
+
} | {
|
|
1757
|
+
readonly toolUseKind: "readonly";
|
|
1758
|
+
readonly title?: string;
|
|
1759
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1760
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1761
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1762
|
+
[x: string]: unknown;
|
|
1763
|
+
}>;
|
|
1764
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1765
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1766
|
+
[x: string]: unknown;
|
|
1767
|
+
}, any> | undefined;
|
|
1768
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1769
|
+
readonly onInputDelta?: ((options: {
|
|
1770
|
+
inputTextDelta: string;
|
|
1771
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1772
|
+
readonly onInputAvailable?: ((options: {
|
|
1773
|
+
input: {
|
|
1774
|
+
[x: string]: unknown;
|
|
1775
|
+
};
|
|
1776
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1777
|
+
readonly toModelOutput?: ((options: {
|
|
1778
|
+
toolCallId: string;
|
|
1779
|
+
input: {
|
|
1780
|
+
[x: string]: unknown;
|
|
1781
|
+
};
|
|
1782
|
+
output: any;
|
|
1783
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1784
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1785
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1786
|
+
[x: string]: unknown;
|
|
1787
|
+
}, any, any> | undefined;
|
|
1788
|
+
readonly type: "provider";
|
|
1789
|
+
readonly id: `${string}.${string}`;
|
|
1790
|
+
readonly args: Record<string, unknown>;
|
|
1791
|
+
readonly description?: never;
|
|
1792
|
+
readonly strict?: never;
|
|
1793
|
+
readonly inputExamples?: never;
|
|
1794
|
+
readonly isProviderExecuted: true;
|
|
1795
|
+
readonly supportsDeferredResults?: boolean;
|
|
1796
|
+
};
|
|
1797
|
+
readonly monitor: _ai_sdk_provider_utils.Tool<{
|
|
1798
|
+
[x: string]: unknown;
|
|
1799
|
+
command: string;
|
|
1800
|
+
description: string;
|
|
1801
|
+
timeout_ms?: number | null | undefined;
|
|
1802
|
+
persistent?: boolean | undefined;
|
|
1803
|
+
}, any, any>;
|
|
1804
|
+
readonly search_tool: {
|
|
1805
|
+
readonly toolUseKind: "readonly";
|
|
1806
|
+
readonly title?: string;
|
|
1807
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1808
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1809
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1810
|
+
[x: string]: unknown;
|
|
1811
|
+
query: string;
|
|
1812
|
+
limit?: number | null | undefined;
|
|
1813
|
+
}>;
|
|
1814
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1815
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1816
|
+
[x: string]: unknown;
|
|
1817
|
+
query: string;
|
|
1818
|
+
limit?: number | null | undefined;
|
|
1819
|
+
}, any> | undefined;
|
|
1820
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1821
|
+
readonly onInputDelta?: ((options: {
|
|
1822
|
+
inputTextDelta: string;
|
|
1823
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1824
|
+
readonly onInputAvailable?: ((options: {
|
|
1825
|
+
input: {
|
|
1826
|
+
[x: string]: unknown;
|
|
1827
|
+
query: string;
|
|
1828
|
+
limit?: number | null | undefined;
|
|
1829
|
+
};
|
|
1830
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1831
|
+
readonly toModelOutput?: ((options: {
|
|
1832
|
+
toolCallId: string;
|
|
1833
|
+
input: {
|
|
1834
|
+
[x: string]: unknown;
|
|
1835
|
+
query: string;
|
|
1836
|
+
limit?: number | null | undefined;
|
|
1837
|
+
};
|
|
1838
|
+
output: any;
|
|
1839
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1840
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1841
|
+
readonly execute?: never;
|
|
1842
|
+
readonly description?: string | ((options: {
|
|
1843
|
+
context: any;
|
|
1844
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1845
|
+
}) => string) | undefined;
|
|
1846
|
+
readonly strict?: boolean;
|
|
1847
|
+
readonly inputExamples?: {
|
|
1848
|
+
input: NoInfer<{
|
|
1849
|
+
[x: string]: unknown;
|
|
1850
|
+
query: string;
|
|
1851
|
+
limit?: number | null | undefined;
|
|
1852
|
+
}>;
|
|
1853
|
+
}[] | undefined;
|
|
1854
|
+
readonly id?: never;
|
|
1855
|
+
readonly isProviderExecuted?: never;
|
|
1856
|
+
readonly args?: never;
|
|
1857
|
+
readonly supportsDeferredResults?: never;
|
|
1858
|
+
readonly type?: undefined | "function";
|
|
1859
|
+
} | {
|
|
1860
|
+
readonly toolUseKind: "readonly";
|
|
1861
|
+
readonly title?: string;
|
|
1862
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1863
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1864
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1865
|
+
[x: string]: unknown;
|
|
1866
|
+
query: string;
|
|
1867
|
+
limit?: number | null | undefined;
|
|
1868
|
+
}>;
|
|
1869
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1870
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1871
|
+
[x: string]: unknown;
|
|
1872
|
+
query: string;
|
|
1873
|
+
limit?: number | null | undefined;
|
|
1874
|
+
}, any> | undefined;
|
|
1875
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1876
|
+
readonly onInputDelta?: ((options: {
|
|
1877
|
+
inputTextDelta: string;
|
|
1878
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1879
|
+
readonly onInputAvailable?: ((options: {
|
|
1880
|
+
input: {
|
|
1881
|
+
[x: string]: unknown;
|
|
1882
|
+
query: string;
|
|
1883
|
+
limit?: number | null | undefined;
|
|
1884
|
+
};
|
|
1885
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1886
|
+
readonly toModelOutput?: ((options: {
|
|
1887
|
+
toolCallId: string;
|
|
1888
|
+
input: {
|
|
1889
|
+
[x: string]: unknown;
|
|
1890
|
+
query: string;
|
|
1891
|
+
limit?: number | null | undefined;
|
|
1892
|
+
};
|
|
1893
|
+
output: any;
|
|
1894
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1895
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1896
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
1897
|
+
[x: string]: unknown;
|
|
1898
|
+
query: string;
|
|
1899
|
+
limit?: number | null | undefined;
|
|
1900
|
+
}, any, any> | undefined;
|
|
1901
|
+
readonly description?: string | ((options: {
|
|
1902
|
+
context: any;
|
|
1903
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1904
|
+
}) => string) | undefined;
|
|
1905
|
+
readonly strict?: boolean;
|
|
1906
|
+
readonly inputExamples?: {
|
|
1907
|
+
input: NoInfer<{
|
|
1908
|
+
[x: string]: unknown;
|
|
1909
|
+
query: string;
|
|
1910
|
+
limit?: number | null | undefined;
|
|
1911
|
+
}>;
|
|
1912
|
+
}[] | undefined;
|
|
1913
|
+
readonly id?: never;
|
|
1914
|
+
readonly isProviderExecuted?: never;
|
|
1915
|
+
readonly args?: never;
|
|
1916
|
+
readonly supportsDeferredResults?: never;
|
|
1917
|
+
readonly type?: undefined | "function";
|
|
1918
|
+
} | {
|
|
1919
|
+
readonly toolUseKind: "readonly";
|
|
1920
|
+
readonly title?: string;
|
|
1921
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1922
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1923
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1924
|
+
[x: string]: unknown;
|
|
1925
|
+
query: string;
|
|
1926
|
+
limit?: number | null | undefined;
|
|
1927
|
+
}>;
|
|
1928
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1929
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1930
|
+
[x: string]: unknown;
|
|
1931
|
+
query: string;
|
|
1932
|
+
limit?: number | null | undefined;
|
|
1933
|
+
}, any> | undefined;
|
|
1934
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1935
|
+
readonly onInputDelta?: ((options: {
|
|
1936
|
+
inputTextDelta: string;
|
|
1937
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1938
|
+
readonly onInputAvailable?: ((options: {
|
|
1939
|
+
input: {
|
|
1940
|
+
[x: string]: unknown;
|
|
1941
|
+
query: string;
|
|
1942
|
+
limit?: number | null | undefined;
|
|
1943
|
+
};
|
|
1944
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1945
|
+
readonly toModelOutput?: ((options: {
|
|
1946
|
+
toolCallId: string;
|
|
1947
|
+
input: {
|
|
1948
|
+
[x: string]: unknown;
|
|
1949
|
+
query: string;
|
|
1950
|
+
limit?: number | null | undefined;
|
|
1951
|
+
};
|
|
1952
|
+
output: any;
|
|
1953
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
1954
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1955
|
+
readonly execute?: never;
|
|
1956
|
+
readonly description?: string | ((options: {
|
|
1957
|
+
context: any;
|
|
1958
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
1959
|
+
}) => string) | undefined;
|
|
1960
|
+
readonly strict?: boolean;
|
|
1961
|
+
readonly inputExamples?: {
|
|
1962
|
+
input: NoInfer<{
|
|
1963
|
+
[x: string]: unknown;
|
|
1964
|
+
query: string;
|
|
1965
|
+
limit?: number | null | undefined;
|
|
1966
|
+
}>;
|
|
1967
|
+
}[] | undefined;
|
|
1968
|
+
readonly id?: never;
|
|
1969
|
+
readonly isProviderExecuted?: never;
|
|
1970
|
+
readonly args?: never;
|
|
1971
|
+
readonly supportsDeferredResults?: never;
|
|
1972
|
+
readonly type: "dynamic";
|
|
1973
|
+
} | {
|
|
1974
|
+
readonly toolUseKind: "readonly";
|
|
1975
|
+
readonly title?: string;
|
|
1976
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
1977
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
1978
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
1979
|
+
[x: string]: unknown;
|
|
1980
|
+
query: string;
|
|
1981
|
+
limit?: number | null | undefined;
|
|
1982
|
+
}>;
|
|
1983
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
1984
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
1985
|
+
[x: string]: unknown;
|
|
1986
|
+
query: string;
|
|
1987
|
+
limit?: number | null | undefined;
|
|
1988
|
+
}, any> | undefined;
|
|
1989
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1990
|
+
readonly onInputDelta?: ((options: {
|
|
1991
|
+
inputTextDelta: string;
|
|
1992
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
1993
|
+
readonly onInputAvailable?: ((options: {
|
|
1994
|
+
input: {
|
|
1995
|
+
[x: string]: unknown;
|
|
1996
|
+
query: string;
|
|
1997
|
+
limit?: number | null | undefined;
|
|
1998
|
+
};
|
|
1999
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2000
|
+
readonly toModelOutput?: ((options: {
|
|
2001
|
+
toolCallId: string;
|
|
2002
|
+
input: {
|
|
2003
|
+
[x: string]: unknown;
|
|
2004
|
+
query: string;
|
|
2005
|
+
limit?: number | null | undefined;
|
|
2006
|
+
};
|
|
2007
|
+
output: any;
|
|
2008
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2009
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2010
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2011
|
+
[x: string]: unknown;
|
|
2012
|
+
query: string;
|
|
2013
|
+
limit?: number | null | undefined;
|
|
2014
|
+
}, any, any> | undefined;
|
|
2015
|
+
readonly description?: string | ((options: {
|
|
2016
|
+
context: any;
|
|
2017
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2018
|
+
}) => string) | undefined;
|
|
2019
|
+
readonly strict?: boolean;
|
|
2020
|
+
readonly inputExamples?: {
|
|
2021
|
+
input: NoInfer<{
|
|
2022
|
+
[x: string]: unknown;
|
|
2023
|
+
query: string;
|
|
2024
|
+
limit?: number | null | undefined;
|
|
2025
|
+
}>;
|
|
2026
|
+
}[] | undefined;
|
|
2027
|
+
readonly id?: never;
|
|
2028
|
+
readonly isProviderExecuted?: never;
|
|
2029
|
+
readonly args?: never;
|
|
2030
|
+
readonly supportsDeferredResults?: never;
|
|
2031
|
+
readonly type: "dynamic";
|
|
2032
|
+
} | {
|
|
2033
|
+
readonly toolUseKind: "readonly";
|
|
2034
|
+
readonly title?: string;
|
|
2035
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2036
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2037
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2038
|
+
[x: string]: unknown;
|
|
2039
|
+
query: string;
|
|
2040
|
+
limit?: number | null | undefined;
|
|
2041
|
+
}>;
|
|
2042
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2043
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2044
|
+
[x: string]: unknown;
|
|
2045
|
+
query: string;
|
|
2046
|
+
limit?: number | null | undefined;
|
|
2047
|
+
}, any> | undefined;
|
|
2048
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2049
|
+
readonly onInputDelta?: ((options: {
|
|
2050
|
+
inputTextDelta: string;
|
|
2051
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2052
|
+
readonly onInputAvailable?: ((options: {
|
|
2053
|
+
input: {
|
|
2054
|
+
[x: string]: unknown;
|
|
2055
|
+
query: string;
|
|
2056
|
+
limit?: number | null | undefined;
|
|
2057
|
+
};
|
|
2058
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2059
|
+
readonly toModelOutput?: ((options: {
|
|
2060
|
+
toolCallId: string;
|
|
2061
|
+
input: {
|
|
2062
|
+
[x: string]: unknown;
|
|
2063
|
+
query: string;
|
|
2064
|
+
limit?: number | null | undefined;
|
|
2065
|
+
};
|
|
2066
|
+
output: any;
|
|
2067
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2068
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2069
|
+
readonly execute?: never;
|
|
2070
|
+
readonly type: "provider";
|
|
2071
|
+
readonly id: `${string}.${string}`;
|
|
2072
|
+
readonly args: Record<string, unknown>;
|
|
2073
|
+
readonly description?: never;
|
|
2074
|
+
readonly strict?: never;
|
|
2075
|
+
readonly inputExamples?: never;
|
|
2076
|
+
readonly isProviderExecuted: false;
|
|
2077
|
+
readonly supportsDeferredResults?: never;
|
|
2078
|
+
} | {
|
|
2079
|
+
readonly toolUseKind: "readonly";
|
|
2080
|
+
readonly title?: string;
|
|
2081
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2082
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2083
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2084
|
+
[x: string]: unknown;
|
|
2085
|
+
query: string;
|
|
2086
|
+
limit?: number | null | undefined;
|
|
2087
|
+
}>;
|
|
2088
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2089
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2090
|
+
[x: string]: unknown;
|
|
2091
|
+
query: string;
|
|
2092
|
+
limit?: number | null | undefined;
|
|
2093
|
+
}, any> | undefined;
|
|
2094
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2095
|
+
readonly onInputDelta?: ((options: {
|
|
2096
|
+
inputTextDelta: string;
|
|
2097
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2098
|
+
readonly onInputAvailable?: ((options: {
|
|
2099
|
+
input: {
|
|
2100
|
+
[x: string]: unknown;
|
|
2101
|
+
query: string;
|
|
2102
|
+
limit?: number | null | undefined;
|
|
2103
|
+
};
|
|
2104
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2105
|
+
readonly toModelOutput?: ((options: {
|
|
2106
|
+
toolCallId: string;
|
|
2107
|
+
input: {
|
|
2108
|
+
[x: string]: unknown;
|
|
2109
|
+
query: string;
|
|
2110
|
+
limit?: number | null | undefined;
|
|
2111
|
+
};
|
|
2112
|
+
output: any;
|
|
2113
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2114
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2115
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2116
|
+
[x: string]: unknown;
|
|
2117
|
+
query: string;
|
|
2118
|
+
limit?: number | null | undefined;
|
|
2119
|
+
}, any, any> | undefined;
|
|
2120
|
+
readonly type: "provider";
|
|
2121
|
+
readonly id: `${string}.${string}`;
|
|
2122
|
+
readonly args: Record<string, unknown>;
|
|
2123
|
+
readonly description?: never;
|
|
2124
|
+
readonly strict?: never;
|
|
2125
|
+
readonly inputExamples?: never;
|
|
2126
|
+
readonly isProviderExecuted: false;
|
|
2127
|
+
readonly supportsDeferredResults?: never;
|
|
2128
|
+
} | {
|
|
2129
|
+
readonly toolUseKind: "readonly";
|
|
2130
|
+
readonly title?: string;
|
|
2131
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2132
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2133
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2134
|
+
[x: string]: unknown;
|
|
2135
|
+
query: string;
|
|
2136
|
+
limit?: number | null | undefined;
|
|
2137
|
+
}>;
|
|
2138
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2139
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2140
|
+
[x: string]: unknown;
|
|
2141
|
+
query: string;
|
|
2142
|
+
limit?: number | null | undefined;
|
|
2143
|
+
}, any> | undefined;
|
|
2144
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2145
|
+
readonly onInputDelta?: ((options: {
|
|
2146
|
+
inputTextDelta: string;
|
|
2147
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2148
|
+
readonly onInputAvailable?: ((options: {
|
|
2149
|
+
input: {
|
|
2150
|
+
[x: string]: unknown;
|
|
2151
|
+
query: string;
|
|
2152
|
+
limit?: number | null | undefined;
|
|
2153
|
+
};
|
|
2154
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2155
|
+
readonly toModelOutput?: ((options: {
|
|
2156
|
+
toolCallId: string;
|
|
2157
|
+
input: {
|
|
2158
|
+
[x: string]: unknown;
|
|
2159
|
+
query: string;
|
|
2160
|
+
limit?: number | null | undefined;
|
|
2161
|
+
};
|
|
2162
|
+
output: any;
|
|
2163
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2164
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2165
|
+
readonly execute?: never;
|
|
2166
|
+
readonly type: "provider";
|
|
2167
|
+
readonly id: `${string}.${string}`;
|
|
2168
|
+
readonly args: Record<string, unknown>;
|
|
2169
|
+
readonly description?: never;
|
|
2170
|
+
readonly strict?: never;
|
|
2171
|
+
readonly inputExamples?: never;
|
|
2172
|
+
readonly isProviderExecuted: true;
|
|
2173
|
+
readonly supportsDeferredResults?: boolean;
|
|
2174
|
+
} | {
|
|
2175
|
+
readonly toolUseKind: "readonly";
|
|
2176
|
+
readonly title?: string;
|
|
2177
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2178
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2179
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2180
|
+
[x: string]: unknown;
|
|
2181
|
+
query: string;
|
|
2182
|
+
limit?: number | null | undefined;
|
|
2183
|
+
}>;
|
|
2184
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2185
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2186
|
+
[x: string]: unknown;
|
|
2187
|
+
query: string;
|
|
2188
|
+
limit?: number | null | undefined;
|
|
2189
|
+
}, any> | undefined;
|
|
2190
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2191
|
+
readonly onInputDelta?: ((options: {
|
|
2192
|
+
inputTextDelta: string;
|
|
2193
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2194
|
+
readonly onInputAvailable?: ((options: {
|
|
2195
|
+
input: {
|
|
2196
|
+
[x: string]: unknown;
|
|
2197
|
+
query: string;
|
|
2198
|
+
limit?: number | null | undefined;
|
|
2199
|
+
};
|
|
2200
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2201
|
+
readonly toModelOutput?: ((options: {
|
|
2202
|
+
toolCallId: string;
|
|
2203
|
+
input: {
|
|
2204
|
+
[x: string]: unknown;
|
|
2205
|
+
query: string;
|
|
2206
|
+
limit?: number | null | undefined;
|
|
2207
|
+
};
|
|
2208
|
+
output: any;
|
|
2209
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2210
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2211
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2212
|
+
[x: string]: unknown;
|
|
2213
|
+
query: string;
|
|
2214
|
+
limit?: number | null | undefined;
|
|
2215
|
+
}, any, any> | undefined;
|
|
2216
|
+
readonly type: "provider";
|
|
2217
|
+
readonly id: `${string}.${string}`;
|
|
2218
|
+
readonly args: Record<string, unknown>;
|
|
2219
|
+
readonly description?: never;
|
|
2220
|
+
readonly strict?: never;
|
|
2221
|
+
readonly inputExamples?: never;
|
|
2222
|
+
readonly isProviderExecuted: true;
|
|
2223
|
+
readonly supportsDeferredResults?: boolean;
|
|
2224
|
+
};
|
|
2225
|
+
readonly use_tool: _ai_sdk_provider_utils.Tool<{
|
|
2226
|
+
[x: string]: unknown;
|
|
2227
|
+
tool_name: string;
|
|
2228
|
+
tool_input: {
|
|
2229
|
+
[x: string]: unknown;
|
|
2230
|
+
};
|
|
2231
|
+
}, any, any>;
|
|
2232
|
+
readonly workflow: _ai_sdk_provider_utils.Tool<{
|
|
2233
|
+
[x: string]: unknown;
|
|
2234
|
+
agent_budget?: number | null | undefined;
|
|
2235
|
+
name?: string | null | undefined;
|
|
2236
|
+
script?: string | null | undefined;
|
|
2237
|
+
script_path?: string | null | undefined;
|
|
2238
|
+
args?: unknown;
|
|
2239
|
+
resume_from_run_id?: string | null | undefined;
|
|
2240
|
+
validate_only?: boolean | undefined;
|
|
2241
|
+
}, any, any>;
|
|
2242
|
+
readonly enter_plan_mode: _ai_sdk_provider_utils.Tool<{
|
|
2243
|
+
[x: string]: unknown;
|
|
2244
|
+
}, any, any>;
|
|
2245
|
+
readonly exit_plan_mode: _ai_sdk_provider_utils.Tool<{
|
|
2246
|
+
[x: string]: unknown;
|
|
2247
|
+
}, any, any>;
|
|
2248
|
+
readonly ask_user_question: _ai_sdk_provider_utils.Tool<{
|
|
2249
|
+
[x: string]: unknown;
|
|
2250
|
+
questions: {
|
|
2251
|
+
[x: string]: unknown;
|
|
2252
|
+
question: string;
|
|
2253
|
+
options: {
|
|
2254
|
+
[x: string]: unknown;
|
|
2255
|
+
label: string;
|
|
2256
|
+
description: string;
|
|
2257
|
+
preview?: string | null | undefined;
|
|
2258
|
+
}[];
|
|
2259
|
+
multi_select?: boolean | null | undefined;
|
|
2260
|
+
}[];
|
|
2261
|
+
}, any, any>;
|
|
2262
|
+
readonly image_gen: _ai_sdk_provider_utils.Tool<{
|
|
2263
|
+
[x: string]: unknown;
|
|
2264
|
+
prompt: string;
|
|
2265
|
+
aspect_ratio?: string | undefined;
|
|
2266
|
+
}, any, any>;
|
|
2267
|
+
readonly image_edit: _ai_sdk_provider_utils.Tool<{
|
|
2268
|
+
[x: string]: unknown;
|
|
2269
|
+
prompt: string;
|
|
2270
|
+
image: string[];
|
|
2271
|
+
aspect_ratio?: string | undefined;
|
|
2272
|
+
}, any, any>;
|
|
2273
|
+
readonly image_to_video: _ai_sdk_provider_utils.Tool<{
|
|
2274
|
+
[x: string]: unknown;
|
|
2275
|
+
image: string;
|
|
2276
|
+
prompt?: string | null | undefined;
|
|
2277
|
+
duration?: number | null | undefined;
|
|
2278
|
+
resolution_name?: string | undefined;
|
|
2279
|
+
}, any, any>;
|
|
2280
|
+
readonly reference_to_video: _ai_sdk_provider_utils.Tool<{
|
|
2281
|
+
[x: string]: unknown;
|
|
2282
|
+
prompt: string;
|
|
2283
|
+
images: string[];
|
|
2284
|
+
aspect_ratio: string;
|
|
2285
|
+
duration?: number | null | undefined;
|
|
2286
|
+
resolution_name?: string | undefined;
|
|
2287
|
+
}, any, any>;
|
|
2288
|
+
};
|
|
2289
|
+
declare function createGrokBuild(settings?: GrokBuildHarnessSettings): HarnessV1<typeof GROK_BUILD_BUILTIN_TOOLS>;
|
|
2290
|
+
|
|
2291
|
+
declare const VERSION: string;
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* Default Grok Build harness instance. Equivalent to `createGrokBuild()`.
|
|
2295
|
+
*/
|
|
2296
|
+
declare const grokBuild: _ai_sdk_harness.HarnessV1<{
|
|
2297
|
+
readonly bash: _ai_sdk_harness.HarnessV1BuiltinTool<{
|
|
2298
|
+
[x: string]: unknown;
|
|
2299
|
+
command: string;
|
|
2300
|
+
timeout?: number | null | undefined;
|
|
2301
|
+
description?: string | undefined;
|
|
2302
|
+
background?: boolean | undefined;
|
|
2303
|
+
}, unknown>;
|
|
2304
|
+
readonly edit: _ai_sdk_harness.HarnessV1BuiltinTool<{
|
|
2305
|
+
[x: string]: unknown;
|
|
2306
|
+
file_path: string;
|
|
2307
|
+
old_string: string;
|
|
2308
|
+
new_string: string;
|
|
2309
|
+
replace_all?: boolean | undefined;
|
|
2310
|
+
}, unknown>;
|
|
2311
|
+
readonly grep: _ai_sdk_harness.HarnessV1BuiltinTool<{
|
|
2312
|
+
[x: string]: unknown;
|
|
2313
|
+
pattern: string;
|
|
2314
|
+
path?: string | null | undefined;
|
|
2315
|
+
glob?: string | null | undefined;
|
|
2316
|
+
'-B'?: number | undefined;
|
|
2317
|
+
'-A'?: number | undefined;
|
|
2318
|
+
'-C'?: number | undefined;
|
|
2319
|
+
'-i'?: boolean | undefined;
|
|
2320
|
+
type?: string | null | undefined;
|
|
2321
|
+
head_limit?: number | undefined;
|
|
2322
|
+
multiline?: boolean | undefined;
|
|
2323
|
+
}, unknown>;
|
|
2324
|
+
readonly webSearch: _ai_sdk_harness.HarnessV1BuiltinTool<{
|
|
2325
|
+
[x: string]: unknown;
|
|
2326
|
+
query: string;
|
|
2327
|
+
allowed_domains?: string[] | null | undefined;
|
|
2328
|
+
}, unknown>;
|
|
2329
|
+
readonly write: _ai_sdk_harness.HarnessV1BuiltinTool<{
|
|
2330
|
+
[x: string]: unknown;
|
|
2331
|
+
file_path: string;
|
|
2332
|
+
content: string;
|
|
2333
|
+
}, unknown>;
|
|
2334
|
+
readonly read_file: {
|
|
2335
|
+
readonly toolUseKind: "readonly";
|
|
2336
|
+
readonly title?: string;
|
|
2337
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2338
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2339
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2340
|
+
[x: string]: unknown;
|
|
2341
|
+
target_file: string;
|
|
2342
|
+
offset?: number | undefined;
|
|
2343
|
+
limit?: number | undefined;
|
|
2344
|
+
pages?: string | null | undefined;
|
|
2345
|
+
format?: string | null | undefined;
|
|
2346
|
+
}>;
|
|
2347
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2348
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2349
|
+
[x: string]: unknown;
|
|
2350
|
+
target_file: string;
|
|
2351
|
+
offset?: number | undefined;
|
|
2352
|
+
limit?: number | undefined;
|
|
2353
|
+
pages?: string | null | undefined;
|
|
2354
|
+
format?: string | null | undefined;
|
|
2355
|
+
}, any> | undefined;
|
|
2356
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2357
|
+
readonly onInputDelta?: ((options: {
|
|
2358
|
+
inputTextDelta: string;
|
|
2359
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2360
|
+
readonly onInputAvailable?: ((options: {
|
|
2361
|
+
input: {
|
|
2362
|
+
[x: string]: unknown;
|
|
2363
|
+
target_file: string;
|
|
2364
|
+
offset?: number | undefined;
|
|
2365
|
+
limit?: number | undefined;
|
|
2366
|
+
pages?: string | null | undefined;
|
|
2367
|
+
format?: string | null | undefined;
|
|
2368
|
+
};
|
|
2369
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2370
|
+
readonly toModelOutput?: ((options: {
|
|
2371
|
+
toolCallId: string;
|
|
2372
|
+
input: {
|
|
2373
|
+
[x: string]: unknown;
|
|
2374
|
+
target_file: string;
|
|
2375
|
+
offset?: number | undefined;
|
|
2376
|
+
limit?: number | undefined;
|
|
2377
|
+
pages?: string | null | undefined;
|
|
2378
|
+
format?: string | null | undefined;
|
|
2379
|
+
};
|
|
2380
|
+
output: any;
|
|
2381
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2382
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2383
|
+
readonly execute?: never;
|
|
2384
|
+
readonly description?: string | ((options: {
|
|
2385
|
+
context: any;
|
|
2386
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2387
|
+
}) => string) | undefined;
|
|
2388
|
+
readonly strict?: boolean;
|
|
2389
|
+
readonly inputExamples?: {
|
|
2390
|
+
input: NoInfer<{
|
|
2391
|
+
[x: string]: unknown;
|
|
2392
|
+
target_file: string;
|
|
2393
|
+
offset?: number | undefined;
|
|
2394
|
+
limit?: number | undefined;
|
|
2395
|
+
pages?: string | null | undefined;
|
|
2396
|
+
format?: string | null | undefined;
|
|
2397
|
+
}>;
|
|
2398
|
+
}[] | undefined;
|
|
2399
|
+
readonly id?: never;
|
|
2400
|
+
readonly isProviderExecuted?: never;
|
|
2401
|
+
readonly args?: never;
|
|
2402
|
+
readonly supportsDeferredResults?: never;
|
|
2403
|
+
readonly type?: undefined | "function";
|
|
2404
|
+
} | {
|
|
2405
|
+
readonly toolUseKind: "readonly";
|
|
2406
|
+
readonly title?: string;
|
|
2407
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2408
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2409
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2410
|
+
[x: string]: unknown;
|
|
2411
|
+
target_file: string;
|
|
2412
|
+
offset?: number | undefined;
|
|
2413
|
+
limit?: number | undefined;
|
|
2414
|
+
pages?: string | null | undefined;
|
|
2415
|
+
format?: string | null | undefined;
|
|
2416
|
+
}>;
|
|
2417
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2418
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2419
|
+
[x: string]: unknown;
|
|
2420
|
+
target_file: string;
|
|
2421
|
+
offset?: number | undefined;
|
|
2422
|
+
limit?: number | undefined;
|
|
2423
|
+
pages?: string | null | undefined;
|
|
2424
|
+
format?: string | null | undefined;
|
|
2425
|
+
}, any> | undefined;
|
|
2426
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2427
|
+
readonly onInputDelta?: ((options: {
|
|
2428
|
+
inputTextDelta: string;
|
|
2429
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2430
|
+
readonly onInputAvailable?: ((options: {
|
|
2431
|
+
input: {
|
|
2432
|
+
[x: string]: unknown;
|
|
2433
|
+
target_file: string;
|
|
2434
|
+
offset?: number | undefined;
|
|
2435
|
+
limit?: number | undefined;
|
|
2436
|
+
pages?: string | null | undefined;
|
|
2437
|
+
format?: string | null | undefined;
|
|
2438
|
+
};
|
|
2439
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2440
|
+
readonly toModelOutput?: ((options: {
|
|
2441
|
+
toolCallId: string;
|
|
2442
|
+
input: {
|
|
2443
|
+
[x: string]: unknown;
|
|
2444
|
+
target_file: string;
|
|
2445
|
+
offset?: number | undefined;
|
|
2446
|
+
limit?: number | undefined;
|
|
2447
|
+
pages?: string | null | undefined;
|
|
2448
|
+
format?: string | null | undefined;
|
|
2449
|
+
};
|
|
2450
|
+
output: any;
|
|
2451
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2452
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2453
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2454
|
+
[x: string]: unknown;
|
|
2455
|
+
target_file: string;
|
|
2456
|
+
offset?: number | undefined;
|
|
2457
|
+
limit?: number | undefined;
|
|
2458
|
+
pages?: string | null | undefined;
|
|
2459
|
+
format?: string | null | undefined;
|
|
2460
|
+
}, any, any> | undefined;
|
|
2461
|
+
readonly description?: string | ((options: {
|
|
2462
|
+
context: any;
|
|
2463
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2464
|
+
}) => string) | undefined;
|
|
2465
|
+
readonly strict?: boolean;
|
|
2466
|
+
readonly inputExamples?: {
|
|
2467
|
+
input: NoInfer<{
|
|
2468
|
+
[x: string]: unknown;
|
|
2469
|
+
target_file: string;
|
|
2470
|
+
offset?: number | undefined;
|
|
2471
|
+
limit?: number | undefined;
|
|
2472
|
+
pages?: string | null | undefined;
|
|
2473
|
+
format?: string | null | undefined;
|
|
2474
|
+
}>;
|
|
2475
|
+
}[] | undefined;
|
|
2476
|
+
readonly id?: never;
|
|
2477
|
+
readonly isProviderExecuted?: never;
|
|
2478
|
+
readonly args?: never;
|
|
2479
|
+
readonly supportsDeferredResults?: never;
|
|
2480
|
+
readonly type?: undefined | "function";
|
|
2481
|
+
} | {
|
|
2482
|
+
readonly toolUseKind: "readonly";
|
|
2483
|
+
readonly title?: string;
|
|
2484
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2485
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2486
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2487
|
+
[x: string]: unknown;
|
|
2488
|
+
target_file: string;
|
|
2489
|
+
offset?: number | undefined;
|
|
2490
|
+
limit?: number | undefined;
|
|
2491
|
+
pages?: string | null | undefined;
|
|
2492
|
+
format?: string | null | undefined;
|
|
2493
|
+
}>;
|
|
2494
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2495
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2496
|
+
[x: string]: unknown;
|
|
2497
|
+
target_file: string;
|
|
2498
|
+
offset?: number | undefined;
|
|
2499
|
+
limit?: number | undefined;
|
|
2500
|
+
pages?: string | null | undefined;
|
|
2501
|
+
format?: string | null | undefined;
|
|
2502
|
+
}, any> | undefined;
|
|
2503
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2504
|
+
readonly onInputDelta?: ((options: {
|
|
2505
|
+
inputTextDelta: string;
|
|
2506
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2507
|
+
readonly onInputAvailable?: ((options: {
|
|
2508
|
+
input: {
|
|
2509
|
+
[x: string]: unknown;
|
|
2510
|
+
target_file: string;
|
|
2511
|
+
offset?: number | undefined;
|
|
2512
|
+
limit?: number | undefined;
|
|
2513
|
+
pages?: string | null | undefined;
|
|
2514
|
+
format?: string | null | undefined;
|
|
2515
|
+
};
|
|
2516
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2517
|
+
readonly toModelOutput?: ((options: {
|
|
2518
|
+
toolCallId: string;
|
|
2519
|
+
input: {
|
|
2520
|
+
[x: string]: unknown;
|
|
2521
|
+
target_file: string;
|
|
2522
|
+
offset?: number | undefined;
|
|
2523
|
+
limit?: number | undefined;
|
|
2524
|
+
pages?: string | null | undefined;
|
|
2525
|
+
format?: string | null | undefined;
|
|
2526
|
+
};
|
|
2527
|
+
output: any;
|
|
2528
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2529
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2530
|
+
readonly execute?: never;
|
|
2531
|
+
readonly description?: string | ((options: {
|
|
2532
|
+
context: any;
|
|
2533
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2534
|
+
}) => string) | undefined;
|
|
2535
|
+
readonly strict?: boolean;
|
|
2536
|
+
readonly inputExamples?: {
|
|
2537
|
+
input: NoInfer<{
|
|
2538
|
+
[x: string]: unknown;
|
|
2539
|
+
target_file: string;
|
|
2540
|
+
offset?: number | undefined;
|
|
2541
|
+
limit?: number | undefined;
|
|
2542
|
+
pages?: string | null | undefined;
|
|
2543
|
+
format?: string | null | undefined;
|
|
2544
|
+
}>;
|
|
2545
|
+
}[] | undefined;
|
|
2546
|
+
readonly id?: never;
|
|
2547
|
+
readonly isProviderExecuted?: never;
|
|
2548
|
+
readonly args?: never;
|
|
2549
|
+
readonly supportsDeferredResults?: never;
|
|
2550
|
+
readonly type: "dynamic";
|
|
2551
|
+
} | {
|
|
2552
|
+
readonly toolUseKind: "readonly";
|
|
2553
|
+
readonly title?: string;
|
|
2554
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2555
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2556
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2557
|
+
[x: string]: unknown;
|
|
2558
|
+
target_file: string;
|
|
2559
|
+
offset?: number | undefined;
|
|
2560
|
+
limit?: number | undefined;
|
|
2561
|
+
pages?: string | null | undefined;
|
|
2562
|
+
format?: string | null | undefined;
|
|
2563
|
+
}>;
|
|
2564
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2565
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2566
|
+
[x: string]: unknown;
|
|
2567
|
+
target_file: string;
|
|
2568
|
+
offset?: number | undefined;
|
|
2569
|
+
limit?: number | undefined;
|
|
2570
|
+
pages?: string | null | undefined;
|
|
2571
|
+
format?: string | null | undefined;
|
|
2572
|
+
}, any> | undefined;
|
|
2573
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2574
|
+
readonly onInputDelta?: ((options: {
|
|
2575
|
+
inputTextDelta: string;
|
|
2576
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2577
|
+
readonly onInputAvailable?: ((options: {
|
|
2578
|
+
input: {
|
|
2579
|
+
[x: string]: unknown;
|
|
2580
|
+
target_file: string;
|
|
2581
|
+
offset?: number | undefined;
|
|
2582
|
+
limit?: number | undefined;
|
|
2583
|
+
pages?: string | null | undefined;
|
|
2584
|
+
format?: string | null | undefined;
|
|
2585
|
+
};
|
|
2586
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2587
|
+
readonly toModelOutput?: ((options: {
|
|
2588
|
+
toolCallId: string;
|
|
2589
|
+
input: {
|
|
2590
|
+
[x: string]: unknown;
|
|
2591
|
+
target_file: string;
|
|
2592
|
+
offset?: number | undefined;
|
|
2593
|
+
limit?: number | undefined;
|
|
2594
|
+
pages?: string | null | undefined;
|
|
2595
|
+
format?: string | null | undefined;
|
|
2596
|
+
};
|
|
2597
|
+
output: any;
|
|
2598
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2599
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2600
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2601
|
+
[x: string]: unknown;
|
|
2602
|
+
target_file: string;
|
|
2603
|
+
offset?: number | undefined;
|
|
2604
|
+
limit?: number | undefined;
|
|
2605
|
+
pages?: string | null | undefined;
|
|
2606
|
+
format?: string | null | undefined;
|
|
2607
|
+
}, any, any> | undefined;
|
|
2608
|
+
readonly description?: string | ((options: {
|
|
2609
|
+
context: any;
|
|
2610
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2611
|
+
}) => string) | undefined;
|
|
2612
|
+
readonly strict?: boolean;
|
|
2613
|
+
readonly inputExamples?: {
|
|
2614
|
+
input: NoInfer<{
|
|
2615
|
+
[x: string]: unknown;
|
|
2616
|
+
target_file: string;
|
|
2617
|
+
offset?: number | undefined;
|
|
2618
|
+
limit?: number | undefined;
|
|
2619
|
+
pages?: string | null | undefined;
|
|
2620
|
+
format?: string | null | undefined;
|
|
2621
|
+
}>;
|
|
2622
|
+
}[] | undefined;
|
|
2623
|
+
readonly id?: never;
|
|
2624
|
+
readonly isProviderExecuted?: never;
|
|
2625
|
+
readonly args?: never;
|
|
2626
|
+
readonly supportsDeferredResults?: never;
|
|
2627
|
+
readonly type: "dynamic";
|
|
2628
|
+
} | {
|
|
2629
|
+
readonly toolUseKind: "readonly";
|
|
2630
|
+
readonly title?: string;
|
|
2631
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2632
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2633
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2634
|
+
[x: string]: unknown;
|
|
2635
|
+
target_file: string;
|
|
2636
|
+
offset?: number | undefined;
|
|
2637
|
+
limit?: number | undefined;
|
|
2638
|
+
pages?: string | null | undefined;
|
|
2639
|
+
format?: string | null | undefined;
|
|
2640
|
+
}>;
|
|
2641
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2642
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2643
|
+
[x: string]: unknown;
|
|
2644
|
+
target_file: string;
|
|
2645
|
+
offset?: number | undefined;
|
|
2646
|
+
limit?: number | undefined;
|
|
2647
|
+
pages?: string | null | undefined;
|
|
2648
|
+
format?: string | null | undefined;
|
|
2649
|
+
}, any> | undefined;
|
|
2650
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2651
|
+
readonly onInputDelta?: ((options: {
|
|
2652
|
+
inputTextDelta: string;
|
|
2653
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2654
|
+
readonly onInputAvailable?: ((options: {
|
|
2655
|
+
input: {
|
|
2656
|
+
[x: string]: unknown;
|
|
2657
|
+
target_file: string;
|
|
2658
|
+
offset?: number | undefined;
|
|
2659
|
+
limit?: number | undefined;
|
|
2660
|
+
pages?: string | null | undefined;
|
|
2661
|
+
format?: string | null | undefined;
|
|
2662
|
+
};
|
|
2663
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2664
|
+
readonly toModelOutput?: ((options: {
|
|
2665
|
+
toolCallId: string;
|
|
2666
|
+
input: {
|
|
2667
|
+
[x: string]: unknown;
|
|
2668
|
+
target_file: string;
|
|
2669
|
+
offset?: number | undefined;
|
|
2670
|
+
limit?: number | undefined;
|
|
2671
|
+
pages?: string | null | undefined;
|
|
2672
|
+
format?: string | null | undefined;
|
|
2673
|
+
};
|
|
2674
|
+
output: any;
|
|
2675
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2676
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2677
|
+
readonly execute?: never;
|
|
2678
|
+
readonly type: "provider";
|
|
2679
|
+
readonly id: `${string}.${string}`;
|
|
2680
|
+
readonly args: Record<string, unknown>;
|
|
2681
|
+
readonly description?: never;
|
|
2682
|
+
readonly strict?: never;
|
|
2683
|
+
readonly inputExamples?: never;
|
|
2684
|
+
readonly isProviderExecuted: false;
|
|
2685
|
+
readonly supportsDeferredResults?: never;
|
|
2686
|
+
} | {
|
|
2687
|
+
readonly toolUseKind: "readonly";
|
|
2688
|
+
readonly title?: string;
|
|
2689
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2690
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2691
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2692
|
+
[x: string]: unknown;
|
|
2693
|
+
target_file: string;
|
|
2694
|
+
offset?: number | undefined;
|
|
2695
|
+
limit?: number | undefined;
|
|
2696
|
+
pages?: string | null | undefined;
|
|
2697
|
+
format?: string | null | undefined;
|
|
2698
|
+
}>;
|
|
2699
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2700
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2701
|
+
[x: string]: unknown;
|
|
2702
|
+
target_file: string;
|
|
2703
|
+
offset?: number | undefined;
|
|
2704
|
+
limit?: number | undefined;
|
|
2705
|
+
pages?: string | null | undefined;
|
|
2706
|
+
format?: string | null | undefined;
|
|
2707
|
+
}, any> | undefined;
|
|
2708
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2709
|
+
readonly onInputDelta?: ((options: {
|
|
2710
|
+
inputTextDelta: string;
|
|
2711
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2712
|
+
readonly onInputAvailable?: ((options: {
|
|
2713
|
+
input: {
|
|
2714
|
+
[x: string]: unknown;
|
|
2715
|
+
target_file: string;
|
|
2716
|
+
offset?: number | undefined;
|
|
2717
|
+
limit?: number | undefined;
|
|
2718
|
+
pages?: string | null | undefined;
|
|
2719
|
+
format?: string | null | undefined;
|
|
2720
|
+
};
|
|
2721
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2722
|
+
readonly toModelOutput?: ((options: {
|
|
2723
|
+
toolCallId: string;
|
|
2724
|
+
input: {
|
|
2725
|
+
[x: string]: unknown;
|
|
2726
|
+
target_file: string;
|
|
2727
|
+
offset?: number | undefined;
|
|
2728
|
+
limit?: number | undefined;
|
|
2729
|
+
pages?: string | null | undefined;
|
|
2730
|
+
format?: string | null | undefined;
|
|
2731
|
+
};
|
|
2732
|
+
output: any;
|
|
2733
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2734
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2735
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2736
|
+
[x: string]: unknown;
|
|
2737
|
+
target_file: string;
|
|
2738
|
+
offset?: number | undefined;
|
|
2739
|
+
limit?: number | undefined;
|
|
2740
|
+
pages?: string | null | undefined;
|
|
2741
|
+
format?: string | null | undefined;
|
|
2742
|
+
}, any, any> | undefined;
|
|
2743
|
+
readonly type: "provider";
|
|
2744
|
+
readonly id: `${string}.${string}`;
|
|
2745
|
+
readonly args: Record<string, unknown>;
|
|
2746
|
+
readonly description?: never;
|
|
2747
|
+
readonly strict?: never;
|
|
2748
|
+
readonly inputExamples?: never;
|
|
2749
|
+
readonly isProviderExecuted: false;
|
|
2750
|
+
readonly supportsDeferredResults?: never;
|
|
2751
|
+
} | {
|
|
2752
|
+
readonly toolUseKind: "readonly";
|
|
2753
|
+
readonly title?: string;
|
|
2754
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2755
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2756
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2757
|
+
[x: string]: unknown;
|
|
2758
|
+
target_file: string;
|
|
2759
|
+
offset?: number | undefined;
|
|
2760
|
+
limit?: number | undefined;
|
|
2761
|
+
pages?: string | null | undefined;
|
|
2762
|
+
format?: string | null | undefined;
|
|
2763
|
+
}>;
|
|
2764
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2765
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2766
|
+
[x: string]: unknown;
|
|
2767
|
+
target_file: string;
|
|
2768
|
+
offset?: number | undefined;
|
|
2769
|
+
limit?: number | undefined;
|
|
2770
|
+
pages?: string | null | undefined;
|
|
2771
|
+
format?: string | null | undefined;
|
|
2772
|
+
}, any> | undefined;
|
|
2773
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2774
|
+
readonly onInputDelta?: ((options: {
|
|
2775
|
+
inputTextDelta: string;
|
|
2776
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2777
|
+
readonly onInputAvailable?: ((options: {
|
|
2778
|
+
input: {
|
|
2779
|
+
[x: string]: unknown;
|
|
2780
|
+
target_file: string;
|
|
2781
|
+
offset?: number | undefined;
|
|
2782
|
+
limit?: number | undefined;
|
|
2783
|
+
pages?: string | null | undefined;
|
|
2784
|
+
format?: string | null | undefined;
|
|
2785
|
+
};
|
|
2786
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2787
|
+
readonly toModelOutput?: ((options: {
|
|
2788
|
+
toolCallId: string;
|
|
2789
|
+
input: {
|
|
2790
|
+
[x: string]: unknown;
|
|
2791
|
+
target_file: string;
|
|
2792
|
+
offset?: number | undefined;
|
|
2793
|
+
limit?: number | undefined;
|
|
2794
|
+
pages?: string | null | undefined;
|
|
2795
|
+
format?: string | null | undefined;
|
|
2796
|
+
};
|
|
2797
|
+
output: any;
|
|
2798
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2799
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2800
|
+
readonly execute?: never;
|
|
2801
|
+
readonly type: "provider";
|
|
2802
|
+
readonly id: `${string}.${string}`;
|
|
2803
|
+
readonly args: Record<string, unknown>;
|
|
2804
|
+
readonly description?: never;
|
|
2805
|
+
readonly strict?: never;
|
|
2806
|
+
readonly inputExamples?: never;
|
|
2807
|
+
readonly isProviderExecuted: true;
|
|
2808
|
+
readonly supportsDeferredResults?: boolean;
|
|
2809
|
+
} | {
|
|
2810
|
+
readonly toolUseKind: "readonly";
|
|
2811
|
+
readonly title?: string;
|
|
2812
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2813
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2814
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2815
|
+
[x: string]: unknown;
|
|
2816
|
+
target_file: string;
|
|
2817
|
+
offset?: number | undefined;
|
|
2818
|
+
limit?: number | undefined;
|
|
2819
|
+
pages?: string | null | undefined;
|
|
2820
|
+
format?: string | null | undefined;
|
|
2821
|
+
}>;
|
|
2822
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2823
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2824
|
+
[x: string]: unknown;
|
|
2825
|
+
target_file: string;
|
|
2826
|
+
offset?: number | undefined;
|
|
2827
|
+
limit?: number | undefined;
|
|
2828
|
+
pages?: string | null | undefined;
|
|
2829
|
+
format?: string | null | undefined;
|
|
2830
|
+
}, any> | undefined;
|
|
2831
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2832
|
+
readonly onInputDelta?: ((options: {
|
|
2833
|
+
inputTextDelta: string;
|
|
2834
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2835
|
+
readonly onInputAvailable?: ((options: {
|
|
2836
|
+
input: {
|
|
2837
|
+
[x: string]: unknown;
|
|
2838
|
+
target_file: string;
|
|
2839
|
+
offset?: number | undefined;
|
|
2840
|
+
limit?: number | undefined;
|
|
2841
|
+
pages?: string | null | undefined;
|
|
2842
|
+
format?: string | null | undefined;
|
|
2843
|
+
};
|
|
2844
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2845
|
+
readonly toModelOutput?: ((options: {
|
|
2846
|
+
toolCallId: string;
|
|
2847
|
+
input: {
|
|
2848
|
+
[x: string]: unknown;
|
|
2849
|
+
target_file: string;
|
|
2850
|
+
offset?: number | undefined;
|
|
2851
|
+
limit?: number | undefined;
|
|
2852
|
+
pages?: string | null | undefined;
|
|
2853
|
+
format?: string | null | undefined;
|
|
2854
|
+
};
|
|
2855
|
+
output: any;
|
|
2856
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2857
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2858
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2859
|
+
[x: string]: unknown;
|
|
2860
|
+
target_file: string;
|
|
2861
|
+
offset?: number | undefined;
|
|
2862
|
+
limit?: number | undefined;
|
|
2863
|
+
pages?: string | null | undefined;
|
|
2864
|
+
format?: string | null | undefined;
|
|
2865
|
+
}, any, any> | undefined;
|
|
2866
|
+
readonly type: "provider";
|
|
2867
|
+
readonly id: `${string}.${string}`;
|
|
2868
|
+
readonly args: Record<string, unknown>;
|
|
2869
|
+
readonly description?: never;
|
|
2870
|
+
readonly strict?: never;
|
|
2871
|
+
readonly inputExamples?: never;
|
|
2872
|
+
readonly isProviderExecuted: true;
|
|
2873
|
+
readonly supportsDeferredResults?: boolean;
|
|
2874
|
+
};
|
|
2875
|
+
readonly list_dir: {
|
|
2876
|
+
readonly toolUseKind: "readonly";
|
|
2877
|
+
readonly title?: string;
|
|
2878
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2879
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2880
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2881
|
+
[x: string]: unknown;
|
|
2882
|
+
target_directory: string;
|
|
2883
|
+
}>;
|
|
2884
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2885
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2886
|
+
[x: string]: unknown;
|
|
2887
|
+
target_directory: string;
|
|
2888
|
+
}, any> | undefined;
|
|
2889
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2890
|
+
readonly onInputDelta?: ((options: {
|
|
2891
|
+
inputTextDelta: string;
|
|
2892
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2893
|
+
readonly onInputAvailable?: ((options: {
|
|
2894
|
+
input: {
|
|
2895
|
+
[x: string]: unknown;
|
|
2896
|
+
target_directory: string;
|
|
2897
|
+
};
|
|
2898
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2899
|
+
readonly toModelOutput?: ((options: {
|
|
2900
|
+
toolCallId: string;
|
|
2901
|
+
input: {
|
|
2902
|
+
[x: string]: unknown;
|
|
2903
|
+
target_directory: string;
|
|
2904
|
+
};
|
|
2905
|
+
output: any;
|
|
2906
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2907
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2908
|
+
readonly execute?: never;
|
|
2909
|
+
readonly description?: string | ((options: {
|
|
2910
|
+
context: any;
|
|
2911
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2912
|
+
}) => string) | undefined;
|
|
2913
|
+
readonly strict?: boolean;
|
|
2914
|
+
readonly inputExamples?: {
|
|
2915
|
+
input: NoInfer<{
|
|
2916
|
+
[x: string]: unknown;
|
|
2917
|
+
target_directory: string;
|
|
2918
|
+
}>;
|
|
2919
|
+
}[] | undefined;
|
|
2920
|
+
readonly id?: never;
|
|
2921
|
+
readonly isProviderExecuted?: never;
|
|
2922
|
+
readonly args?: never;
|
|
2923
|
+
readonly supportsDeferredResults?: never;
|
|
2924
|
+
readonly type?: undefined | "function";
|
|
2925
|
+
} | {
|
|
2926
|
+
readonly toolUseKind: "readonly";
|
|
2927
|
+
readonly title?: string;
|
|
2928
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2929
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2930
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2931
|
+
[x: string]: unknown;
|
|
2932
|
+
target_directory: string;
|
|
2933
|
+
}>;
|
|
2934
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2935
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2936
|
+
[x: string]: unknown;
|
|
2937
|
+
target_directory: string;
|
|
2938
|
+
}, any> | undefined;
|
|
2939
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2940
|
+
readonly onInputDelta?: ((options: {
|
|
2941
|
+
inputTextDelta: string;
|
|
2942
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2943
|
+
readonly onInputAvailable?: ((options: {
|
|
2944
|
+
input: {
|
|
2945
|
+
[x: string]: unknown;
|
|
2946
|
+
target_directory: string;
|
|
2947
|
+
};
|
|
2948
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2949
|
+
readonly toModelOutput?: ((options: {
|
|
2950
|
+
toolCallId: string;
|
|
2951
|
+
input: {
|
|
2952
|
+
[x: string]: unknown;
|
|
2953
|
+
target_directory: string;
|
|
2954
|
+
};
|
|
2955
|
+
output: any;
|
|
2956
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
2957
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2958
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
2959
|
+
[x: string]: unknown;
|
|
2960
|
+
target_directory: string;
|
|
2961
|
+
}, any, any> | undefined;
|
|
2962
|
+
readonly description?: string | ((options: {
|
|
2963
|
+
context: any;
|
|
2964
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
2965
|
+
}) => string) | undefined;
|
|
2966
|
+
readonly strict?: boolean;
|
|
2967
|
+
readonly inputExamples?: {
|
|
2968
|
+
input: NoInfer<{
|
|
2969
|
+
[x: string]: unknown;
|
|
2970
|
+
target_directory: string;
|
|
2971
|
+
}>;
|
|
2972
|
+
}[] | undefined;
|
|
2973
|
+
readonly id?: never;
|
|
2974
|
+
readonly isProviderExecuted?: never;
|
|
2975
|
+
readonly args?: never;
|
|
2976
|
+
readonly supportsDeferredResults?: never;
|
|
2977
|
+
readonly type?: undefined | "function";
|
|
2978
|
+
} | {
|
|
2979
|
+
readonly toolUseKind: "readonly";
|
|
2980
|
+
readonly title?: string;
|
|
2981
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
2982
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
2983
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
2984
|
+
[x: string]: unknown;
|
|
2985
|
+
target_directory: string;
|
|
2986
|
+
}>;
|
|
2987
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
2988
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
2989
|
+
[x: string]: unknown;
|
|
2990
|
+
target_directory: string;
|
|
2991
|
+
}, any> | undefined;
|
|
2992
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2993
|
+
readonly onInputDelta?: ((options: {
|
|
2994
|
+
inputTextDelta: string;
|
|
2995
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
2996
|
+
readonly onInputAvailable?: ((options: {
|
|
2997
|
+
input: {
|
|
2998
|
+
[x: string]: unknown;
|
|
2999
|
+
target_directory: string;
|
|
3000
|
+
};
|
|
3001
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3002
|
+
readonly toModelOutput?: ((options: {
|
|
3003
|
+
toolCallId: string;
|
|
3004
|
+
input: {
|
|
3005
|
+
[x: string]: unknown;
|
|
3006
|
+
target_directory: string;
|
|
3007
|
+
};
|
|
3008
|
+
output: any;
|
|
3009
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3010
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3011
|
+
readonly execute?: never;
|
|
3012
|
+
readonly description?: string | ((options: {
|
|
3013
|
+
context: any;
|
|
3014
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3015
|
+
}) => string) | undefined;
|
|
3016
|
+
readonly strict?: boolean;
|
|
3017
|
+
readonly inputExamples?: {
|
|
3018
|
+
input: NoInfer<{
|
|
3019
|
+
[x: string]: unknown;
|
|
3020
|
+
target_directory: string;
|
|
3021
|
+
}>;
|
|
3022
|
+
}[] | undefined;
|
|
3023
|
+
readonly id?: never;
|
|
3024
|
+
readonly isProviderExecuted?: never;
|
|
3025
|
+
readonly args?: never;
|
|
3026
|
+
readonly supportsDeferredResults?: never;
|
|
3027
|
+
readonly type: "dynamic";
|
|
3028
|
+
} | {
|
|
3029
|
+
readonly toolUseKind: "readonly";
|
|
3030
|
+
readonly title?: string;
|
|
3031
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3032
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3033
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3034
|
+
[x: string]: unknown;
|
|
3035
|
+
target_directory: string;
|
|
3036
|
+
}>;
|
|
3037
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3038
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3039
|
+
[x: string]: unknown;
|
|
3040
|
+
target_directory: string;
|
|
3041
|
+
}, any> | undefined;
|
|
3042
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3043
|
+
readonly onInputDelta?: ((options: {
|
|
3044
|
+
inputTextDelta: string;
|
|
3045
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3046
|
+
readonly onInputAvailable?: ((options: {
|
|
3047
|
+
input: {
|
|
3048
|
+
[x: string]: unknown;
|
|
3049
|
+
target_directory: string;
|
|
3050
|
+
};
|
|
3051
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3052
|
+
readonly toModelOutput?: ((options: {
|
|
3053
|
+
toolCallId: string;
|
|
3054
|
+
input: {
|
|
3055
|
+
[x: string]: unknown;
|
|
3056
|
+
target_directory: string;
|
|
3057
|
+
};
|
|
3058
|
+
output: any;
|
|
3059
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3060
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3061
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3062
|
+
[x: string]: unknown;
|
|
3063
|
+
target_directory: string;
|
|
3064
|
+
}, any, any> | undefined;
|
|
3065
|
+
readonly description?: string | ((options: {
|
|
3066
|
+
context: any;
|
|
3067
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3068
|
+
}) => string) | undefined;
|
|
3069
|
+
readonly strict?: boolean;
|
|
3070
|
+
readonly inputExamples?: {
|
|
3071
|
+
input: NoInfer<{
|
|
3072
|
+
[x: string]: unknown;
|
|
3073
|
+
target_directory: string;
|
|
3074
|
+
}>;
|
|
3075
|
+
}[] | undefined;
|
|
3076
|
+
readonly id?: never;
|
|
3077
|
+
readonly isProviderExecuted?: never;
|
|
3078
|
+
readonly args?: never;
|
|
3079
|
+
readonly supportsDeferredResults?: never;
|
|
3080
|
+
readonly type: "dynamic";
|
|
3081
|
+
} | {
|
|
3082
|
+
readonly toolUseKind: "readonly";
|
|
3083
|
+
readonly title?: string;
|
|
3084
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3085
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3086
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3087
|
+
[x: string]: unknown;
|
|
3088
|
+
target_directory: string;
|
|
3089
|
+
}>;
|
|
3090
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3091
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3092
|
+
[x: string]: unknown;
|
|
3093
|
+
target_directory: string;
|
|
3094
|
+
}, any> | undefined;
|
|
3095
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3096
|
+
readonly onInputDelta?: ((options: {
|
|
3097
|
+
inputTextDelta: string;
|
|
3098
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3099
|
+
readonly onInputAvailable?: ((options: {
|
|
3100
|
+
input: {
|
|
3101
|
+
[x: string]: unknown;
|
|
3102
|
+
target_directory: string;
|
|
3103
|
+
};
|
|
3104
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3105
|
+
readonly toModelOutput?: ((options: {
|
|
3106
|
+
toolCallId: string;
|
|
3107
|
+
input: {
|
|
3108
|
+
[x: string]: unknown;
|
|
3109
|
+
target_directory: string;
|
|
3110
|
+
};
|
|
3111
|
+
output: any;
|
|
3112
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3113
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3114
|
+
readonly execute?: never;
|
|
3115
|
+
readonly type: "provider";
|
|
3116
|
+
readonly id: `${string}.${string}`;
|
|
3117
|
+
readonly args: Record<string, unknown>;
|
|
3118
|
+
readonly description?: never;
|
|
3119
|
+
readonly strict?: never;
|
|
3120
|
+
readonly inputExamples?: never;
|
|
3121
|
+
readonly isProviderExecuted: false;
|
|
3122
|
+
readonly supportsDeferredResults?: never;
|
|
3123
|
+
} | {
|
|
3124
|
+
readonly toolUseKind: "readonly";
|
|
3125
|
+
readonly title?: string;
|
|
3126
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3127
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3128
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3129
|
+
[x: string]: unknown;
|
|
3130
|
+
target_directory: string;
|
|
3131
|
+
}>;
|
|
3132
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3133
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3134
|
+
[x: string]: unknown;
|
|
3135
|
+
target_directory: string;
|
|
3136
|
+
}, any> | undefined;
|
|
3137
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3138
|
+
readonly onInputDelta?: ((options: {
|
|
3139
|
+
inputTextDelta: string;
|
|
3140
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3141
|
+
readonly onInputAvailable?: ((options: {
|
|
3142
|
+
input: {
|
|
3143
|
+
[x: string]: unknown;
|
|
3144
|
+
target_directory: string;
|
|
3145
|
+
};
|
|
3146
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3147
|
+
readonly toModelOutput?: ((options: {
|
|
3148
|
+
toolCallId: string;
|
|
3149
|
+
input: {
|
|
3150
|
+
[x: string]: unknown;
|
|
3151
|
+
target_directory: string;
|
|
3152
|
+
};
|
|
3153
|
+
output: any;
|
|
3154
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3155
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3156
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3157
|
+
[x: string]: unknown;
|
|
3158
|
+
target_directory: string;
|
|
3159
|
+
}, any, any> | undefined;
|
|
3160
|
+
readonly type: "provider";
|
|
3161
|
+
readonly id: `${string}.${string}`;
|
|
3162
|
+
readonly args: Record<string, unknown>;
|
|
3163
|
+
readonly description?: never;
|
|
3164
|
+
readonly strict?: never;
|
|
3165
|
+
readonly inputExamples?: never;
|
|
3166
|
+
readonly isProviderExecuted: false;
|
|
3167
|
+
readonly supportsDeferredResults?: never;
|
|
3168
|
+
} | {
|
|
3169
|
+
readonly toolUseKind: "readonly";
|
|
3170
|
+
readonly title?: string;
|
|
3171
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3172
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3173
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3174
|
+
[x: string]: unknown;
|
|
3175
|
+
target_directory: string;
|
|
3176
|
+
}>;
|
|
3177
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3178
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3179
|
+
[x: string]: unknown;
|
|
3180
|
+
target_directory: string;
|
|
3181
|
+
}, any> | undefined;
|
|
3182
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3183
|
+
readonly onInputDelta?: ((options: {
|
|
3184
|
+
inputTextDelta: string;
|
|
3185
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3186
|
+
readonly onInputAvailable?: ((options: {
|
|
3187
|
+
input: {
|
|
3188
|
+
[x: string]: unknown;
|
|
3189
|
+
target_directory: string;
|
|
3190
|
+
};
|
|
3191
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3192
|
+
readonly toModelOutput?: ((options: {
|
|
3193
|
+
toolCallId: string;
|
|
3194
|
+
input: {
|
|
3195
|
+
[x: string]: unknown;
|
|
3196
|
+
target_directory: string;
|
|
3197
|
+
};
|
|
3198
|
+
output: any;
|
|
3199
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3200
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3201
|
+
readonly execute?: never;
|
|
3202
|
+
readonly type: "provider";
|
|
3203
|
+
readonly id: `${string}.${string}`;
|
|
3204
|
+
readonly args: Record<string, unknown>;
|
|
3205
|
+
readonly description?: never;
|
|
3206
|
+
readonly strict?: never;
|
|
3207
|
+
readonly inputExamples?: never;
|
|
3208
|
+
readonly isProviderExecuted: true;
|
|
3209
|
+
readonly supportsDeferredResults?: boolean;
|
|
3210
|
+
} | {
|
|
3211
|
+
readonly toolUseKind: "readonly";
|
|
3212
|
+
readonly title?: string;
|
|
3213
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3214
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3215
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3216
|
+
[x: string]: unknown;
|
|
3217
|
+
target_directory: string;
|
|
3218
|
+
}>;
|
|
3219
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3220
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3221
|
+
[x: string]: unknown;
|
|
3222
|
+
target_directory: string;
|
|
3223
|
+
}, any> | undefined;
|
|
3224
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3225
|
+
readonly onInputDelta?: ((options: {
|
|
3226
|
+
inputTextDelta: string;
|
|
3227
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3228
|
+
readonly onInputAvailable?: ((options: {
|
|
3229
|
+
input: {
|
|
3230
|
+
[x: string]: unknown;
|
|
3231
|
+
target_directory: string;
|
|
3232
|
+
};
|
|
3233
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3234
|
+
readonly toModelOutput?: ((options: {
|
|
3235
|
+
toolCallId: string;
|
|
3236
|
+
input: {
|
|
3237
|
+
[x: string]: unknown;
|
|
3238
|
+
target_directory: string;
|
|
3239
|
+
};
|
|
3240
|
+
output: any;
|
|
3241
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3242
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3243
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3244
|
+
[x: string]: unknown;
|
|
3245
|
+
target_directory: string;
|
|
3246
|
+
}, any, any> | undefined;
|
|
3247
|
+
readonly type: "provider";
|
|
3248
|
+
readonly id: `${string}.${string}`;
|
|
3249
|
+
readonly args: Record<string, unknown>;
|
|
3250
|
+
readonly description?: never;
|
|
3251
|
+
readonly strict?: never;
|
|
3252
|
+
readonly inputExamples?: never;
|
|
3253
|
+
readonly isProviderExecuted: true;
|
|
3254
|
+
readonly supportsDeferredResults?: boolean;
|
|
3255
|
+
};
|
|
3256
|
+
readonly kill_command_or_subagent: _ai_sdk_provider_utils.Tool<{
|
|
3257
|
+
[x: string]: unknown;
|
|
3258
|
+
task_id: string;
|
|
3259
|
+
}, any, any>;
|
|
3260
|
+
readonly todo_write: _ai_sdk_provider_utils.Tool<{
|
|
3261
|
+
[x: string]: unknown;
|
|
3262
|
+
todos: {
|
|
3263
|
+
[x: string]: unknown;
|
|
3264
|
+
id: string;
|
|
3265
|
+
content?: string | null | undefined;
|
|
3266
|
+
status?: "pending" | "in_progress" | "completed" | "cancelled" | null | undefined;
|
|
3267
|
+
}[];
|
|
3268
|
+
merge?: boolean | undefined;
|
|
3269
|
+
}, any, any>;
|
|
3270
|
+
readonly get_command_or_subagent_output: {
|
|
3271
|
+
readonly toolUseKind: "readonly";
|
|
3272
|
+
readonly title?: string;
|
|
3273
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3274
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3275
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3276
|
+
[x: string]: unknown;
|
|
3277
|
+
task_ids?: string[] | undefined;
|
|
3278
|
+
timeout_ms?: number | null | undefined;
|
|
3279
|
+
}>;
|
|
3280
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3281
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3282
|
+
[x: string]: unknown;
|
|
3283
|
+
task_ids?: string[] | undefined;
|
|
3284
|
+
timeout_ms?: number | null | undefined;
|
|
3285
|
+
}, any> | undefined;
|
|
3286
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3287
|
+
readonly onInputDelta?: ((options: {
|
|
3288
|
+
inputTextDelta: string;
|
|
3289
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3290
|
+
readonly onInputAvailable?: ((options: {
|
|
3291
|
+
input: {
|
|
3292
|
+
[x: string]: unknown;
|
|
3293
|
+
task_ids?: string[] | undefined;
|
|
3294
|
+
timeout_ms?: number | null | undefined;
|
|
3295
|
+
};
|
|
3296
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3297
|
+
readonly toModelOutput?: ((options: {
|
|
3298
|
+
toolCallId: string;
|
|
3299
|
+
input: {
|
|
3300
|
+
[x: string]: unknown;
|
|
3301
|
+
task_ids?: string[] | undefined;
|
|
3302
|
+
timeout_ms?: number | null | undefined;
|
|
3303
|
+
};
|
|
3304
|
+
output: any;
|
|
3305
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3306
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3307
|
+
readonly execute?: never;
|
|
3308
|
+
readonly description?: string | ((options: {
|
|
3309
|
+
context: any;
|
|
3310
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3311
|
+
}) => string) | undefined;
|
|
3312
|
+
readonly strict?: boolean;
|
|
3313
|
+
readonly inputExamples?: {
|
|
3314
|
+
input: NoInfer<{
|
|
3315
|
+
[x: string]: unknown;
|
|
3316
|
+
task_ids?: string[] | undefined;
|
|
3317
|
+
timeout_ms?: number | null | undefined;
|
|
3318
|
+
}>;
|
|
3319
|
+
}[] | undefined;
|
|
3320
|
+
readonly id?: never;
|
|
3321
|
+
readonly isProviderExecuted?: never;
|
|
3322
|
+
readonly args?: never;
|
|
3323
|
+
readonly supportsDeferredResults?: never;
|
|
3324
|
+
readonly type?: undefined | "function";
|
|
3325
|
+
} | {
|
|
3326
|
+
readonly toolUseKind: "readonly";
|
|
3327
|
+
readonly title?: string;
|
|
3328
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3329
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3330
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3331
|
+
[x: string]: unknown;
|
|
3332
|
+
task_ids?: string[] | undefined;
|
|
3333
|
+
timeout_ms?: number | null | undefined;
|
|
3334
|
+
}>;
|
|
3335
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3336
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3337
|
+
[x: string]: unknown;
|
|
3338
|
+
task_ids?: string[] | undefined;
|
|
3339
|
+
timeout_ms?: number | null | undefined;
|
|
3340
|
+
}, any> | undefined;
|
|
3341
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3342
|
+
readonly onInputDelta?: ((options: {
|
|
3343
|
+
inputTextDelta: string;
|
|
3344
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3345
|
+
readonly onInputAvailable?: ((options: {
|
|
3346
|
+
input: {
|
|
3347
|
+
[x: string]: unknown;
|
|
3348
|
+
task_ids?: string[] | undefined;
|
|
3349
|
+
timeout_ms?: number | null | undefined;
|
|
3350
|
+
};
|
|
3351
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3352
|
+
readonly toModelOutput?: ((options: {
|
|
3353
|
+
toolCallId: string;
|
|
3354
|
+
input: {
|
|
3355
|
+
[x: string]: unknown;
|
|
3356
|
+
task_ids?: string[] | undefined;
|
|
3357
|
+
timeout_ms?: number | null | undefined;
|
|
3358
|
+
};
|
|
3359
|
+
output: any;
|
|
3360
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3361
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3362
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3363
|
+
[x: string]: unknown;
|
|
3364
|
+
task_ids?: string[] | undefined;
|
|
3365
|
+
timeout_ms?: number | null | undefined;
|
|
3366
|
+
}, any, any> | undefined;
|
|
3367
|
+
readonly description?: string | ((options: {
|
|
3368
|
+
context: any;
|
|
3369
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3370
|
+
}) => string) | undefined;
|
|
3371
|
+
readonly strict?: boolean;
|
|
3372
|
+
readonly inputExamples?: {
|
|
3373
|
+
input: NoInfer<{
|
|
3374
|
+
[x: string]: unknown;
|
|
3375
|
+
task_ids?: string[] | undefined;
|
|
3376
|
+
timeout_ms?: number | null | undefined;
|
|
3377
|
+
}>;
|
|
3378
|
+
}[] | undefined;
|
|
3379
|
+
readonly id?: never;
|
|
3380
|
+
readonly isProviderExecuted?: never;
|
|
3381
|
+
readonly args?: never;
|
|
3382
|
+
readonly supportsDeferredResults?: never;
|
|
3383
|
+
readonly type?: undefined | "function";
|
|
3384
|
+
} | {
|
|
3385
|
+
readonly toolUseKind: "readonly";
|
|
3386
|
+
readonly title?: string;
|
|
3387
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3388
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3389
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3390
|
+
[x: string]: unknown;
|
|
3391
|
+
task_ids?: string[] | undefined;
|
|
3392
|
+
timeout_ms?: number | null | undefined;
|
|
3393
|
+
}>;
|
|
3394
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3395
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3396
|
+
[x: string]: unknown;
|
|
3397
|
+
task_ids?: string[] | undefined;
|
|
3398
|
+
timeout_ms?: number | null | undefined;
|
|
3399
|
+
}, any> | undefined;
|
|
3400
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3401
|
+
readonly onInputDelta?: ((options: {
|
|
3402
|
+
inputTextDelta: string;
|
|
3403
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3404
|
+
readonly onInputAvailable?: ((options: {
|
|
3405
|
+
input: {
|
|
3406
|
+
[x: string]: unknown;
|
|
3407
|
+
task_ids?: string[] | undefined;
|
|
3408
|
+
timeout_ms?: number | null | undefined;
|
|
3409
|
+
};
|
|
3410
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3411
|
+
readonly toModelOutput?: ((options: {
|
|
3412
|
+
toolCallId: string;
|
|
3413
|
+
input: {
|
|
3414
|
+
[x: string]: unknown;
|
|
3415
|
+
task_ids?: string[] | undefined;
|
|
3416
|
+
timeout_ms?: number | null | undefined;
|
|
3417
|
+
};
|
|
3418
|
+
output: any;
|
|
3419
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3420
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3421
|
+
readonly execute?: never;
|
|
3422
|
+
readonly description?: string | ((options: {
|
|
3423
|
+
context: any;
|
|
3424
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3425
|
+
}) => string) | undefined;
|
|
3426
|
+
readonly strict?: boolean;
|
|
3427
|
+
readonly inputExamples?: {
|
|
3428
|
+
input: NoInfer<{
|
|
3429
|
+
[x: string]: unknown;
|
|
3430
|
+
task_ids?: string[] | undefined;
|
|
3431
|
+
timeout_ms?: number | null | undefined;
|
|
3432
|
+
}>;
|
|
3433
|
+
}[] | undefined;
|
|
3434
|
+
readonly id?: never;
|
|
3435
|
+
readonly isProviderExecuted?: never;
|
|
3436
|
+
readonly args?: never;
|
|
3437
|
+
readonly supportsDeferredResults?: never;
|
|
3438
|
+
readonly type: "dynamic";
|
|
3439
|
+
} | {
|
|
3440
|
+
readonly toolUseKind: "readonly";
|
|
3441
|
+
readonly title?: string;
|
|
3442
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3443
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3444
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3445
|
+
[x: string]: unknown;
|
|
3446
|
+
task_ids?: string[] | undefined;
|
|
3447
|
+
timeout_ms?: number | null | undefined;
|
|
3448
|
+
}>;
|
|
3449
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3450
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3451
|
+
[x: string]: unknown;
|
|
3452
|
+
task_ids?: string[] | undefined;
|
|
3453
|
+
timeout_ms?: number | null | undefined;
|
|
3454
|
+
}, any> | undefined;
|
|
3455
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3456
|
+
readonly onInputDelta?: ((options: {
|
|
3457
|
+
inputTextDelta: string;
|
|
3458
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3459
|
+
readonly onInputAvailable?: ((options: {
|
|
3460
|
+
input: {
|
|
3461
|
+
[x: string]: unknown;
|
|
3462
|
+
task_ids?: string[] | undefined;
|
|
3463
|
+
timeout_ms?: number | null | undefined;
|
|
3464
|
+
};
|
|
3465
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3466
|
+
readonly toModelOutput?: ((options: {
|
|
3467
|
+
toolCallId: string;
|
|
3468
|
+
input: {
|
|
3469
|
+
[x: string]: unknown;
|
|
3470
|
+
task_ids?: string[] | undefined;
|
|
3471
|
+
timeout_ms?: number | null | undefined;
|
|
3472
|
+
};
|
|
3473
|
+
output: any;
|
|
3474
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3475
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3476
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3477
|
+
[x: string]: unknown;
|
|
3478
|
+
task_ids?: string[] | undefined;
|
|
3479
|
+
timeout_ms?: number | null | undefined;
|
|
3480
|
+
}, any, any> | undefined;
|
|
3481
|
+
readonly description?: string | ((options: {
|
|
3482
|
+
context: any;
|
|
3483
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3484
|
+
}) => string) | undefined;
|
|
3485
|
+
readonly strict?: boolean;
|
|
3486
|
+
readonly inputExamples?: {
|
|
3487
|
+
input: NoInfer<{
|
|
3488
|
+
[x: string]: unknown;
|
|
3489
|
+
task_ids?: string[] | undefined;
|
|
3490
|
+
timeout_ms?: number | null | undefined;
|
|
3491
|
+
}>;
|
|
3492
|
+
}[] | undefined;
|
|
3493
|
+
readonly id?: never;
|
|
3494
|
+
readonly isProviderExecuted?: never;
|
|
3495
|
+
readonly args?: never;
|
|
3496
|
+
readonly supportsDeferredResults?: never;
|
|
3497
|
+
readonly type: "dynamic";
|
|
3498
|
+
} | {
|
|
3499
|
+
readonly toolUseKind: "readonly";
|
|
3500
|
+
readonly title?: string;
|
|
3501
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3502
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3503
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3504
|
+
[x: string]: unknown;
|
|
3505
|
+
task_ids?: string[] | undefined;
|
|
3506
|
+
timeout_ms?: number | null | undefined;
|
|
3507
|
+
}>;
|
|
3508
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3509
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3510
|
+
[x: string]: unknown;
|
|
3511
|
+
task_ids?: string[] | undefined;
|
|
3512
|
+
timeout_ms?: number | null | undefined;
|
|
3513
|
+
}, any> | undefined;
|
|
3514
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3515
|
+
readonly onInputDelta?: ((options: {
|
|
3516
|
+
inputTextDelta: string;
|
|
3517
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3518
|
+
readonly onInputAvailable?: ((options: {
|
|
3519
|
+
input: {
|
|
3520
|
+
[x: string]: unknown;
|
|
3521
|
+
task_ids?: string[] | undefined;
|
|
3522
|
+
timeout_ms?: number | null | undefined;
|
|
3523
|
+
};
|
|
3524
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3525
|
+
readonly toModelOutput?: ((options: {
|
|
3526
|
+
toolCallId: string;
|
|
3527
|
+
input: {
|
|
3528
|
+
[x: string]: unknown;
|
|
3529
|
+
task_ids?: string[] | undefined;
|
|
3530
|
+
timeout_ms?: number | null | undefined;
|
|
3531
|
+
};
|
|
3532
|
+
output: any;
|
|
3533
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3534
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3535
|
+
readonly execute?: never;
|
|
3536
|
+
readonly type: "provider";
|
|
3537
|
+
readonly id: `${string}.${string}`;
|
|
3538
|
+
readonly args: Record<string, unknown>;
|
|
3539
|
+
readonly description?: never;
|
|
3540
|
+
readonly strict?: never;
|
|
3541
|
+
readonly inputExamples?: never;
|
|
3542
|
+
readonly isProviderExecuted: false;
|
|
3543
|
+
readonly supportsDeferredResults?: never;
|
|
3544
|
+
} | {
|
|
3545
|
+
readonly toolUseKind: "readonly";
|
|
3546
|
+
readonly title?: string;
|
|
3547
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3548
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3549
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3550
|
+
[x: string]: unknown;
|
|
3551
|
+
task_ids?: string[] | undefined;
|
|
3552
|
+
timeout_ms?: number | null | undefined;
|
|
3553
|
+
}>;
|
|
3554
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3555
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3556
|
+
[x: string]: unknown;
|
|
3557
|
+
task_ids?: string[] | undefined;
|
|
3558
|
+
timeout_ms?: number | null | undefined;
|
|
3559
|
+
}, any> | undefined;
|
|
3560
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3561
|
+
readonly onInputDelta?: ((options: {
|
|
3562
|
+
inputTextDelta: string;
|
|
3563
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3564
|
+
readonly onInputAvailable?: ((options: {
|
|
3565
|
+
input: {
|
|
3566
|
+
[x: string]: unknown;
|
|
3567
|
+
task_ids?: string[] | undefined;
|
|
3568
|
+
timeout_ms?: number | null | undefined;
|
|
3569
|
+
};
|
|
3570
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3571
|
+
readonly toModelOutput?: ((options: {
|
|
3572
|
+
toolCallId: string;
|
|
3573
|
+
input: {
|
|
3574
|
+
[x: string]: unknown;
|
|
3575
|
+
task_ids?: string[] | undefined;
|
|
3576
|
+
timeout_ms?: number | null | undefined;
|
|
3577
|
+
};
|
|
3578
|
+
output: any;
|
|
3579
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3580
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3581
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3582
|
+
[x: string]: unknown;
|
|
3583
|
+
task_ids?: string[] | undefined;
|
|
3584
|
+
timeout_ms?: number | null | undefined;
|
|
3585
|
+
}, any, any> | undefined;
|
|
3586
|
+
readonly type: "provider";
|
|
3587
|
+
readonly id: `${string}.${string}`;
|
|
3588
|
+
readonly args: Record<string, unknown>;
|
|
3589
|
+
readonly description?: never;
|
|
3590
|
+
readonly strict?: never;
|
|
3591
|
+
readonly inputExamples?: never;
|
|
3592
|
+
readonly isProviderExecuted: false;
|
|
3593
|
+
readonly supportsDeferredResults?: never;
|
|
3594
|
+
} | {
|
|
3595
|
+
readonly toolUseKind: "readonly";
|
|
3596
|
+
readonly title?: string;
|
|
3597
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3598
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3599
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3600
|
+
[x: string]: unknown;
|
|
3601
|
+
task_ids?: string[] | undefined;
|
|
3602
|
+
timeout_ms?: number | null | undefined;
|
|
3603
|
+
}>;
|
|
3604
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3605
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3606
|
+
[x: string]: unknown;
|
|
3607
|
+
task_ids?: string[] | undefined;
|
|
3608
|
+
timeout_ms?: number | null | undefined;
|
|
3609
|
+
}, any> | undefined;
|
|
3610
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3611
|
+
readonly onInputDelta?: ((options: {
|
|
3612
|
+
inputTextDelta: string;
|
|
3613
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3614
|
+
readonly onInputAvailable?: ((options: {
|
|
3615
|
+
input: {
|
|
3616
|
+
[x: string]: unknown;
|
|
3617
|
+
task_ids?: string[] | undefined;
|
|
3618
|
+
timeout_ms?: number | null | undefined;
|
|
3619
|
+
};
|
|
3620
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3621
|
+
readonly toModelOutput?: ((options: {
|
|
3622
|
+
toolCallId: string;
|
|
3623
|
+
input: {
|
|
3624
|
+
[x: string]: unknown;
|
|
3625
|
+
task_ids?: string[] | undefined;
|
|
3626
|
+
timeout_ms?: number | null | undefined;
|
|
3627
|
+
};
|
|
3628
|
+
output: any;
|
|
3629
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3630
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3631
|
+
readonly execute?: never;
|
|
3632
|
+
readonly type: "provider";
|
|
3633
|
+
readonly id: `${string}.${string}`;
|
|
3634
|
+
readonly args: Record<string, unknown>;
|
|
3635
|
+
readonly description?: never;
|
|
3636
|
+
readonly strict?: never;
|
|
3637
|
+
readonly inputExamples?: never;
|
|
3638
|
+
readonly isProviderExecuted: true;
|
|
3639
|
+
readonly supportsDeferredResults?: boolean;
|
|
3640
|
+
} | {
|
|
3641
|
+
readonly toolUseKind: "readonly";
|
|
3642
|
+
readonly title?: string;
|
|
3643
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3644
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3645
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3646
|
+
[x: string]: unknown;
|
|
3647
|
+
task_ids?: string[] | undefined;
|
|
3648
|
+
timeout_ms?: number | null | undefined;
|
|
3649
|
+
}>;
|
|
3650
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3651
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3652
|
+
[x: string]: unknown;
|
|
3653
|
+
task_ids?: string[] | undefined;
|
|
3654
|
+
timeout_ms?: number | null | undefined;
|
|
3655
|
+
}, any> | undefined;
|
|
3656
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3657
|
+
readonly onInputDelta?: ((options: {
|
|
3658
|
+
inputTextDelta: string;
|
|
3659
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3660
|
+
readonly onInputAvailable?: ((options: {
|
|
3661
|
+
input: {
|
|
3662
|
+
[x: string]: unknown;
|
|
3663
|
+
task_ids?: string[] | undefined;
|
|
3664
|
+
timeout_ms?: number | null | undefined;
|
|
3665
|
+
};
|
|
3666
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3667
|
+
readonly toModelOutput?: ((options: {
|
|
3668
|
+
toolCallId: string;
|
|
3669
|
+
input: {
|
|
3670
|
+
[x: string]: unknown;
|
|
3671
|
+
task_ids?: string[] | undefined;
|
|
3672
|
+
timeout_ms?: number | null | undefined;
|
|
3673
|
+
};
|
|
3674
|
+
output: any;
|
|
3675
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3676
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3677
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3678
|
+
[x: string]: unknown;
|
|
3679
|
+
task_ids?: string[] | undefined;
|
|
3680
|
+
timeout_ms?: number | null | undefined;
|
|
3681
|
+
}, any, any> | undefined;
|
|
3682
|
+
readonly type: "provider";
|
|
3683
|
+
readonly id: `${string}.${string}`;
|
|
3684
|
+
readonly args: Record<string, unknown>;
|
|
3685
|
+
readonly description?: never;
|
|
3686
|
+
readonly strict?: never;
|
|
3687
|
+
readonly inputExamples?: never;
|
|
3688
|
+
readonly isProviderExecuted: true;
|
|
3689
|
+
readonly supportsDeferredResults?: boolean;
|
|
3690
|
+
};
|
|
3691
|
+
readonly spawn_subagent: _ai_sdk_provider_utils.Tool<{
|
|
3692
|
+
[x: string]: unknown;
|
|
3693
|
+
prompt: string;
|
|
3694
|
+
description: string;
|
|
3695
|
+
subagent_type?: string | undefined;
|
|
3696
|
+
background?: boolean | undefined;
|
|
3697
|
+
capability_mode?: "execute" | "read-only" | "read-write" | "all" | null | undefined;
|
|
3698
|
+
isolation?: "none" | "worktree" | null | undefined;
|
|
3699
|
+
resume_from?: string | null | undefined;
|
|
3700
|
+
cwd?: string | null | undefined;
|
|
3701
|
+
model?: string | null | undefined;
|
|
3702
|
+
}, any, any>;
|
|
3703
|
+
readonly scheduler_create: _ai_sdk_provider_utils.Tool<{
|
|
3704
|
+
[x: string]: unknown;
|
|
3705
|
+
task_id?: string | null | undefined;
|
|
3706
|
+
interval?: string | null | undefined;
|
|
3707
|
+
prompt?: string | null | undefined;
|
|
3708
|
+
durable?: boolean | null | undefined;
|
|
3709
|
+
foreground?: boolean | null | undefined;
|
|
3710
|
+
fire_immediately?: boolean | undefined;
|
|
3711
|
+
}, any, any>;
|
|
3712
|
+
readonly scheduler_delete: _ai_sdk_provider_utils.Tool<{
|
|
3713
|
+
[x: string]: unknown;
|
|
3714
|
+
id: string;
|
|
3715
|
+
}, any, any>;
|
|
3716
|
+
readonly scheduler_list: {
|
|
3717
|
+
readonly toolUseKind: "readonly";
|
|
3718
|
+
readonly title?: string;
|
|
3719
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3720
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3721
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3722
|
+
[x: string]: unknown;
|
|
3723
|
+
}>;
|
|
3724
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3725
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3726
|
+
[x: string]: unknown;
|
|
3727
|
+
}, any> | undefined;
|
|
3728
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3729
|
+
readonly onInputDelta?: ((options: {
|
|
3730
|
+
inputTextDelta: string;
|
|
3731
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3732
|
+
readonly onInputAvailable?: ((options: {
|
|
3733
|
+
input: {
|
|
3734
|
+
[x: string]: unknown;
|
|
3735
|
+
};
|
|
3736
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3737
|
+
readonly toModelOutput?: ((options: {
|
|
3738
|
+
toolCallId: string;
|
|
3739
|
+
input: {
|
|
3740
|
+
[x: string]: unknown;
|
|
3741
|
+
};
|
|
3742
|
+
output: any;
|
|
3743
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3744
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3745
|
+
readonly execute?: never;
|
|
3746
|
+
readonly description?: string | ((options: {
|
|
3747
|
+
context: any;
|
|
3748
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3749
|
+
}) => string) | undefined;
|
|
3750
|
+
readonly strict?: boolean;
|
|
3751
|
+
readonly inputExamples?: {
|
|
3752
|
+
input: NoInfer<{
|
|
3753
|
+
[x: string]: unknown;
|
|
3754
|
+
}>;
|
|
3755
|
+
}[] | undefined;
|
|
3756
|
+
readonly id?: never;
|
|
3757
|
+
readonly isProviderExecuted?: never;
|
|
3758
|
+
readonly args?: never;
|
|
3759
|
+
readonly supportsDeferredResults?: never;
|
|
3760
|
+
readonly type?: undefined | "function";
|
|
3761
|
+
} | {
|
|
3762
|
+
readonly toolUseKind: "readonly";
|
|
3763
|
+
readonly title?: string;
|
|
3764
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3765
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3766
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3767
|
+
[x: string]: unknown;
|
|
3768
|
+
}>;
|
|
3769
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3770
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3771
|
+
[x: string]: unknown;
|
|
3772
|
+
}, any> | undefined;
|
|
3773
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3774
|
+
readonly onInputDelta?: ((options: {
|
|
3775
|
+
inputTextDelta: string;
|
|
3776
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3777
|
+
readonly onInputAvailable?: ((options: {
|
|
3778
|
+
input: {
|
|
3779
|
+
[x: string]: unknown;
|
|
3780
|
+
};
|
|
3781
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3782
|
+
readonly toModelOutput?: ((options: {
|
|
3783
|
+
toolCallId: string;
|
|
3784
|
+
input: {
|
|
3785
|
+
[x: string]: unknown;
|
|
3786
|
+
};
|
|
3787
|
+
output: any;
|
|
3788
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3789
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3790
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3791
|
+
[x: string]: unknown;
|
|
3792
|
+
}, any, any> | undefined;
|
|
3793
|
+
readonly description?: string | ((options: {
|
|
3794
|
+
context: any;
|
|
3795
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3796
|
+
}) => string) | undefined;
|
|
3797
|
+
readonly strict?: boolean;
|
|
3798
|
+
readonly inputExamples?: {
|
|
3799
|
+
input: NoInfer<{
|
|
3800
|
+
[x: string]: unknown;
|
|
3801
|
+
}>;
|
|
3802
|
+
}[] | undefined;
|
|
3803
|
+
readonly id?: never;
|
|
3804
|
+
readonly isProviderExecuted?: never;
|
|
3805
|
+
readonly args?: never;
|
|
3806
|
+
readonly supportsDeferredResults?: never;
|
|
3807
|
+
readonly type?: undefined | "function";
|
|
3808
|
+
} | {
|
|
3809
|
+
readonly toolUseKind: "readonly";
|
|
3810
|
+
readonly title?: string;
|
|
3811
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3812
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3813
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3814
|
+
[x: string]: unknown;
|
|
3815
|
+
}>;
|
|
3816
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3817
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3818
|
+
[x: string]: unknown;
|
|
3819
|
+
}, any> | undefined;
|
|
3820
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3821
|
+
readonly onInputDelta?: ((options: {
|
|
3822
|
+
inputTextDelta: string;
|
|
3823
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3824
|
+
readonly onInputAvailable?: ((options: {
|
|
3825
|
+
input: {
|
|
3826
|
+
[x: string]: unknown;
|
|
3827
|
+
};
|
|
3828
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3829
|
+
readonly toModelOutput?: ((options: {
|
|
3830
|
+
toolCallId: string;
|
|
3831
|
+
input: {
|
|
3832
|
+
[x: string]: unknown;
|
|
3833
|
+
};
|
|
3834
|
+
output: any;
|
|
3835
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3836
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3837
|
+
readonly execute?: never;
|
|
3838
|
+
readonly description?: string | ((options: {
|
|
3839
|
+
context: any;
|
|
3840
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3841
|
+
}) => string) | undefined;
|
|
3842
|
+
readonly strict?: boolean;
|
|
3843
|
+
readonly inputExamples?: {
|
|
3844
|
+
input: NoInfer<{
|
|
3845
|
+
[x: string]: unknown;
|
|
3846
|
+
}>;
|
|
3847
|
+
}[] | undefined;
|
|
3848
|
+
readonly id?: never;
|
|
3849
|
+
readonly isProviderExecuted?: never;
|
|
3850
|
+
readonly args?: never;
|
|
3851
|
+
readonly supportsDeferredResults?: never;
|
|
3852
|
+
readonly type: "dynamic";
|
|
3853
|
+
} | {
|
|
3854
|
+
readonly toolUseKind: "readonly";
|
|
3855
|
+
readonly title?: string;
|
|
3856
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3857
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3858
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3859
|
+
[x: string]: unknown;
|
|
3860
|
+
}>;
|
|
3861
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3862
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3863
|
+
[x: string]: unknown;
|
|
3864
|
+
}, any> | undefined;
|
|
3865
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3866
|
+
readonly onInputDelta?: ((options: {
|
|
3867
|
+
inputTextDelta: string;
|
|
3868
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3869
|
+
readonly onInputAvailable?: ((options: {
|
|
3870
|
+
input: {
|
|
3871
|
+
[x: string]: unknown;
|
|
3872
|
+
};
|
|
3873
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3874
|
+
readonly toModelOutput?: ((options: {
|
|
3875
|
+
toolCallId: string;
|
|
3876
|
+
input: {
|
|
3877
|
+
[x: string]: unknown;
|
|
3878
|
+
};
|
|
3879
|
+
output: any;
|
|
3880
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3881
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3882
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3883
|
+
[x: string]: unknown;
|
|
3884
|
+
}, any, any> | undefined;
|
|
3885
|
+
readonly description?: string | ((options: {
|
|
3886
|
+
context: any;
|
|
3887
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
3888
|
+
}) => string) | undefined;
|
|
3889
|
+
readonly strict?: boolean;
|
|
3890
|
+
readonly inputExamples?: {
|
|
3891
|
+
input: NoInfer<{
|
|
3892
|
+
[x: string]: unknown;
|
|
3893
|
+
}>;
|
|
3894
|
+
}[] | undefined;
|
|
3895
|
+
readonly id?: never;
|
|
3896
|
+
readonly isProviderExecuted?: never;
|
|
3897
|
+
readonly args?: never;
|
|
3898
|
+
readonly supportsDeferredResults?: never;
|
|
3899
|
+
readonly type: "dynamic";
|
|
3900
|
+
} | {
|
|
3901
|
+
readonly toolUseKind: "readonly";
|
|
3902
|
+
readonly title?: string;
|
|
3903
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3904
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3905
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3906
|
+
[x: string]: unknown;
|
|
3907
|
+
}>;
|
|
3908
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3909
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3910
|
+
[x: string]: unknown;
|
|
3911
|
+
}, any> | undefined;
|
|
3912
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3913
|
+
readonly onInputDelta?: ((options: {
|
|
3914
|
+
inputTextDelta: string;
|
|
3915
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3916
|
+
readonly onInputAvailable?: ((options: {
|
|
3917
|
+
input: {
|
|
3918
|
+
[x: string]: unknown;
|
|
3919
|
+
};
|
|
3920
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3921
|
+
readonly toModelOutput?: ((options: {
|
|
3922
|
+
toolCallId: string;
|
|
3923
|
+
input: {
|
|
3924
|
+
[x: string]: unknown;
|
|
3925
|
+
};
|
|
3926
|
+
output: any;
|
|
3927
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3928
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3929
|
+
readonly execute?: never;
|
|
3930
|
+
readonly type: "provider";
|
|
3931
|
+
readonly id: `${string}.${string}`;
|
|
3932
|
+
readonly args: Record<string, unknown>;
|
|
3933
|
+
readonly description?: never;
|
|
3934
|
+
readonly strict?: never;
|
|
3935
|
+
readonly inputExamples?: never;
|
|
3936
|
+
readonly isProviderExecuted: false;
|
|
3937
|
+
readonly supportsDeferredResults?: never;
|
|
3938
|
+
} | {
|
|
3939
|
+
readonly toolUseKind: "readonly";
|
|
3940
|
+
readonly title?: string;
|
|
3941
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3942
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3943
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3944
|
+
[x: string]: unknown;
|
|
3945
|
+
}>;
|
|
3946
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3947
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3948
|
+
[x: string]: unknown;
|
|
3949
|
+
}, any> | undefined;
|
|
3950
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3951
|
+
readonly onInputDelta?: ((options: {
|
|
3952
|
+
inputTextDelta: string;
|
|
3953
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3954
|
+
readonly onInputAvailable?: ((options: {
|
|
3955
|
+
input: {
|
|
3956
|
+
[x: string]: unknown;
|
|
3957
|
+
};
|
|
3958
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3959
|
+
readonly toModelOutput?: ((options: {
|
|
3960
|
+
toolCallId: string;
|
|
3961
|
+
input: {
|
|
3962
|
+
[x: string]: unknown;
|
|
3963
|
+
};
|
|
3964
|
+
output: any;
|
|
3965
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
3966
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3967
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
3968
|
+
[x: string]: unknown;
|
|
3969
|
+
}, any, any> | undefined;
|
|
3970
|
+
readonly type: "provider";
|
|
3971
|
+
readonly id: `${string}.${string}`;
|
|
3972
|
+
readonly args: Record<string, unknown>;
|
|
3973
|
+
readonly description?: never;
|
|
3974
|
+
readonly strict?: never;
|
|
3975
|
+
readonly inputExamples?: never;
|
|
3976
|
+
readonly isProviderExecuted: false;
|
|
3977
|
+
readonly supportsDeferredResults?: never;
|
|
3978
|
+
} | {
|
|
3979
|
+
readonly toolUseKind: "readonly";
|
|
3980
|
+
readonly title?: string;
|
|
3981
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
3982
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
3983
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
3984
|
+
[x: string]: unknown;
|
|
3985
|
+
}>;
|
|
3986
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
3987
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
3988
|
+
[x: string]: unknown;
|
|
3989
|
+
}, any> | undefined;
|
|
3990
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3991
|
+
readonly onInputDelta?: ((options: {
|
|
3992
|
+
inputTextDelta: string;
|
|
3993
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3994
|
+
readonly onInputAvailable?: ((options: {
|
|
3995
|
+
input: {
|
|
3996
|
+
[x: string]: unknown;
|
|
3997
|
+
};
|
|
3998
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
3999
|
+
readonly toModelOutput?: ((options: {
|
|
4000
|
+
toolCallId: string;
|
|
4001
|
+
input: {
|
|
4002
|
+
[x: string]: unknown;
|
|
4003
|
+
};
|
|
4004
|
+
output: any;
|
|
4005
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4006
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4007
|
+
readonly execute?: never;
|
|
4008
|
+
readonly type: "provider";
|
|
4009
|
+
readonly id: `${string}.${string}`;
|
|
4010
|
+
readonly args: Record<string, unknown>;
|
|
4011
|
+
readonly description?: never;
|
|
4012
|
+
readonly strict?: never;
|
|
4013
|
+
readonly inputExamples?: never;
|
|
4014
|
+
readonly isProviderExecuted: true;
|
|
4015
|
+
readonly supportsDeferredResults?: boolean;
|
|
4016
|
+
} | {
|
|
4017
|
+
readonly toolUseKind: "readonly";
|
|
4018
|
+
readonly title?: string;
|
|
4019
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4020
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4021
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4022
|
+
[x: string]: unknown;
|
|
4023
|
+
}>;
|
|
4024
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4025
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4026
|
+
[x: string]: unknown;
|
|
4027
|
+
}, any> | undefined;
|
|
4028
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4029
|
+
readonly onInputDelta?: ((options: {
|
|
4030
|
+
inputTextDelta: string;
|
|
4031
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4032
|
+
readonly onInputAvailable?: ((options: {
|
|
4033
|
+
input: {
|
|
4034
|
+
[x: string]: unknown;
|
|
4035
|
+
};
|
|
4036
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4037
|
+
readonly toModelOutput?: ((options: {
|
|
4038
|
+
toolCallId: string;
|
|
4039
|
+
input: {
|
|
4040
|
+
[x: string]: unknown;
|
|
4041
|
+
};
|
|
4042
|
+
output: any;
|
|
4043
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4044
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4045
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
4046
|
+
[x: string]: unknown;
|
|
4047
|
+
}, any, any> | undefined;
|
|
4048
|
+
readonly type: "provider";
|
|
4049
|
+
readonly id: `${string}.${string}`;
|
|
4050
|
+
readonly args: Record<string, unknown>;
|
|
4051
|
+
readonly description?: never;
|
|
4052
|
+
readonly strict?: never;
|
|
4053
|
+
readonly inputExamples?: never;
|
|
4054
|
+
readonly isProviderExecuted: true;
|
|
4055
|
+
readonly supportsDeferredResults?: boolean;
|
|
4056
|
+
};
|
|
4057
|
+
readonly monitor: _ai_sdk_provider_utils.Tool<{
|
|
4058
|
+
[x: string]: unknown;
|
|
4059
|
+
command: string;
|
|
4060
|
+
description: string;
|
|
4061
|
+
timeout_ms?: number | null | undefined;
|
|
4062
|
+
persistent?: boolean | undefined;
|
|
4063
|
+
}, any, any>;
|
|
4064
|
+
readonly search_tool: {
|
|
4065
|
+
readonly toolUseKind: "readonly";
|
|
4066
|
+
readonly title?: string;
|
|
4067
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4068
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4069
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4070
|
+
[x: string]: unknown;
|
|
4071
|
+
query: string;
|
|
4072
|
+
limit?: number | null | undefined;
|
|
4073
|
+
}>;
|
|
4074
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4075
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4076
|
+
[x: string]: unknown;
|
|
4077
|
+
query: string;
|
|
4078
|
+
limit?: number | null | undefined;
|
|
4079
|
+
}, any> | undefined;
|
|
4080
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4081
|
+
readonly onInputDelta?: ((options: {
|
|
4082
|
+
inputTextDelta: string;
|
|
4083
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4084
|
+
readonly onInputAvailable?: ((options: {
|
|
4085
|
+
input: {
|
|
4086
|
+
[x: string]: unknown;
|
|
4087
|
+
query: string;
|
|
4088
|
+
limit?: number | null | undefined;
|
|
4089
|
+
};
|
|
4090
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4091
|
+
readonly toModelOutput?: ((options: {
|
|
4092
|
+
toolCallId: string;
|
|
4093
|
+
input: {
|
|
4094
|
+
[x: string]: unknown;
|
|
4095
|
+
query: string;
|
|
4096
|
+
limit?: number | null | undefined;
|
|
4097
|
+
};
|
|
4098
|
+
output: any;
|
|
4099
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4100
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4101
|
+
readonly execute?: never;
|
|
4102
|
+
readonly description?: string | ((options: {
|
|
4103
|
+
context: any;
|
|
4104
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
4105
|
+
}) => string) | undefined;
|
|
4106
|
+
readonly strict?: boolean;
|
|
4107
|
+
readonly inputExamples?: {
|
|
4108
|
+
input: NoInfer<{
|
|
4109
|
+
[x: string]: unknown;
|
|
4110
|
+
query: string;
|
|
4111
|
+
limit?: number | null | undefined;
|
|
4112
|
+
}>;
|
|
4113
|
+
}[] | undefined;
|
|
4114
|
+
readonly id?: never;
|
|
4115
|
+
readonly isProviderExecuted?: never;
|
|
4116
|
+
readonly args?: never;
|
|
4117
|
+
readonly supportsDeferredResults?: never;
|
|
4118
|
+
readonly type?: undefined | "function";
|
|
4119
|
+
} | {
|
|
4120
|
+
readonly toolUseKind: "readonly";
|
|
4121
|
+
readonly title?: string;
|
|
4122
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4123
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4124
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4125
|
+
[x: string]: unknown;
|
|
4126
|
+
query: string;
|
|
4127
|
+
limit?: number | null | undefined;
|
|
4128
|
+
}>;
|
|
4129
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4130
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4131
|
+
[x: string]: unknown;
|
|
4132
|
+
query: string;
|
|
4133
|
+
limit?: number | null | undefined;
|
|
4134
|
+
}, any> | undefined;
|
|
4135
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4136
|
+
readonly onInputDelta?: ((options: {
|
|
4137
|
+
inputTextDelta: string;
|
|
4138
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4139
|
+
readonly onInputAvailable?: ((options: {
|
|
4140
|
+
input: {
|
|
4141
|
+
[x: string]: unknown;
|
|
4142
|
+
query: string;
|
|
4143
|
+
limit?: number | null | undefined;
|
|
4144
|
+
};
|
|
4145
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4146
|
+
readonly toModelOutput?: ((options: {
|
|
4147
|
+
toolCallId: string;
|
|
4148
|
+
input: {
|
|
4149
|
+
[x: string]: unknown;
|
|
4150
|
+
query: string;
|
|
4151
|
+
limit?: number | null | undefined;
|
|
4152
|
+
};
|
|
4153
|
+
output: any;
|
|
4154
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4155
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4156
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
4157
|
+
[x: string]: unknown;
|
|
4158
|
+
query: string;
|
|
4159
|
+
limit?: number | null | undefined;
|
|
4160
|
+
}, any, any> | undefined;
|
|
4161
|
+
readonly description?: string | ((options: {
|
|
4162
|
+
context: any;
|
|
4163
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
4164
|
+
}) => string) | undefined;
|
|
4165
|
+
readonly strict?: boolean;
|
|
4166
|
+
readonly inputExamples?: {
|
|
4167
|
+
input: NoInfer<{
|
|
4168
|
+
[x: string]: unknown;
|
|
4169
|
+
query: string;
|
|
4170
|
+
limit?: number | null | undefined;
|
|
4171
|
+
}>;
|
|
4172
|
+
}[] | undefined;
|
|
4173
|
+
readonly id?: never;
|
|
4174
|
+
readonly isProviderExecuted?: never;
|
|
4175
|
+
readonly args?: never;
|
|
4176
|
+
readonly supportsDeferredResults?: never;
|
|
4177
|
+
readonly type?: undefined | "function";
|
|
4178
|
+
} | {
|
|
4179
|
+
readonly toolUseKind: "readonly";
|
|
4180
|
+
readonly title?: string;
|
|
4181
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4182
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4183
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4184
|
+
[x: string]: unknown;
|
|
4185
|
+
query: string;
|
|
4186
|
+
limit?: number | null | undefined;
|
|
4187
|
+
}>;
|
|
4188
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4189
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4190
|
+
[x: string]: unknown;
|
|
4191
|
+
query: string;
|
|
4192
|
+
limit?: number | null | undefined;
|
|
4193
|
+
}, any> | undefined;
|
|
4194
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4195
|
+
readonly onInputDelta?: ((options: {
|
|
4196
|
+
inputTextDelta: string;
|
|
4197
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4198
|
+
readonly onInputAvailable?: ((options: {
|
|
4199
|
+
input: {
|
|
4200
|
+
[x: string]: unknown;
|
|
4201
|
+
query: string;
|
|
4202
|
+
limit?: number | null | undefined;
|
|
4203
|
+
};
|
|
4204
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4205
|
+
readonly toModelOutput?: ((options: {
|
|
4206
|
+
toolCallId: string;
|
|
4207
|
+
input: {
|
|
4208
|
+
[x: string]: unknown;
|
|
4209
|
+
query: string;
|
|
4210
|
+
limit?: number | null | undefined;
|
|
4211
|
+
};
|
|
4212
|
+
output: any;
|
|
4213
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4214
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4215
|
+
readonly execute?: never;
|
|
4216
|
+
readonly description?: string | ((options: {
|
|
4217
|
+
context: any;
|
|
4218
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
4219
|
+
}) => string) | undefined;
|
|
4220
|
+
readonly strict?: boolean;
|
|
4221
|
+
readonly inputExamples?: {
|
|
4222
|
+
input: NoInfer<{
|
|
4223
|
+
[x: string]: unknown;
|
|
4224
|
+
query: string;
|
|
4225
|
+
limit?: number | null | undefined;
|
|
4226
|
+
}>;
|
|
4227
|
+
}[] | undefined;
|
|
4228
|
+
readonly id?: never;
|
|
4229
|
+
readonly isProviderExecuted?: never;
|
|
4230
|
+
readonly args?: never;
|
|
4231
|
+
readonly supportsDeferredResults?: never;
|
|
4232
|
+
readonly type: "dynamic";
|
|
4233
|
+
} | {
|
|
4234
|
+
readonly toolUseKind: "readonly";
|
|
4235
|
+
readonly title?: string;
|
|
4236
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4237
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4238
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4239
|
+
[x: string]: unknown;
|
|
4240
|
+
query: string;
|
|
4241
|
+
limit?: number | null | undefined;
|
|
4242
|
+
}>;
|
|
4243
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4244
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4245
|
+
[x: string]: unknown;
|
|
4246
|
+
query: string;
|
|
4247
|
+
limit?: number | null | undefined;
|
|
4248
|
+
}, any> | undefined;
|
|
4249
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4250
|
+
readonly onInputDelta?: ((options: {
|
|
4251
|
+
inputTextDelta: string;
|
|
4252
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4253
|
+
readonly onInputAvailable?: ((options: {
|
|
4254
|
+
input: {
|
|
4255
|
+
[x: string]: unknown;
|
|
4256
|
+
query: string;
|
|
4257
|
+
limit?: number | null | undefined;
|
|
4258
|
+
};
|
|
4259
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4260
|
+
readonly toModelOutput?: ((options: {
|
|
4261
|
+
toolCallId: string;
|
|
4262
|
+
input: {
|
|
4263
|
+
[x: string]: unknown;
|
|
4264
|
+
query: string;
|
|
4265
|
+
limit?: number | null | undefined;
|
|
4266
|
+
};
|
|
4267
|
+
output: any;
|
|
4268
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4269
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4270
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
4271
|
+
[x: string]: unknown;
|
|
4272
|
+
query: string;
|
|
4273
|
+
limit?: number | null | undefined;
|
|
4274
|
+
}, any, any> | undefined;
|
|
4275
|
+
readonly description?: string | ((options: {
|
|
4276
|
+
context: any;
|
|
4277
|
+
experimental_sandbox?: _ai_sdk_provider_utils.Experimental_SandboxSession;
|
|
4278
|
+
}) => string) | undefined;
|
|
4279
|
+
readonly strict?: boolean;
|
|
4280
|
+
readonly inputExamples?: {
|
|
4281
|
+
input: NoInfer<{
|
|
4282
|
+
[x: string]: unknown;
|
|
4283
|
+
query: string;
|
|
4284
|
+
limit?: number | null | undefined;
|
|
4285
|
+
}>;
|
|
4286
|
+
}[] | undefined;
|
|
4287
|
+
readonly id?: never;
|
|
4288
|
+
readonly isProviderExecuted?: never;
|
|
4289
|
+
readonly args?: never;
|
|
4290
|
+
readonly supportsDeferredResults?: never;
|
|
4291
|
+
readonly type: "dynamic";
|
|
4292
|
+
} | {
|
|
4293
|
+
readonly toolUseKind: "readonly";
|
|
4294
|
+
readonly title?: string;
|
|
4295
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4296
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4297
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4298
|
+
[x: string]: unknown;
|
|
4299
|
+
query: string;
|
|
4300
|
+
limit?: number | null | undefined;
|
|
4301
|
+
}>;
|
|
4302
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4303
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4304
|
+
[x: string]: unknown;
|
|
4305
|
+
query: string;
|
|
4306
|
+
limit?: number | null | undefined;
|
|
4307
|
+
}, any> | undefined;
|
|
4308
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4309
|
+
readonly onInputDelta?: ((options: {
|
|
4310
|
+
inputTextDelta: string;
|
|
4311
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4312
|
+
readonly onInputAvailable?: ((options: {
|
|
4313
|
+
input: {
|
|
4314
|
+
[x: string]: unknown;
|
|
4315
|
+
query: string;
|
|
4316
|
+
limit?: number | null | undefined;
|
|
4317
|
+
};
|
|
4318
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4319
|
+
readonly toModelOutput?: ((options: {
|
|
4320
|
+
toolCallId: string;
|
|
4321
|
+
input: {
|
|
4322
|
+
[x: string]: unknown;
|
|
4323
|
+
query: string;
|
|
4324
|
+
limit?: number | null | undefined;
|
|
4325
|
+
};
|
|
4326
|
+
output: any;
|
|
4327
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4328
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4329
|
+
readonly execute?: never;
|
|
4330
|
+
readonly type: "provider";
|
|
4331
|
+
readonly id: `${string}.${string}`;
|
|
4332
|
+
readonly args: Record<string, unknown>;
|
|
4333
|
+
readonly description?: never;
|
|
4334
|
+
readonly strict?: never;
|
|
4335
|
+
readonly inputExamples?: never;
|
|
4336
|
+
readonly isProviderExecuted: false;
|
|
4337
|
+
readonly supportsDeferredResults?: never;
|
|
4338
|
+
} | {
|
|
4339
|
+
readonly toolUseKind: "readonly";
|
|
4340
|
+
readonly title?: string;
|
|
4341
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4342
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4343
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4344
|
+
[x: string]: unknown;
|
|
4345
|
+
query: string;
|
|
4346
|
+
limit?: number | null | undefined;
|
|
4347
|
+
}>;
|
|
4348
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4349
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4350
|
+
[x: string]: unknown;
|
|
4351
|
+
query: string;
|
|
4352
|
+
limit?: number | null | undefined;
|
|
4353
|
+
}, any> | undefined;
|
|
4354
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4355
|
+
readonly onInputDelta?: ((options: {
|
|
4356
|
+
inputTextDelta: string;
|
|
4357
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4358
|
+
readonly onInputAvailable?: ((options: {
|
|
4359
|
+
input: {
|
|
4360
|
+
[x: string]: unknown;
|
|
4361
|
+
query: string;
|
|
4362
|
+
limit?: number | null | undefined;
|
|
4363
|
+
};
|
|
4364
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4365
|
+
readonly toModelOutput?: ((options: {
|
|
4366
|
+
toolCallId: string;
|
|
4367
|
+
input: {
|
|
4368
|
+
[x: string]: unknown;
|
|
4369
|
+
query: string;
|
|
4370
|
+
limit?: number | null | undefined;
|
|
4371
|
+
};
|
|
4372
|
+
output: any;
|
|
4373
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4374
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4375
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
4376
|
+
[x: string]: unknown;
|
|
4377
|
+
query: string;
|
|
4378
|
+
limit?: number | null | undefined;
|
|
4379
|
+
}, any, any> | undefined;
|
|
4380
|
+
readonly type: "provider";
|
|
4381
|
+
readonly id: `${string}.${string}`;
|
|
4382
|
+
readonly args: Record<string, unknown>;
|
|
4383
|
+
readonly description?: never;
|
|
4384
|
+
readonly strict?: never;
|
|
4385
|
+
readonly inputExamples?: never;
|
|
4386
|
+
readonly isProviderExecuted: false;
|
|
4387
|
+
readonly supportsDeferredResults?: never;
|
|
4388
|
+
} | {
|
|
4389
|
+
readonly toolUseKind: "readonly";
|
|
4390
|
+
readonly title?: string;
|
|
4391
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4392
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4393
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4394
|
+
[x: string]: unknown;
|
|
4395
|
+
query: string;
|
|
4396
|
+
limit?: number | null | undefined;
|
|
4397
|
+
}>;
|
|
4398
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4399
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4400
|
+
[x: string]: unknown;
|
|
4401
|
+
query: string;
|
|
4402
|
+
limit?: number | null | undefined;
|
|
4403
|
+
}, any> | undefined;
|
|
4404
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4405
|
+
readonly onInputDelta?: ((options: {
|
|
4406
|
+
inputTextDelta: string;
|
|
4407
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4408
|
+
readonly onInputAvailable?: ((options: {
|
|
4409
|
+
input: {
|
|
4410
|
+
[x: string]: unknown;
|
|
4411
|
+
query: string;
|
|
4412
|
+
limit?: number | null | undefined;
|
|
4413
|
+
};
|
|
4414
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4415
|
+
readonly toModelOutput?: ((options: {
|
|
4416
|
+
toolCallId: string;
|
|
4417
|
+
input: {
|
|
4418
|
+
[x: string]: unknown;
|
|
4419
|
+
query: string;
|
|
4420
|
+
limit?: number | null | undefined;
|
|
4421
|
+
};
|
|
4422
|
+
output: any;
|
|
4423
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4424
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4425
|
+
readonly execute?: never;
|
|
4426
|
+
readonly type: "provider";
|
|
4427
|
+
readonly id: `${string}.${string}`;
|
|
4428
|
+
readonly args: Record<string, unknown>;
|
|
4429
|
+
readonly description?: never;
|
|
4430
|
+
readonly strict?: never;
|
|
4431
|
+
readonly inputExamples?: never;
|
|
4432
|
+
readonly isProviderExecuted: true;
|
|
4433
|
+
readonly supportsDeferredResults?: boolean;
|
|
4434
|
+
} | {
|
|
4435
|
+
readonly toolUseKind: "readonly";
|
|
4436
|
+
readonly title?: string;
|
|
4437
|
+
readonly providerOptions?: _ai_sdk_provider_utils.ProviderOptions;
|
|
4438
|
+
readonly metadata?: _ai_sdk_provider.JSONObject;
|
|
4439
|
+
readonly inputSchema: _ai_sdk_provider_utils.FlexibleSchema<{
|
|
4440
|
+
[x: string]: unknown;
|
|
4441
|
+
query: string;
|
|
4442
|
+
limit?: number | null | undefined;
|
|
4443
|
+
}>;
|
|
4444
|
+
readonly contextSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4445
|
+
readonly needsApproval?: boolean | _ai_sdk_provider_utils.ToolNeedsApprovalFunction<{
|
|
4446
|
+
[x: string]: unknown;
|
|
4447
|
+
query: string;
|
|
4448
|
+
limit?: number | null | undefined;
|
|
4449
|
+
}, any> | undefined;
|
|
4450
|
+
readonly onInputStart?: ((options: _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4451
|
+
readonly onInputDelta?: ((options: {
|
|
4452
|
+
inputTextDelta: string;
|
|
4453
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4454
|
+
readonly onInputAvailable?: ((options: {
|
|
4455
|
+
input: {
|
|
4456
|
+
[x: string]: unknown;
|
|
4457
|
+
query: string;
|
|
4458
|
+
limit?: number | null | undefined;
|
|
4459
|
+
};
|
|
4460
|
+
} & _ai_sdk_provider_utils.ToolExecutionOptions<any>) => void | PromiseLike<void>) | undefined;
|
|
4461
|
+
readonly toModelOutput?: ((options: {
|
|
4462
|
+
toolCallId: string;
|
|
4463
|
+
input: {
|
|
4464
|
+
[x: string]: unknown;
|
|
4465
|
+
query: string;
|
|
4466
|
+
limit?: number | null | undefined;
|
|
4467
|
+
};
|
|
4468
|
+
output: any;
|
|
4469
|
+
}) => _ai_sdk_provider_utils.ToolResultOutput | PromiseLike<_ai_sdk_provider_utils.ToolResultOutput>) | undefined;
|
|
4470
|
+
readonly outputSchema?: _ai_sdk_provider_utils.FlexibleSchema<any> | undefined;
|
|
4471
|
+
readonly execute?: _ai_sdk_provider_utils.ToolExecuteFunction<{
|
|
4472
|
+
[x: string]: unknown;
|
|
4473
|
+
query: string;
|
|
4474
|
+
limit?: number | null | undefined;
|
|
4475
|
+
}, any, any> | undefined;
|
|
4476
|
+
readonly type: "provider";
|
|
4477
|
+
readonly id: `${string}.${string}`;
|
|
4478
|
+
readonly args: Record<string, unknown>;
|
|
4479
|
+
readonly description?: never;
|
|
4480
|
+
readonly strict?: never;
|
|
4481
|
+
readonly inputExamples?: never;
|
|
4482
|
+
readonly isProviderExecuted: true;
|
|
4483
|
+
readonly supportsDeferredResults?: boolean;
|
|
4484
|
+
};
|
|
4485
|
+
readonly use_tool: _ai_sdk_provider_utils.Tool<{
|
|
4486
|
+
[x: string]: unknown;
|
|
4487
|
+
tool_name: string;
|
|
4488
|
+
tool_input: {
|
|
4489
|
+
[x: string]: unknown;
|
|
4490
|
+
};
|
|
4491
|
+
}, any, any>;
|
|
4492
|
+
readonly workflow: _ai_sdk_provider_utils.Tool<{
|
|
4493
|
+
[x: string]: unknown;
|
|
4494
|
+
agent_budget?: number | null | undefined;
|
|
4495
|
+
name?: string | null | undefined;
|
|
4496
|
+
script?: string | null | undefined;
|
|
4497
|
+
script_path?: string | null | undefined;
|
|
4498
|
+
args?: unknown;
|
|
4499
|
+
resume_from_run_id?: string | null | undefined;
|
|
4500
|
+
validate_only?: boolean | undefined;
|
|
4501
|
+
}, any, any>;
|
|
4502
|
+
readonly enter_plan_mode: _ai_sdk_provider_utils.Tool<{
|
|
4503
|
+
[x: string]: unknown;
|
|
4504
|
+
}, any, any>;
|
|
4505
|
+
readonly exit_plan_mode: _ai_sdk_provider_utils.Tool<{
|
|
4506
|
+
[x: string]: unknown;
|
|
4507
|
+
}, any, any>;
|
|
4508
|
+
readonly ask_user_question: _ai_sdk_provider_utils.Tool<{
|
|
4509
|
+
[x: string]: unknown;
|
|
4510
|
+
questions: {
|
|
4511
|
+
[x: string]: unknown;
|
|
4512
|
+
question: string;
|
|
4513
|
+
options: {
|
|
4514
|
+
[x: string]: unknown;
|
|
4515
|
+
label: string;
|
|
4516
|
+
description: string;
|
|
4517
|
+
preview?: string | null | undefined;
|
|
4518
|
+
}[];
|
|
4519
|
+
multi_select?: boolean | null | undefined;
|
|
4520
|
+
}[];
|
|
4521
|
+
}, any, any>;
|
|
4522
|
+
readonly image_gen: _ai_sdk_provider_utils.Tool<{
|
|
4523
|
+
[x: string]: unknown;
|
|
4524
|
+
prompt: string;
|
|
4525
|
+
aspect_ratio?: string | undefined;
|
|
4526
|
+
}, any, any>;
|
|
4527
|
+
readonly image_edit: _ai_sdk_provider_utils.Tool<{
|
|
4528
|
+
[x: string]: unknown;
|
|
4529
|
+
prompt: string;
|
|
4530
|
+
image: string[];
|
|
4531
|
+
aspect_ratio?: string | undefined;
|
|
4532
|
+
}, any, any>;
|
|
4533
|
+
readonly image_to_video: _ai_sdk_provider_utils.Tool<{
|
|
4534
|
+
[x: string]: unknown;
|
|
4535
|
+
image: string;
|
|
4536
|
+
prompt?: string | null | undefined;
|
|
4537
|
+
duration?: number | null | undefined;
|
|
4538
|
+
resolution_name?: string | undefined;
|
|
4539
|
+
}, any, any>;
|
|
4540
|
+
readonly reference_to_video: _ai_sdk_provider_utils.Tool<{
|
|
4541
|
+
[x: string]: unknown;
|
|
4542
|
+
prompt: string;
|
|
4543
|
+
images: string[];
|
|
4544
|
+
aspect_ratio: string;
|
|
4545
|
+
duration?: number | null | undefined;
|
|
4546
|
+
resolution_name?: string | undefined;
|
|
4547
|
+
}, any, any>;
|
|
4548
|
+
}>;
|
|
4549
|
+
|
|
4550
|
+
export { type GrokBuildHarnessSettings, VERSION, createGrokBuild, grokBuild };
|