@moneytools-dev/ai-sdk 0.1.0 → 0.2.1

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.
package/dist/index.d.ts CHANGED
@@ -1,20 +1,2250 @@
1
1
  import { type EvmAccount } from "@moneytools-dev/transcripts";
2
+ export declare const TOOLS_URL = "https://tools.moneytools.dev";
3
+ export declare const PRECHECK_URL = "https://api.moneytools.dev";
2
4
  export interface MoneyToolsOptions {
3
5
  /** viem LocalAccount (or any {address, signTypedData, signMessage}) that pays x402 USDC on Base. */
4
6
  account: EvmAccount;
5
7
  /** Hard cap per signed payment in USD (default 1.00). Anything above is refused before signing. */
6
8
  maxUsdPerRequest?: number;
9
+ /** Cap for wallet-risk / token-safety / precheck payments. Defaults to maxUsdPerRequest or 0.02. */
10
+ maxPaymentUsdc?: number;
7
11
  /** Default seconds transcribeAudio waits for the result (default 120). */
8
12
  maxWaitSeconds?: number;
9
13
  transcriptsUrl?: string;
10
14
  settleUrl?: string;
15
+ toolsUrl?: string;
16
+ precheckUrl?: string;
11
17
  fetch?: typeof fetch;
12
18
  }
13
19
  /**
14
20
  * 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.
21
+ * Payment safety: precheck and token checks at 0.005 USDC, wallet risk card at 0.02 USDC.
22
+ * Transcripts: 0.005 USDC per started audio minute. Settle: 0.005 USDC per call.
23
+ * Paid via x402 on Base.
16
24
  */
17
25
  export declare function moneytoolsTools(o: MoneyToolsOptions): {
26
+ precheck: ({
27
+ deferLoading?: boolean;
28
+ title?: string;
29
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
30
+ metadata?: import("@ai-sdk/provider").JSONObject;
31
+ inputSchema: import("ai").FlexibleSchema<{
32
+ url: string;
33
+ method?: string | undefined;
34
+ }>;
35
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
36
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
37
+ url: string;
38
+ method?: string | undefined;
39
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
40
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
41
+ onInputDelta?: ((options: {
42
+ inputTextDelta: string;
43
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
44
+ onInputAvailable?: ((options: {
45
+ input: {
46
+ url: string;
47
+ method?: string | undefined;
48
+ };
49
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
50
+ toModelOutput?: ((options: {
51
+ toolCallId: string;
52
+ input: {
53
+ url: string;
54
+ method?: string | undefined;
55
+ };
56
+ output: NoInfer<{
57
+ success: boolean;
58
+ data: Record<string, unknown>;
59
+ status?: undefined;
60
+ error?: undefined;
61
+ details?: undefined;
62
+ } | {
63
+ success: boolean;
64
+ status: number;
65
+ error: string;
66
+ details: Record<string, unknown>;
67
+ data?: undefined;
68
+ } | {
69
+ success: boolean;
70
+ paymentRequired: boolean;
71
+ terms: PaymentTerms | undefined;
72
+ error: string;
73
+ } | {
74
+ error: any;
75
+ status: any;
76
+ }>;
77
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
78
+ } & {
79
+ outputSchema?: import("ai").FlexibleSchema<{
80
+ success: boolean;
81
+ data: Record<string, unknown>;
82
+ status?: undefined;
83
+ error?: undefined;
84
+ details?: undefined;
85
+ } | {
86
+ success: boolean;
87
+ status: number;
88
+ error: string;
89
+ details: Record<string, unknown>;
90
+ data?: undefined;
91
+ } | {
92
+ success: boolean;
93
+ paymentRequired: boolean;
94
+ terms: PaymentTerms | undefined;
95
+ error: string;
96
+ } | {
97
+ error: any;
98
+ status: any;
99
+ }> | undefined;
100
+ execute: import("ai").ToolExecuteFunction<{
101
+ url: string;
102
+ method?: string | undefined;
103
+ }, {
104
+ success: boolean;
105
+ data: Record<string, unknown>;
106
+ status?: undefined;
107
+ error?: undefined;
108
+ details?: undefined;
109
+ } | {
110
+ success: boolean;
111
+ status: number;
112
+ error: string;
113
+ details: Record<string, unknown>;
114
+ data?: undefined;
115
+ } | {
116
+ success: boolean;
117
+ paymentRequired: boolean;
118
+ terms: PaymentTerms | undefined;
119
+ error: string;
120
+ } | {
121
+ error: any;
122
+ status: any;
123
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
124
+ } & {
125
+ description?: string | ((options: {
126
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
127
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
128
+ }) => string) | undefined;
129
+ strict?: boolean;
130
+ inputExamples?: {
131
+ input: NoInfer<{
132
+ url: string;
133
+ method?: string | undefined;
134
+ }>;
135
+ }[] | undefined;
136
+ id?: never;
137
+ isProviderExecuted?: never;
138
+ args?: never;
139
+ supportsDeferredResults?: never;
140
+ } & {
141
+ type?: undefined | "function";
142
+ } & {
143
+ execute: import("ai").ToolExecuteFunction<{
144
+ url: string;
145
+ method?: string | undefined;
146
+ }, {
147
+ success: boolean;
148
+ data: Record<string, unknown>;
149
+ status?: undefined;
150
+ error?: undefined;
151
+ details?: undefined;
152
+ } | {
153
+ success: boolean;
154
+ status: number;
155
+ error: string;
156
+ details: Record<string, unknown>;
157
+ data?: undefined;
158
+ } | {
159
+ success: boolean;
160
+ paymentRequired: boolean;
161
+ terms: PaymentTerms | undefined;
162
+ error: string;
163
+ } | {
164
+ error: any;
165
+ status: any;
166
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
167
+ }) | ({
168
+ deferLoading?: boolean;
169
+ title?: string;
170
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
171
+ metadata?: import("@ai-sdk/provider").JSONObject;
172
+ inputSchema: import("ai").FlexibleSchema<{
173
+ url: string;
174
+ method?: string | undefined;
175
+ }>;
176
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
177
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
178
+ url: string;
179
+ method?: string | undefined;
180
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
181
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
182
+ onInputDelta?: ((options: {
183
+ inputTextDelta: string;
184
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
185
+ onInputAvailable?: ((options: {
186
+ input: {
187
+ url: string;
188
+ method?: string | undefined;
189
+ };
190
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
191
+ toModelOutput?: ((options: {
192
+ toolCallId: string;
193
+ input: {
194
+ url: string;
195
+ method?: string | undefined;
196
+ };
197
+ output: NoInfer<{
198
+ success: boolean;
199
+ data: Record<string, unknown>;
200
+ status?: undefined;
201
+ error?: undefined;
202
+ details?: undefined;
203
+ } | {
204
+ success: boolean;
205
+ status: number;
206
+ error: string;
207
+ details: Record<string, unknown>;
208
+ data?: undefined;
209
+ } | {
210
+ success: boolean;
211
+ paymentRequired: boolean;
212
+ terms: PaymentTerms | undefined;
213
+ error: string;
214
+ } | {
215
+ error: any;
216
+ status: any;
217
+ }>;
218
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
219
+ } & {
220
+ outputSchema?: import("ai").FlexibleSchema<{
221
+ success: boolean;
222
+ data: Record<string, unknown>;
223
+ status?: undefined;
224
+ error?: undefined;
225
+ details?: undefined;
226
+ } | {
227
+ success: boolean;
228
+ status: number;
229
+ error: string;
230
+ details: Record<string, unknown>;
231
+ data?: undefined;
232
+ } | {
233
+ success: boolean;
234
+ paymentRequired: boolean;
235
+ terms: PaymentTerms | undefined;
236
+ error: string;
237
+ } | {
238
+ error: any;
239
+ status: any;
240
+ }> | undefined;
241
+ execute: import("ai").ToolExecuteFunction<{
242
+ url: string;
243
+ method?: string | undefined;
244
+ }, {
245
+ success: boolean;
246
+ data: Record<string, unknown>;
247
+ status?: undefined;
248
+ error?: undefined;
249
+ details?: undefined;
250
+ } | {
251
+ success: boolean;
252
+ status: number;
253
+ error: string;
254
+ details: Record<string, unknown>;
255
+ data?: undefined;
256
+ } | {
257
+ success: boolean;
258
+ paymentRequired: boolean;
259
+ terms: PaymentTerms | undefined;
260
+ error: string;
261
+ } | {
262
+ error: any;
263
+ status: any;
264
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
265
+ } & {
266
+ description?: string | ((options: {
267
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
268
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
269
+ }) => string) | undefined;
270
+ strict?: boolean;
271
+ inputExamples?: {
272
+ input: NoInfer<{
273
+ url: string;
274
+ method?: string | undefined;
275
+ }>;
276
+ }[] | undefined;
277
+ id?: never;
278
+ isProviderExecuted?: never;
279
+ args?: never;
280
+ supportsDeferredResults?: never;
281
+ } & {
282
+ type: "dynamic";
283
+ } & {
284
+ execute: import("ai").ToolExecuteFunction<{
285
+ url: string;
286
+ method?: string | undefined;
287
+ }, {
288
+ success: boolean;
289
+ data: Record<string, unknown>;
290
+ status?: undefined;
291
+ error?: undefined;
292
+ details?: undefined;
293
+ } | {
294
+ success: boolean;
295
+ status: number;
296
+ error: string;
297
+ details: Record<string, unknown>;
298
+ data?: undefined;
299
+ } | {
300
+ success: boolean;
301
+ paymentRequired: boolean;
302
+ terms: PaymentTerms | undefined;
303
+ error: string;
304
+ } | {
305
+ error: any;
306
+ status: any;
307
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
308
+ }) | ({
309
+ deferLoading?: boolean;
310
+ title?: string;
311
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
312
+ metadata?: import("@ai-sdk/provider").JSONObject;
313
+ inputSchema: import("ai").FlexibleSchema<{
314
+ url: string;
315
+ method?: string | undefined;
316
+ }>;
317
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
318
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
319
+ url: string;
320
+ method?: string | undefined;
321
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
322
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
323
+ onInputDelta?: ((options: {
324
+ inputTextDelta: string;
325
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
326
+ onInputAvailable?: ((options: {
327
+ input: {
328
+ url: string;
329
+ method?: string | undefined;
330
+ };
331
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
332
+ toModelOutput?: ((options: {
333
+ toolCallId: string;
334
+ input: {
335
+ url: string;
336
+ method?: string | undefined;
337
+ };
338
+ output: NoInfer<{
339
+ success: boolean;
340
+ data: Record<string, unknown>;
341
+ status?: undefined;
342
+ error?: undefined;
343
+ details?: undefined;
344
+ } | {
345
+ success: boolean;
346
+ status: number;
347
+ error: string;
348
+ details: Record<string, unknown>;
349
+ data?: undefined;
350
+ } | {
351
+ success: boolean;
352
+ paymentRequired: boolean;
353
+ terms: PaymentTerms | undefined;
354
+ error: string;
355
+ } | {
356
+ error: any;
357
+ status: any;
358
+ }>;
359
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
360
+ } & {
361
+ outputSchema?: import("ai").FlexibleSchema<{
362
+ success: boolean;
363
+ data: Record<string, unknown>;
364
+ status?: undefined;
365
+ error?: undefined;
366
+ details?: undefined;
367
+ } | {
368
+ success: boolean;
369
+ status: number;
370
+ error: string;
371
+ details: Record<string, unknown>;
372
+ data?: undefined;
373
+ } | {
374
+ success: boolean;
375
+ paymentRequired: boolean;
376
+ terms: PaymentTerms | undefined;
377
+ error: string;
378
+ } | {
379
+ error: any;
380
+ status: any;
381
+ }> | undefined;
382
+ execute: import("ai").ToolExecuteFunction<{
383
+ url: string;
384
+ method?: string | undefined;
385
+ }, {
386
+ success: boolean;
387
+ data: Record<string, unknown>;
388
+ status?: undefined;
389
+ error?: undefined;
390
+ details?: undefined;
391
+ } | {
392
+ success: boolean;
393
+ status: number;
394
+ error: string;
395
+ details: Record<string, unknown>;
396
+ data?: undefined;
397
+ } | {
398
+ success: boolean;
399
+ paymentRequired: boolean;
400
+ terms: PaymentTerms | undefined;
401
+ error: string;
402
+ } | {
403
+ error: any;
404
+ status: any;
405
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
406
+ } & {
407
+ type: "provider";
408
+ id: `${string}.${string}`;
409
+ args: Record<string, unknown>;
410
+ description?: never;
411
+ strict?: never;
412
+ inputExamples?: never;
413
+ } & {
414
+ isProviderExecuted: false;
415
+ supportsDeferredResults?: never;
416
+ } & {
417
+ execute: import("ai").ToolExecuteFunction<{
418
+ url: string;
419
+ method?: string | undefined;
420
+ }, {
421
+ success: boolean;
422
+ data: Record<string, unknown>;
423
+ status?: undefined;
424
+ error?: undefined;
425
+ details?: undefined;
426
+ } | {
427
+ success: boolean;
428
+ status: number;
429
+ error: string;
430
+ details: Record<string, unknown>;
431
+ data?: undefined;
432
+ } | {
433
+ success: boolean;
434
+ paymentRequired: boolean;
435
+ terms: PaymentTerms | undefined;
436
+ error: string;
437
+ } | {
438
+ error: any;
439
+ status: any;
440
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
441
+ }) | ({
442
+ deferLoading?: boolean;
443
+ title?: string;
444
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
445
+ metadata?: import("@ai-sdk/provider").JSONObject;
446
+ inputSchema: import("ai").FlexibleSchema<{
447
+ url: string;
448
+ method?: string | undefined;
449
+ }>;
450
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
451
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
452
+ url: string;
453
+ method?: string | undefined;
454
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
455
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
456
+ onInputDelta?: ((options: {
457
+ inputTextDelta: string;
458
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
459
+ onInputAvailable?: ((options: {
460
+ input: {
461
+ url: string;
462
+ method?: string | undefined;
463
+ };
464
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
465
+ toModelOutput?: ((options: {
466
+ toolCallId: string;
467
+ input: {
468
+ url: string;
469
+ method?: string | undefined;
470
+ };
471
+ output: NoInfer<{
472
+ success: boolean;
473
+ data: Record<string, unknown>;
474
+ status?: undefined;
475
+ error?: undefined;
476
+ details?: undefined;
477
+ } | {
478
+ success: boolean;
479
+ status: number;
480
+ error: string;
481
+ details: Record<string, unknown>;
482
+ data?: undefined;
483
+ } | {
484
+ success: boolean;
485
+ paymentRequired: boolean;
486
+ terms: PaymentTerms | undefined;
487
+ error: string;
488
+ } | {
489
+ error: any;
490
+ status: any;
491
+ }>;
492
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
493
+ } & {
494
+ outputSchema?: import("ai").FlexibleSchema<{
495
+ success: boolean;
496
+ data: Record<string, unknown>;
497
+ status?: undefined;
498
+ error?: undefined;
499
+ details?: undefined;
500
+ } | {
501
+ success: boolean;
502
+ status: number;
503
+ error: string;
504
+ details: Record<string, unknown>;
505
+ data?: undefined;
506
+ } | {
507
+ success: boolean;
508
+ paymentRequired: boolean;
509
+ terms: PaymentTerms | undefined;
510
+ error: string;
511
+ } | {
512
+ error: any;
513
+ status: any;
514
+ }> | undefined;
515
+ execute: import("ai").ToolExecuteFunction<{
516
+ url: string;
517
+ method?: string | undefined;
518
+ }, {
519
+ success: boolean;
520
+ data: Record<string, unknown>;
521
+ status?: undefined;
522
+ error?: undefined;
523
+ details?: undefined;
524
+ } | {
525
+ success: boolean;
526
+ status: number;
527
+ error: string;
528
+ details: Record<string, unknown>;
529
+ data?: undefined;
530
+ } | {
531
+ success: boolean;
532
+ paymentRequired: boolean;
533
+ terms: PaymentTerms | undefined;
534
+ error: string;
535
+ } | {
536
+ error: any;
537
+ status: any;
538
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
539
+ } & {
540
+ type: "provider";
541
+ id: `${string}.${string}`;
542
+ args: Record<string, unknown>;
543
+ description?: never;
544
+ strict?: never;
545
+ inputExamples?: never;
546
+ } & {
547
+ isProviderExecuted: true;
548
+ supportsDeferredResults?: boolean;
549
+ } & {
550
+ execute: import("ai").ToolExecuteFunction<{
551
+ url: string;
552
+ method?: string | undefined;
553
+ }, {
554
+ success: boolean;
555
+ data: Record<string, unknown>;
556
+ status?: undefined;
557
+ error?: undefined;
558
+ details?: undefined;
559
+ } | {
560
+ success: boolean;
561
+ status: number;
562
+ error: string;
563
+ details: Record<string, unknown>;
564
+ data?: undefined;
565
+ } | {
566
+ success: boolean;
567
+ paymentRequired: boolean;
568
+ terms: PaymentTerms | undefined;
569
+ error: string;
570
+ } | {
571
+ error: any;
572
+ status: any;
573
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
574
+ });
575
+ walletRiskCard: ({
576
+ deferLoading?: boolean;
577
+ title?: string;
578
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
579
+ metadata?: import("@ai-sdk/provider").JSONObject;
580
+ inputSchema: import("ai").FlexibleSchema<{
581
+ address: string;
582
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
583
+ }>;
584
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
585
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
586
+ address: string;
587
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
588
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
589
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
590
+ onInputDelta?: ((options: {
591
+ inputTextDelta: string;
592
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
593
+ onInputAvailable?: ((options: {
594
+ input: {
595
+ address: string;
596
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
597
+ };
598
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
599
+ toModelOutput?: ((options: {
600
+ toolCallId: string;
601
+ input: {
602
+ address: string;
603
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
604
+ };
605
+ output: NoInfer<{
606
+ success: boolean;
607
+ data: Record<string, unknown>;
608
+ status?: undefined;
609
+ error?: undefined;
610
+ details?: undefined;
611
+ } | {
612
+ success: boolean;
613
+ status: number;
614
+ error: string;
615
+ details: Record<string, unknown>;
616
+ data?: undefined;
617
+ } | {
618
+ success: boolean;
619
+ paymentRequired: boolean;
620
+ terms: PaymentTerms | undefined;
621
+ error: string;
622
+ } | {
623
+ error: any;
624
+ status: any;
625
+ }>;
626
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
627
+ } & {
628
+ outputSchema?: import("ai").FlexibleSchema<{
629
+ success: boolean;
630
+ data: Record<string, unknown>;
631
+ status?: undefined;
632
+ error?: undefined;
633
+ details?: undefined;
634
+ } | {
635
+ success: boolean;
636
+ status: number;
637
+ error: string;
638
+ details: Record<string, unknown>;
639
+ data?: undefined;
640
+ } | {
641
+ success: boolean;
642
+ paymentRequired: boolean;
643
+ terms: PaymentTerms | undefined;
644
+ error: string;
645
+ } | {
646
+ error: any;
647
+ status: any;
648
+ }> | undefined;
649
+ execute: import("ai").ToolExecuteFunction<{
650
+ address: string;
651
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
652
+ }, {
653
+ success: boolean;
654
+ data: Record<string, unknown>;
655
+ status?: undefined;
656
+ error?: undefined;
657
+ details?: undefined;
658
+ } | {
659
+ success: boolean;
660
+ status: number;
661
+ error: string;
662
+ details: Record<string, unknown>;
663
+ data?: undefined;
664
+ } | {
665
+ success: boolean;
666
+ paymentRequired: boolean;
667
+ terms: PaymentTerms | undefined;
668
+ error: string;
669
+ } | {
670
+ error: any;
671
+ status: any;
672
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
673
+ } & {
674
+ description?: string | ((options: {
675
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
676
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
677
+ }) => string) | undefined;
678
+ strict?: boolean;
679
+ inputExamples?: {
680
+ input: NoInfer<{
681
+ address: string;
682
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
683
+ }>;
684
+ }[] | undefined;
685
+ id?: never;
686
+ isProviderExecuted?: never;
687
+ args?: never;
688
+ supportsDeferredResults?: never;
689
+ } & {
690
+ type?: undefined | "function";
691
+ } & {
692
+ execute: import("ai").ToolExecuteFunction<{
693
+ address: string;
694
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
695
+ }, {
696
+ success: boolean;
697
+ data: Record<string, unknown>;
698
+ status?: undefined;
699
+ error?: undefined;
700
+ details?: undefined;
701
+ } | {
702
+ success: boolean;
703
+ status: number;
704
+ error: string;
705
+ details: Record<string, unknown>;
706
+ data?: undefined;
707
+ } | {
708
+ success: boolean;
709
+ paymentRequired: boolean;
710
+ terms: PaymentTerms | undefined;
711
+ error: string;
712
+ } | {
713
+ error: any;
714
+ status: any;
715
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
716
+ }) | ({
717
+ deferLoading?: boolean;
718
+ title?: string;
719
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
720
+ metadata?: import("@ai-sdk/provider").JSONObject;
721
+ inputSchema: import("ai").FlexibleSchema<{
722
+ address: string;
723
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
724
+ }>;
725
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
726
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
727
+ address: string;
728
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
729
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
730
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
731
+ onInputDelta?: ((options: {
732
+ inputTextDelta: string;
733
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
734
+ onInputAvailable?: ((options: {
735
+ input: {
736
+ address: string;
737
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
738
+ };
739
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
740
+ toModelOutput?: ((options: {
741
+ toolCallId: string;
742
+ input: {
743
+ address: string;
744
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
745
+ };
746
+ output: NoInfer<{
747
+ success: boolean;
748
+ data: Record<string, unknown>;
749
+ status?: undefined;
750
+ error?: undefined;
751
+ details?: undefined;
752
+ } | {
753
+ success: boolean;
754
+ status: number;
755
+ error: string;
756
+ details: Record<string, unknown>;
757
+ data?: undefined;
758
+ } | {
759
+ success: boolean;
760
+ paymentRequired: boolean;
761
+ terms: PaymentTerms | undefined;
762
+ error: string;
763
+ } | {
764
+ error: any;
765
+ status: any;
766
+ }>;
767
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
768
+ } & {
769
+ outputSchema?: import("ai").FlexibleSchema<{
770
+ success: boolean;
771
+ data: Record<string, unknown>;
772
+ status?: undefined;
773
+ error?: undefined;
774
+ details?: undefined;
775
+ } | {
776
+ success: boolean;
777
+ status: number;
778
+ error: string;
779
+ details: Record<string, unknown>;
780
+ data?: undefined;
781
+ } | {
782
+ success: boolean;
783
+ paymentRequired: boolean;
784
+ terms: PaymentTerms | undefined;
785
+ error: string;
786
+ } | {
787
+ error: any;
788
+ status: any;
789
+ }> | undefined;
790
+ execute: import("ai").ToolExecuteFunction<{
791
+ address: string;
792
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
793
+ }, {
794
+ success: boolean;
795
+ data: Record<string, unknown>;
796
+ status?: undefined;
797
+ error?: undefined;
798
+ details?: undefined;
799
+ } | {
800
+ success: boolean;
801
+ status: number;
802
+ error: string;
803
+ details: Record<string, unknown>;
804
+ data?: undefined;
805
+ } | {
806
+ success: boolean;
807
+ paymentRequired: boolean;
808
+ terms: PaymentTerms | undefined;
809
+ error: string;
810
+ } | {
811
+ error: any;
812
+ status: any;
813
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
814
+ } & {
815
+ description?: string | ((options: {
816
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
817
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
818
+ }) => string) | undefined;
819
+ strict?: boolean;
820
+ inputExamples?: {
821
+ input: NoInfer<{
822
+ address: string;
823
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
824
+ }>;
825
+ }[] | undefined;
826
+ id?: never;
827
+ isProviderExecuted?: never;
828
+ args?: never;
829
+ supportsDeferredResults?: never;
830
+ } & {
831
+ type: "dynamic";
832
+ } & {
833
+ execute: import("ai").ToolExecuteFunction<{
834
+ address: string;
835
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
836
+ }, {
837
+ success: boolean;
838
+ data: Record<string, unknown>;
839
+ status?: undefined;
840
+ error?: undefined;
841
+ details?: undefined;
842
+ } | {
843
+ success: boolean;
844
+ status: number;
845
+ error: string;
846
+ details: Record<string, unknown>;
847
+ data?: undefined;
848
+ } | {
849
+ success: boolean;
850
+ paymentRequired: boolean;
851
+ terms: PaymentTerms | undefined;
852
+ error: string;
853
+ } | {
854
+ error: any;
855
+ status: any;
856
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
857
+ }) | ({
858
+ deferLoading?: boolean;
859
+ title?: string;
860
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
861
+ metadata?: import("@ai-sdk/provider").JSONObject;
862
+ inputSchema: import("ai").FlexibleSchema<{
863
+ address: string;
864
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
865
+ }>;
866
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
867
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
868
+ address: string;
869
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
870
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
871
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
872
+ onInputDelta?: ((options: {
873
+ inputTextDelta: string;
874
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
875
+ onInputAvailable?: ((options: {
876
+ input: {
877
+ address: string;
878
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
879
+ };
880
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
881
+ toModelOutput?: ((options: {
882
+ toolCallId: string;
883
+ input: {
884
+ address: string;
885
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
886
+ };
887
+ output: NoInfer<{
888
+ success: boolean;
889
+ data: Record<string, unknown>;
890
+ status?: undefined;
891
+ error?: undefined;
892
+ details?: undefined;
893
+ } | {
894
+ success: boolean;
895
+ status: number;
896
+ error: string;
897
+ details: Record<string, unknown>;
898
+ data?: undefined;
899
+ } | {
900
+ success: boolean;
901
+ paymentRequired: boolean;
902
+ terms: PaymentTerms | undefined;
903
+ error: string;
904
+ } | {
905
+ error: any;
906
+ status: any;
907
+ }>;
908
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
909
+ } & {
910
+ outputSchema?: import("ai").FlexibleSchema<{
911
+ success: boolean;
912
+ data: Record<string, unknown>;
913
+ status?: undefined;
914
+ error?: undefined;
915
+ details?: undefined;
916
+ } | {
917
+ success: boolean;
918
+ status: number;
919
+ error: string;
920
+ details: Record<string, unknown>;
921
+ data?: undefined;
922
+ } | {
923
+ success: boolean;
924
+ paymentRequired: boolean;
925
+ terms: PaymentTerms | undefined;
926
+ error: string;
927
+ } | {
928
+ error: any;
929
+ status: any;
930
+ }> | undefined;
931
+ execute: import("ai").ToolExecuteFunction<{
932
+ address: string;
933
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
934
+ }, {
935
+ success: boolean;
936
+ data: Record<string, unknown>;
937
+ status?: undefined;
938
+ error?: undefined;
939
+ details?: undefined;
940
+ } | {
941
+ success: boolean;
942
+ status: number;
943
+ error: string;
944
+ details: Record<string, unknown>;
945
+ data?: undefined;
946
+ } | {
947
+ success: boolean;
948
+ paymentRequired: boolean;
949
+ terms: PaymentTerms | undefined;
950
+ error: string;
951
+ } | {
952
+ error: any;
953
+ status: any;
954
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
955
+ } & {
956
+ type: "provider";
957
+ id: `${string}.${string}`;
958
+ args: Record<string, unknown>;
959
+ description?: never;
960
+ strict?: never;
961
+ inputExamples?: never;
962
+ } & {
963
+ isProviderExecuted: false;
964
+ supportsDeferredResults?: never;
965
+ } & {
966
+ execute: import("ai").ToolExecuteFunction<{
967
+ address: string;
968
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
969
+ }, {
970
+ success: boolean;
971
+ data: Record<string, unknown>;
972
+ status?: undefined;
973
+ error?: undefined;
974
+ details?: undefined;
975
+ } | {
976
+ success: boolean;
977
+ status: number;
978
+ error: string;
979
+ details: Record<string, unknown>;
980
+ data?: undefined;
981
+ } | {
982
+ success: boolean;
983
+ paymentRequired: boolean;
984
+ terms: PaymentTerms | undefined;
985
+ error: string;
986
+ } | {
987
+ error: any;
988
+ status: any;
989
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
990
+ }) | ({
991
+ deferLoading?: boolean;
992
+ title?: string;
993
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
994
+ metadata?: import("@ai-sdk/provider").JSONObject;
995
+ inputSchema: import("ai").FlexibleSchema<{
996
+ address: string;
997
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
998
+ }>;
999
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1000
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1001
+ address: string;
1002
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1003
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1004
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1005
+ onInputDelta?: ((options: {
1006
+ inputTextDelta: string;
1007
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1008
+ onInputAvailable?: ((options: {
1009
+ input: {
1010
+ address: string;
1011
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1012
+ };
1013
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1014
+ toModelOutput?: ((options: {
1015
+ toolCallId: string;
1016
+ input: {
1017
+ address: string;
1018
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1019
+ };
1020
+ output: NoInfer<{
1021
+ success: boolean;
1022
+ data: Record<string, unknown>;
1023
+ status?: undefined;
1024
+ error?: undefined;
1025
+ details?: undefined;
1026
+ } | {
1027
+ success: boolean;
1028
+ status: number;
1029
+ error: string;
1030
+ details: Record<string, unknown>;
1031
+ data?: undefined;
1032
+ } | {
1033
+ success: boolean;
1034
+ paymentRequired: boolean;
1035
+ terms: PaymentTerms | undefined;
1036
+ error: string;
1037
+ } | {
1038
+ error: any;
1039
+ status: any;
1040
+ }>;
1041
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1042
+ } & {
1043
+ outputSchema?: import("ai").FlexibleSchema<{
1044
+ success: boolean;
1045
+ data: Record<string, unknown>;
1046
+ status?: undefined;
1047
+ error?: undefined;
1048
+ details?: undefined;
1049
+ } | {
1050
+ success: boolean;
1051
+ status: number;
1052
+ error: string;
1053
+ details: Record<string, unknown>;
1054
+ data?: undefined;
1055
+ } | {
1056
+ success: boolean;
1057
+ paymentRequired: boolean;
1058
+ terms: PaymentTerms | undefined;
1059
+ error: string;
1060
+ } | {
1061
+ error: any;
1062
+ status: any;
1063
+ }> | undefined;
1064
+ execute: import("ai").ToolExecuteFunction<{
1065
+ address: string;
1066
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1067
+ }, {
1068
+ success: boolean;
1069
+ data: Record<string, unknown>;
1070
+ status?: undefined;
1071
+ error?: undefined;
1072
+ details?: undefined;
1073
+ } | {
1074
+ success: boolean;
1075
+ status: number;
1076
+ error: string;
1077
+ details: Record<string, unknown>;
1078
+ data?: undefined;
1079
+ } | {
1080
+ success: boolean;
1081
+ paymentRequired: boolean;
1082
+ terms: PaymentTerms | undefined;
1083
+ error: string;
1084
+ } | {
1085
+ error: any;
1086
+ status: any;
1087
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1088
+ } & {
1089
+ type: "provider";
1090
+ id: `${string}.${string}`;
1091
+ args: Record<string, unknown>;
1092
+ description?: never;
1093
+ strict?: never;
1094
+ inputExamples?: never;
1095
+ } & {
1096
+ isProviderExecuted: true;
1097
+ supportsDeferredResults?: boolean;
1098
+ } & {
1099
+ execute: import("ai").ToolExecuteFunction<{
1100
+ address: string;
1101
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1102
+ }, {
1103
+ success: boolean;
1104
+ data: Record<string, unknown>;
1105
+ status?: undefined;
1106
+ error?: undefined;
1107
+ details?: undefined;
1108
+ } | {
1109
+ success: boolean;
1110
+ status: number;
1111
+ error: string;
1112
+ details: Record<string, unknown>;
1113
+ data?: undefined;
1114
+ } | {
1115
+ success: boolean;
1116
+ paymentRequired: boolean;
1117
+ terms: PaymentTerms | undefined;
1118
+ error: string;
1119
+ } | {
1120
+ error: any;
1121
+ status: any;
1122
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1123
+ });
1124
+ tokenSafetyCheck: ({
1125
+ deferLoading?: boolean;
1126
+ title?: string;
1127
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1128
+ metadata?: import("@ai-sdk/provider").JSONObject;
1129
+ inputSchema: import("ai").FlexibleSchema<{
1130
+ token: string;
1131
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1132
+ usd?: number | undefined;
1133
+ }>;
1134
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1135
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1136
+ token: string;
1137
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1138
+ usd?: number | undefined;
1139
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1140
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1141
+ onInputDelta?: ((options: {
1142
+ inputTextDelta: string;
1143
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1144
+ onInputAvailable?: ((options: {
1145
+ input: {
1146
+ token: string;
1147
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1148
+ usd?: number | undefined;
1149
+ };
1150
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1151
+ toModelOutput?: ((options: {
1152
+ toolCallId: string;
1153
+ input: {
1154
+ token: string;
1155
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1156
+ usd?: number | undefined;
1157
+ };
1158
+ output: NoInfer<{
1159
+ success: boolean;
1160
+ data: Record<string, unknown>;
1161
+ status?: undefined;
1162
+ error?: undefined;
1163
+ details?: undefined;
1164
+ } | {
1165
+ success: boolean;
1166
+ status: number;
1167
+ error: string;
1168
+ details: Record<string, unknown>;
1169
+ data?: undefined;
1170
+ } | {
1171
+ success: boolean;
1172
+ paymentRequired: boolean;
1173
+ terms: PaymentTerms | undefined;
1174
+ error: string;
1175
+ } | {
1176
+ error: any;
1177
+ status: any;
1178
+ }>;
1179
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1180
+ } & {
1181
+ outputSchema?: import("ai").FlexibleSchema<{
1182
+ success: boolean;
1183
+ data: Record<string, unknown>;
1184
+ status?: undefined;
1185
+ error?: undefined;
1186
+ details?: undefined;
1187
+ } | {
1188
+ success: boolean;
1189
+ status: number;
1190
+ error: string;
1191
+ details: Record<string, unknown>;
1192
+ data?: undefined;
1193
+ } | {
1194
+ success: boolean;
1195
+ paymentRequired: boolean;
1196
+ terms: PaymentTerms | undefined;
1197
+ error: string;
1198
+ } | {
1199
+ error: any;
1200
+ status: any;
1201
+ }> | undefined;
1202
+ execute: import("ai").ToolExecuteFunction<{
1203
+ token: string;
1204
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1205
+ usd?: number | undefined;
1206
+ }, {
1207
+ success: boolean;
1208
+ data: Record<string, unknown>;
1209
+ status?: undefined;
1210
+ error?: undefined;
1211
+ details?: undefined;
1212
+ } | {
1213
+ success: boolean;
1214
+ status: number;
1215
+ error: string;
1216
+ details: Record<string, unknown>;
1217
+ data?: undefined;
1218
+ } | {
1219
+ success: boolean;
1220
+ paymentRequired: boolean;
1221
+ terms: PaymentTerms | undefined;
1222
+ error: string;
1223
+ } | {
1224
+ error: any;
1225
+ status: any;
1226
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1227
+ } & {
1228
+ description?: string | ((options: {
1229
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1230
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1231
+ }) => string) | undefined;
1232
+ strict?: boolean;
1233
+ inputExamples?: {
1234
+ input: NoInfer<{
1235
+ token: string;
1236
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1237
+ usd?: number | undefined;
1238
+ }>;
1239
+ }[] | undefined;
1240
+ id?: never;
1241
+ isProviderExecuted?: never;
1242
+ args?: never;
1243
+ supportsDeferredResults?: never;
1244
+ } & {
1245
+ type?: undefined | "function";
1246
+ } & {
1247
+ execute: import("ai").ToolExecuteFunction<{
1248
+ token: string;
1249
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1250
+ usd?: number | undefined;
1251
+ }, {
1252
+ success: boolean;
1253
+ data: Record<string, unknown>;
1254
+ status?: undefined;
1255
+ error?: undefined;
1256
+ details?: undefined;
1257
+ } | {
1258
+ success: boolean;
1259
+ status: number;
1260
+ error: string;
1261
+ details: Record<string, unknown>;
1262
+ data?: undefined;
1263
+ } | {
1264
+ success: boolean;
1265
+ paymentRequired: boolean;
1266
+ terms: PaymentTerms | undefined;
1267
+ error: string;
1268
+ } | {
1269
+ error: any;
1270
+ status: any;
1271
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1272
+ }) | ({
1273
+ deferLoading?: boolean;
1274
+ title?: string;
1275
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1276
+ metadata?: import("@ai-sdk/provider").JSONObject;
1277
+ inputSchema: import("ai").FlexibleSchema<{
1278
+ token: string;
1279
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1280
+ usd?: number | undefined;
1281
+ }>;
1282
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1283
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1284
+ token: string;
1285
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1286
+ usd?: number | undefined;
1287
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1288
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1289
+ onInputDelta?: ((options: {
1290
+ inputTextDelta: string;
1291
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1292
+ onInputAvailable?: ((options: {
1293
+ input: {
1294
+ token: string;
1295
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1296
+ usd?: number | undefined;
1297
+ };
1298
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1299
+ toModelOutput?: ((options: {
1300
+ toolCallId: string;
1301
+ input: {
1302
+ token: string;
1303
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1304
+ usd?: number | undefined;
1305
+ };
1306
+ output: NoInfer<{
1307
+ success: boolean;
1308
+ data: Record<string, unknown>;
1309
+ status?: undefined;
1310
+ error?: undefined;
1311
+ details?: undefined;
1312
+ } | {
1313
+ success: boolean;
1314
+ status: number;
1315
+ error: string;
1316
+ details: Record<string, unknown>;
1317
+ data?: undefined;
1318
+ } | {
1319
+ success: boolean;
1320
+ paymentRequired: boolean;
1321
+ terms: PaymentTerms | undefined;
1322
+ error: string;
1323
+ } | {
1324
+ error: any;
1325
+ status: any;
1326
+ }>;
1327
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1328
+ } & {
1329
+ outputSchema?: import("ai").FlexibleSchema<{
1330
+ success: boolean;
1331
+ data: Record<string, unknown>;
1332
+ status?: undefined;
1333
+ error?: undefined;
1334
+ details?: undefined;
1335
+ } | {
1336
+ success: boolean;
1337
+ status: number;
1338
+ error: string;
1339
+ details: Record<string, unknown>;
1340
+ data?: undefined;
1341
+ } | {
1342
+ success: boolean;
1343
+ paymentRequired: boolean;
1344
+ terms: PaymentTerms | undefined;
1345
+ error: string;
1346
+ } | {
1347
+ error: any;
1348
+ status: any;
1349
+ }> | undefined;
1350
+ execute: import("ai").ToolExecuteFunction<{
1351
+ token: string;
1352
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1353
+ usd?: number | undefined;
1354
+ }, {
1355
+ success: boolean;
1356
+ data: Record<string, unknown>;
1357
+ status?: undefined;
1358
+ error?: undefined;
1359
+ details?: undefined;
1360
+ } | {
1361
+ success: boolean;
1362
+ status: number;
1363
+ error: string;
1364
+ details: Record<string, unknown>;
1365
+ data?: undefined;
1366
+ } | {
1367
+ success: boolean;
1368
+ paymentRequired: boolean;
1369
+ terms: PaymentTerms | undefined;
1370
+ error: string;
1371
+ } | {
1372
+ error: any;
1373
+ status: any;
1374
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1375
+ } & {
1376
+ description?: string | ((options: {
1377
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1378
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1379
+ }) => string) | undefined;
1380
+ strict?: boolean;
1381
+ inputExamples?: {
1382
+ input: NoInfer<{
1383
+ token: string;
1384
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1385
+ usd?: number | undefined;
1386
+ }>;
1387
+ }[] | undefined;
1388
+ id?: never;
1389
+ isProviderExecuted?: never;
1390
+ args?: never;
1391
+ supportsDeferredResults?: never;
1392
+ } & {
1393
+ type: "dynamic";
1394
+ } & {
1395
+ execute: import("ai").ToolExecuteFunction<{
1396
+ token: string;
1397
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1398
+ usd?: number | undefined;
1399
+ }, {
1400
+ success: boolean;
1401
+ data: Record<string, unknown>;
1402
+ status?: undefined;
1403
+ error?: undefined;
1404
+ details?: undefined;
1405
+ } | {
1406
+ success: boolean;
1407
+ status: number;
1408
+ error: string;
1409
+ details: Record<string, unknown>;
1410
+ data?: undefined;
1411
+ } | {
1412
+ success: boolean;
1413
+ paymentRequired: boolean;
1414
+ terms: PaymentTerms | undefined;
1415
+ error: string;
1416
+ } | {
1417
+ error: any;
1418
+ status: any;
1419
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1420
+ }) | ({
1421
+ deferLoading?: boolean;
1422
+ title?: string;
1423
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1424
+ metadata?: import("@ai-sdk/provider").JSONObject;
1425
+ inputSchema: import("ai").FlexibleSchema<{
1426
+ token: string;
1427
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1428
+ usd?: number | undefined;
1429
+ }>;
1430
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1431
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1432
+ token: string;
1433
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1434
+ usd?: number | undefined;
1435
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1436
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1437
+ onInputDelta?: ((options: {
1438
+ inputTextDelta: string;
1439
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1440
+ onInputAvailable?: ((options: {
1441
+ input: {
1442
+ token: string;
1443
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1444
+ usd?: number | undefined;
1445
+ };
1446
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1447
+ toModelOutput?: ((options: {
1448
+ toolCallId: string;
1449
+ input: {
1450
+ token: string;
1451
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1452
+ usd?: number | undefined;
1453
+ };
1454
+ output: NoInfer<{
1455
+ success: boolean;
1456
+ data: Record<string, unknown>;
1457
+ status?: undefined;
1458
+ error?: undefined;
1459
+ details?: undefined;
1460
+ } | {
1461
+ success: boolean;
1462
+ status: number;
1463
+ error: string;
1464
+ details: Record<string, unknown>;
1465
+ data?: undefined;
1466
+ } | {
1467
+ success: boolean;
1468
+ paymentRequired: boolean;
1469
+ terms: PaymentTerms | undefined;
1470
+ error: string;
1471
+ } | {
1472
+ error: any;
1473
+ status: any;
1474
+ }>;
1475
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1476
+ } & {
1477
+ outputSchema?: import("ai").FlexibleSchema<{
1478
+ success: boolean;
1479
+ data: Record<string, unknown>;
1480
+ status?: undefined;
1481
+ error?: undefined;
1482
+ details?: undefined;
1483
+ } | {
1484
+ success: boolean;
1485
+ status: number;
1486
+ error: string;
1487
+ details: Record<string, unknown>;
1488
+ data?: undefined;
1489
+ } | {
1490
+ success: boolean;
1491
+ paymentRequired: boolean;
1492
+ terms: PaymentTerms | undefined;
1493
+ error: string;
1494
+ } | {
1495
+ error: any;
1496
+ status: any;
1497
+ }> | undefined;
1498
+ execute: import("ai").ToolExecuteFunction<{
1499
+ token: string;
1500
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1501
+ usd?: number | undefined;
1502
+ }, {
1503
+ success: boolean;
1504
+ data: Record<string, unknown>;
1505
+ status?: undefined;
1506
+ error?: undefined;
1507
+ details?: undefined;
1508
+ } | {
1509
+ success: boolean;
1510
+ status: number;
1511
+ error: string;
1512
+ details: Record<string, unknown>;
1513
+ data?: undefined;
1514
+ } | {
1515
+ success: boolean;
1516
+ paymentRequired: boolean;
1517
+ terms: PaymentTerms | undefined;
1518
+ error: string;
1519
+ } | {
1520
+ error: any;
1521
+ status: any;
1522
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1523
+ } & {
1524
+ type: "provider";
1525
+ id: `${string}.${string}`;
1526
+ args: Record<string, unknown>;
1527
+ description?: never;
1528
+ strict?: never;
1529
+ inputExamples?: never;
1530
+ } & {
1531
+ isProviderExecuted: false;
1532
+ supportsDeferredResults?: never;
1533
+ } & {
1534
+ execute: import("ai").ToolExecuteFunction<{
1535
+ token: string;
1536
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1537
+ usd?: number | undefined;
1538
+ }, {
1539
+ success: boolean;
1540
+ data: Record<string, unknown>;
1541
+ status?: undefined;
1542
+ error?: undefined;
1543
+ details?: undefined;
1544
+ } | {
1545
+ success: boolean;
1546
+ status: number;
1547
+ error: string;
1548
+ details: Record<string, unknown>;
1549
+ data?: undefined;
1550
+ } | {
1551
+ success: boolean;
1552
+ paymentRequired: boolean;
1553
+ terms: PaymentTerms | undefined;
1554
+ error: string;
1555
+ } | {
1556
+ error: any;
1557
+ status: any;
1558
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1559
+ }) | ({
1560
+ deferLoading?: boolean;
1561
+ title?: string;
1562
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1563
+ metadata?: import("@ai-sdk/provider").JSONObject;
1564
+ inputSchema: import("ai").FlexibleSchema<{
1565
+ token: string;
1566
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1567
+ usd?: number | undefined;
1568
+ }>;
1569
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1570
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1571
+ token: string;
1572
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1573
+ usd?: number | undefined;
1574
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1575
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1576
+ onInputDelta?: ((options: {
1577
+ inputTextDelta: string;
1578
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1579
+ onInputAvailable?: ((options: {
1580
+ input: {
1581
+ token: string;
1582
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1583
+ usd?: number | undefined;
1584
+ };
1585
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1586
+ toModelOutput?: ((options: {
1587
+ toolCallId: string;
1588
+ input: {
1589
+ token: string;
1590
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1591
+ usd?: number | undefined;
1592
+ };
1593
+ output: NoInfer<{
1594
+ success: boolean;
1595
+ data: Record<string, unknown>;
1596
+ status?: undefined;
1597
+ error?: undefined;
1598
+ details?: undefined;
1599
+ } | {
1600
+ success: boolean;
1601
+ status: number;
1602
+ error: string;
1603
+ details: Record<string, unknown>;
1604
+ data?: undefined;
1605
+ } | {
1606
+ success: boolean;
1607
+ paymentRequired: boolean;
1608
+ terms: PaymentTerms | undefined;
1609
+ error: string;
1610
+ } | {
1611
+ error: any;
1612
+ status: any;
1613
+ }>;
1614
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1615
+ } & {
1616
+ outputSchema?: import("ai").FlexibleSchema<{
1617
+ success: boolean;
1618
+ data: Record<string, unknown>;
1619
+ status?: undefined;
1620
+ error?: undefined;
1621
+ details?: undefined;
1622
+ } | {
1623
+ success: boolean;
1624
+ status: number;
1625
+ error: string;
1626
+ details: Record<string, unknown>;
1627
+ data?: undefined;
1628
+ } | {
1629
+ success: boolean;
1630
+ paymentRequired: boolean;
1631
+ terms: PaymentTerms | undefined;
1632
+ error: string;
1633
+ } | {
1634
+ error: any;
1635
+ status: any;
1636
+ }> | undefined;
1637
+ execute: import("ai").ToolExecuteFunction<{
1638
+ token: string;
1639
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1640
+ usd?: number | undefined;
1641
+ }, {
1642
+ success: boolean;
1643
+ data: Record<string, unknown>;
1644
+ status?: undefined;
1645
+ error?: undefined;
1646
+ details?: undefined;
1647
+ } | {
1648
+ success: boolean;
1649
+ status: number;
1650
+ error: string;
1651
+ details: Record<string, unknown>;
1652
+ data?: undefined;
1653
+ } | {
1654
+ success: boolean;
1655
+ paymentRequired: boolean;
1656
+ terms: PaymentTerms | undefined;
1657
+ error: string;
1658
+ } | {
1659
+ error: any;
1660
+ status: any;
1661
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1662
+ } & {
1663
+ type: "provider";
1664
+ id: `${string}.${string}`;
1665
+ args: Record<string, unknown>;
1666
+ description?: never;
1667
+ strict?: never;
1668
+ inputExamples?: never;
1669
+ } & {
1670
+ isProviderExecuted: true;
1671
+ supportsDeferredResults?: boolean;
1672
+ } & {
1673
+ execute: import("ai").ToolExecuteFunction<{
1674
+ token: string;
1675
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1676
+ usd?: number | undefined;
1677
+ }, {
1678
+ success: boolean;
1679
+ data: Record<string, unknown>;
1680
+ status?: undefined;
1681
+ error?: undefined;
1682
+ details?: undefined;
1683
+ } | {
1684
+ success: boolean;
1685
+ status: number;
1686
+ error: string;
1687
+ details: Record<string, unknown>;
1688
+ data?: undefined;
1689
+ } | {
1690
+ success: boolean;
1691
+ paymentRequired: boolean;
1692
+ terms: PaymentTerms | undefined;
1693
+ error: string;
1694
+ } | {
1695
+ error: any;
1696
+ status: any;
1697
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1698
+ });
1699
+ tokenContractInfo: ({
1700
+ deferLoading?: boolean;
1701
+ title?: string;
1702
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1703
+ metadata?: import("@ai-sdk/provider").JSONObject;
1704
+ inputSchema: import("ai").FlexibleSchema<{
1705
+ token: string;
1706
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1707
+ }>;
1708
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1709
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1710
+ token: string;
1711
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1712
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1713
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1714
+ onInputDelta?: ((options: {
1715
+ inputTextDelta: string;
1716
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1717
+ onInputAvailable?: ((options: {
1718
+ input: {
1719
+ token: string;
1720
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1721
+ };
1722
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1723
+ toModelOutput?: ((options: {
1724
+ toolCallId: string;
1725
+ input: {
1726
+ token: string;
1727
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1728
+ };
1729
+ output: NoInfer<{
1730
+ success: boolean;
1731
+ data: Record<string, unknown>;
1732
+ status?: undefined;
1733
+ error?: undefined;
1734
+ details?: undefined;
1735
+ } | {
1736
+ success: boolean;
1737
+ status: number;
1738
+ error: string;
1739
+ details: Record<string, unknown>;
1740
+ data?: undefined;
1741
+ } | {
1742
+ success: boolean;
1743
+ paymentRequired: boolean;
1744
+ terms: PaymentTerms | undefined;
1745
+ error: string;
1746
+ } | {
1747
+ error: any;
1748
+ status: any;
1749
+ }>;
1750
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1751
+ } & {
1752
+ outputSchema?: import("ai").FlexibleSchema<{
1753
+ success: boolean;
1754
+ data: Record<string, unknown>;
1755
+ status?: undefined;
1756
+ error?: undefined;
1757
+ details?: undefined;
1758
+ } | {
1759
+ success: boolean;
1760
+ status: number;
1761
+ error: string;
1762
+ details: Record<string, unknown>;
1763
+ data?: undefined;
1764
+ } | {
1765
+ success: boolean;
1766
+ paymentRequired: boolean;
1767
+ terms: PaymentTerms | undefined;
1768
+ error: string;
1769
+ } | {
1770
+ error: any;
1771
+ status: any;
1772
+ }> | undefined;
1773
+ execute: import("ai").ToolExecuteFunction<{
1774
+ token: string;
1775
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1776
+ }, {
1777
+ success: boolean;
1778
+ data: Record<string, unknown>;
1779
+ status?: undefined;
1780
+ error?: undefined;
1781
+ details?: undefined;
1782
+ } | {
1783
+ success: boolean;
1784
+ status: number;
1785
+ error: string;
1786
+ details: Record<string, unknown>;
1787
+ data?: undefined;
1788
+ } | {
1789
+ success: boolean;
1790
+ paymentRequired: boolean;
1791
+ terms: PaymentTerms | undefined;
1792
+ error: string;
1793
+ } | {
1794
+ error: any;
1795
+ status: any;
1796
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1797
+ } & {
1798
+ description?: string | ((options: {
1799
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1800
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1801
+ }) => string) | undefined;
1802
+ strict?: boolean;
1803
+ inputExamples?: {
1804
+ input: NoInfer<{
1805
+ token: string;
1806
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1807
+ }>;
1808
+ }[] | undefined;
1809
+ id?: never;
1810
+ isProviderExecuted?: never;
1811
+ args?: never;
1812
+ supportsDeferredResults?: never;
1813
+ } & {
1814
+ type?: undefined | "function";
1815
+ } & {
1816
+ execute: import("ai").ToolExecuteFunction<{
1817
+ token: string;
1818
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1819
+ }, {
1820
+ success: boolean;
1821
+ data: Record<string, unknown>;
1822
+ status?: undefined;
1823
+ error?: undefined;
1824
+ details?: undefined;
1825
+ } | {
1826
+ success: boolean;
1827
+ status: number;
1828
+ error: string;
1829
+ details: Record<string, unknown>;
1830
+ data?: undefined;
1831
+ } | {
1832
+ success: boolean;
1833
+ paymentRequired: boolean;
1834
+ terms: PaymentTerms | undefined;
1835
+ error: string;
1836
+ } | {
1837
+ error: any;
1838
+ status: any;
1839
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1840
+ }) | ({
1841
+ deferLoading?: boolean;
1842
+ title?: string;
1843
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1844
+ metadata?: import("@ai-sdk/provider").JSONObject;
1845
+ inputSchema: import("ai").FlexibleSchema<{
1846
+ token: string;
1847
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1848
+ }>;
1849
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1850
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1851
+ token: string;
1852
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1853
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1854
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1855
+ onInputDelta?: ((options: {
1856
+ inputTextDelta: string;
1857
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1858
+ onInputAvailable?: ((options: {
1859
+ input: {
1860
+ token: string;
1861
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1862
+ };
1863
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1864
+ toModelOutput?: ((options: {
1865
+ toolCallId: string;
1866
+ input: {
1867
+ token: string;
1868
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1869
+ };
1870
+ output: NoInfer<{
1871
+ success: boolean;
1872
+ data: Record<string, unknown>;
1873
+ status?: undefined;
1874
+ error?: undefined;
1875
+ details?: undefined;
1876
+ } | {
1877
+ success: boolean;
1878
+ status: number;
1879
+ error: string;
1880
+ details: Record<string, unknown>;
1881
+ data?: undefined;
1882
+ } | {
1883
+ success: boolean;
1884
+ paymentRequired: boolean;
1885
+ terms: PaymentTerms | undefined;
1886
+ error: string;
1887
+ } | {
1888
+ error: any;
1889
+ status: any;
1890
+ }>;
1891
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1892
+ } & {
1893
+ outputSchema?: import("ai").FlexibleSchema<{
1894
+ success: boolean;
1895
+ data: Record<string, unknown>;
1896
+ status?: undefined;
1897
+ error?: undefined;
1898
+ details?: undefined;
1899
+ } | {
1900
+ success: boolean;
1901
+ status: number;
1902
+ error: string;
1903
+ details: Record<string, unknown>;
1904
+ data?: undefined;
1905
+ } | {
1906
+ success: boolean;
1907
+ paymentRequired: boolean;
1908
+ terms: PaymentTerms | undefined;
1909
+ error: string;
1910
+ } | {
1911
+ error: any;
1912
+ status: any;
1913
+ }> | undefined;
1914
+ execute: import("ai").ToolExecuteFunction<{
1915
+ token: string;
1916
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1917
+ }, {
1918
+ success: boolean;
1919
+ data: Record<string, unknown>;
1920
+ status?: undefined;
1921
+ error?: undefined;
1922
+ details?: undefined;
1923
+ } | {
1924
+ success: boolean;
1925
+ status: number;
1926
+ error: string;
1927
+ details: Record<string, unknown>;
1928
+ data?: undefined;
1929
+ } | {
1930
+ success: boolean;
1931
+ paymentRequired: boolean;
1932
+ terms: PaymentTerms | undefined;
1933
+ error: string;
1934
+ } | {
1935
+ error: any;
1936
+ status: any;
1937
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1938
+ } & {
1939
+ description?: string | ((options: {
1940
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
1941
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
1942
+ }) => string) | undefined;
1943
+ strict?: boolean;
1944
+ inputExamples?: {
1945
+ input: NoInfer<{
1946
+ token: string;
1947
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1948
+ }>;
1949
+ }[] | undefined;
1950
+ id?: never;
1951
+ isProviderExecuted?: never;
1952
+ args?: never;
1953
+ supportsDeferredResults?: never;
1954
+ } & {
1955
+ type: "dynamic";
1956
+ } & {
1957
+ execute: import("ai").ToolExecuteFunction<{
1958
+ token: string;
1959
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1960
+ }, {
1961
+ success: boolean;
1962
+ data: Record<string, unknown>;
1963
+ status?: undefined;
1964
+ error?: undefined;
1965
+ details?: undefined;
1966
+ } | {
1967
+ success: boolean;
1968
+ status: number;
1969
+ error: string;
1970
+ details: Record<string, unknown>;
1971
+ data?: undefined;
1972
+ } | {
1973
+ success: boolean;
1974
+ paymentRequired: boolean;
1975
+ terms: PaymentTerms | undefined;
1976
+ error: string;
1977
+ } | {
1978
+ error: any;
1979
+ status: any;
1980
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1981
+ }) | ({
1982
+ deferLoading?: boolean;
1983
+ title?: string;
1984
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1985
+ metadata?: import("@ai-sdk/provider").JSONObject;
1986
+ inputSchema: import("ai").FlexibleSchema<{
1987
+ token: string;
1988
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1989
+ }>;
1990
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
1991
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1992
+ token: string;
1993
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
1994
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
1995
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1996
+ onInputDelta?: ((options: {
1997
+ inputTextDelta: string;
1998
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
1999
+ onInputAvailable?: ((options: {
2000
+ input: {
2001
+ token: string;
2002
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2003
+ };
2004
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2005
+ toModelOutput?: ((options: {
2006
+ toolCallId: string;
2007
+ input: {
2008
+ token: string;
2009
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2010
+ };
2011
+ output: NoInfer<{
2012
+ success: boolean;
2013
+ data: Record<string, unknown>;
2014
+ status?: undefined;
2015
+ error?: undefined;
2016
+ details?: undefined;
2017
+ } | {
2018
+ success: boolean;
2019
+ status: number;
2020
+ error: string;
2021
+ details: Record<string, unknown>;
2022
+ data?: undefined;
2023
+ } | {
2024
+ success: boolean;
2025
+ paymentRequired: boolean;
2026
+ terms: PaymentTerms | undefined;
2027
+ error: string;
2028
+ } | {
2029
+ error: any;
2030
+ status: any;
2031
+ }>;
2032
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2033
+ } & {
2034
+ outputSchema?: import("ai").FlexibleSchema<{
2035
+ success: boolean;
2036
+ data: Record<string, unknown>;
2037
+ status?: undefined;
2038
+ error?: undefined;
2039
+ details?: undefined;
2040
+ } | {
2041
+ success: boolean;
2042
+ status: number;
2043
+ error: string;
2044
+ details: Record<string, unknown>;
2045
+ data?: undefined;
2046
+ } | {
2047
+ success: boolean;
2048
+ paymentRequired: boolean;
2049
+ terms: PaymentTerms | undefined;
2050
+ error: string;
2051
+ } | {
2052
+ error: any;
2053
+ status: any;
2054
+ }> | undefined;
2055
+ execute: import("ai").ToolExecuteFunction<{
2056
+ token: string;
2057
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2058
+ }, {
2059
+ success: boolean;
2060
+ data: Record<string, unknown>;
2061
+ status?: undefined;
2062
+ error?: undefined;
2063
+ details?: undefined;
2064
+ } | {
2065
+ success: boolean;
2066
+ status: number;
2067
+ error: string;
2068
+ details: Record<string, unknown>;
2069
+ data?: undefined;
2070
+ } | {
2071
+ success: boolean;
2072
+ paymentRequired: boolean;
2073
+ terms: PaymentTerms | undefined;
2074
+ error: string;
2075
+ } | {
2076
+ error: any;
2077
+ status: any;
2078
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2079
+ } & {
2080
+ type: "provider";
2081
+ id: `${string}.${string}`;
2082
+ args: Record<string, unknown>;
2083
+ description?: never;
2084
+ strict?: never;
2085
+ inputExamples?: never;
2086
+ } & {
2087
+ isProviderExecuted: false;
2088
+ supportsDeferredResults?: never;
2089
+ } & {
2090
+ execute: import("ai").ToolExecuteFunction<{
2091
+ token: string;
2092
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2093
+ }, {
2094
+ success: boolean;
2095
+ data: Record<string, unknown>;
2096
+ status?: undefined;
2097
+ error?: undefined;
2098
+ details?: undefined;
2099
+ } | {
2100
+ success: boolean;
2101
+ status: number;
2102
+ error: string;
2103
+ details: Record<string, unknown>;
2104
+ data?: undefined;
2105
+ } | {
2106
+ success: boolean;
2107
+ paymentRequired: boolean;
2108
+ terms: PaymentTerms | undefined;
2109
+ error: string;
2110
+ } | {
2111
+ error: any;
2112
+ status: any;
2113
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2114
+ }) | ({
2115
+ deferLoading?: boolean;
2116
+ title?: string;
2117
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
2118
+ metadata?: import("@ai-sdk/provider").JSONObject;
2119
+ inputSchema: import("ai").FlexibleSchema<{
2120
+ token: string;
2121
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2122
+ }>;
2123
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
2124
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
2125
+ token: string;
2126
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2127
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
2128
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2129
+ onInputDelta?: ((options: {
2130
+ inputTextDelta: string;
2131
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2132
+ onInputAvailable?: ((options: {
2133
+ input: {
2134
+ token: string;
2135
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2136
+ };
2137
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
2138
+ toModelOutput?: ((options: {
2139
+ toolCallId: string;
2140
+ input: {
2141
+ token: string;
2142
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2143
+ };
2144
+ output: NoInfer<{
2145
+ success: boolean;
2146
+ data: Record<string, unknown>;
2147
+ status?: undefined;
2148
+ error?: undefined;
2149
+ details?: undefined;
2150
+ } | {
2151
+ success: boolean;
2152
+ status: number;
2153
+ error: string;
2154
+ details: Record<string, unknown>;
2155
+ data?: undefined;
2156
+ } | {
2157
+ success: boolean;
2158
+ paymentRequired: boolean;
2159
+ terms: PaymentTerms | undefined;
2160
+ error: string;
2161
+ } | {
2162
+ error: any;
2163
+ status: any;
2164
+ }>;
2165
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
2166
+ } & {
2167
+ outputSchema?: import("ai").FlexibleSchema<{
2168
+ success: boolean;
2169
+ data: Record<string, unknown>;
2170
+ status?: undefined;
2171
+ error?: undefined;
2172
+ details?: undefined;
2173
+ } | {
2174
+ success: boolean;
2175
+ status: number;
2176
+ error: string;
2177
+ details: Record<string, unknown>;
2178
+ data?: undefined;
2179
+ } | {
2180
+ success: boolean;
2181
+ paymentRequired: boolean;
2182
+ terms: PaymentTerms | undefined;
2183
+ error: string;
2184
+ } | {
2185
+ error: any;
2186
+ status: any;
2187
+ }> | undefined;
2188
+ execute: import("ai").ToolExecuteFunction<{
2189
+ token: string;
2190
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2191
+ }, {
2192
+ success: boolean;
2193
+ data: Record<string, unknown>;
2194
+ status?: undefined;
2195
+ error?: undefined;
2196
+ details?: undefined;
2197
+ } | {
2198
+ success: boolean;
2199
+ status: number;
2200
+ error: string;
2201
+ details: Record<string, unknown>;
2202
+ data?: undefined;
2203
+ } | {
2204
+ success: boolean;
2205
+ paymentRequired: boolean;
2206
+ terms: PaymentTerms | undefined;
2207
+ error: string;
2208
+ } | {
2209
+ error: any;
2210
+ status: any;
2211
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2212
+ } & {
2213
+ type: "provider";
2214
+ id: `${string}.${string}`;
2215
+ args: Record<string, unknown>;
2216
+ description?: never;
2217
+ strict?: never;
2218
+ inputExamples?: never;
2219
+ } & {
2220
+ isProviderExecuted: true;
2221
+ supportsDeferredResults?: boolean;
2222
+ } & {
2223
+ execute: import("ai").ToolExecuteFunction<{
2224
+ token: string;
2225
+ chain?: "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "bsc" | "avalanche" | undefined;
2226
+ }, {
2227
+ success: boolean;
2228
+ data: Record<string, unknown>;
2229
+ status?: undefined;
2230
+ error?: undefined;
2231
+ details?: undefined;
2232
+ } | {
2233
+ success: boolean;
2234
+ status: number;
2235
+ error: string;
2236
+ details: Record<string, unknown>;
2237
+ data?: undefined;
2238
+ } | {
2239
+ success: boolean;
2240
+ paymentRequired: boolean;
2241
+ terms: PaymentTerms | undefined;
2242
+ error: string;
2243
+ } | {
2244
+ error: any;
2245
+ status: any;
2246
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
2247
+ });
18
2248
  transcribeAudio: ({
19
2249
  deferLoading?: boolean;
20
2250
  title?: string;
@@ -1543,4 +3773,10 @@ export declare function moneytoolsTools(o: MoneyToolsOptions): {
1543
3773
  }, any, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1544
3774
  });
1545
3775
  };
3776
+ interface PaymentTerms {
3777
+ amount: string;
3778
+ network: string;
3779
+ asset: string;
3780
+ payTo: string;
3781
+ }
1546
3782
  export default moneytoolsTools;