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