@deepagents/toolbox 4.2.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,832 @@
1
- export declare const web_search_tool: import("ai").Tool<{
2
- time: "d" | "w" | "m" | "y";
3
- query: string;
4
- source: "text" | "news" | "images";
5
- locale: string;
6
- maxResults: number;
7
- }, {
8
- readonly items: {
9
- snippet: string;
10
- title: string;
11
- link: string;
12
- hostname: string;
13
- }[];
14
- readonly total: number;
15
- readonly vqd: string;
16
- } | {
17
- readonly items: {
18
- snippet: string;
19
- title: string;
20
- link: string;
21
- date: number;
22
- source: string;
23
- image: string | undefined;
24
- relativeTime: string;
25
- }[];
26
- readonly total: number;
27
- readonly vqd: string;
28
- } | {
29
- readonly items: {
30
- title: string;
31
- thumbnail: string;
32
- image: string;
33
- link: string;
34
- height: number;
35
- width: number;
36
- source: string;
37
- }[];
38
- readonly total: number;
39
- readonly vqd: string;
40
- }>;
1
+ export declare const web_search_tool: ({
2
+ title?: string;
3
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
+ metadata?: import("@ai-sdk/provider").JSONObject;
5
+ inputSchema: import("ai").FlexibleSchema<{
6
+ time: "d" | "w" | "m" | "y";
7
+ query: string;
8
+ source: "text" | "news" | "images";
9
+ locale: string;
10
+ maxResults: number;
11
+ }>;
12
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
13
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
14
+ time: "d" | "w" | "m" | "y";
15
+ query: string;
16
+ source: "text" | "news" | "images";
17
+ locale: string;
18
+ maxResults: number;
19
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
20
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
21
+ onInputDelta?: ((options: {
22
+ inputTextDelta: string;
23
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
24
+ onInputAvailable?: ((options: {
25
+ input: {
26
+ time: "d" | "w" | "m" | "y";
27
+ query: string;
28
+ source: "text" | "news" | "images";
29
+ locale: string;
30
+ maxResults: number;
31
+ };
32
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
33
+ toModelOutput?: ((options: {
34
+ toolCallId: string;
35
+ input: {
36
+ time: "d" | "w" | "m" | "y";
37
+ query: string;
38
+ source: "text" | "news" | "images";
39
+ locale: string;
40
+ maxResults: number;
41
+ };
42
+ output: NoInfer<{
43
+ readonly items: {
44
+ snippet: string;
45
+ title: string;
46
+ link: string;
47
+ hostname: string;
48
+ }[];
49
+ readonly total: number;
50
+ readonly vqd: string;
51
+ } | {
52
+ readonly items: {
53
+ snippet: string;
54
+ title: string;
55
+ link: string;
56
+ date: number;
57
+ source: string;
58
+ image: string | undefined;
59
+ relativeTime: string;
60
+ }[];
61
+ readonly total: number;
62
+ readonly vqd: string;
63
+ } | {
64
+ readonly items: {
65
+ title: string;
66
+ thumbnail: string;
67
+ image: string;
68
+ link: string;
69
+ height: number;
70
+ width: number;
71
+ source: string;
72
+ }[];
73
+ readonly total: number;
74
+ readonly vqd: string;
75
+ }>;
76
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
77
+ } & {
78
+ outputSchema?: import("ai").FlexibleSchema<{
79
+ readonly items: {
80
+ snippet: string;
81
+ title: string;
82
+ link: string;
83
+ hostname: string;
84
+ }[];
85
+ readonly total: number;
86
+ readonly vqd: string;
87
+ } | {
88
+ readonly items: {
89
+ snippet: string;
90
+ title: string;
91
+ link: string;
92
+ date: number;
93
+ source: string;
94
+ image: string | undefined;
95
+ relativeTime: string;
96
+ }[];
97
+ readonly total: number;
98
+ readonly vqd: string;
99
+ } | {
100
+ readonly items: {
101
+ title: string;
102
+ thumbnail: string;
103
+ image: string;
104
+ link: string;
105
+ height: number;
106
+ width: number;
107
+ source: string;
108
+ }[];
109
+ readonly total: number;
110
+ readonly vqd: string;
111
+ }> | undefined;
112
+ execute: import("ai").ToolExecuteFunction<{
113
+ time: "d" | "w" | "m" | "y";
114
+ query: string;
115
+ source: "text" | "news" | "images";
116
+ locale: string;
117
+ maxResults: number;
118
+ }, {
119
+ readonly items: {
120
+ snippet: string;
121
+ title: string;
122
+ link: string;
123
+ hostname: string;
124
+ }[];
125
+ readonly total: number;
126
+ readonly vqd: string;
127
+ } | {
128
+ readonly items: {
129
+ snippet: string;
130
+ title: string;
131
+ link: string;
132
+ date: number;
133
+ source: string;
134
+ image: string | undefined;
135
+ relativeTime: string;
136
+ }[];
137
+ readonly total: number;
138
+ readonly vqd: string;
139
+ } | {
140
+ readonly items: {
141
+ title: string;
142
+ thumbnail: string;
143
+ image: string;
144
+ link: string;
145
+ height: number;
146
+ width: number;
147
+ source: string;
148
+ }[];
149
+ readonly total: number;
150
+ readonly vqd: string;
151
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
152
+ } & {
153
+ description?: string | ((options: {
154
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
155
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
156
+ }) => string) | undefined;
157
+ strict?: boolean;
158
+ inputExamples?: {
159
+ input: NoInfer<{
160
+ time: "d" | "w" | "m" | "y";
161
+ query: string;
162
+ source: "text" | "news" | "images";
163
+ locale: string;
164
+ maxResults: number;
165
+ }>;
166
+ }[] | undefined;
167
+ id?: never;
168
+ isProviderExecuted?: never;
169
+ args?: never;
170
+ supportsDeferredResults?: never;
171
+ } & {
172
+ type?: undefined | "function";
173
+ } & {
174
+ execute: import("ai").ToolExecuteFunction<{
175
+ time: "d" | "w" | "m" | "y";
176
+ query: string;
177
+ source: "text" | "news" | "images";
178
+ locale: string;
179
+ maxResults: number;
180
+ }, {
181
+ readonly items: {
182
+ snippet: string;
183
+ title: string;
184
+ link: string;
185
+ hostname: string;
186
+ }[];
187
+ readonly total: number;
188
+ readonly vqd: string;
189
+ } | {
190
+ readonly items: {
191
+ snippet: string;
192
+ title: string;
193
+ link: string;
194
+ date: number;
195
+ source: string;
196
+ image: string | undefined;
197
+ relativeTime: string;
198
+ }[];
199
+ readonly total: number;
200
+ readonly vqd: string;
201
+ } | {
202
+ readonly items: {
203
+ title: string;
204
+ thumbnail: string;
205
+ image: string;
206
+ link: string;
207
+ height: number;
208
+ width: number;
209
+ source: string;
210
+ }[];
211
+ readonly total: number;
212
+ readonly vqd: string;
213
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
214
+ }) | ({
215
+ title?: string;
216
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
217
+ metadata?: import("@ai-sdk/provider").JSONObject;
218
+ inputSchema: import("ai").FlexibleSchema<{
219
+ time: "d" | "w" | "m" | "y";
220
+ query: string;
221
+ source: "text" | "news" | "images";
222
+ locale: string;
223
+ maxResults: number;
224
+ }>;
225
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
226
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
227
+ time: "d" | "w" | "m" | "y";
228
+ query: string;
229
+ source: "text" | "news" | "images";
230
+ locale: string;
231
+ maxResults: number;
232
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
233
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
234
+ onInputDelta?: ((options: {
235
+ inputTextDelta: string;
236
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
237
+ onInputAvailable?: ((options: {
238
+ input: {
239
+ time: "d" | "w" | "m" | "y";
240
+ query: string;
241
+ source: "text" | "news" | "images";
242
+ locale: string;
243
+ maxResults: number;
244
+ };
245
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
246
+ toModelOutput?: ((options: {
247
+ toolCallId: string;
248
+ input: {
249
+ time: "d" | "w" | "m" | "y";
250
+ query: string;
251
+ source: "text" | "news" | "images";
252
+ locale: string;
253
+ maxResults: number;
254
+ };
255
+ output: NoInfer<{
256
+ readonly items: {
257
+ snippet: string;
258
+ title: string;
259
+ link: string;
260
+ hostname: string;
261
+ }[];
262
+ readonly total: number;
263
+ readonly vqd: string;
264
+ } | {
265
+ readonly items: {
266
+ snippet: string;
267
+ title: string;
268
+ link: string;
269
+ date: number;
270
+ source: string;
271
+ image: string | undefined;
272
+ relativeTime: string;
273
+ }[];
274
+ readonly total: number;
275
+ readonly vqd: string;
276
+ } | {
277
+ readonly items: {
278
+ title: string;
279
+ thumbnail: string;
280
+ image: string;
281
+ link: string;
282
+ height: number;
283
+ width: number;
284
+ source: string;
285
+ }[];
286
+ readonly total: number;
287
+ readonly vqd: string;
288
+ }>;
289
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
290
+ } & {
291
+ outputSchema?: import("ai").FlexibleSchema<{
292
+ readonly items: {
293
+ snippet: string;
294
+ title: string;
295
+ link: string;
296
+ hostname: string;
297
+ }[];
298
+ readonly total: number;
299
+ readonly vqd: string;
300
+ } | {
301
+ readonly items: {
302
+ snippet: string;
303
+ title: string;
304
+ link: string;
305
+ date: number;
306
+ source: string;
307
+ image: string | undefined;
308
+ relativeTime: string;
309
+ }[];
310
+ readonly total: number;
311
+ readonly vqd: string;
312
+ } | {
313
+ readonly items: {
314
+ title: string;
315
+ thumbnail: string;
316
+ image: string;
317
+ link: string;
318
+ height: number;
319
+ width: number;
320
+ source: string;
321
+ }[];
322
+ readonly total: number;
323
+ readonly vqd: string;
324
+ }> | undefined;
325
+ execute: import("ai").ToolExecuteFunction<{
326
+ time: "d" | "w" | "m" | "y";
327
+ query: string;
328
+ source: "text" | "news" | "images";
329
+ locale: string;
330
+ maxResults: number;
331
+ }, {
332
+ readonly items: {
333
+ snippet: string;
334
+ title: string;
335
+ link: string;
336
+ hostname: string;
337
+ }[];
338
+ readonly total: number;
339
+ readonly vqd: string;
340
+ } | {
341
+ readonly items: {
342
+ snippet: string;
343
+ title: string;
344
+ link: string;
345
+ date: number;
346
+ source: string;
347
+ image: string | undefined;
348
+ relativeTime: string;
349
+ }[];
350
+ readonly total: number;
351
+ readonly vqd: string;
352
+ } | {
353
+ readonly items: {
354
+ title: string;
355
+ thumbnail: string;
356
+ image: string;
357
+ link: string;
358
+ height: number;
359
+ width: number;
360
+ source: string;
361
+ }[];
362
+ readonly total: number;
363
+ readonly vqd: string;
364
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
365
+ } & {
366
+ description?: string | ((options: {
367
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
368
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
369
+ }) => string) | undefined;
370
+ strict?: boolean;
371
+ inputExamples?: {
372
+ input: NoInfer<{
373
+ time: "d" | "w" | "m" | "y";
374
+ query: string;
375
+ source: "text" | "news" | "images";
376
+ locale: string;
377
+ maxResults: number;
378
+ }>;
379
+ }[] | undefined;
380
+ id?: never;
381
+ isProviderExecuted?: never;
382
+ args?: never;
383
+ supportsDeferredResults?: never;
384
+ } & {
385
+ type: "dynamic";
386
+ } & {
387
+ execute: import("ai").ToolExecuteFunction<{
388
+ time: "d" | "w" | "m" | "y";
389
+ query: string;
390
+ source: "text" | "news" | "images";
391
+ locale: string;
392
+ maxResults: number;
393
+ }, {
394
+ readonly items: {
395
+ snippet: string;
396
+ title: string;
397
+ link: string;
398
+ hostname: string;
399
+ }[];
400
+ readonly total: number;
401
+ readonly vqd: string;
402
+ } | {
403
+ readonly items: {
404
+ snippet: string;
405
+ title: string;
406
+ link: string;
407
+ date: number;
408
+ source: string;
409
+ image: string | undefined;
410
+ relativeTime: string;
411
+ }[];
412
+ readonly total: number;
413
+ readonly vqd: string;
414
+ } | {
415
+ readonly items: {
416
+ title: string;
417
+ thumbnail: string;
418
+ image: string;
419
+ link: string;
420
+ height: number;
421
+ width: number;
422
+ source: string;
423
+ }[];
424
+ readonly total: number;
425
+ readonly vqd: string;
426
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
427
+ }) | ({
428
+ title?: string;
429
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
430
+ metadata?: import("@ai-sdk/provider").JSONObject;
431
+ inputSchema: import("ai").FlexibleSchema<{
432
+ time: "d" | "w" | "m" | "y";
433
+ query: string;
434
+ source: "text" | "news" | "images";
435
+ locale: string;
436
+ maxResults: number;
437
+ }>;
438
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
439
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
440
+ time: "d" | "w" | "m" | "y";
441
+ query: string;
442
+ source: "text" | "news" | "images";
443
+ locale: string;
444
+ maxResults: number;
445
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
446
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
447
+ onInputDelta?: ((options: {
448
+ inputTextDelta: string;
449
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
450
+ onInputAvailable?: ((options: {
451
+ input: {
452
+ time: "d" | "w" | "m" | "y";
453
+ query: string;
454
+ source: "text" | "news" | "images";
455
+ locale: string;
456
+ maxResults: number;
457
+ };
458
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
459
+ toModelOutput?: ((options: {
460
+ toolCallId: string;
461
+ input: {
462
+ time: "d" | "w" | "m" | "y";
463
+ query: string;
464
+ source: "text" | "news" | "images";
465
+ locale: string;
466
+ maxResults: number;
467
+ };
468
+ output: NoInfer<{
469
+ readonly items: {
470
+ snippet: string;
471
+ title: string;
472
+ link: string;
473
+ hostname: string;
474
+ }[];
475
+ readonly total: number;
476
+ readonly vqd: string;
477
+ } | {
478
+ readonly items: {
479
+ snippet: string;
480
+ title: string;
481
+ link: string;
482
+ date: number;
483
+ source: string;
484
+ image: string | undefined;
485
+ relativeTime: string;
486
+ }[];
487
+ readonly total: number;
488
+ readonly vqd: string;
489
+ } | {
490
+ readonly items: {
491
+ title: string;
492
+ thumbnail: string;
493
+ image: string;
494
+ link: string;
495
+ height: number;
496
+ width: number;
497
+ source: string;
498
+ }[];
499
+ readonly total: number;
500
+ readonly vqd: string;
501
+ }>;
502
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
503
+ } & {
504
+ outputSchema?: import("ai").FlexibleSchema<{
505
+ readonly items: {
506
+ snippet: string;
507
+ title: string;
508
+ link: string;
509
+ hostname: string;
510
+ }[];
511
+ readonly total: number;
512
+ readonly vqd: string;
513
+ } | {
514
+ readonly items: {
515
+ snippet: string;
516
+ title: string;
517
+ link: string;
518
+ date: number;
519
+ source: string;
520
+ image: string | undefined;
521
+ relativeTime: string;
522
+ }[];
523
+ readonly total: number;
524
+ readonly vqd: string;
525
+ } | {
526
+ readonly items: {
527
+ title: string;
528
+ thumbnail: string;
529
+ image: string;
530
+ link: string;
531
+ height: number;
532
+ width: number;
533
+ source: string;
534
+ }[];
535
+ readonly total: number;
536
+ readonly vqd: string;
537
+ }> | undefined;
538
+ execute: import("ai").ToolExecuteFunction<{
539
+ time: "d" | "w" | "m" | "y";
540
+ query: string;
541
+ source: "text" | "news" | "images";
542
+ locale: string;
543
+ maxResults: number;
544
+ }, {
545
+ readonly items: {
546
+ snippet: string;
547
+ title: string;
548
+ link: string;
549
+ hostname: string;
550
+ }[];
551
+ readonly total: number;
552
+ readonly vqd: string;
553
+ } | {
554
+ readonly items: {
555
+ snippet: string;
556
+ title: string;
557
+ link: string;
558
+ date: number;
559
+ source: string;
560
+ image: string | undefined;
561
+ relativeTime: string;
562
+ }[];
563
+ readonly total: number;
564
+ readonly vqd: string;
565
+ } | {
566
+ readonly items: {
567
+ title: string;
568
+ thumbnail: string;
569
+ image: string;
570
+ link: string;
571
+ height: number;
572
+ width: number;
573
+ source: string;
574
+ }[];
575
+ readonly total: number;
576
+ readonly vqd: string;
577
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
578
+ } & {
579
+ type: "provider";
580
+ id: `${string}.${string}`;
581
+ args: Record<string, unknown>;
582
+ description?: never;
583
+ strict?: never;
584
+ inputExamples?: never;
585
+ } & {
586
+ isProviderExecuted: false;
587
+ supportsDeferredResults?: never;
588
+ } & {
589
+ execute: import("ai").ToolExecuteFunction<{
590
+ time: "d" | "w" | "m" | "y";
591
+ query: string;
592
+ source: "text" | "news" | "images";
593
+ locale: string;
594
+ maxResults: number;
595
+ }, {
596
+ readonly items: {
597
+ snippet: string;
598
+ title: string;
599
+ link: string;
600
+ hostname: string;
601
+ }[];
602
+ readonly total: number;
603
+ readonly vqd: string;
604
+ } | {
605
+ readonly items: {
606
+ snippet: string;
607
+ title: string;
608
+ link: string;
609
+ date: number;
610
+ source: string;
611
+ image: string | undefined;
612
+ relativeTime: string;
613
+ }[];
614
+ readonly total: number;
615
+ readonly vqd: string;
616
+ } | {
617
+ readonly items: {
618
+ title: string;
619
+ thumbnail: string;
620
+ image: string;
621
+ link: string;
622
+ height: number;
623
+ width: number;
624
+ source: string;
625
+ }[];
626
+ readonly total: number;
627
+ readonly vqd: string;
628
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
629
+ }) | ({
630
+ title?: string;
631
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
632
+ metadata?: import("@ai-sdk/provider").JSONObject;
633
+ inputSchema: import("ai").FlexibleSchema<{
634
+ time: "d" | "w" | "m" | "y";
635
+ query: string;
636
+ source: "text" | "news" | "images";
637
+ locale: string;
638
+ maxResults: number;
639
+ }>;
640
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
641
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
642
+ time: "d" | "w" | "m" | "y";
643
+ query: string;
644
+ source: "text" | "news" | "images";
645
+ locale: string;
646
+ maxResults: number;
647
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
648
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
649
+ onInputDelta?: ((options: {
650
+ inputTextDelta: string;
651
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
652
+ onInputAvailable?: ((options: {
653
+ input: {
654
+ time: "d" | "w" | "m" | "y";
655
+ query: string;
656
+ source: "text" | "news" | "images";
657
+ locale: string;
658
+ maxResults: number;
659
+ };
660
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
661
+ toModelOutput?: ((options: {
662
+ toolCallId: string;
663
+ input: {
664
+ time: "d" | "w" | "m" | "y";
665
+ query: string;
666
+ source: "text" | "news" | "images";
667
+ locale: string;
668
+ maxResults: number;
669
+ };
670
+ output: NoInfer<{
671
+ readonly items: {
672
+ snippet: string;
673
+ title: string;
674
+ link: string;
675
+ hostname: string;
676
+ }[];
677
+ readonly total: number;
678
+ readonly vqd: string;
679
+ } | {
680
+ readonly items: {
681
+ snippet: string;
682
+ title: string;
683
+ link: string;
684
+ date: number;
685
+ source: string;
686
+ image: string | undefined;
687
+ relativeTime: string;
688
+ }[];
689
+ readonly total: number;
690
+ readonly vqd: string;
691
+ } | {
692
+ readonly items: {
693
+ title: string;
694
+ thumbnail: string;
695
+ image: string;
696
+ link: string;
697
+ height: number;
698
+ width: number;
699
+ source: string;
700
+ }[];
701
+ readonly total: number;
702
+ readonly vqd: string;
703
+ }>;
704
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
705
+ } & {
706
+ outputSchema?: import("ai").FlexibleSchema<{
707
+ readonly items: {
708
+ snippet: string;
709
+ title: string;
710
+ link: string;
711
+ hostname: string;
712
+ }[];
713
+ readonly total: number;
714
+ readonly vqd: string;
715
+ } | {
716
+ readonly items: {
717
+ snippet: string;
718
+ title: string;
719
+ link: string;
720
+ date: number;
721
+ source: string;
722
+ image: string | undefined;
723
+ relativeTime: string;
724
+ }[];
725
+ readonly total: number;
726
+ readonly vqd: string;
727
+ } | {
728
+ readonly items: {
729
+ title: string;
730
+ thumbnail: string;
731
+ image: string;
732
+ link: string;
733
+ height: number;
734
+ width: number;
735
+ source: string;
736
+ }[];
737
+ readonly total: number;
738
+ readonly vqd: string;
739
+ }> | undefined;
740
+ execute: import("ai").ToolExecuteFunction<{
741
+ time: "d" | "w" | "m" | "y";
742
+ query: string;
743
+ source: "text" | "news" | "images";
744
+ locale: string;
745
+ maxResults: number;
746
+ }, {
747
+ readonly items: {
748
+ snippet: string;
749
+ title: string;
750
+ link: string;
751
+ hostname: string;
752
+ }[];
753
+ readonly total: number;
754
+ readonly vqd: string;
755
+ } | {
756
+ readonly items: {
757
+ snippet: string;
758
+ title: string;
759
+ link: string;
760
+ date: number;
761
+ source: string;
762
+ image: string | undefined;
763
+ relativeTime: string;
764
+ }[];
765
+ readonly total: number;
766
+ readonly vqd: string;
767
+ } | {
768
+ readonly items: {
769
+ title: string;
770
+ thumbnail: string;
771
+ image: string;
772
+ link: string;
773
+ height: number;
774
+ width: number;
775
+ source: string;
776
+ }[];
777
+ readonly total: number;
778
+ readonly vqd: string;
779
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
780
+ } & {
781
+ type: "provider";
782
+ id: `${string}.${string}`;
783
+ args: Record<string, unknown>;
784
+ description?: never;
785
+ strict?: never;
786
+ inputExamples?: never;
787
+ } & {
788
+ isProviderExecuted: true;
789
+ supportsDeferredResults?: boolean;
790
+ } & {
791
+ execute: import("ai").ToolExecuteFunction<{
792
+ time: "d" | "w" | "m" | "y";
793
+ query: string;
794
+ source: "text" | "news" | "images";
795
+ locale: string;
796
+ maxResults: number;
797
+ }, {
798
+ readonly items: {
799
+ snippet: string;
800
+ title: string;
801
+ link: string;
802
+ hostname: string;
803
+ }[];
804
+ readonly total: number;
805
+ readonly vqd: string;
806
+ } | {
807
+ readonly items: {
808
+ snippet: string;
809
+ title: string;
810
+ link: string;
811
+ date: number;
812
+ source: string;
813
+ image: string | undefined;
814
+ relativeTime: string;
815
+ }[];
816
+ readonly total: number;
817
+ readonly vqd: string;
818
+ } | {
819
+ readonly items: {
820
+ title: string;
821
+ thumbnail: string;
822
+ image: string;
823
+ link: string;
824
+ height: number;
825
+ width: number;
826
+ source: string;
827
+ }[];
828
+ readonly total: number;
829
+ readonly vqd: string;
830
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
831
+ });
41
832
  //# sourceMappingURL=web-search.d.ts.map