@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.
@@ -32,19 +32,390 @@ export declare const GetWeatherSchema: z.ZodObject<{
32
32
  icon?: string | undefined;
33
33
  }>;
34
34
  export type GetWeatherResult = z.infer<typeof GetWeatherSchema>;
35
- export declare const getWeatherTool: import("ai").Tool<{
36
- location: string;
37
- unit: "C" | "F";
38
- }, {
39
- high: number;
40
- low: number;
41
- location: string;
42
- unit: "C" | "F";
43
- temperature: number;
44
- condition: string;
45
- humidity: number;
46
- windKph: number;
47
- icon?: string | undefined;
48
- }>;
35
+ export declare const getWeatherTool: ({
36
+ title?: string;
37
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
38
+ metadata?: import("@ai-sdk/provider").JSONObject;
39
+ inputSchema: import("ai").FlexibleSchema<{
40
+ location: string;
41
+ unit: "C" | "F";
42
+ }>;
43
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
44
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
45
+ location: string;
46
+ unit: "C" | "F";
47
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
48
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
49
+ onInputDelta?: ((options: {
50
+ inputTextDelta: string;
51
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
52
+ onInputAvailable?: ((options: {
53
+ input: {
54
+ location: string;
55
+ unit: "C" | "F";
56
+ };
57
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
58
+ toModelOutput?: ((options: {
59
+ toolCallId: string;
60
+ input: {
61
+ location: string;
62
+ unit: "C" | "F";
63
+ };
64
+ output: NoInfer<{
65
+ high: number;
66
+ low: number;
67
+ location: string;
68
+ unit: "C" | "F";
69
+ temperature: number;
70
+ condition: string;
71
+ humidity: number;
72
+ windKph: number;
73
+ icon?: string | undefined;
74
+ }>;
75
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
76
+ } & {
77
+ outputSchema?: import("ai").FlexibleSchema<{
78
+ high: number;
79
+ low: number;
80
+ location: string;
81
+ unit: "C" | "F";
82
+ temperature: number;
83
+ condition: string;
84
+ humidity: number;
85
+ windKph: number;
86
+ icon?: string | undefined;
87
+ }> | undefined;
88
+ execute: import("ai").ToolExecuteFunction<{
89
+ location: string;
90
+ unit: "C" | "F";
91
+ }, {
92
+ high: number;
93
+ low: number;
94
+ location: string;
95
+ unit: "C" | "F";
96
+ temperature: number;
97
+ condition: string;
98
+ humidity: number;
99
+ windKph: number;
100
+ icon?: string | undefined;
101
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
102
+ } & {
103
+ description?: string | ((options: {
104
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
105
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
106
+ }) => string) | undefined;
107
+ strict?: boolean;
108
+ inputExamples?: {
109
+ input: NoInfer<{
110
+ location: string;
111
+ unit: "C" | "F";
112
+ }>;
113
+ }[] | undefined;
114
+ id?: never;
115
+ isProviderExecuted?: never;
116
+ args?: never;
117
+ supportsDeferredResults?: never;
118
+ } & {
119
+ type?: undefined | "function";
120
+ } & {
121
+ execute: import("ai").ToolExecuteFunction<{
122
+ location: string;
123
+ unit: "C" | "F";
124
+ }, {
125
+ high: number;
126
+ low: number;
127
+ location: string;
128
+ unit: "C" | "F";
129
+ temperature: number;
130
+ condition: string;
131
+ humidity: number;
132
+ windKph: number;
133
+ icon?: string | undefined;
134
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
135
+ }) | ({
136
+ title?: string;
137
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
138
+ metadata?: import("@ai-sdk/provider").JSONObject;
139
+ inputSchema: import("ai").FlexibleSchema<{
140
+ location: string;
141
+ unit: "C" | "F";
142
+ }>;
143
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
144
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
145
+ location: string;
146
+ unit: "C" | "F";
147
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
148
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
149
+ onInputDelta?: ((options: {
150
+ inputTextDelta: string;
151
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
152
+ onInputAvailable?: ((options: {
153
+ input: {
154
+ location: string;
155
+ unit: "C" | "F";
156
+ };
157
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
158
+ toModelOutput?: ((options: {
159
+ toolCallId: string;
160
+ input: {
161
+ location: string;
162
+ unit: "C" | "F";
163
+ };
164
+ output: NoInfer<{
165
+ high: number;
166
+ low: number;
167
+ location: string;
168
+ unit: "C" | "F";
169
+ temperature: number;
170
+ condition: string;
171
+ humidity: number;
172
+ windKph: number;
173
+ icon?: string | undefined;
174
+ }>;
175
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
176
+ } & {
177
+ outputSchema?: import("ai").FlexibleSchema<{
178
+ high: number;
179
+ low: number;
180
+ location: string;
181
+ unit: "C" | "F";
182
+ temperature: number;
183
+ condition: string;
184
+ humidity: number;
185
+ windKph: number;
186
+ icon?: string | undefined;
187
+ }> | undefined;
188
+ execute: import("ai").ToolExecuteFunction<{
189
+ location: string;
190
+ unit: "C" | "F";
191
+ }, {
192
+ high: number;
193
+ low: number;
194
+ location: string;
195
+ unit: "C" | "F";
196
+ temperature: number;
197
+ condition: string;
198
+ humidity: number;
199
+ windKph: number;
200
+ icon?: string | undefined;
201
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
202
+ } & {
203
+ description?: string | ((options: {
204
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
205
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
206
+ }) => string) | undefined;
207
+ strict?: boolean;
208
+ inputExamples?: {
209
+ input: NoInfer<{
210
+ location: string;
211
+ unit: "C" | "F";
212
+ }>;
213
+ }[] | undefined;
214
+ id?: never;
215
+ isProviderExecuted?: never;
216
+ args?: never;
217
+ supportsDeferredResults?: never;
218
+ } & {
219
+ type: "dynamic";
220
+ } & {
221
+ execute: import("ai").ToolExecuteFunction<{
222
+ location: string;
223
+ unit: "C" | "F";
224
+ }, {
225
+ high: number;
226
+ low: number;
227
+ location: string;
228
+ unit: "C" | "F";
229
+ temperature: number;
230
+ condition: string;
231
+ humidity: number;
232
+ windKph: number;
233
+ icon?: string | undefined;
234
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
235
+ }) | ({
236
+ title?: string;
237
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
238
+ metadata?: import("@ai-sdk/provider").JSONObject;
239
+ inputSchema: import("ai").FlexibleSchema<{
240
+ location: string;
241
+ unit: "C" | "F";
242
+ }>;
243
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
244
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
245
+ location: string;
246
+ unit: "C" | "F";
247
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
248
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
249
+ onInputDelta?: ((options: {
250
+ inputTextDelta: string;
251
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
252
+ onInputAvailable?: ((options: {
253
+ input: {
254
+ location: string;
255
+ unit: "C" | "F";
256
+ };
257
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
258
+ toModelOutput?: ((options: {
259
+ toolCallId: string;
260
+ input: {
261
+ location: string;
262
+ unit: "C" | "F";
263
+ };
264
+ output: NoInfer<{
265
+ high: number;
266
+ low: number;
267
+ location: string;
268
+ unit: "C" | "F";
269
+ temperature: number;
270
+ condition: string;
271
+ humidity: number;
272
+ windKph: number;
273
+ icon?: string | undefined;
274
+ }>;
275
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
276
+ } & {
277
+ outputSchema?: import("ai").FlexibleSchema<{
278
+ high: number;
279
+ low: number;
280
+ location: string;
281
+ unit: "C" | "F";
282
+ temperature: number;
283
+ condition: string;
284
+ humidity: number;
285
+ windKph: number;
286
+ icon?: string | undefined;
287
+ }> | undefined;
288
+ execute: import("ai").ToolExecuteFunction<{
289
+ location: string;
290
+ unit: "C" | "F";
291
+ }, {
292
+ high: number;
293
+ low: number;
294
+ location: string;
295
+ unit: "C" | "F";
296
+ temperature: number;
297
+ condition: string;
298
+ humidity: number;
299
+ windKph: number;
300
+ icon?: string | undefined;
301
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
302
+ } & {
303
+ type: "provider";
304
+ id: `${string}.${string}`;
305
+ args: Record<string, unknown>;
306
+ description?: never;
307
+ strict?: never;
308
+ inputExamples?: never;
309
+ } & {
310
+ isProviderExecuted: false;
311
+ supportsDeferredResults?: never;
312
+ } & {
313
+ execute: import("ai").ToolExecuteFunction<{
314
+ location: string;
315
+ unit: "C" | "F";
316
+ }, {
317
+ high: number;
318
+ low: number;
319
+ location: string;
320
+ unit: "C" | "F";
321
+ temperature: number;
322
+ condition: string;
323
+ humidity: number;
324
+ windKph: number;
325
+ icon?: string | undefined;
326
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
327
+ }) | ({
328
+ title?: string;
329
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
330
+ metadata?: import("@ai-sdk/provider").JSONObject;
331
+ inputSchema: import("ai").FlexibleSchema<{
332
+ location: string;
333
+ unit: "C" | "F";
334
+ }>;
335
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
336
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
337
+ location: string;
338
+ unit: "C" | "F";
339
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
340
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
341
+ onInputDelta?: ((options: {
342
+ inputTextDelta: string;
343
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
344
+ onInputAvailable?: ((options: {
345
+ input: {
346
+ location: string;
347
+ unit: "C" | "F";
348
+ };
349
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
350
+ toModelOutput?: ((options: {
351
+ toolCallId: string;
352
+ input: {
353
+ location: string;
354
+ unit: "C" | "F";
355
+ };
356
+ output: NoInfer<{
357
+ high: number;
358
+ low: number;
359
+ location: string;
360
+ unit: "C" | "F";
361
+ temperature: number;
362
+ condition: string;
363
+ humidity: number;
364
+ windKph: number;
365
+ icon?: string | undefined;
366
+ }>;
367
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
368
+ } & {
369
+ outputSchema?: import("ai").FlexibleSchema<{
370
+ high: number;
371
+ low: number;
372
+ location: string;
373
+ unit: "C" | "F";
374
+ temperature: number;
375
+ condition: string;
376
+ humidity: number;
377
+ windKph: number;
378
+ icon?: string | undefined;
379
+ }> | undefined;
380
+ execute: import("ai").ToolExecuteFunction<{
381
+ location: string;
382
+ unit: "C" | "F";
383
+ }, {
384
+ high: number;
385
+ low: number;
386
+ location: string;
387
+ unit: "C" | "F";
388
+ temperature: number;
389
+ condition: string;
390
+ humidity: number;
391
+ windKph: number;
392
+ icon?: string | undefined;
393
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
394
+ } & {
395
+ type: "provider";
396
+ id: `${string}.${string}`;
397
+ args: Record<string, unknown>;
398
+ description?: never;
399
+ strict?: never;
400
+ inputExamples?: never;
401
+ } & {
402
+ isProviderExecuted: true;
403
+ supportsDeferredResults?: boolean;
404
+ } & {
405
+ execute: import("ai").ToolExecuteFunction<{
406
+ location: string;
407
+ unit: "C" | "F";
408
+ }, {
409
+ high: number;
410
+ low: number;
411
+ location: string;
412
+ unit: "C" | "F";
413
+ temperature: number;
414
+ condition: string;
415
+ humidity: number;
416
+ windKph: number;
417
+ icon?: string | undefined;
418
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
419
+ });
49
420
  export type WeatherToolType = UIToolInvocation<typeof getWeatherTool>;
50
421
  //# sourceMappingURL=weather.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../src/lib/weather.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAQ,MAAM,IAAI,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;EAmDzB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