@rpcbase/agents-sdk 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,70 +7,1840 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
7
7
  dataStream: UIMessageStreamWriter<any>;
8
8
  requestHints: RequestHints;
9
9
  }) => {
10
- getWeather: import("ai").Tool<{
11
- latitude?: number | undefined;
12
- longitude?: number | undefined;
13
- city?: string | undefined;
14
- }, any>;
15
- createDocument: import("ai").Tool<{
16
- title: string;
17
- kind: "text" | "code" | "sheet";
18
- }, {
19
- id: `${string}-${string}-${string}-${string}-${string}`;
20
- title: string;
21
- kind: "text" | "code" | "sheet";
22
- content: string;
23
- }>;
24
- editDocument: import("ai").Tool<{
25
- id: string;
26
- old_string: string;
27
- new_string: string;
28
- replace_all?: boolean | undefined;
29
- }, {
30
- error: string;
31
- id?: undefined;
32
- title?: undefined;
33
- kind?: undefined;
34
- content?: undefined;
35
- } | {
36
- id: string;
37
- title: string;
38
- kind: DocumentKind;
39
- content: string;
40
- error?: undefined;
41
- }>;
42
- updateDocument: import("ai").Tool<{
43
- id: string;
44
- description: string;
45
- }, {
46
- error: string;
47
- id?: undefined;
48
- title?: undefined;
49
- kind?: undefined;
50
- content?: undefined;
51
- } | {
52
- id: string;
53
- title: string;
54
- kind: DocumentKind;
55
- content: string;
56
- error?: undefined;
57
- }>;
58
- requestSuggestions: import("ai").Tool<{
59
- documentId: string;
60
- }, {
61
- error: string;
62
- id?: undefined;
63
- title?: undefined;
64
- kind?: undefined;
65
- message?: undefined;
66
- } | {
67
- id: string;
68
- title: string;
69
- kind: DocumentKind;
70
- message: string;
71
- error?: undefined;
72
- }>;
73
- webSearch: import("ai").Tool<{}, {
10
+ getWeather: ({
11
+ title?: string;
12
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
13
+ metadata?: import("@ai-sdk/provider").JSONObject;
14
+ inputSchema: import("ai").FlexibleSchema<{
15
+ latitude?: number | undefined;
16
+ longitude?: number | undefined;
17
+ city?: string | undefined;
18
+ }>;
19
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
20
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
21
+ latitude?: number | undefined;
22
+ longitude?: number | undefined;
23
+ city?: string | undefined;
24
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
25
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
26
+ onInputDelta?: ((options: {
27
+ inputTextDelta: string;
28
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
29
+ onInputAvailable?: ((options: {
30
+ input: {
31
+ latitude?: number | undefined;
32
+ longitude?: number | undefined;
33
+ city?: string | undefined;
34
+ };
35
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
36
+ toModelOutput?: ((options: {
37
+ toolCallId: string;
38
+ input: {
39
+ latitude?: number | undefined;
40
+ longitude?: number | undefined;
41
+ city?: string | undefined;
42
+ };
43
+ output: any;
44
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
45
+ } & Partial<{
46
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
47
+ execute: import("ai").ToolExecuteFunction<{
48
+ latitude?: number | undefined;
49
+ longitude?: number | undefined;
50
+ city?: string | undefined;
51
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
52
+ }> & {
53
+ description?: string | ((options: {
54
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
55
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
56
+ }) => string) | undefined;
57
+ strict?: boolean;
58
+ inputExamples?: {
59
+ input: NoInfer<{
60
+ latitude?: number | undefined;
61
+ longitude?: number | undefined;
62
+ city?: string | undefined;
63
+ }>;
64
+ }[] | undefined;
65
+ id?: never;
66
+ isProviderExecuted?: never;
67
+ args?: never;
68
+ supportsDeferredResults?: never;
69
+ } & {
70
+ type?: undefined | "function";
71
+ } & {
72
+ execute: import("ai").ToolExecuteFunction<{
73
+ latitude?: number | undefined;
74
+ longitude?: number | undefined;
75
+ city?: string | undefined;
76
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
77
+ }) | ({
78
+ title?: string;
79
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
80
+ metadata?: import("@ai-sdk/provider").JSONObject;
81
+ inputSchema: import("ai").FlexibleSchema<{
82
+ latitude?: number | undefined;
83
+ longitude?: number | undefined;
84
+ city?: string | undefined;
85
+ }>;
86
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
87
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
88
+ latitude?: number | undefined;
89
+ longitude?: number | undefined;
90
+ city?: string | undefined;
91
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
92
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
93
+ onInputDelta?: ((options: {
94
+ inputTextDelta: string;
95
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
96
+ onInputAvailable?: ((options: {
97
+ input: {
98
+ latitude?: number | undefined;
99
+ longitude?: number | undefined;
100
+ city?: string | undefined;
101
+ };
102
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
103
+ toModelOutput?: ((options: {
104
+ toolCallId: string;
105
+ input: {
106
+ latitude?: number | undefined;
107
+ longitude?: number | undefined;
108
+ city?: string | undefined;
109
+ };
110
+ output: any;
111
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
112
+ } & Partial<{
113
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
114
+ execute: import("ai").ToolExecuteFunction<{
115
+ latitude?: number | undefined;
116
+ longitude?: number | undefined;
117
+ city?: string | undefined;
118
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
119
+ }> & {
120
+ description?: string | ((options: {
121
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
122
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
123
+ }) => string) | undefined;
124
+ strict?: boolean;
125
+ inputExamples?: {
126
+ input: NoInfer<{
127
+ latitude?: number | undefined;
128
+ longitude?: number | undefined;
129
+ city?: string | undefined;
130
+ }>;
131
+ }[] | undefined;
132
+ id?: never;
133
+ isProviderExecuted?: never;
134
+ args?: never;
135
+ supportsDeferredResults?: never;
136
+ } & {
137
+ type: "dynamic";
138
+ } & {
139
+ execute: import("ai").ToolExecuteFunction<{
140
+ latitude?: number | undefined;
141
+ longitude?: number | undefined;
142
+ city?: string | undefined;
143
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
144
+ }) | ({
145
+ title?: string;
146
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
147
+ metadata?: import("@ai-sdk/provider").JSONObject;
148
+ inputSchema: import("ai").FlexibleSchema<{
149
+ latitude?: number | undefined;
150
+ longitude?: number | undefined;
151
+ city?: string | undefined;
152
+ }>;
153
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
154
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
155
+ latitude?: number | undefined;
156
+ longitude?: number | undefined;
157
+ city?: string | undefined;
158
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
159
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
160
+ onInputDelta?: ((options: {
161
+ inputTextDelta: string;
162
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
163
+ onInputAvailable?: ((options: {
164
+ input: {
165
+ latitude?: number | undefined;
166
+ longitude?: number | undefined;
167
+ city?: string | undefined;
168
+ };
169
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
170
+ toModelOutput?: ((options: {
171
+ toolCallId: string;
172
+ input: {
173
+ latitude?: number | undefined;
174
+ longitude?: number | undefined;
175
+ city?: string | undefined;
176
+ };
177
+ output: any;
178
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
179
+ } & Partial<{
180
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
181
+ execute: import("ai").ToolExecuteFunction<{
182
+ latitude?: number | undefined;
183
+ longitude?: number | undefined;
184
+ city?: string | undefined;
185
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
186
+ }> & {
187
+ type: "provider";
188
+ id: `${string}.${string}`;
189
+ args: Record<string, unknown>;
190
+ description?: never;
191
+ strict?: never;
192
+ inputExamples?: never;
193
+ } & {
194
+ isProviderExecuted: false;
195
+ supportsDeferredResults?: never;
196
+ } & {
197
+ execute: import("ai").ToolExecuteFunction<{
198
+ latitude?: number | undefined;
199
+ longitude?: number | undefined;
200
+ city?: string | undefined;
201
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
202
+ }) | ({
203
+ title?: string;
204
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
205
+ metadata?: import("@ai-sdk/provider").JSONObject;
206
+ inputSchema: import("ai").FlexibleSchema<{
207
+ latitude?: number | undefined;
208
+ longitude?: number | undefined;
209
+ city?: string | undefined;
210
+ }>;
211
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
212
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
213
+ latitude?: number | undefined;
214
+ longitude?: number | undefined;
215
+ city?: string | undefined;
216
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
217
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
218
+ onInputDelta?: ((options: {
219
+ inputTextDelta: string;
220
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
221
+ onInputAvailable?: ((options: {
222
+ input: {
223
+ latitude?: number | undefined;
224
+ longitude?: number | undefined;
225
+ city?: string | undefined;
226
+ };
227
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
228
+ toModelOutput?: ((options: {
229
+ toolCallId: string;
230
+ input: {
231
+ latitude?: number | undefined;
232
+ longitude?: number | undefined;
233
+ city?: string | undefined;
234
+ };
235
+ output: any;
236
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
237
+ } & Partial<{
238
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
239
+ execute: import("ai").ToolExecuteFunction<{
240
+ latitude?: number | undefined;
241
+ longitude?: number | undefined;
242
+ city?: string | undefined;
243
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
244
+ }> & {
245
+ type: "provider";
246
+ id: `${string}.${string}`;
247
+ args: Record<string, unknown>;
248
+ description?: never;
249
+ strict?: never;
250
+ inputExamples?: never;
251
+ } & {
252
+ isProviderExecuted: true;
253
+ supportsDeferredResults?: boolean;
254
+ } & {
255
+ execute: import("ai").ToolExecuteFunction<{
256
+ latitude?: number | undefined;
257
+ longitude?: number | undefined;
258
+ city?: string | undefined;
259
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
260
+ });
261
+ createDocument: ({
262
+ title?: string;
263
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
264
+ metadata?: import("@ai-sdk/provider").JSONObject;
265
+ inputSchema: import("ai").FlexibleSchema<{
266
+ title: string;
267
+ kind: "text" | "code" | "sheet";
268
+ }>;
269
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
270
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
271
+ title: string;
272
+ kind: "text" | "code" | "sheet";
273
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
274
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
275
+ onInputDelta?: ((options: {
276
+ inputTextDelta: string;
277
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
278
+ onInputAvailable?: ((options: {
279
+ input: {
280
+ title: string;
281
+ kind: "text" | "code" | "sheet";
282
+ };
283
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
284
+ toModelOutput?: ((options: {
285
+ toolCallId: string;
286
+ input: {
287
+ title: string;
288
+ kind: "text" | "code" | "sheet";
289
+ };
290
+ output: NoInfer<{
291
+ id: `${string}-${string}-${string}-${string}-${string}`;
292
+ title: string;
293
+ kind: "text" | "code" | "sheet";
294
+ content: string;
295
+ }>;
296
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
297
+ } & {
298
+ outputSchema?: import("ai").FlexibleSchema<{
299
+ id: `${string}-${string}-${string}-${string}-${string}`;
300
+ title: string;
301
+ kind: "text" | "code" | "sheet";
302
+ content: string;
303
+ }> | undefined;
304
+ execute: import("ai").ToolExecuteFunction<{
305
+ title: string;
306
+ kind: "text" | "code" | "sheet";
307
+ }, {
308
+ id: `${string}-${string}-${string}-${string}-${string}`;
309
+ title: string;
310
+ kind: "text" | "code" | "sheet";
311
+ content: string;
312
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
313
+ } & {
314
+ description?: string | ((options: {
315
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
316
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
317
+ }) => string) | undefined;
318
+ strict?: boolean;
319
+ inputExamples?: {
320
+ input: NoInfer<{
321
+ title: string;
322
+ kind: "text" | "code" | "sheet";
323
+ }>;
324
+ }[] | undefined;
325
+ id?: never;
326
+ isProviderExecuted?: never;
327
+ args?: never;
328
+ supportsDeferredResults?: never;
329
+ } & {
330
+ type?: undefined | "function";
331
+ } & {
332
+ execute: import("ai").ToolExecuteFunction<{
333
+ title: string;
334
+ kind: "text" | "code" | "sheet";
335
+ }, {
336
+ id: `${string}-${string}-${string}-${string}-${string}`;
337
+ title: string;
338
+ kind: "text" | "code" | "sheet";
339
+ content: string;
340
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
341
+ }) | ({
342
+ title?: string;
343
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
344
+ metadata?: import("@ai-sdk/provider").JSONObject;
345
+ inputSchema: import("ai").FlexibleSchema<{
346
+ title: string;
347
+ kind: "text" | "code" | "sheet";
348
+ }>;
349
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
350
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
351
+ title: string;
352
+ kind: "text" | "code" | "sheet";
353
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
354
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
355
+ onInputDelta?: ((options: {
356
+ inputTextDelta: string;
357
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
358
+ onInputAvailable?: ((options: {
359
+ input: {
360
+ title: string;
361
+ kind: "text" | "code" | "sheet";
362
+ };
363
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
364
+ toModelOutput?: ((options: {
365
+ toolCallId: string;
366
+ input: {
367
+ title: string;
368
+ kind: "text" | "code" | "sheet";
369
+ };
370
+ output: NoInfer<{
371
+ id: `${string}-${string}-${string}-${string}-${string}`;
372
+ title: string;
373
+ kind: "text" | "code" | "sheet";
374
+ content: string;
375
+ }>;
376
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
377
+ } & {
378
+ outputSchema?: import("ai").FlexibleSchema<{
379
+ id: `${string}-${string}-${string}-${string}-${string}`;
380
+ title: string;
381
+ kind: "text" | "code" | "sheet";
382
+ content: string;
383
+ }> | undefined;
384
+ execute: import("ai").ToolExecuteFunction<{
385
+ title: string;
386
+ kind: "text" | "code" | "sheet";
387
+ }, {
388
+ id: `${string}-${string}-${string}-${string}-${string}`;
389
+ title: string;
390
+ kind: "text" | "code" | "sheet";
391
+ content: string;
392
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
393
+ } & {
394
+ description?: string | ((options: {
395
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
396
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
397
+ }) => string) | undefined;
398
+ strict?: boolean;
399
+ inputExamples?: {
400
+ input: NoInfer<{
401
+ title: string;
402
+ kind: "text" | "code" | "sheet";
403
+ }>;
404
+ }[] | undefined;
405
+ id?: never;
406
+ isProviderExecuted?: never;
407
+ args?: never;
408
+ supportsDeferredResults?: never;
409
+ } & {
410
+ type: "dynamic";
411
+ } & {
412
+ execute: import("ai").ToolExecuteFunction<{
413
+ title: string;
414
+ kind: "text" | "code" | "sheet";
415
+ }, {
416
+ id: `${string}-${string}-${string}-${string}-${string}`;
417
+ title: string;
418
+ kind: "text" | "code" | "sheet";
419
+ content: string;
420
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
421
+ }) | ({
422
+ title?: string;
423
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
424
+ metadata?: import("@ai-sdk/provider").JSONObject;
425
+ inputSchema: import("ai").FlexibleSchema<{
426
+ title: string;
427
+ kind: "text" | "code" | "sheet";
428
+ }>;
429
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
430
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
431
+ title: string;
432
+ kind: "text" | "code" | "sheet";
433
+ }, 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: {
440
+ title: string;
441
+ kind: "text" | "code" | "sheet";
442
+ };
443
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
444
+ toModelOutput?: ((options: {
445
+ toolCallId: string;
446
+ input: {
447
+ title: string;
448
+ kind: "text" | "code" | "sheet";
449
+ };
450
+ output: NoInfer<{
451
+ id: `${string}-${string}-${string}-${string}-${string}`;
452
+ title: string;
453
+ kind: "text" | "code" | "sheet";
454
+ content: string;
455
+ }>;
456
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
457
+ } & {
458
+ outputSchema?: import("ai").FlexibleSchema<{
459
+ id: `${string}-${string}-${string}-${string}-${string}`;
460
+ title: string;
461
+ kind: "text" | "code" | "sheet";
462
+ content: string;
463
+ }> | undefined;
464
+ execute: import("ai").ToolExecuteFunction<{
465
+ title: string;
466
+ kind: "text" | "code" | "sheet";
467
+ }, {
468
+ id: `${string}-${string}-${string}-${string}-${string}`;
469
+ title: string;
470
+ kind: "text" | "code" | "sheet";
471
+ content: string;
472
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
473
+ } & {
474
+ type: "provider";
475
+ id: `${string}.${string}`;
476
+ args: Record<string, unknown>;
477
+ description?: never;
478
+ strict?: never;
479
+ inputExamples?: never;
480
+ } & {
481
+ isProviderExecuted: false;
482
+ supportsDeferredResults?: never;
483
+ } & {
484
+ execute: import("ai").ToolExecuteFunction<{
485
+ title: string;
486
+ kind: "text" | "code" | "sheet";
487
+ }, {
488
+ id: `${string}-${string}-${string}-${string}-${string}`;
489
+ title: string;
490
+ kind: "text" | "code" | "sheet";
491
+ content: string;
492
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
493
+ }) | ({
494
+ title?: string;
495
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
496
+ metadata?: import("@ai-sdk/provider").JSONObject;
497
+ inputSchema: import("ai").FlexibleSchema<{
498
+ title: string;
499
+ kind: "text" | "code" | "sheet";
500
+ }>;
501
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
502
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
503
+ title: string;
504
+ kind: "text" | "code" | "sheet";
505
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
506
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
507
+ onInputDelta?: ((options: {
508
+ inputTextDelta: string;
509
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
510
+ onInputAvailable?: ((options: {
511
+ input: {
512
+ title: string;
513
+ kind: "text" | "code" | "sheet";
514
+ };
515
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
516
+ toModelOutput?: ((options: {
517
+ toolCallId: string;
518
+ input: {
519
+ title: string;
520
+ kind: "text" | "code" | "sheet";
521
+ };
522
+ output: NoInfer<{
523
+ id: `${string}-${string}-${string}-${string}-${string}`;
524
+ title: string;
525
+ kind: "text" | "code" | "sheet";
526
+ content: string;
527
+ }>;
528
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
529
+ } & {
530
+ outputSchema?: import("ai").FlexibleSchema<{
531
+ id: `${string}-${string}-${string}-${string}-${string}`;
532
+ title: string;
533
+ kind: "text" | "code" | "sheet";
534
+ content: string;
535
+ }> | undefined;
536
+ execute: import("ai").ToolExecuteFunction<{
537
+ title: string;
538
+ kind: "text" | "code" | "sheet";
539
+ }, {
540
+ id: `${string}-${string}-${string}-${string}-${string}`;
541
+ title: string;
542
+ kind: "text" | "code" | "sheet";
543
+ content: string;
544
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
545
+ } & {
546
+ type: "provider";
547
+ id: `${string}.${string}`;
548
+ args: Record<string, unknown>;
549
+ description?: never;
550
+ strict?: never;
551
+ inputExamples?: never;
552
+ } & {
553
+ isProviderExecuted: true;
554
+ supportsDeferredResults?: boolean;
555
+ } & {
556
+ execute: import("ai").ToolExecuteFunction<{
557
+ title: string;
558
+ kind: "text" | "code" | "sheet";
559
+ }, {
560
+ id: `${string}-${string}-${string}-${string}-${string}`;
561
+ title: string;
562
+ kind: "text" | "code" | "sheet";
563
+ content: string;
564
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
565
+ });
566
+ editDocument: ({
567
+ title?: string;
568
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
569
+ metadata?: import("@ai-sdk/provider").JSONObject;
570
+ inputSchema: import("ai").FlexibleSchema<{
571
+ id: string;
572
+ old_string: string;
573
+ new_string: string;
574
+ replace_all?: boolean | undefined;
575
+ }>;
576
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
577
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
578
+ id: string;
579
+ old_string: string;
580
+ new_string: string;
581
+ replace_all?: boolean | undefined;
582
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
583
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
584
+ onInputDelta?: ((options: {
585
+ inputTextDelta: string;
586
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
587
+ onInputAvailable?: ((options: {
588
+ input: {
589
+ id: string;
590
+ old_string: string;
591
+ new_string: string;
592
+ replace_all?: boolean | undefined;
593
+ };
594
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
595
+ toModelOutput?: ((options: {
596
+ toolCallId: string;
597
+ input: {
598
+ id: string;
599
+ old_string: string;
600
+ new_string: string;
601
+ replace_all?: boolean | undefined;
602
+ };
603
+ output: NoInfer<{
604
+ error: string;
605
+ id?: undefined;
606
+ title?: undefined;
607
+ kind?: undefined;
608
+ content?: undefined;
609
+ } | {
610
+ id: string;
611
+ title: string;
612
+ kind: DocumentKind;
613
+ content: string;
614
+ error?: undefined;
615
+ }>;
616
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
617
+ } & {
618
+ outputSchema?: import("ai").FlexibleSchema<{
619
+ error: string;
620
+ id?: undefined;
621
+ title?: undefined;
622
+ kind?: undefined;
623
+ content?: undefined;
624
+ } | {
625
+ id: string;
626
+ title: string;
627
+ kind: DocumentKind;
628
+ content: string;
629
+ error?: undefined;
630
+ }> | undefined;
631
+ execute: import("ai").ToolExecuteFunction<{
632
+ id: string;
633
+ old_string: string;
634
+ new_string: string;
635
+ replace_all?: boolean | undefined;
636
+ }, {
637
+ error: string;
638
+ id?: undefined;
639
+ title?: undefined;
640
+ kind?: undefined;
641
+ content?: undefined;
642
+ } | {
643
+ id: string;
644
+ title: string;
645
+ kind: DocumentKind;
646
+ content: string;
647
+ error?: undefined;
648
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
649
+ } & {
650
+ description?: string | ((options: {
651
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
652
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
653
+ }) => string) | undefined;
654
+ strict?: boolean;
655
+ inputExamples?: {
656
+ input: NoInfer<{
657
+ id: string;
658
+ old_string: string;
659
+ new_string: string;
660
+ replace_all?: boolean | undefined;
661
+ }>;
662
+ }[] | undefined;
663
+ id?: never;
664
+ isProviderExecuted?: never;
665
+ args?: never;
666
+ supportsDeferredResults?: never;
667
+ } & {
668
+ type?: undefined | "function";
669
+ } & {
670
+ execute: import("ai").ToolExecuteFunction<{
671
+ id: string;
672
+ old_string: string;
673
+ new_string: string;
674
+ replace_all?: boolean | undefined;
675
+ }, {
676
+ error: string;
677
+ id?: undefined;
678
+ title?: undefined;
679
+ kind?: undefined;
680
+ content?: undefined;
681
+ } | {
682
+ id: string;
683
+ title: string;
684
+ kind: DocumentKind;
685
+ content: string;
686
+ error?: undefined;
687
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
688
+ }) | ({
689
+ title?: string;
690
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
691
+ metadata?: import("@ai-sdk/provider").JSONObject;
692
+ inputSchema: import("ai").FlexibleSchema<{
693
+ id: string;
694
+ old_string: string;
695
+ new_string: string;
696
+ replace_all?: boolean | undefined;
697
+ }>;
698
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
699
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
700
+ id: string;
701
+ old_string: string;
702
+ new_string: string;
703
+ replace_all?: boolean | undefined;
704
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
705
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
706
+ onInputDelta?: ((options: {
707
+ inputTextDelta: string;
708
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
709
+ onInputAvailable?: ((options: {
710
+ input: {
711
+ id: string;
712
+ old_string: string;
713
+ new_string: string;
714
+ replace_all?: boolean | undefined;
715
+ };
716
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
717
+ toModelOutput?: ((options: {
718
+ toolCallId: string;
719
+ input: {
720
+ id: string;
721
+ old_string: string;
722
+ new_string: string;
723
+ replace_all?: boolean | undefined;
724
+ };
725
+ output: NoInfer<{
726
+ error: string;
727
+ id?: undefined;
728
+ title?: undefined;
729
+ kind?: undefined;
730
+ content?: undefined;
731
+ } | {
732
+ id: string;
733
+ title: string;
734
+ kind: DocumentKind;
735
+ content: string;
736
+ error?: undefined;
737
+ }>;
738
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
739
+ } & {
740
+ outputSchema?: import("ai").FlexibleSchema<{
741
+ error: string;
742
+ id?: undefined;
743
+ title?: undefined;
744
+ kind?: undefined;
745
+ content?: undefined;
746
+ } | {
747
+ id: string;
748
+ title: string;
749
+ kind: DocumentKind;
750
+ content: string;
751
+ error?: undefined;
752
+ }> | undefined;
753
+ execute: import("ai").ToolExecuteFunction<{
754
+ id: string;
755
+ old_string: string;
756
+ new_string: string;
757
+ replace_all?: boolean | undefined;
758
+ }, {
759
+ error: string;
760
+ id?: undefined;
761
+ title?: undefined;
762
+ kind?: undefined;
763
+ content?: undefined;
764
+ } | {
765
+ id: string;
766
+ title: string;
767
+ kind: DocumentKind;
768
+ content: string;
769
+ error?: undefined;
770
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
771
+ } & {
772
+ description?: string | ((options: {
773
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
774
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
775
+ }) => string) | undefined;
776
+ strict?: boolean;
777
+ inputExamples?: {
778
+ input: NoInfer<{
779
+ id: string;
780
+ old_string: string;
781
+ new_string: string;
782
+ replace_all?: boolean | undefined;
783
+ }>;
784
+ }[] | undefined;
785
+ id?: never;
786
+ isProviderExecuted?: never;
787
+ args?: never;
788
+ supportsDeferredResults?: never;
789
+ } & {
790
+ type: "dynamic";
791
+ } & {
792
+ execute: import("ai").ToolExecuteFunction<{
793
+ id: string;
794
+ old_string: string;
795
+ new_string: string;
796
+ replace_all?: boolean | undefined;
797
+ }, {
798
+ error: string;
799
+ id?: undefined;
800
+ title?: undefined;
801
+ kind?: undefined;
802
+ content?: undefined;
803
+ } | {
804
+ id: string;
805
+ title: string;
806
+ kind: DocumentKind;
807
+ content: string;
808
+ error?: undefined;
809
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
810
+ }) | ({
811
+ title?: string;
812
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
813
+ metadata?: import("@ai-sdk/provider").JSONObject;
814
+ inputSchema: import("ai").FlexibleSchema<{
815
+ id: string;
816
+ old_string: string;
817
+ new_string: string;
818
+ replace_all?: boolean | undefined;
819
+ }>;
820
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
821
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
822
+ id: string;
823
+ old_string: string;
824
+ new_string: string;
825
+ replace_all?: boolean | undefined;
826
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
827
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
828
+ onInputDelta?: ((options: {
829
+ inputTextDelta: string;
830
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
831
+ onInputAvailable?: ((options: {
832
+ input: {
833
+ id: string;
834
+ old_string: string;
835
+ new_string: string;
836
+ replace_all?: boolean | undefined;
837
+ };
838
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
839
+ toModelOutput?: ((options: {
840
+ toolCallId: string;
841
+ input: {
842
+ id: string;
843
+ old_string: string;
844
+ new_string: string;
845
+ replace_all?: boolean | undefined;
846
+ };
847
+ output: NoInfer<{
848
+ error: string;
849
+ id?: undefined;
850
+ title?: undefined;
851
+ kind?: undefined;
852
+ content?: undefined;
853
+ } | {
854
+ id: string;
855
+ title: string;
856
+ kind: DocumentKind;
857
+ content: string;
858
+ error?: undefined;
859
+ }>;
860
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
861
+ } & {
862
+ outputSchema?: import("ai").FlexibleSchema<{
863
+ error: string;
864
+ id?: undefined;
865
+ title?: undefined;
866
+ kind?: undefined;
867
+ content?: undefined;
868
+ } | {
869
+ id: string;
870
+ title: string;
871
+ kind: DocumentKind;
872
+ content: string;
873
+ error?: undefined;
874
+ }> | undefined;
875
+ execute: import("ai").ToolExecuteFunction<{
876
+ id: string;
877
+ old_string: string;
878
+ new_string: string;
879
+ replace_all?: boolean | undefined;
880
+ }, {
881
+ error: string;
882
+ id?: undefined;
883
+ title?: undefined;
884
+ kind?: undefined;
885
+ content?: undefined;
886
+ } | {
887
+ id: string;
888
+ title: string;
889
+ kind: DocumentKind;
890
+ content: string;
891
+ error?: undefined;
892
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
893
+ } & {
894
+ type: "provider";
895
+ id: `${string}.${string}`;
896
+ args: Record<string, unknown>;
897
+ description?: never;
898
+ strict?: never;
899
+ inputExamples?: never;
900
+ } & {
901
+ isProviderExecuted: false;
902
+ supportsDeferredResults?: never;
903
+ } & {
904
+ execute: import("ai").ToolExecuteFunction<{
905
+ id: string;
906
+ old_string: string;
907
+ new_string: string;
908
+ replace_all?: boolean | undefined;
909
+ }, {
910
+ error: string;
911
+ id?: undefined;
912
+ title?: undefined;
913
+ kind?: undefined;
914
+ content?: undefined;
915
+ } | {
916
+ id: string;
917
+ title: string;
918
+ kind: DocumentKind;
919
+ content: string;
920
+ error?: undefined;
921
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
922
+ }) | ({
923
+ title?: string;
924
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
925
+ metadata?: import("@ai-sdk/provider").JSONObject;
926
+ inputSchema: import("ai").FlexibleSchema<{
927
+ id: string;
928
+ old_string: string;
929
+ new_string: string;
930
+ replace_all?: boolean | undefined;
931
+ }>;
932
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
933
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
934
+ id: string;
935
+ old_string: string;
936
+ new_string: string;
937
+ replace_all?: boolean | undefined;
938
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
939
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
940
+ onInputDelta?: ((options: {
941
+ inputTextDelta: string;
942
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
943
+ onInputAvailable?: ((options: {
944
+ input: {
945
+ id: string;
946
+ old_string: string;
947
+ new_string: string;
948
+ replace_all?: boolean | undefined;
949
+ };
950
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
951
+ toModelOutput?: ((options: {
952
+ toolCallId: string;
953
+ input: {
954
+ id: string;
955
+ old_string: string;
956
+ new_string: string;
957
+ replace_all?: boolean | undefined;
958
+ };
959
+ output: NoInfer<{
960
+ error: string;
961
+ id?: undefined;
962
+ title?: undefined;
963
+ kind?: undefined;
964
+ content?: undefined;
965
+ } | {
966
+ id: string;
967
+ title: string;
968
+ kind: DocumentKind;
969
+ content: string;
970
+ error?: undefined;
971
+ }>;
972
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
973
+ } & {
974
+ outputSchema?: import("ai").FlexibleSchema<{
975
+ error: string;
976
+ id?: undefined;
977
+ title?: undefined;
978
+ kind?: undefined;
979
+ content?: undefined;
980
+ } | {
981
+ id: string;
982
+ title: string;
983
+ kind: DocumentKind;
984
+ content: string;
985
+ error?: undefined;
986
+ }> | undefined;
987
+ execute: import("ai").ToolExecuteFunction<{
988
+ id: string;
989
+ old_string: string;
990
+ new_string: string;
991
+ replace_all?: boolean | undefined;
992
+ }, {
993
+ error: string;
994
+ id?: undefined;
995
+ title?: undefined;
996
+ kind?: undefined;
997
+ content?: undefined;
998
+ } | {
999
+ id: string;
1000
+ title: string;
1001
+ kind: DocumentKind;
1002
+ content: string;
1003
+ error?: undefined;
1004
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1005
+ } & {
1006
+ type: "provider";
1007
+ id: `${string}.${string}`;
1008
+ args: Record<string, unknown>;
1009
+ description?: never;
1010
+ strict?: never;
1011
+ inputExamples?: never;
1012
+ } & {
1013
+ isProviderExecuted: true;
1014
+ supportsDeferredResults?: boolean;
1015
+ } & {
1016
+ execute: import("ai").ToolExecuteFunction<{
1017
+ id: string;
1018
+ old_string: string;
1019
+ new_string: string;
1020
+ replace_all?: boolean | undefined;
1021
+ }, {
1022
+ error: string;
1023
+ id?: undefined;
1024
+ title?: undefined;
1025
+ kind?: undefined;
1026
+ content?: undefined;
1027
+ } | {
1028
+ id: string;
1029
+ title: string;
1030
+ kind: DocumentKind;
1031
+ content: string;
1032
+ error?: undefined;
1033
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1034
+ });
1035
+ updateDocument: ({
1036
+ title?: string;
1037
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1038
+ metadata?: import("@ai-sdk/provider").JSONObject;
1039
+ inputSchema: import("ai").FlexibleSchema<{
1040
+ id: string;
1041
+ description: string;
1042
+ }>;
1043
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1044
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1045
+ id: string;
1046
+ description: string;
1047
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1048
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1049
+ onInputDelta?: ((options: {
1050
+ inputTextDelta: string;
1051
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1052
+ onInputAvailable?: ((options: {
1053
+ input: {
1054
+ id: string;
1055
+ description: string;
1056
+ };
1057
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1058
+ toModelOutput?: ((options: {
1059
+ toolCallId: string;
1060
+ input: {
1061
+ id: string;
1062
+ description: string;
1063
+ };
1064
+ output: NoInfer<{
1065
+ error: string;
1066
+ id?: undefined;
1067
+ title?: undefined;
1068
+ kind?: undefined;
1069
+ content?: undefined;
1070
+ } | {
1071
+ id: string;
1072
+ title: string;
1073
+ kind: DocumentKind;
1074
+ content: string;
1075
+ error?: undefined;
1076
+ }>;
1077
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1078
+ } & {
1079
+ outputSchema?: import("ai").FlexibleSchema<{
1080
+ error: string;
1081
+ id?: undefined;
1082
+ title?: undefined;
1083
+ kind?: undefined;
1084
+ content?: undefined;
1085
+ } | {
1086
+ id: string;
1087
+ title: string;
1088
+ kind: DocumentKind;
1089
+ content: string;
1090
+ error?: undefined;
1091
+ }> | undefined;
1092
+ execute: import("ai").ToolExecuteFunction<{
1093
+ id: string;
1094
+ description: string;
1095
+ }, {
1096
+ error: string;
1097
+ id?: undefined;
1098
+ title?: undefined;
1099
+ kind?: undefined;
1100
+ content?: undefined;
1101
+ } | {
1102
+ id: string;
1103
+ title: string;
1104
+ kind: DocumentKind;
1105
+ content: string;
1106
+ error?: undefined;
1107
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1108
+ } & {
1109
+ description?: string | ((options: {
1110
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1111
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1112
+ }) => string) | undefined;
1113
+ strict?: boolean;
1114
+ inputExamples?: {
1115
+ input: NoInfer<{
1116
+ id: string;
1117
+ description: string;
1118
+ }>;
1119
+ }[] | undefined;
1120
+ id?: never;
1121
+ isProviderExecuted?: never;
1122
+ args?: never;
1123
+ supportsDeferredResults?: never;
1124
+ } & {
1125
+ type?: undefined | "function";
1126
+ } & {
1127
+ execute: import("ai").ToolExecuteFunction<{
1128
+ id: string;
1129
+ description: string;
1130
+ }, {
1131
+ error: string;
1132
+ id?: undefined;
1133
+ title?: undefined;
1134
+ kind?: undefined;
1135
+ content?: undefined;
1136
+ } | {
1137
+ id: string;
1138
+ title: string;
1139
+ kind: DocumentKind;
1140
+ content: string;
1141
+ error?: undefined;
1142
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1143
+ }) | ({
1144
+ title?: string;
1145
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1146
+ metadata?: import("@ai-sdk/provider").JSONObject;
1147
+ inputSchema: import("ai").FlexibleSchema<{
1148
+ id: string;
1149
+ description: string;
1150
+ }>;
1151
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1152
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1153
+ id: string;
1154
+ description: string;
1155
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1156
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1157
+ onInputDelta?: ((options: {
1158
+ inputTextDelta: string;
1159
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1160
+ onInputAvailable?: ((options: {
1161
+ input: {
1162
+ id: string;
1163
+ description: string;
1164
+ };
1165
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1166
+ toModelOutput?: ((options: {
1167
+ toolCallId: string;
1168
+ input: {
1169
+ id: string;
1170
+ description: string;
1171
+ };
1172
+ output: NoInfer<{
1173
+ error: string;
1174
+ id?: undefined;
1175
+ title?: undefined;
1176
+ kind?: undefined;
1177
+ content?: undefined;
1178
+ } | {
1179
+ id: string;
1180
+ title: string;
1181
+ kind: DocumentKind;
1182
+ content: string;
1183
+ error?: undefined;
1184
+ }>;
1185
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1186
+ } & {
1187
+ outputSchema?: import("ai").FlexibleSchema<{
1188
+ error: string;
1189
+ id?: undefined;
1190
+ title?: undefined;
1191
+ kind?: undefined;
1192
+ content?: undefined;
1193
+ } | {
1194
+ id: string;
1195
+ title: string;
1196
+ kind: DocumentKind;
1197
+ content: string;
1198
+ error?: undefined;
1199
+ }> | undefined;
1200
+ execute: import("ai").ToolExecuteFunction<{
1201
+ id: string;
1202
+ description: string;
1203
+ }, {
1204
+ error: string;
1205
+ id?: undefined;
1206
+ title?: undefined;
1207
+ kind?: undefined;
1208
+ content?: undefined;
1209
+ } | {
1210
+ id: string;
1211
+ title: string;
1212
+ kind: DocumentKind;
1213
+ content: string;
1214
+ error?: undefined;
1215
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1216
+ } & {
1217
+ description?: string | ((options: {
1218
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1219
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1220
+ }) => string) | undefined;
1221
+ strict?: boolean;
1222
+ inputExamples?: {
1223
+ input: NoInfer<{
1224
+ id: string;
1225
+ description: string;
1226
+ }>;
1227
+ }[] | undefined;
1228
+ id?: never;
1229
+ isProviderExecuted?: never;
1230
+ args?: never;
1231
+ supportsDeferredResults?: never;
1232
+ } & {
1233
+ type: "dynamic";
1234
+ } & {
1235
+ execute: import("ai").ToolExecuteFunction<{
1236
+ id: string;
1237
+ description: string;
1238
+ }, {
1239
+ error: string;
1240
+ id?: undefined;
1241
+ title?: undefined;
1242
+ kind?: undefined;
1243
+ content?: undefined;
1244
+ } | {
1245
+ id: string;
1246
+ title: string;
1247
+ kind: DocumentKind;
1248
+ content: string;
1249
+ error?: undefined;
1250
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1251
+ }) | ({
1252
+ title?: string;
1253
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1254
+ metadata?: import("@ai-sdk/provider").JSONObject;
1255
+ inputSchema: import("ai").FlexibleSchema<{
1256
+ id: string;
1257
+ description: string;
1258
+ }>;
1259
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1260
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1261
+ id: string;
1262
+ description: string;
1263
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1264
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1265
+ onInputDelta?: ((options: {
1266
+ inputTextDelta: string;
1267
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1268
+ onInputAvailable?: ((options: {
1269
+ input: {
1270
+ id: string;
1271
+ description: string;
1272
+ };
1273
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1274
+ toModelOutput?: ((options: {
1275
+ toolCallId: string;
1276
+ input: {
1277
+ id: string;
1278
+ description: string;
1279
+ };
1280
+ output: NoInfer<{
1281
+ error: string;
1282
+ id?: undefined;
1283
+ title?: undefined;
1284
+ kind?: undefined;
1285
+ content?: undefined;
1286
+ } | {
1287
+ id: string;
1288
+ title: string;
1289
+ kind: DocumentKind;
1290
+ content: string;
1291
+ error?: undefined;
1292
+ }>;
1293
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1294
+ } & {
1295
+ outputSchema?: import("ai").FlexibleSchema<{
1296
+ error: string;
1297
+ id?: undefined;
1298
+ title?: undefined;
1299
+ kind?: undefined;
1300
+ content?: undefined;
1301
+ } | {
1302
+ id: string;
1303
+ title: string;
1304
+ kind: DocumentKind;
1305
+ content: string;
1306
+ error?: undefined;
1307
+ }> | undefined;
1308
+ execute: import("ai").ToolExecuteFunction<{
1309
+ id: string;
1310
+ description: string;
1311
+ }, {
1312
+ error: string;
1313
+ id?: undefined;
1314
+ title?: undefined;
1315
+ kind?: undefined;
1316
+ content?: undefined;
1317
+ } | {
1318
+ id: string;
1319
+ title: string;
1320
+ kind: DocumentKind;
1321
+ content: string;
1322
+ error?: undefined;
1323
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1324
+ } & {
1325
+ type: "provider";
1326
+ id: `${string}.${string}`;
1327
+ args: Record<string, unknown>;
1328
+ description?: never;
1329
+ strict?: never;
1330
+ inputExamples?: never;
1331
+ } & {
1332
+ isProviderExecuted: false;
1333
+ supportsDeferredResults?: never;
1334
+ } & {
1335
+ execute: import("ai").ToolExecuteFunction<{
1336
+ id: string;
1337
+ description: string;
1338
+ }, {
1339
+ error: string;
1340
+ id?: undefined;
1341
+ title?: undefined;
1342
+ kind?: undefined;
1343
+ content?: undefined;
1344
+ } | {
1345
+ id: string;
1346
+ title: string;
1347
+ kind: DocumentKind;
1348
+ content: string;
1349
+ error?: undefined;
1350
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1351
+ }) | ({
1352
+ title?: string;
1353
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1354
+ metadata?: import("@ai-sdk/provider").JSONObject;
1355
+ inputSchema: import("ai").FlexibleSchema<{
1356
+ id: string;
1357
+ description: string;
1358
+ }>;
1359
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1360
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1361
+ id: string;
1362
+ description: string;
1363
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1364
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1365
+ onInputDelta?: ((options: {
1366
+ inputTextDelta: string;
1367
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1368
+ onInputAvailable?: ((options: {
1369
+ input: {
1370
+ id: string;
1371
+ description: string;
1372
+ };
1373
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1374
+ toModelOutput?: ((options: {
1375
+ toolCallId: string;
1376
+ input: {
1377
+ id: string;
1378
+ description: string;
1379
+ };
1380
+ output: NoInfer<{
1381
+ error: string;
1382
+ id?: undefined;
1383
+ title?: undefined;
1384
+ kind?: undefined;
1385
+ content?: undefined;
1386
+ } | {
1387
+ id: string;
1388
+ title: string;
1389
+ kind: DocumentKind;
1390
+ content: string;
1391
+ error?: undefined;
1392
+ }>;
1393
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1394
+ } & {
1395
+ outputSchema?: import("ai").FlexibleSchema<{
1396
+ error: string;
1397
+ id?: undefined;
1398
+ title?: undefined;
1399
+ kind?: undefined;
1400
+ content?: undefined;
1401
+ } | {
1402
+ id: string;
1403
+ title: string;
1404
+ kind: DocumentKind;
1405
+ content: string;
1406
+ error?: undefined;
1407
+ }> | undefined;
1408
+ execute: import("ai").ToolExecuteFunction<{
1409
+ id: string;
1410
+ description: string;
1411
+ }, {
1412
+ error: string;
1413
+ id?: undefined;
1414
+ title?: undefined;
1415
+ kind?: undefined;
1416
+ content?: undefined;
1417
+ } | {
1418
+ id: string;
1419
+ title: string;
1420
+ kind: DocumentKind;
1421
+ content: string;
1422
+ error?: undefined;
1423
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1424
+ } & {
1425
+ type: "provider";
1426
+ id: `${string}.${string}`;
1427
+ args: Record<string, unknown>;
1428
+ description?: never;
1429
+ strict?: never;
1430
+ inputExamples?: never;
1431
+ } & {
1432
+ isProviderExecuted: true;
1433
+ supportsDeferredResults?: boolean;
1434
+ } & {
1435
+ execute: import("ai").ToolExecuteFunction<{
1436
+ id: string;
1437
+ description: string;
1438
+ }, {
1439
+ error: string;
1440
+ id?: undefined;
1441
+ title?: undefined;
1442
+ kind?: undefined;
1443
+ content?: undefined;
1444
+ } | {
1445
+ id: string;
1446
+ title: string;
1447
+ kind: DocumentKind;
1448
+ content: string;
1449
+ error?: undefined;
1450
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1451
+ });
1452
+ requestSuggestions: ({
1453
+ title?: string;
1454
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1455
+ metadata?: import("@ai-sdk/provider").JSONObject;
1456
+ inputSchema: import("ai").FlexibleSchema<{
1457
+ documentId: string;
1458
+ }>;
1459
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1460
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1461
+ documentId: string;
1462
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1463
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1464
+ onInputDelta?: ((options: {
1465
+ inputTextDelta: string;
1466
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1467
+ onInputAvailable?: ((options: {
1468
+ input: {
1469
+ documentId: string;
1470
+ };
1471
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1472
+ toModelOutput?: ((options: {
1473
+ toolCallId: string;
1474
+ input: {
1475
+ documentId: string;
1476
+ };
1477
+ output: NoInfer<{
1478
+ error: string;
1479
+ id?: undefined;
1480
+ title?: undefined;
1481
+ kind?: undefined;
1482
+ message?: undefined;
1483
+ } | {
1484
+ id: string;
1485
+ title: string;
1486
+ kind: DocumentKind;
1487
+ message: string;
1488
+ error?: undefined;
1489
+ }>;
1490
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1491
+ } & {
1492
+ outputSchema?: import("ai").FlexibleSchema<{
1493
+ error: string;
1494
+ id?: undefined;
1495
+ title?: undefined;
1496
+ kind?: undefined;
1497
+ message?: undefined;
1498
+ } | {
1499
+ id: string;
1500
+ title: string;
1501
+ kind: DocumentKind;
1502
+ message: string;
1503
+ error?: undefined;
1504
+ }> | undefined;
1505
+ execute: import("ai").ToolExecuteFunction<{
1506
+ documentId: string;
1507
+ }, {
1508
+ error: string;
1509
+ id?: undefined;
1510
+ title?: undefined;
1511
+ kind?: undefined;
1512
+ message?: undefined;
1513
+ } | {
1514
+ id: string;
1515
+ title: string;
1516
+ kind: DocumentKind;
1517
+ message: string;
1518
+ error?: undefined;
1519
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1520
+ } & {
1521
+ description?: string | ((options: {
1522
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1523
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1524
+ }) => string) | undefined;
1525
+ strict?: boolean;
1526
+ inputExamples?: {
1527
+ input: NoInfer<{
1528
+ documentId: string;
1529
+ }>;
1530
+ }[] | undefined;
1531
+ id?: never;
1532
+ isProviderExecuted?: never;
1533
+ args?: never;
1534
+ supportsDeferredResults?: never;
1535
+ } & {
1536
+ type?: undefined | "function";
1537
+ } & {
1538
+ execute: import("ai").ToolExecuteFunction<{
1539
+ documentId: string;
1540
+ }, {
1541
+ error: string;
1542
+ id?: undefined;
1543
+ title?: undefined;
1544
+ kind?: undefined;
1545
+ message?: undefined;
1546
+ } | {
1547
+ id: string;
1548
+ title: string;
1549
+ kind: DocumentKind;
1550
+ message: string;
1551
+ error?: undefined;
1552
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1553
+ }) | ({
1554
+ title?: string;
1555
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1556
+ metadata?: import("@ai-sdk/provider").JSONObject;
1557
+ inputSchema: import("ai").FlexibleSchema<{
1558
+ documentId: string;
1559
+ }>;
1560
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1561
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1562
+ documentId: string;
1563
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1564
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1565
+ onInputDelta?: ((options: {
1566
+ inputTextDelta: string;
1567
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1568
+ onInputAvailable?: ((options: {
1569
+ input: {
1570
+ documentId: string;
1571
+ };
1572
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1573
+ toModelOutput?: ((options: {
1574
+ toolCallId: string;
1575
+ input: {
1576
+ documentId: string;
1577
+ };
1578
+ output: NoInfer<{
1579
+ error: string;
1580
+ id?: undefined;
1581
+ title?: undefined;
1582
+ kind?: undefined;
1583
+ message?: undefined;
1584
+ } | {
1585
+ id: string;
1586
+ title: string;
1587
+ kind: DocumentKind;
1588
+ message: string;
1589
+ error?: undefined;
1590
+ }>;
1591
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1592
+ } & {
1593
+ outputSchema?: import("ai").FlexibleSchema<{
1594
+ error: string;
1595
+ id?: undefined;
1596
+ title?: undefined;
1597
+ kind?: undefined;
1598
+ message?: undefined;
1599
+ } | {
1600
+ id: string;
1601
+ title: string;
1602
+ kind: DocumentKind;
1603
+ message: string;
1604
+ error?: undefined;
1605
+ }> | undefined;
1606
+ execute: import("ai").ToolExecuteFunction<{
1607
+ documentId: string;
1608
+ }, {
1609
+ error: string;
1610
+ id?: undefined;
1611
+ title?: undefined;
1612
+ kind?: undefined;
1613
+ message?: undefined;
1614
+ } | {
1615
+ id: string;
1616
+ title: string;
1617
+ kind: DocumentKind;
1618
+ message: string;
1619
+ error?: undefined;
1620
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1621
+ } & {
1622
+ description?: string | ((options: {
1623
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1624
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1625
+ }) => string) | undefined;
1626
+ strict?: boolean;
1627
+ inputExamples?: {
1628
+ input: NoInfer<{
1629
+ documentId: string;
1630
+ }>;
1631
+ }[] | undefined;
1632
+ id?: never;
1633
+ isProviderExecuted?: never;
1634
+ args?: never;
1635
+ supportsDeferredResults?: never;
1636
+ } & {
1637
+ type: "dynamic";
1638
+ } & {
1639
+ execute: import("ai").ToolExecuteFunction<{
1640
+ documentId: string;
1641
+ }, {
1642
+ error: string;
1643
+ id?: undefined;
1644
+ title?: undefined;
1645
+ kind?: undefined;
1646
+ message?: undefined;
1647
+ } | {
1648
+ id: string;
1649
+ title: string;
1650
+ kind: DocumentKind;
1651
+ message: string;
1652
+ error?: undefined;
1653
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1654
+ }) | ({
1655
+ title?: string;
1656
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1657
+ metadata?: import("@ai-sdk/provider").JSONObject;
1658
+ inputSchema: import("ai").FlexibleSchema<{
1659
+ documentId: string;
1660
+ }>;
1661
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1662
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1663
+ documentId: string;
1664
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1665
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1666
+ onInputDelta?: ((options: {
1667
+ inputTextDelta: string;
1668
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1669
+ onInputAvailable?: ((options: {
1670
+ input: {
1671
+ documentId: string;
1672
+ };
1673
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1674
+ toModelOutput?: ((options: {
1675
+ toolCallId: string;
1676
+ input: {
1677
+ documentId: string;
1678
+ };
1679
+ output: NoInfer<{
1680
+ error: string;
1681
+ id?: undefined;
1682
+ title?: undefined;
1683
+ kind?: undefined;
1684
+ message?: undefined;
1685
+ } | {
1686
+ id: string;
1687
+ title: string;
1688
+ kind: DocumentKind;
1689
+ message: string;
1690
+ error?: undefined;
1691
+ }>;
1692
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1693
+ } & {
1694
+ outputSchema?: import("ai").FlexibleSchema<{
1695
+ error: string;
1696
+ id?: undefined;
1697
+ title?: undefined;
1698
+ kind?: undefined;
1699
+ message?: undefined;
1700
+ } | {
1701
+ id: string;
1702
+ title: string;
1703
+ kind: DocumentKind;
1704
+ message: string;
1705
+ error?: undefined;
1706
+ }> | undefined;
1707
+ execute: import("ai").ToolExecuteFunction<{
1708
+ documentId: string;
1709
+ }, {
1710
+ error: string;
1711
+ id?: undefined;
1712
+ title?: undefined;
1713
+ kind?: undefined;
1714
+ message?: undefined;
1715
+ } | {
1716
+ id: string;
1717
+ title: string;
1718
+ kind: DocumentKind;
1719
+ message: string;
1720
+ error?: undefined;
1721
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1722
+ } & {
1723
+ type: "provider";
1724
+ id: `${string}.${string}`;
1725
+ args: Record<string, unknown>;
1726
+ description?: never;
1727
+ strict?: never;
1728
+ inputExamples?: never;
1729
+ } & {
1730
+ isProviderExecuted: false;
1731
+ supportsDeferredResults?: never;
1732
+ } & {
1733
+ execute: import("ai").ToolExecuteFunction<{
1734
+ documentId: string;
1735
+ }, {
1736
+ error: string;
1737
+ id?: undefined;
1738
+ title?: undefined;
1739
+ kind?: undefined;
1740
+ message?: undefined;
1741
+ } | {
1742
+ id: string;
1743
+ title: string;
1744
+ kind: DocumentKind;
1745
+ message: string;
1746
+ error?: undefined;
1747
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1748
+ }) | ({
1749
+ title?: string;
1750
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1751
+ metadata?: import("@ai-sdk/provider").JSONObject;
1752
+ inputSchema: import("ai").FlexibleSchema<{
1753
+ documentId: string;
1754
+ }>;
1755
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1756
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1757
+ documentId: string;
1758
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1759
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1760
+ onInputDelta?: ((options: {
1761
+ inputTextDelta: string;
1762
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1763
+ onInputAvailable?: ((options: {
1764
+ input: {
1765
+ documentId: string;
1766
+ };
1767
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1768
+ toModelOutput?: ((options: {
1769
+ toolCallId: string;
1770
+ input: {
1771
+ documentId: string;
1772
+ };
1773
+ output: NoInfer<{
1774
+ error: string;
1775
+ id?: undefined;
1776
+ title?: undefined;
1777
+ kind?: undefined;
1778
+ message?: undefined;
1779
+ } | {
1780
+ id: string;
1781
+ title: string;
1782
+ kind: DocumentKind;
1783
+ message: string;
1784
+ error?: undefined;
1785
+ }>;
1786
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1787
+ } & {
1788
+ outputSchema?: import("ai").FlexibleSchema<{
1789
+ error: string;
1790
+ id?: undefined;
1791
+ title?: undefined;
1792
+ kind?: undefined;
1793
+ message?: undefined;
1794
+ } | {
1795
+ id: string;
1796
+ title: string;
1797
+ kind: DocumentKind;
1798
+ message: string;
1799
+ error?: undefined;
1800
+ }> | undefined;
1801
+ execute: import("ai").ToolExecuteFunction<{
1802
+ documentId: string;
1803
+ }, {
1804
+ error: string;
1805
+ id?: undefined;
1806
+ title?: undefined;
1807
+ kind?: undefined;
1808
+ message?: undefined;
1809
+ } | {
1810
+ id: string;
1811
+ title: string;
1812
+ kind: DocumentKind;
1813
+ message: string;
1814
+ error?: undefined;
1815
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1816
+ } & {
1817
+ type: "provider";
1818
+ id: `${string}.${string}`;
1819
+ args: Record<string, unknown>;
1820
+ description?: never;
1821
+ strict?: never;
1822
+ inputExamples?: never;
1823
+ } & {
1824
+ isProviderExecuted: true;
1825
+ supportsDeferredResults?: boolean;
1826
+ } & {
1827
+ execute: import("ai").ToolExecuteFunction<{
1828
+ documentId: string;
1829
+ }, {
1830
+ error: string;
1831
+ id?: undefined;
1832
+ title?: undefined;
1833
+ kind?: undefined;
1834
+ message?: undefined;
1835
+ } | {
1836
+ id: string;
1837
+ title: string;
1838
+ kind: DocumentKind;
1839
+ message: string;
1840
+ error?: undefined;
1841
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1842
+ });
1843
+ webSearch: import("@ai-sdk/provider-utils").ProviderExecutedTool<{}, {
74
1844
  action?: {
75
1845
  type: "search";
76
1846
  query?: string;
@@ -90,6 +1860,6 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
90
1860
  type: "api";
91
1861
  name: string;
92
1862
  }>;
93
- }>;
1863
+ }, {}>;
94
1864
  };
95
1865
  //# sourceMappingURL=tools.d.ts.map