@moneytools-dev/ai-sdk 0.0.0-stage → 0.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.
@@ -0,0 +1,1546 @@
1
+ import { type EvmAccount } from "@moneytools-dev/transcripts";
2
+ export interface MoneyToolsOptions {
3
+ /** viem LocalAccount (or any {address, signTypedData, signMessage}) that pays x402 USDC on Base. */
4
+ account: EvmAccount;
5
+ /** Hard cap per signed payment in USD (default 1.00). Anything above is refused before signing. */
6
+ maxUsdPerRequest?: number;
7
+ /** Default seconds transcribeAudio waits for the result (default 120). */
8
+ maxWaitSeconds?: number;
9
+ transcriptsUrl?: string;
10
+ settleUrl?: string;
11
+ fetch?: typeof fetch;
12
+ }
13
+ /**
14
+ * MoneyTools tools for the Vercel AI SDK (`generateText({ tools: moneytoolsTools({ account }) })`).
15
+ * Transcripts: 0.002 USDC per started audio minute. Settle: 0.002–0.003 USDC per call. Paid via x402 on Base.
16
+ */
17
+ export declare function moneytoolsTools(o: MoneyToolsOptions): {
18
+ transcribeAudio: ({
19
+ deferLoading?: boolean;
20
+ title?: string;
21
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
22
+ metadata?: import("@ai-sdk/provider").JSONObject;
23
+ inputSchema: import("ai").FlexibleSchema<{
24
+ url: string;
25
+ language?: string | undefined;
26
+ summary?: boolean | undefined;
27
+ }>;
28
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
29
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
30
+ url: string;
31
+ language?: string | undefined;
32
+ summary?: boolean | undefined;
33
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
34
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
35
+ onInputDelta?: ((options: {
36
+ inputTextDelta: string;
37
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
38
+ onInputAvailable?: ((options: {
39
+ input: {
40
+ url: string;
41
+ language?: string | undefined;
42
+ summary?: boolean | undefined;
43
+ };
44
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
45
+ toModelOutput?: ((options: {
46
+ toolCallId: string;
47
+ input: {
48
+ url: string;
49
+ language?: string | undefined;
50
+ summary?: boolean | undefined;
51
+ };
52
+ output: NoInfer<{
53
+ jobId: string;
54
+ status: import("@moneytools-dev/transcripts").JobStatus;
55
+ durationSeconds: number | undefined;
56
+ paidUsd: any;
57
+ text: string | undefined;
58
+ language: string | null | undefined;
59
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
60
+ error: string | undefined;
61
+ } | {
62
+ error: any;
63
+ status: any;
64
+ }>;
65
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
66
+ } & {
67
+ outputSchema?: import("ai").FlexibleSchema<{
68
+ jobId: string;
69
+ status: import("@moneytools-dev/transcripts").JobStatus;
70
+ durationSeconds: number | undefined;
71
+ paidUsd: any;
72
+ text: string | undefined;
73
+ language: string | null | undefined;
74
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
75
+ error: string | undefined;
76
+ } | {
77
+ error: any;
78
+ status: any;
79
+ }> | undefined;
80
+ execute: import("ai").ToolExecuteFunction<{
81
+ url: string;
82
+ language?: string | undefined;
83
+ summary?: boolean | undefined;
84
+ }, {
85
+ jobId: string;
86
+ status: import("@moneytools-dev/transcripts").JobStatus;
87
+ durationSeconds: number | undefined;
88
+ paidUsd: any;
89
+ text: string | undefined;
90
+ language: string | null | undefined;
91
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
92
+ error: string | undefined;
93
+ } | {
94
+ error: any;
95
+ status: any;
96
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
97
+ } & {
98
+ description?: string | ((options: {
99
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
100
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
101
+ }) => string) | undefined;
102
+ strict?: boolean;
103
+ inputExamples?: {
104
+ input: NoInfer<{
105
+ url: string;
106
+ language?: string | undefined;
107
+ summary?: boolean | undefined;
108
+ }>;
109
+ }[] | undefined;
110
+ id?: never;
111
+ isProviderExecuted?: never;
112
+ args?: never;
113
+ supportsDeferredResults?: never;
114
+ } & {
115
+ type?: undefined | "function";
116
+ } & {
117
+ execute: import("ai").ToolExecuteFunction<{
118
+ url: string;
119
+ language?: string | undefined;
120
+ summary?: boolean | undefined;
121
+ }, {
122
+ jobId: string;
123
+ status: import("@moneytools-dev/transcripts").JobStatus;
124
+ durationSeconds: number | undefined;
125
+ paidUsd: any;
126
+ text: string | undefined;
127
+ language: string | null | undefined;
128
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
129
+ error: string | undefined;
130
+ } | {
131
+ error: any;
132
+ status: any;
133
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
134
+ }) | ({
135
+ deferLoading?: boolean;
136
+ title?: string;
137
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
138
+ metadata?: import("@ai-sdk/provider").JSONObject;
139
+ inputSchema: import("ai").FlexibleSchema<{
140
+ url: string;
141
+ language?: string | undefined;
142
+ summary?: boolean | undefined;
143
+ }>;
144
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
145
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
146
+ url: string;
147
+ language?: string | undefined;
148
+ summary?: boolean | undefined;
149
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
150
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
151
+ onInputDelta?: ((options: {
152
+ inputTextDelta: string;
153
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
154
+ onInputAvailable?: ((options: {
155
+ input: {
156
+ url: string;
157
+ language?: string | undefined;
158
+ summary?: boolean | undefined;
159
+ };
160
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
161
+ toModelOutput?: ((options: {
162
+ toolCallId: string;
163
+ input: {
164
+ url: string;
165
+ language?: string | undefined;
166
+ summary?: boolean | undefined;
167
+ };
168
+ output: NoInfer<{
169
+ jobId: string;
170
+ status: import("@moneytools-dev/transcripts").JobStatus;
171
+ durationSeconds: number | undefined;
172
+ paidUsd: any;
173
+ text: string | undefined;
174
+ language: string | null | undefined;
175
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
176
+ error: string | undefined;
177
+ } | {
178
+ error: any;
179
+ status: any;
180
+ }>;
181
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
182
+ } & {
183
+ outputSchema?: import("ai").FlexibleSchema<{
184
+ jobId: string;
185
+ status: import("@moneytools-dev/transcripts").JobStatus;
186
+ durationSeconds: number | undefined;
187
+ paidUsd: any;
188
+ text: string | undefined;
189
+ language: string | null | undefined;
190
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
191
+ error: string | undefined;
192
+ } | {
193
+ error: any;
194
+ status: any;
195
+ }> | undefined;
196
+ execute: import("ai").ToolExecuteFunction<{
197
+ url: string;
198
+ language?: string | undefined;
199
+ summary?: boolean | undefined;
200
+ }, {
201
+ jobId: string;
202
+ status: import("@moneytools-dev/transcripts").JobStatus;
203
+ durationSeconds: number | undefined;
204
+ paidUsd: any;
205
+ text: string | undefined;
206
+ language: string | null | undefined;
207
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
208
+ error: string | undefined;
209
+ } | {
210
+ error: any;
211
+ status: any;
212
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
213
+ } & {
214
+ description?: string | ((options: {
215
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
216
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
217
+ }) => string) | undefined;
218
+ strict?: boolean;
219
+ inputExamples?: {
220
+ input: NoInfer<{
221
+ url: string;
222
+ language?: string | undefined;
223
+ summary?: boolean | undefined;
224
+ }>;
225
+ }[] | undefined;
226
+ id?: never;
227
+ isProviderExecuted?: never;
228
+ args?: never;
229
+ supportsDeferredResults?: never;
230
+ } & {
231
+ type: "dynamic";
232
+ } & {
233
+ execute: import("ai").ToolExecuteFunction<{
234
+ url: string;
235
+ language?: string | undefined;
236
+ summary?: boolean | undefined;
237
+ }, {
238
+ jobId: string;
239
+ status: import("@moneytools-dev/transcripts").JobStatus;
240
+ durationSeconds: number | undefined;
241
+ paidUsd: any;
242
+ text: string | undefined;
243
+ language: string | null | undefined;
244
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
245
+ error: string | undefined;
246
+ } | {
247
+ error: any;
248
+ status: any;
249
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
250
+ }) | ({
251
+ deferLoading?: boolean;
252
+ title?: string;
253
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
254
+ metadata?: import("@ai-sdk/provider").JSONObject;
255
+ inputSchema: import("ai").FlexibleSchema<{
256
+ url: string;
257
+ language?: string | undefined;
258
+ summary?: boolean | undefined;
259
+ }>;
260
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
261
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
262
+ url: string;
263
+ language?: string | undefined;
264
+ summary?: boolean | undefined;
265
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
266
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
267
+ onInputDelta?: ((options: {
268
+ inputTextDelta: string;
269
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
270
+ onInputAvailable?: ((options: {
271
+ input: {
272
+ url: string;
273
+ language?: string | undefined;
274
+ summary?: boolean | undefined;
275
+ };
276
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
277
+ toModelOutput?: ((options: {
278
+ toolCallId: string;
279
+ input: {
280
+ url: string;
281
+ language?: string | undefined;
282
+ summary?: boolean | undefined;
283
+ };
284
+ output: NoInfer<{
285
+ jobId: string;
286
+ status: import("@moneytools-dev/transcripts").JobStatus;
287
+ durationSeconds: number | undefined;
288
+ paidUsd: any;
289
+ text: string | undefined;
290
+ language: string | null | undefined;
291
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
292
+ error: string | undefined;
293
+ } | {
294
+ error: any;
295
+ status: any;
296
+ }>;
297
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
298
+ } & {
299
+ outputSchema?: import("ai").FlexibleSchema<{
300
+ jobId: string;
301
+ status: import("@moneytools-dev/transcripts").JobStatus;
302
+ durationSeconds: number | undefined;
303
+ paidUsd: any;
304
+ text: string | undefined;
305
+ language: string | null | undefined;
306
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
307
+ error: string | undefined;
308
+ } | {
309
+ error: any;
310
+ status: any;
311
+ }> | undefined;
312
+ execute: import("ai").ToolExecuteFunction<{
313
+ url: string;
314
+ language?: string | undefined;
315
+ summary?: boolean | undefined;
316
+ }, {
317
+ jobId: string;
318
+ status: import("@moneytools-dev/transcripts").JobStatus;
319
+ durationSeconds: number | undefined;
320
+ paidUsd: any;
321
+ text: string | undefined;
322
+ language: string | null | undefined;
323
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
324
+ error: string | undefined;
325
+ } | {
326
+ error: any;
327
+ status: any;
328
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
329
+ } & {
330
+ type: "provider";
331
+ id: `${string}.${string}`;
332
+ args: Record<string, unknown>;
333
+ description?: never;
334
+ strict?: never;
335
+ inputExamples?: never;
336
+ } & {
337
+ isProviderExecuted: false;
338
+ supportsDeferredResults?: never;
339
+ } & {
340
+ execute: import("ai").ToolExecuteFunction<{
341
+ url: string;
342
+ language?: string | undefined;
343
+ summary?: boolean | undefined;
344
+ }, {
345
+ jobId: string;
346
+ status: import("@moneytools-dev/transcripts").JobStatus;
347
+ durationSeconds: number | undefined;
348
+ paidUsd: any;
349
+ text: string | undefined;
350
+ language: string | null | undefined;
351
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
352
+ error: string | undefined;
353
+ } | {
354
+ error: any;
355
+ status: any;
356
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
357
+ }) | ({
358
+ deferLoading?: boolean;
359
+ title?: string;
360
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
361
+ metadata?: import("@ai-sdk/provider").JSONObject;
362
+ inputSchema: import("ai").FlexibleSchema<{
363
+ url: string;
364
+ language?: string | undefined;
365
+ summary?: boolean | undefined;
366
+ }>;
367
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
368
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
369
+ url: string;
370
+ language?: string | undefined;
371
+ summary?: boolean | undefined;
372
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
373
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
374
+ onInputDelta?: ((options: {
375
+ inputTextDelta: string;
376
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
377
+ onInputAvailable?: ((options: {
378
+ input: {
379
+ url: string;
380
+ language?: string | undefined;
381
+ summary?: boolean | undefined;
382
+ };
383
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
384
+ toModelOutput?: ((options: {
385
+ toolCallId: string;
386
+ input: {
387
+ url: string;
388
+ language?: string | undefined;
389
+ summary?: boolean | undefined;
390
+ };
391
+ output: NoInfer<{
392
+ jobId: string;
393
+ status: import("@moneytools-dev/transcripts").JobStatus;
394
+ durationSeconds: number | undefined;
395
+ paidUsd: any;
396
+ text: string | undefined;
397
+ language: string | null | undefined;
398
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
399
+ error: string | undefined;
400
+ } | {
401
+ error: any;
402
+ status: any;
403
+ }>;
404
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
405
+ } & {
406
+ outputSchema?: import("ai").FlexibleSchema<{
407
+ jobId: string;
408
+ status: import("@moneytools-dev/transcripts").JobStatus;
409
+ durationSeconds: number | undefined;
410
+ paidUsd: any;
411
+ text: string | undefined;
412
+ language: string | null | undefined;
413
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
414
+ error: string | undefined;
415
+ } | {
416
+ error: any;
417
+ status: any;
418
+ }> | undefined;
419
+ execute: import("ai").ToolExecuteFunction<{
420
+ url: string;
421
+ language?: string | undefined;
422
+ summary?: boolean | undefined;
423
+ }, {
424
+ jobId: string;
425
+ status: import("@moneytools-dev/transcripts").JobStatus;
426
+ durationSeconds: number | undefined;
427
+ paidUsd: any;
428
+ text: string | undefined;
429
+ language: string | null | undefined;
430
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
431
+ error: string | undefined;
432
+ } | {
433
+ error: any;
434
+ status: any;
435
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
436
+ } & {
437
+ type: "provider";
438
+ id: `${string}.${string}`;
439
+ args: Record<string, unknown>;
440
+ description?: never;
441
+ strict?: never;
442
+ inputExamples?: never;
443
+ } & {
444
+ isProviderExecuted: true;
445
+ supportsDeferredResults?: boolean;
446
+ } & {
447
+ execute: import("ai").ToolExecuteFunction<{
448
+ url: string;
449
+ language?: string | undefined;
450
+ summary?: boolean | undefined;
451
+ }, {
452
+ jobId: string;
453
+ status: import("@moneytools-dev/transcripts").JobStatus;
454
+ durationSeconds: number | undefined;
455
+ paidUsd: any;
456
+ text: string | undefined;
457
+ language: string | null | undefined;
458
+ segments: import("@moneytools-dev/transcripts").TranscriptSegment[] | undefined;
459
+ error: string | undefined;
460
+ } | {
461
+ error: any;
462
+ status: any;
463
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
464
+ });
465
+ getTranscription: ({
466
+ deferLoading?: boolean;
467
+ title?: string;
468
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
469
+ metadata?: import("@ai-sdk/provider").JSONObject;
470
+ inputSchema: import("ai").FlexibleSchema<{
471
+ jobId: string;
472
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
473
+ }>;
474
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
475
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
476
+ jobId: string;
477
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
478
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
479
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
480
+ onInputDelta?: ((options: {
481
+ inputTextDelta: string;
482
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
483
+ onInputAvailable?: ((options: {
484
+ input: {
485
+ jobId: string;
486
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
487
+ };
488
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
489
+ toModelOutput?: ((options: {
490
+ toolCallId: string;
491
+ input: {
492
+ jobId: string;
493
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
494
+ };
495
+ output: NoInfer<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
496
+ jobId: string;
497
+ format: "srt" | "vtt" | "txt";
498
+ content: string;
499
+ } | {
500
+ error: any;
501
+ status: any;
502
+ }>;
503
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
504
+ } & {
505
+ outputSchema?: import("ai").FlexibleSchema<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
506
+ jobId: string;
507
+ format: "srt" | "vtt" | "txt";
508
+ content: string;
509
+ } | {
510
+ error: any;
511
+ status: any;
512
+ }> | undefined;
513
+ execute: import("ai").ToolExecuteFunction<{
514
+ jobId: string;
515
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
516
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
517
+ jobId: string;
518
+ format: "srt" | "vtt" | "txt";
519
+ content: string;
520
+ } | {
521
+ error: any;
522
+ status: any;
523
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
524
+ } & {
525
+ description?: string | ((options: {
526
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
527
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
528
+ }) => string) | undefined;
529
+ strict?: boolean;
530
+ inputExamples?: {
531
+ input: NoInfer<{
532
+ jobId: string;
533
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
534
+ }>;
535
+ }[] | undefined;
536
+ id?: never;
537
+ isProviderExecuted?: never;
538
+ args?: never;
539
+ supportsDeferredResults?: never;
540
+ } & {
541
+ type?: undefined | "function";
542
+ } & {
543
+ execute: import("ai").ToolExecuteFunction<{
544
+ jobId: string;
545
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
546
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
547
+ jobId: string;
548
+ format: "srt" | "vtt" | "txt";
549
+ content: string;
550
+ } | {
551
+ error: any;
552
+ status: any;
553
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
554
+ }) | ({
555
+ deferLoading?: boolean;
556
+ title?: string;
557
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
558
+ metadata?: import("@ai-sdk/provider").JSONObject;
559
+ inputSchema: import("ai").FlexibleSchema<{
560
+ jobId: string;
561
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
562
+ }>;
563
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
564
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
565
+ jobId: string;
566
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
567
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
568
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
569
+ onInputDelta?: ((options: {
570
+ inputTextDelta: string;
571
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
572
+ onInputAvailable?: ((options: {
573
+ input: {
574
+ jobId: string;
575
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
576
+ };
577
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
578
+ toModelOutput?: ((options: {
579
+ toolCallId: string;
580
+ input: {
581
+ jobId: string;
582
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
583
+ };
584
+ output: NoInfer<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
585
+ jobId: string;
586
+ format: "srt" | "vtt" | "txt";
587
+ content: string;
588
+ } | {
589
+ error: any;
590
+ status: any;
591
+ }>;
592
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
593
+ } & {
594
+ outputSchema?: import("ai").FlexibleSchema<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
595
+ jobId: string;
596
+ format: "srt" | "vtt" | "txt";
597
+ content: string;
598
+ } | {
599
+ error: any;
600
+ status: any;
601
+ }> | undefined;
602
+ execute: import("ai").ToolExecuteFunction<{
603
+ jobId: string;
604
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
605
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
606
+ jobId: string;
607
+ format: "srt" | "vtt" | "txt";
608
+ content: string;
609
+ } | {
610
+ error: any;
611
+ status: any;
612
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
613
+ } & {
614
+ description?: string | ((options: {
615
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
616
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
617
+ }) => string) | undefined;
618
+ strict?: boolean;
619
+ inputExamples?: {
620
+ input: NoInfer<{
621
+ jobId: string;
622
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
623
+ }>;
624
+ }[] | undefined;
625
+ id?: never;
626
+ isProviderExecuted?: never;
627
+ args?: never;
628
+ supportsDeferredResults?: never;
629
+ } & {
630
+ type: "dynamic";
631
+ } & {
632
+ execute: import("ai").ToolExecuteFunction<{
633
+ jobId: string;
634
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
635
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
636
+ jobId: string;
637
+ format: "srt" | "vtt" | "txt";
638
+ content: string;
639
+ } | {
640
+ error: any;
641
+ status: any;
642
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
643
+ }) | ({
644
+ deferLoading?: boolean;
645
+ title?: string;
646
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
647
+ metadata?: import("@ai-sdk/provider").JSONObject;
648
+ inputSchema: import("ai").FlexibleSchema<{
649
+ jobId: string;
650
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
651
+ }>;
652
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
653
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
654
+ jobId: string;
655
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
656
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
657
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
658
+ onInputDelta?: ((options: {
659
+ inputTextDelta: string;
660
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
661
+ onInputAvailable?: ((options: {
662
+ input: {
663
+ jobId: string;
664
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
665
+ };
666
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
667
+ toModelOutput?: ((options: {
668
+ toolCallId: string;
669
+ input: {
670
+ jobId: string;
671
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
672
+ };
673
+ output: NoInfer<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
674
+ jobId: string;
675
+ format: "srt" | "vtt" | "txt";
676
+ content: string;
677
+ } | {
678
+ error: any;
679
+ status: any;
680
+ }>;
681
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
682
+ } & {
683
+ outputSchema?: import("ai").FlexibleSchema<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
684
+ jobId: string;
685
+ format: "srt" | "vtt" | "txt";
686
+ content: string;
687
+ } | {
688
+ error: any;
689
+ status: any;
690
+ }> | undefined;
691
+ execute: import("ai").ToolExecuteFunction<{
692
+ jobId: string;
693
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
694
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
695
+ jobId: string;
696
+ format: "srt" | "vtt" | "txt";
697
+ content: string;
698
+ } | {
699
+ error: any;
700
+ status: any;
701
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
702
+ } & {
703
+ type: "provider";
704
+ id: `${string}.${string}`;
705
+ args: Record<string, unknown>;
706
+ description?: never;
707
+ strict?: never;
708
+ inputExamples?: never;
709
+ } & {
710
+ isProviderExecuted: false;
711
+ supportsDeferredResults?: never;
712
+ } & {
713
+ execute: import("ai").ToolExecuteFunction<{
714
+ jobId: string;
715
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
716
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
717
+ jobId: string;
718
+ format: "srt" | "vtt" | "txt";
719
+ content: string;
720
+ } | {
721
+ error: any;
722
+ status: any;
723
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
724
+ }) | ({
725
+ deferLoading?: boolean;
726
+ title?: string;
727
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
728
+ metadata?: import("@ai-sdk/provider").JSONObject;
729
+ inputSchema: import("ai").FlexibleSchema<{
730
+ jobId: string;
731
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
732
+ }>;
733
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
734
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
735
+ jobId: string;
736
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
737
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
738
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
739
+ onInputDelta?: ((options: {
740
+ inputTextDelta: string;
741
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
742
+ onInputAvailable?: ((options: {
743
+ input: {
744
+ jobId: string;
745
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
746
+ };
747
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
748
+ toModelOutput?: ((options: {
749
+ toolCallId: string;
750
+ input: {
751
+ jobId: string;
752
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
753
+ };
754
+ output: NoInfer<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
755
+ jobId: string;
756
+ format: "srt" | "vtt" | "txt";
757
+ content: string;
758
+ } | {
759
+ error: any;
760
+ status: any;
761
+ }>;
762
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
763
+ } & {
764
+ outputSchema?: import("ai").FlexibleSchema<import("@moneytools-dev/transcripts").FileTranscriptionJob | {
765
+ jobId: string;
766
+ format: "srt" | "vtt" | "txt";
767
+ content: string;
768
+ } | {
769
+ error: any;
770
+ status: any;
771
+ }> | undefined;
772
+ execute: import("ai").ToolExecuteFunction<{
773
+ jobId: string;
774
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
775
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
776
+ jobId: string;
777
+ format: "srt" | "vtt" | "txt";
778
+ content: string;
779
+ } | {
780
+ error: any;
781
+ status: any;
782
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
783
+ } & {
784
+ type: "provider";
785
+ id: `${string}.${string}`;
786
+ args: Record<string, unknown>;
787
+ description?: never;
788
+ strict?: never;
789
+ inputExamples?: never;
790
+ } & {
791
+ isProviderExecuted: true;
792
+ supportsDeferredResults?: boolean;
793
+ } & {
794
+ execute: import("ai").ToolExecuteFunction<{
795
+ jobId: string;
796
+ format?: "json" | "srt" | "vtt" | "txt" | undefined;
797
+ }, import("@moneytools-dev/transcripts").FileTranscriptionJob | {
798
+ jobId: string;
799
+ format: "srt" | "vtt" | "txt";
800
+ content: string;
801
+ } | {
802
+ error: any;
803
+ status: any;
804
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
805
+ });
806
+ spendCheck: ({
807
+ deferLoading?: boolean;
808
+ title?: string;
809
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
810
+ metadata?: import("@ai-sdk/provider").JSONObject;
811
+ inputSchema: import("ai").FlexibleSchema<{
812
+ amountUsd: string;
813
+ host: string;
814
+ payTo?: string | undefined;
815
+ }>;
816
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
817
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
818
+ amountUsd: string;
819
+ host: string;
820
+ payTo?: string | undefined;
821
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
822
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
823
+ onInputDelta?: ((options: {
824
+ inputTextDelta: string;
825
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
826
+ onInputAvailable?: ((options: {
827
+ input: {
828
+ amountUsd: string;
829
+ host: string;
830
+ payTo?: string | undefined;
831
+ };
832
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
833
+ toModelOutput?: ((options: {
834
+ toolCallId: string;
835
+ input: {
836
+ amountUsd: string;
837
+ host: string;
838
+ payTo?: string | undefined;
839
+ };
840
+ output: any;
841
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
842
+ } & Partial<{
843
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
844
+ execute: import("ai").ToolExecuteFunction<{
845
+ amountUsd: string;
846
+ host: string;
847
+ payTo?: string | undefined;
848
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
849
+ }> & {
850
+ description?: string | ((options: {
851
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
852
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
853
+ }) => string) | undefined;
854
+ strict?: boolean;
855
+ inputExamples?: {
856
+ input: NoInfer<{
857
+ amountUsd: string;
858
+ host: string;
859
+ payTo?: string | undefined;
860
+ }>;
861
+ }[] | undefined;
862
+ id?: never;
863
+ isProviderExecuted?: never;
864
+ args?: never;
865
+ supportsDeferredResults?: never;
866
+ } & {
867
+ type?: undefined | "function";
868
+ } & {
869
+ execute: import("ai").ToolExecuteFunction<{
870
+ amountUsd: string;
871
+ host: string;
872
+ payTo?: string | undefined;
873
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
874
+ }) | ({
875
+ deferLoading?: boolean;
876
+ title?: string;
877
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
878
+ metadata?: import("@ai-sdk/provider").JSONObject;
879
+ inputSchema: import("ai").FlexibleSchema<{
880
+ amountUsd: string;
881
+ host: string;
882
+ payTo?: string | undefined;
883
+ }>;
884
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
885
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
886
+ amountUsd: string;
887
+ host: string;
888
+ payTo?: string | undefined;
889
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
890
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
891
+ onInputDelta?: ((options: {
892
+ inputTextDelta: string;
893
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
894
+ onInputAvailable?: ((options: {
895
+ input: {
896
+ amountUsd: string;
897
+ host: string;
898
+ payTo?: string | undefined;
899
+ };
900
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
901
+ toModelOutput?: ((options: {
902
+ toolCallId: string;
903
+ input: {
904
+ amountUsd: string;
905
+ host: string;
906
+ payTo?: string | undefined;
907
+ };
908
+ output: any;
909
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
910
+ } & Partial<{
911
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
912
+ execute: import("ai").ToolExecuteFunction<{
913
+ amountUsd: string;
914
+ host: string;
915
+ payTo?: string | undefined;
916
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
917
+ }> & {
918
+ description?: string | ((options: {
919
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
920
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
921
+ }) => string) | undefined;
922
+ strict?: boolean;
923
+ inputExamples?: {
924
+ input: NoInfer<{
925
+ amountUsd: string;
926
+ host: string;
927
+ payTo?: string | undefined;
928
+ }>;
929
+ }[] | undefined;
930
+ id?: never;
931
+ isProviderExecuted?: never;
932
+ args?: never;
933
+ supportsDeferredResults?: never;
934
+ } & {
935
+ type: "dynamic";
936
+ } & {
937
+ execute: import("ai").ToolExecuteFunction<{
938
+ amountUsd: string;
939
+ host: string;
940
+ payTo?: string | undefined;
941
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
942
+ }) | ({
943
+ deferLoading?: boolean;
944
+ title?: string;
945
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
946
+ metadata?: import("@ai-sdk/provider").JSONObject;
947
+ inputSchema: import("ai").FlexibleSchema<{
948
+ amountUsd: string;
949
+ host: string;
950
+ payTo?: string | undefined;
951
+ }>;
952
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
953
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
954
+ amountUsd: string;
955
+ host: string;
956
+ payTo?: string | undefined;
957
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
958
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
959
+ onInputDelta?: ((options: {
960
+ inputTextDelta: string;
961
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
962
+ onInputAvailable?: ((options: {
963
+ input: {
964
+ amountUsd: string;
965
+ host: string;
966
+ payTo?: string | undefined;
967
+ };
968
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
969
+ toModelOutput?: ((options: {
970
+ toolCallId: string;
971
+ input: {
972
+ amountUsd: string;
973
+ host: string;
974
+ payTo?: string | undefined;
975
+ };
976
+ output: any;
977
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
978
+ } & Partial<{
979
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
980
+ execute: import("ai").ToolExecuteFunction<{
981
+ amountUsd: string;
982
+ host: string;
983
+ payTo?: string | undefined;
984
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
985
+ }> & {
986
+ type: "provider";
987
+ id: `${string}.${string}`;
988
+ args: Record<string, unknown>;
989
+ description?: never;
990
+ strict?: never;
991
+ inputExamples?: never;
992
+ } & {
993
+ isProviderExecuted: false;
994
+ supportsDeferredResults?: never;
995
+ } & {
996
+ execute: import("ai").ToolExecuteFunction<{
997
+ amountUsd: string;
998
+ host: string;
999
+ payTo?: string | undefined;
1000
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1001
+ }) | ({
1002
+ deferLoading?: boolean;
1003
+ title?: string;
1004
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1005
+ metadata?: import("@ai-sdk/provider").JSONObject;
1006
+ inputSchema: import("ai").FlexibleSchema<{
1007
+ amountUsd: string;
1008
+ host: string;
1009
+ payTo?: string | undefined;
1010
+ }>;
1011
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1012
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1013
+ amountUsd: string;
1014
+ host: string;
1015
+ payTo?: string | undefined;
1016
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1017
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1018
+ onInputDelta?: ((options: {
1019
+ inputTextDelta: string;
1020
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1021
+ onInputAvailable?: ((options: {
1022
+ input: {
1023
+ amountUsd: string;
1024
+ host: string;
1025
+ payTo?: string | undefined;
1026
+ };
1027
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1028
+ toModelOutput?: ((options: {
1029
+ toolCallId: string;
1030
+ input: {
1031
+ amountUsd: string;
1032
+ host: string;
1033
+ payTo?: string | undefined;
1034
+ };
1035
+ output: any;
1036
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1037
+ } & Partial<{
1038
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1039
+ execute: import("ai").ToolExecuteFunction<{
1040
+ amountUsd: string;
1041
+ host: string;
1042
+ payTo?: string | undefined;
1043
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1044
+ }> & {
1045
+ type: "provider";
1046
+ id: `${string}.${string}`;
1047
+ args: Record<string, unknown>;
1048
+ description?: never;
1049
+ strict?: never;
1050
+ inputExamples?: never;
1051
+ } & {
1052
+ isProviderExecuted: true;
1053
+ supportsDeferredResults?: boolean;
1054
+ } & {
1055
+ execute: import("ai").ToolExecuteFunction<{
1056
+ amountUsd: string;
1057
+ host: string;
1058
+ payTo?: string | undefined;
1059
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1060
+ });
1061
+ setSpendCap: ({
1062
+ deferLoading?: boolean;
1063
+ title?: string;
1064
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1065
+ metadata?: import("@ai-sdk/provider").JSONObject;
1066
+ inputSchema: import("ai").FlexibleSchema<{
1067
+ perCallUsd?: string | undefined;
1068
+ perDayUsd?: string | undefined;
1069
+ allowHosts?: string[] | undefined;
1070
+ }>;
1071
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1072
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1073
+ perCallUsd?: string | undefined;
1074
+ perDayUsd?: string | undefined;
1075
+ allowHosts?: string[] | undefined;
1076
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1077
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1078
+ onInputDelta?: ((options: {
1079
+ inputTextDelta: string;
1080
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1081
+ onInputAvailable?: ((options: {
1082
+ input: {
1083
+ perCallUsd?: string | undefined;
1084
+ perDayUsd?: string | undefined;
1085
+ allowHosts?: string[] | undefined;
1086
+ };
1087
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1088
+ toModelOutput?: ((options: {
1089
+ toolCallId: string;
1090
+ input: {
1091
+ perCallUsd?: string | undefined;
1092
+ perDayUsd?: string | undefined;
1093
+ allowHosts?: string[] | undefined;
1094
+ };
1095
+ output: any;
1096
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1097
+ } & Partial<{
1098
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1099
+ execute: import("ai").ToolExecuteFunction<{
1100
+ perCallUsd?: string | undefined;
1101
+ perDayUsd?: string | undefined;
1102
+ allowHosts?: string[] | undefined;
1103
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1104
+ }> & {
1105
+ description?: string | ((options: {
1106
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1107
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1108
+ }) => string) | undefined;
1109
+ strict?: boolean;
1110
+ inputExamples?: {
1111
+ input: NoInfer<{
1112
+ perCallUsd?: string | undefined;
1113
+ perDayUsd?: string | undefined;
1114
+ allowHosts?: string[] | undefined;
1115
+ }>;
1116
+ }[] | undefined;
1117
+ id?: never;
1118
+ isProviderExecuted?: never;
1119
+ args?: never;
1120
+ supportsDeferredResults?: never;
1121
+ } & {
1122
+ type?: undefined | "function";
1123
+ } & {
1124
+ execute: import("ai").ToolExecuteFunction<{
1125
+ perCallUsd?: string | undefined;
1126
+ perDayUsd?: string | undefined;
1127
+ allowHosts?: string[] | undefined;
1128
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1129
+ }) | ({
1130
+ deferLoading?: boolean;
1131
+ title?: string;
1132
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1133
+ metadata?: import("@ai-sdk/provider").JSONObject;
1134
+ inputSchema: import("ai").FlexibleSchema<{
1135
+ perCallUsd?: string | undefined;
1136
+ perDayUsd?: string | undefined;
1137
+ allowHosts?: string[] | undefined;
1138
+ }>;
1139
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1140
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1141
+ perCallUsd?: string | undefined;
1142
+ perDayUsd?: string | undefined;
1143
+ allowHosts?: string[] | undefined;
1144
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1145
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1146
+ onInputDelta?: ((options: {
1147
+ inputTextDelta: string;
1148
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1149
+ onInputAvailable?: ((options: {
1150
+ input: {
1151
+ perCallUsd?: string | undefined;
1152
+ perDayUsd?: string | undefined;
1153
+ allowHosts?: string[] | undefined;
1154
+ };
1155
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1156
+ toModelOutput?: ((options: {
1157
+ toolCallId: string;
1158
+ input: {
1159
+ perCallUsd?: string | undefined;
1160
+ perDayUsd?: string | undefined;
1161
+ allowHosts?: string[] | undefined;
1162
+ };
1163
+ output: any;
1164
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1165
+ } & Partial<{
1166
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1167
+ execute: import("ai").ToolExecuteFunction<{
1168
+ perCallUsd?: string | undefined;
1169
+ perDayUsd?: string | undefined;
1170
+ allowHosts?: string[] | undefined;
1171
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1172
+ }> & {
1173
+ description?: string | ((options: {
1174
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1175
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1176
+ }) => string) | undefined;
1177
+ strict?: boolean;
1178
+ inputExamples?: {
1179
+ input: NoInfer<{
1180
+ perCallUsd?: string | undefined;
1181
+ perDayUsd?: string | undefined;
1182
+ allowHosts?: string[] | undefined;
1183
+ }>;
1184
+ }[] | undefined;
1185
+ id?: never;
1186
+ isProviderExecuted?: never;
1187
+ args?: never;
1188
+ supportsDeferredResults?: never;
1189
+ } & {
1190
+ type: "dynamic";
1191
+ } & {
1192
+ execute: import("ai").ToolExecuteFunction<{
1193
+ perCallUsd?: string | undefined;
1194
+ perDayUsd?: string | undefined;
1195
+ allowHosts?: string[] | undefined;
1196
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1197
+ }) | ({
1198
+ deferLoading?: boolean;
1199
+ title?: string;
1200
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1201
+ metadata?: import("@ai-sdk/provider").JSONObject;
1202
+ inputSchema: import("ai").FlexibleSchema<{
1203
+ perCallUsd?: string | undefined;
1204
+ perDayUsd?: string | undefined;
1205
+ allowHosts?: string[] | undefined;
1206
+ }>;
1207
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1208
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1209
+ perCallUsd?: string | undefined;
1210
+ perDayUsd?: string | undefined;
1211
+ allowHosts?: string[] | undefined;
1212
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1213
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1214
+ onInputDelta?: ((options: {
1215
+ inputTextDelta: string;
1216
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1217
+ onInputAvailable?: ((options: {
1218
+ input: {
1219
+ perCallUsd?: string | undefined;
1220
+ perDayUsd?: string | undefined;
1221
+ allowHosts?: string[] | undefined;
1222
+ };
1223
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1224
+ toModelOutput?: ((options: {
1225
+ toolCallId: string;
1226
+ input: {
1227
+ perCallUsd?: string | undefined;
1228
+ perDayUsd?: string | undefined;
1229
+ allowHosts?: string[] | undefined;
1230
+ };
1231
+ output: any;
1232
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1233
+ } & Partial<{
1234
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1235
+ execute: import("ai").ToolExecuteFunction<{
1236
+ perCallUsd?: string | undefined;
1237
+ perDayUsd?: string | undefined;
1238
+ allowHosts?: string[] | undefined;
1239
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1240
+ }> & {
1241
+ type: "provider";
1242
+ id: `${string}.${string}`;
1243
+ args: Record<string, unknown>;
1244
+ description?: never;
1245
+ strict?: never;
1246
+ inputExamples?: never;
1247
+ } & {
1248
+ isProviderExecuted: false;
1249
+ supportsDeferredResults?: never;
1250
+ } & {
1251
+ execute: import("ai").ToolExecuteFunction<{
1252
+ perCallUsd?: string | undefined;
1253
+ perDayUsd?: string | undefined;
1254
+ allowHosts?: string[] | undefined;
1255
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1256
+ }) | ({
1257
+ deferLoading?: boolean;
1258
+ title?: string;
1259
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1260
+ metadata?: import("@ai-sdk/provider").JSONObject;
1261
+ inputSchema: import("ai").FlexibleSchema<{
1262
+ perCallUsd?: string | undefined;
1263
+ perDayUsd?: string | undefined;
1264
+ allowHosts?: string[] | undefined;
1265
+ }>;
1266
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1267
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1268
+ perCallUsd?: string | undefined;
1269
+ perDayUsd?: string | undefined;
1270
+ allowHosts?: string[] | undefined;
1271
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1272
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1273
+ onInputDelta?: ((options: {
1274
+ inputTextDelta: string;
1275
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1276
+ onInputAvailable?: ((options: {
1277
+ input: {
1278
+ perCallUsd?: string | undefined;
1279
+ perDayUsd?: string | undefined;
1280
+ allowHosts?: string[] | undefined;
1281
+ };
1282
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1283
+ toModelOutput?: ((options: {
1284
+ toolCallId: string;
1285
+ input: {
1286
+ perCallUsd?: string | undefined;
1287
+ perDayUsd?: string | undefined;
1288
+ allowHosts?: string[] | undefined;
1289
+ };
1290
+ output: any;
1291
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1292
+ } & Partial<{
1293
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1294
+ execute: import("ai").ToolExecuteFunction<{
1295
+ perCallUsd?: string | undefined;
1296
+ perDayUsd?: string | undefined;
1297
+ allowHosts?: string[] | undefined;
1298
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1299
+ }> & {
1300
+ type: "provider";
1301
+ id: `${string}.${string}`;
1302
+ args: Record<string, unknown>;
1303
+ description?: never;
1304
+ strict?: never;
1305
+ inputExamples?: never;
1306
+ } & {
1307
+ isProviderExecuted: true;
1308
+ supportsDeferredResults?: boolean;
1309
+ } & {
1310
+ execute: import("ai").ToolExecuteFunction<{
1311
+ perCallUsd?: string | undefined;
1312
+ perDayUsd?: string | undefined;
1313
+ allowHosts?: string[] | undefined;
1314
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1315
+ });
1316
+ verifyPayment: ({
1317
+ deferLoading?: boolean;
1318
+ title?: string;
1319
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1320
+ metadata?: import("@ai-sdk/provider").JSONObject;
1321
+ inputSchema: import("ai").FlexibleSchema<{
1322
+ tx?: string | undefined;
1323
+ nonce?: string | undefined;
1324
+ }>;
1325
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1326
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1327
+ tx?: string | undefined;
1328
+ nonce?: string | undefined;
1329
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1330
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1331
+ onInputDelta?: ((options: {
1332
+ inputTextDelta: string;
1333
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1334
+ onInputAvailable?: ((options: {
1335
+ input: {
1336
+ tx?: string | undefined;
1337
+ nonce?: string | undefined;
1338
+ };
1339
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1340
+ toModelOutput?: ((options: {
1341
+ toolCallId: string;
1342
+ input: {
1343
+ tx?: string | undefined;
1344
+ nonce?: string | undefined;
1345
+ };
1346
+ output: any;
1347
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1348
+ } & Partial<{
1349
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1350
+ execute: import("ai").ToolExecuteFunction<{
1351
+ tx?: string | undefined;
1352
+ nonce?: string | undefined;
1353
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1354
+ }> & {
1355
+ description?: string | ((options: {
1356
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1357
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1358
+ }) => string) | undefined;
1359
+ strict?: boolean;
1360
+ inputExamples?: {
1361
+ input: NoInfer<{
1362
+ tx?: string | undefined;
1363
+ nonce?: string | undefined;
1364
+ }>;
1365
+ }[] | undefined;
1366
+ id?: never;
1367
+ isProviderExecuted?: never;
1368
+ args?: never;
1369
+ supportsDeferredResults?: never;
1370
+ } & {
1371
+ type?: undefined | "function";
1372
+ } & {
1373
+ execute: import("ai").ToolExecuteFunction<{
1374
+ tx?: string | undefined;
1375
+ nonce?: string | undefined;
1376
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1377
+ }) | ({
1378
+ deferLoading?: boolean;
1379
+ title?: string;
1380
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1381
+ metadata?: import("@ai-sdk/provider").JSONObject;
1382
+ inputSchema: import("ai").FlexibleSchema<{
1383
+ tx?: string | undefined;
1384
+ nonce?: string | undefined;
1385
+ }>;
1386
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1387
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1388
+ tx?: string | undefined;
1389
+ nonce?: string | undefined;
1390
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1391
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1392
+ onInputDelta?: ((options: {
1393
+ inputTextDelta: string;
1394
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1395
+ onInputAvailable?: ((options: {
1396
+ input: {
1397
+ tx?: string | undefined;
1398
+ nonce?: string | undefined;
1399
+ };
1400
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1401
+ toModelOutput?: ((options: {
1402
+ toolCallId: string;
1403
+ input: {
1404
+ tx?: string | undefined;
1405
+ nonce?: string | undefined;
1406
+ };
1407
+ output: any;
1408
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1409
+ } & Partial<{
1410
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1411
+ execute: import("ai").ToolExecuteFunction<{
1412
+ tx?: string | undefined;
1413
+ nonce?: string | undefined;
1414
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1415
+ }> & {
1416
+ description?: string | ((options: {
1417
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1418
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1419
+ }) => string) | undefined;
1420
+ strict?: boolean;
1421
+ inputExamples?: {
1422
+ input: NoInfer<{
1423
+ tx?: string | undefined;
1424
+ nonce?: string | undefined;
1425
+ }>;
1426
+ }[] | undefined;
1427
+ id?: never;
1428
+ isProviderExecuted?: never;
1429
+ args?: never;
1430
+ supportsDeferredResults?: never;
1431
+ } & {
1432
+ type: "dynamic";
1433
+ } & {
1434
+ execute: import("ai").ToolExecuteFunction<{
1435
+ tx?: string | undefined;
1436
+ nonce?: string | undefined;
1437
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1438
+ }) | ({
1439
+ deferLoading?: boolean;
1440
+ title?: string;
1441
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1442
+ metadata?: import("@ai-sdk/provider").JSONObject;
1443
+ inputSchema: import("ai").FlexibleSchema<{
1444
+ tx?: string | undefined;
1445
+ nonce?: string | undefined;
1446
+ }>;
1447
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1448
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1449
+ tx?: string | undefined;
1450
+ nonce?: string | undefined;
1451
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1452
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1453
+ onInputDelta?: ((options: {
1454
+ inputTextDelta: string;
1455
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1456
+ onInputAvailable?: ((options: {
1457
+ input: {
1458
+ tx?: string | undefined;
1459
+ nonce?: string | undefined;
1460
+ };
1461
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1462
+ toModelOutput?: ((options: {
1463
+ toolCallId: string;
1464
+ input: {
1465
+ tx?: string | undefined;
1466
+ nonce?: string | undefined;
1467
+ };
1468
+ output: any;
1469
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1470
+ } & Partial<{
1471
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1472
+ execute: import("ai").ToolExecuteFunction<{
1473
+ tx?: string | undefined;
1474
+ nonce?: string | undefined;
1475
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1476
+ }> & {
1477
+ type: "provider";
1478
+ id: `${string}.${string}`;
1479
+ args: Record<string, unknown>;
1480
+ description?: never;
1481
+ strict?: never;
1482
+ inputExamples?: never;
1483
+ } & {
1484
+ isProviderExecuted: false;
1485
+ supportsDeferredResults?: never;
1486
+ } & {
1487
+ execute: import("ai").ToolExecuteFunction<{
1488
+ tx?: string | undefined;
1489
+ nonce?: string | undefined;
1490
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1491
+ }) | ({
1492
+ deferLoading?: boolean;
1493
+ title?: string;
1494
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1495
+ metadata?: import("@ai-sdk/provider").JSONObject;
1496
+ inputSchema: import("ai").FlexibleSchema<{
1497
+ tx?: string | undefined;
1498
+ nonce?: string | undefined;
1499
+ }>;
1500
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1501
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1502
+ tx?: string | undefined;
1503
+ nonce?: string | undefined;
1504
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1505
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1506
+ onInputDelta?: ((options: {
1507
+ inputTextDelta: string;
1508
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1509
+ onInputAvailable?: ((options: {
1510
+ input: {
1511
+ tx?: string | undefined;
1512
+ nonce?: string | undefined;
1513
+ };
1514
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1515
+ toModelOutput?: ((options: {
1516
+ toolCallId: string;
1517
+ input: {
1518
+ tx?: string | undefined;
1519
+ nonce?: string | undefined;
1520
+ };
1521
+ output: any;
1522
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1523
+ } & Partial<{
1524
+ outputSchema?: import("ai").FlexibleSchema<any> | undefined;
1525
+ execute: import("ai").ToolExecuteFunction<{
1526
+ tx?: string | undefined;
1527
+ nonce?: string | undefined;
1528
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1529
+ }> & {
1530
+ type: "provider";
1531
+ id: `${string}.${string}`;
1532
+ args: Record<string, unknown>;
1533
+ description?: never;
1534
+ strict?: never;
1535
+ inputExamples?: never;
1536
+ } & {
1537
+ isProviderExecuted: true;
1538
+ supportsDeferredResults?: boolean;
1539
+ } & {
1540
+ execute: import("ai").ToolExecuteFunction<{
1541
+ tx?: string | undefined;
1542
+ nonce?: string | undefined;
1543
+ }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1544
+ });
1545
+ };
1546
+ export default moneytoolsTools;