@ai-sdk/harness-codex 1.0.134 → 1.0.136

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