@deepagents/toolbox 5.0.0 → 6.1.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.
@@ -36,40 +36,37 @@ export declare function serp({ query, source, locale, maxResults, ...input }: z.
36
36
  }>;
37
37
  export declare const ddgSearchSchema: z.ZodObject<{
38
38
  query: z.ZodString;
39
- source: z.ZodDefault<z.ZodEnum<["text", "news", "images"]>>;
39
+ source: z.ZodDefault<z.ZodEnum<{
40
+ text: "text";
41
+ news: "news";
42
+ images: "images";
43
+ }>>;
40
44
  locale: z.ZodDefault<z.ZodOptional<z.ZodString>>;
41
- time: z.ZodDefault<z.ZodOptional<z.ZodEnum<["d", "w", "m", "y"]>>>;
45
+ time: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
46
+ d: "d";
47
+ w: "w";
48
+ m: "m";
49
+ y: "y";
50
+ }>>>;
42
51
  maxResults: z.ZodDefault<z.ZodNumber>;
43
- }, "strip", z.ZodTypeAny, {
44
- time: "d" | "w" | "m" | "y";
45
- query: string;
46
- source: "text" | "news" | "images";
47
- locale: string;
48
- maxResults: number;
49
- }, {
50
- query: string;
51
- time?: "d" | "w" | "m" | "y" | undefined;
52
- source?: "text" | "news" | "images" | undefined;
53
- locale?: string | undefined;
54
- maxResults?: number | undefined;
55
- }>;
52
+ }, z.core.$strip>;
56
53
  export declare const duckDuckGoSearch: ({
57
54
  title?: string;
58
55
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
59
56
  metadata?: import("@ai-sdk/provider").JSONObject;
60
57
  inputSchema: import("ai").FlexibleSchema<{
61
- time: "d" | "w" | "m" | "y";
62
58
  query: string;
63
59
  source: "text" | "news" | "images";
64
60
  locale: string;
61
+ time: "d" | "w" | "m" | "y";
65
62
  maxResults: number;
66
63
  }>;
67
64
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
68
65
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
69
- time: "d" | "w" | "m" | "y";
70
66
  query: string;
71
67
  source: "text" | "news" | "images";
72
68
  locale: string;
69
+ time: "d" | "w" | "m" | "y";
73
70
  maxResults: number;
74
71
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
75
72
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
@@ -78,20 +75,20 @@ export declare const duckDuckGoSearch: ({
78
75
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
79
76
  onInputAvailable?: ((options: {
80
77
  input: {
81
- time: "d" | "w" | "m" | "y";
82
78
  query: string;
83
79
  source: "text" | "news" | "images";
84
80
  locale: string;
81
+ time: "d" | "w" | "m" | "y";
85
82
  maxResults: number;
86
83
  };
87
84
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
88
85
  toModelOutput?: ((options: {
89
86
  toolCallId: string;
90
87
  input: {
91
- time: "d" | "w" | "m" | "y";
92
88
  query: string;
93
89
  source: "text" | "news" | "images";
94
90
  locale: string;
91
+ time: "d" | "w" | "m" | "y";
95
92
  maxResults: number;
96
93
  };
97
94
  output: NoInfer<{
@@ -165,10 +162,10 @@ export declare const duckDuckGoSearch: ({
165
162
  readonly vqd: string;
166
163
  }> | undefined;
167
164
  execute: import("ai").ToolExecuteFunction<{
168
- time: "d" | "w" | "m" | "y";
169
165
  query: string;
170
166
  source: "text" | "news" | "images";
171
167
  locale: string;
168
+ time: "d" | "w" | "m" | "y";
172
169
  maxResults: number;
173
170
  }, {
174
171
  readonly items: {
@@ -212,10 +209,10 @@ export declare const duckDuckGoSearch: ({
212
209
  strict?: boolean;
213
210
  inputExamples?: {
214
211
  input: NoInfer<{
215
- time: "d" | "w" | "m" | "y";
216
212
  query: string;
217
213
  source: "text" | "news" | "images";
218
214
  locale: string;
215
+ time: "d" | "w" | "m" | "y";
219
216
  maxResults: number;
220
217
  }>;
221
218
  }[] | undefined;
@@ -227,10 +224,10 @@ export declare const duckDuckGoSearch: ({
227
224
  type?: undefined | "function";
228
225
  } & {
229
226
  execute: import("ai").ToolExecuteFunction<{
230
- time: "d" | "w" | "m" | "y";
231
227
  query: string;
232
228
  source: "text" | "news" | "images";
233
229
  locale: string;
230
+ time: "d" | "w" | "m" | "y";
234
231
  maxResults: number;
235
232
  }, {
236
233
  readonly items: {
@@ -271,18 +268,18 @@ export declare const duckDuckGoSearch: ({
271
268
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
272
269
  metadata?: import("@ai-sdk/provider").JSONObject;
273
270
  inputSchema: import("ai").FlexibleSchema<{
274
- time: "d" | "w" | "m" | "y";
275
271
  query: string;
276
272
  source: "text" | "news" | "images";
277
273
  locale: string;
274
+ time: "d" | "w" | "m" | "y";
278
275
  maxResults: number;
279
276
  }>;
280
277
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
281
278
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
282
- time: "d" | "w" | "m" | "y";
283
279
  query: string;
284
280
  source: "text" | "news" | "images";
285
281
  locale: string;
282
+ time: "d" | "w" | "m" | "y";
286
283
  maxResults: number;
287
284
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
288
285
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
@@ -291,20 +288,20 @@ export declare const duckDuckGoSearch: ({
291
288
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
292
289
  onInputAvailable?: ((options: {
293
290
  input: {
294
- time: "d" | "w" | "m" | "y";
295
291
  query: string;
296
292
  source: "text" | "news" | "images";
297
293
  locale: string;
294
+ time: "d" | "w" | "m" | "y";
298
295
  maxResults: number;
299
296
  };
300
297
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
301
298
  toModelOutput?: ((options: {
302
299
  toolCallId: string;
303
300
  input: {
304
- time: "d" | "w" | "m" | "y";
305
301
  query: string;
306
302
  source: "text" | "news" | "images";
307
303
  locale: string;
304
+ time: "d" | "w" | "m" | "y";
308
305
  maxResults: number;
309
306
  };
310
307
  output: NoInfer<{
@@ -378,10 +375,10 @@ export declare const duckDuckGoSearch: ({
378
375
  readonly vqd: string;
379
376
  }> | undefined;
380
377
  execute: import("ai").ToolExecuteFunction<{
381
- time: "d" | "w" | "m" | "y";
382
378
  query: string;
383
379
  source: "text" | "news" | "images";
384
380
  locale: string;
381
+ time: "d" | "w" | "m" | "y";
385
382
  maxResults: number;
386
383
  }, {
387
384
  readonly items: {
@@ -425,10 +422,10 @@ export declare const duckDuckGoSearch: ({
425
422
  strict?: boolean;
426
423
  inputExamples?: {
427
424
  input: NoInfer<{
428
- time: "d" | "w" | "m" | "y";
429
425
  query: string;
430
426
  source: "text" | "news" | "images";
431
427
  locale: string;
428
+ time: "d" | "w" | "m" | "y";
432
429
  maxResults: number;
433
430
  }>;
434
431
  }[] | undefined;
@@ -440,10 +437,10 @@ export declare const duckDuckGoSearch: ({
440
437
  type: "dynamic";
441
438
  } & {
442
439
  execute: import("ai").ToolExecuteFunction<{
443
- time: "d" | "w" | "m" | "y";
444
440
  query: string;
445
441
  source: "text" | "news" | "images";
446
442
  locale: string;
443
+ time: "d" | "w" | "m" | "y";
447
444
  maxResults: number;
448
445
  }, {
449
446
  readonly items: {
@@ -484,18 +481,18 @@ export declare const duckDuckGoSearch: ({
484
481
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
485
482
  metadata?: import("@ai-sdk/provider").JSONObject;
486
483
  inputSchema: import("ai").FlexibleSchema<{
487
- time: "d" | "w" | "m" | "y";
488
484
  query: string;
489
485
  source: "text" | "news" | "images";
490
486
  locale: string;
487
+ time: "d" | "w" | "m" | "y";
491
488
  maxResults: number;
492
489
  }>;
493
490
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
494
491
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
495
- time: "d" | "w" | "m" | "y";
496
492
  query: string;
497
493
  source: "text" | "news" | "images";
498
494
  locale: string;
495
+ time: "d" | "w" | "m" | "y";
499
496
  maxResults: number;
500
497
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
501
498
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
@@ -504,20 +501,20 @@ export declare const duckDuckGoSearch: ({
504
501
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
505
502
  onInputAvailable?: ((options: {
506
503
  input: {
507
- time: "d" | "w" | "m" | "y";
508
504
  query: string;
509
505
  source: "text" | "news" | "images";
510
506
  locale: string;
507
+ time: "d" | "w" | "m" | "y";
511
508
  maxResults: number;
512
509
  };
513
510
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
514
511
  toModelOutput?: ((options: {
515
512
  toolCallId: string;
516
513
  input: {
517
- time: "d" | "w" | "m" | "y";
518
514
  query: string;
519
515
  source: "text" | "news" | "images";
520
516
  locale: string;
517
+ time: "d" | "w" | "m" | "y";
521
518
  maxResults: number;
522
519
  };
523
520
  output: NoInfer<{
@@ -591,10 +588,10 @@ export declare const duckDuckGoSearch: ({
591
588
  readonly vqd: string;
592
589
  }> | undefined;
593
590
  execute: import("ai").ToolExecuteFunction<{
594
- time: "d" | "w" | "m" | "y";
595
591
  query: string;
596
592
  source: "text" | "news" | "images";
597
593
  locale: string;
594
+ time: "d" | "w" | "m" | "y";
598
595
  maxResults: number;
599
596
  }, {
600
597
  readonly items: {
@@ -642,10 +639,10 @@ export declare const duckDuckGoSearch: ({
642
639
  supportsDeferredResults?: never;
643
640
  } & {
644
641
  execute: import("ai").ToolExecuteFunction<{
645
- time: "d" | "w" | "m" | "y";
646
642
  query: string;
647
643
  source: "text" | "news" | "images";
648
644
  locale: string;
645
+ time: "d" | "w" | "m" | "y";
649
646
  maxResults: number;
650
647
  }, {
651
648
  readonly items: {
@@ -686,18 +683,18 @@ export declare const duckDuckGoSearch: ({
686
683
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
687
684
  metadata?: import("@ai-sdk/provider").JSONObject;
688
685
  inputSchema: import("ai").FlexibleSchema<{
689
- time: "d" | "w" | "m" | "y";
690
686
  query: string;
691
687
  source: "text" | "news" | "images";
692
688
  locale: string;
689
+ time: "d" | "w" | "m" | "y";
693
690
  maxResults: number;
694
691
  }>;
695
692
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
696
693
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
697
- time: "d" | "w" | "m" | "y";
698
694
  query: string;
699
695
  source: "text" | "news" | "images";
700
696
  locale: string;
697
+ time: "d" | "w" | "m" | "y";
701
698
  maxResults: number;
702
699
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
703
700
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
@@ -706,20 +703,20 @@ export declare const duckDuckGoSearch: ({
706
703
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
707
704
  onInputAvailable?: ((options: {
708
705
  input: {
709
- time: "d" | "w" | "m" | "y";
710
706
  query: string;
711
707
  source: "text" | "news" | "images";
712
708
  locale: string;
709
+ time: "d" | "w" | "m" | "y";
713
710
  maxResults: number;
714
711
  };
715
712
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
716
713
  toModelOutput?: ((options: {
717
714
  toolCallId: string;
718
715
  input: {
719
- time: "d" | "w" | "m" | "y";
720
716
  query: string;
721
717
  source: "text" | "news" | "images";
722
718
  locale: string;
719
+ time: "d" | "w" | "m" | "y";
723
720
  maxResults: number;
724
721
  };
725
722
  output: NoInfer<{
@@ -793,10 +790,10 @@ export declare const duckDuckGoSearch: ({
793
790
  readonly vqd: string;
794
791
  }> | undefined;
795
792
  execute: import("ai").ToolExecuteFunction<{
796
- time: "d" | "w" | "m" | "y";
797
793
  query: string;
798
794
  source: "text" | "news" | "images";
799
795
  locale: string;
796
+ time: "d" | "w" | "m" | "y";
800
797
  maxResults: number;
801
798
  }, {
802
799
  readonly items: {
@@ -844,10 +841,10 @@ export declare const duckDuckGoSearch: ({
844
841
  supportsDeferredResults?: boolean;
845
842
  } & {
846
843
  execute: import("ai").ToolExecuteFunction<{
847
- time: "d" | "w" | "m" | "y";
848
844
  query: string;
849
845
  source: "text" | "news" | "images";
850
846
  locale: string;
847
+ time: "d" | "w" | "m" | "y";
851
848
  maxResults: number;
852
849
  }, {
853
850
  readonly items: {
@@ -1 +1 @@
1
- {"version":3,"file":"ddg-search.d.ts","sourceRoot":"","sources":["../../src/lib/ddg-search.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEhD,wBAAsB,IAAI,CAAC,EACzB,KAAK,EACL,MAAM,EACN,MAAgB,EAChB,UAAe,EACf,GAAG,KAAK,EACT,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEjC;AAWD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AACH,eAAO,MAAM,gBAAgB;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