@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 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC"}
@@ -17,14 +17,310 @@ type Quote = {
17
17
  source: 'DuckDuckGo/Xignite';
18
18
  raw?: unknown;
19
19
  };
20
- export declare const duckStocks: import("ai").Tool<{
21
- symbols: string[];
22
- includeRaw: boolean;
23
- }, {
24
- results: (Quote | {
25
- symbol: string;
26
- error: any;
27
- })[];
28
- }>;
20
+ export declare const duckStocks: ({
21
+ title?: string;
22
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
23
+ metadata?: import("@ai-sdk/provider").JSONObject;
24
+ inputSchema: import("ai").FlexibleSchema<{
25
+ symbols: string[];
26
+ includeRaw: boolean;
27
+ }>;
28
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
29
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
30
+ symbols: string[];
31
+ includeRaw: boolean;
32
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
33
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
34
+ onInputDelta?: ((options: {
35
+ inputTextDelta: string;
36
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
37
+ onInputAvailable?: ((options: {
38
+ input: {
39
+ symbols: string[];
40
+ includeRaw: boolean;
41
+ };
42
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
43
+ toModelOutput?: ((options: {
44
+ toolCallId: string;
45
+ input: {
46
+ symbols: string[];
47
+ includeRaw: boolean;
48
+ };
49
+ output: NoInfer<{
50
+ results: (Quote | {
51
+ symbol: string;
52
+ error: any;
53
+ })[];
54
+ }>;
55
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
56
+ } & {
57
+ outputSchema?: import("ai").FlexibleSchema<{
58
+ results: (Quote | {
59
+ symbol: string;
60
+ error: any;
61
+ })[];
62
+ }> | undefined;
63
+ execute: import("ai").ToolExecuteFunction<{
64
+ symbols: string[];
65
+ includeRaw: boolean;
66
+ }, {
67
+ results: (Quote | {
68
+ symbol: string;
69
+ error: any;
70
+ })[];
71
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
72
+ } & {
73
+ description?: string | ((options: {
74
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
75
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
76
+ }) => string) | undefined;
77
+ strict?: boolean;
78
+ inputExamples?: {
79
+ input: NoInfer<{
80
+ symbols: string[];
81
+ includeRaw: boolean;
82
+ }>;
83
+ }[] | undefined;
84
+ id?: never;
85
+ isProviderExecuted?: never;
86
+ args?: never;
87
+ supportsDeferredResults?: never;
88
+ } & {
89
+ type?: undefined | "function";
90
+ } & {
91
+ execute: import("ai").ToolExecuteFunction<{
92
+ symbols: string[];
93
+ includeRaw: boolean;
94
+ }, {
95
+ results: (Quote | {
96
+ symbol: string;
97
+ error: any;
98
+ })[];
99
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
100
+ }) | ({
101
+ title?: string;
102
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
103
+ metadata?: import("@ai-sdk/provider").JSONObject;
104
+ inputSchema: import("ai").FlexibleSchema<{
105
+ symbols: string[];
106
+ includeRaw: boolean;
107
+ }>;
108
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
109
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
110
+ symbols: string[];
111
+ includeRaw: boolean;
112
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
113
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
114
+ onInputDelta?: ((options: {
115
+ inputTextDelta: string;
116
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
117
+ onInputAvailable?: ((options: {
118
+ input: {
119
+ symbols: string[];
120
+ includeRaw: boolean;
121
+ };
122
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
123
+ toModelOutput?: ((options: {
124
+ toolCallId: string;
125
+ input: {
126
+ symbols: string[];
127
+ includeRaw: boolean;
128
+ };
129
+ output: NoInfer<{
130
+ results: (Quote | {
131
+ symbol: string;
132
+ error: any;
133
+ })[];
134
+ }>;
135
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
136
+ } & {
137
+ outputSchema?: import("ai").FlexibleSchema<{
138
+ results: (Quote | {
139
+ symbol: string;
140
+ error: any;
141
+ })[];
142
+ }> | undefined;
143
+ execute: import("ai").ToolExecuteFunction<{
144
+ symbols: string[];
145
+ includeRaw: boolean;
146
+ }, {
147
+ results: (Quote | {
148
+ symbol: string;
149
+ error: any;
150
+ })[];
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
+ symbols: string[];
161
+ includeRaw: boolean;
162
+ }>;
163
+ }[] | undefined;
164
+ id?: never;
165
+ isProviderExecuted?: never;
166
+ args?: never;
167
+ supportsDeferredResults?: never;
168
+ } & {
169
+ type: "dynamic";
170
+ } & {
171
+ execute: import("ai").ToolExecuteFunction<{
172
+ symbols: string[];
173
+ includeRaw: boolean;
174
+ }, {
175
+ results: (Quote | {
176
+ symbol: string;
177
+ error: any;
178
+ })[];
179
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
180
+ }) | ({
181
+ title?: string;
182
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
183
+ metadata?: import("@ai-sdk/provider").JSONObject;
184
+ inputSchema: import("ai").FlexibleSchema<{
185
+ symbols: string[];
186
+ includeRaw: boolean;
187
+ }>;
188
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
189
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
190
+ symbols: string[];
191
+ includeRaw: boolean;
192
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
193
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
194
+ onInputDelta?: ((options: {
195
+ inputTextDelta: string;
196
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
197
+ onInputAvailable?: ((options: {
198
+ input: {
199
+ symbols: string[];
200
+ includeRaw: boolean;
201
+ };
202
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
203
+ toModelOutput?: ((options: {
204
+ toolCallId: string;
205
+ input: {
206
+ symbols: string[];
207
+ includeRaw: boolean;
208
+ };
209
+ output: NoInfer<{
210
+ results: (Quote | {
211
+ symbol: string;
212
+ error: any;
213
+ })[];
214
+ }>;
215
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
216
+ } & {
217
+ outputSchema?: import("ai").FlexibleSchema<{
218
+ results: (Quote | {
219
+ symbol: string;
220
+ error: any;
221
+ })[];
222
+ }> | undefined;
223
+ execute: import("ai").ToolExecuteFunction<{
224
+ symbols: string[];
225
+ includeRaw: boolean;
226
+ }, {
227
+ results: (Quote | {
228
+ symbol: string;
229
+ error: any;
230
+ })[];
231
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
232
+ } & {
233
+ type: "provider";
234
+ id: `${string}.${string}`;
235
+ args: Record<string, unknown>;
236
+ description?: never;
237
+ strict?: never;
238
+ inputExamples?: never;
239
+ } & {
240
+ isProviderExecuted: false;
241
+ supportsDeferredResults?: never;
242
+ } & {
243
+ execute: import("ai").ToolExecuteFunction<{
244
+ symbols: string[];
245
+ includeRaw: boolean;
246
+ }, {
247
+ results: (Quote | {
248
+ symbol: string;
249
+ error: any;
250
+ })[];
251
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
252
+ }) | ({
253
+ title?: string;
254
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
255
+ metadata?: import("@ai-sdk/provider").JSONObject;
256
+ inputSchema: import("ai").FlexibleSchema<{
257
+ symbols: string[];
258
+ includeRaw: boolean;
259
+ }>;
260
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
261
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
262
+ symbols: string[];
263
+ includeRaw: boolean;
264
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
265
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
266
+ onInputDelta?: ((options: {
267
+ inputTextDelta: string;
268
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
269
+ onInputAvailable?: ((options: {
270
+ input: {
271
+ symbols: string[];
272
+ includeRaw: boolean;
273
+ };
274
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
275
+ toModelOutput?: ((options: {
276
+ toolCallId: string;
277
+ input: {
278
+ symbols: string[];
279
+ includeRaw: boolean;
280
+ };
281
+ output: NoInfer<{
282
+ results: (Quote | {
283
+ symbol: string;
284
+ error: any;
285
+ })[];
286
+ }>;
287
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
288
+ } & {
289
+ outputSchema?: import("ai").FlexibleSchema<{
290
+ results: (Quote | {
291
+ symbol: string;
292
+ error: any;
293
+ })[];
294
+ }> | undefined;
295
+ execute: import("ai").ToolExecuteFunction<{
296
+ symbols: string[];
297
+ includeRaw: boolean;
298
+ }, {
299
+ results: (Quote | {
300
+ symbol: string;
301
+ error: any;
302
+ })[];
303
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
304
+ } & {
305
+ type: "provider";
306
+ id: `${string}.${string}`;
307
+ args: Record<string, unknown>;
308
+ description?: never;
309
+ strict?: never;
310
+ inputExamples?: never;
311
+ } & {
312
+ isProviderExecuted: true;
313
+ supportsDeferredResults?: boolean;
314
+ } & {
315
+ execute: import("ai").ToolExecuteFunction<{
316
+ symbols: string[];
317
+ includeRaw: boolean;
318
+ }, {
319
+ results: (Quote | {
320
+ symbol: string;
321
+ error: any;
322
+ })[];
323
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
324
+ });
29
325
  export {};
30
326
  //# sourceMappingURL=ddg-stocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ddg-stocks.d.ts","sourceRoot":"","sources":["../../src/lib/ddg-stocks.ts"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,oBAAoB,CAAC;I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