@isomorph.ai/app-sdk 1.4.3 → 1.5.1

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