@illalabs/interfaces 0.2.1 → 0.3.0-canary.9f7bb0cd
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/schemas/chatContext.d.ts +114 -45
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +366 -132
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/executionCheckerQueryParams.d.ts +5 -5
- package/dist/schemas/messages.d.ts +162 -55
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +9 -1
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/toolAutorouter.d.ts +6 -6
- package/dist/types/actions/inputs.d.ts +4 -3
- package/dist/types/actions/inputs.d.ts.map +1 -1
- package/dist/types/actions/tools/{swapBridgeAction.d.ts → bridgeAction.d.ts} +3 -3
- package/dist/types/actions/tools/bridgeAction.d.ts.map +1 -0
- package/dist/types/actions/tools/bridgeAction.js +2 -0
- package/dist/types/actions/tools/bridgeAction.js.map +1 -0
- package/dist/types/actions/tools/index.d.ts +6 -3
- package/dist/types/actions/tools/index.d.ts.map +1 -1
- package/dist/types/actions/tools/swapAction.d.ts +16 -0
- package/dist/types/actions/tools/swapAction.d.ts.map +1 -0
- package/dist/types/actions/tools/swapAction.js +2 -0
- package/dist/types/actions/tools/swapAction.js.map +1 -0
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +4 -2
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/actions/tools/swapBridgeAction.d.ts.map +0 -1
- package/dist/types/actions/tools/swapBridgeAction.js +0 -2
- package/dist/types/actions/tools/swapBridgeAction.js.map +0 -1
|
@@ -29,7 +29,6 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
29
29
|
}>]>>;
|
|
30
30
|
swapOrBridge: z.ZodOptional<z.ZodEnum<["lifi"]>>;
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
|
-
swapOrBridge?: "lifi" | undefined;
|
|
33
32
|
defi?: {
|
|
34
33
|
lending: "aave";
|
|
35
34
|
supply?: undefined;
|
|
@@ -39,8 +38,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
39
38
|
withdraw: "aave";
|
|
40
39
|
lending?: undefined;
|
|
41
40
|
} | undefined;
|
|
42
|
-
}, {
|
|
43
41
|
swapOrBridge?: "lifi" | undefined;
|
|
42
|
+
}, {
|
|
44
43
|
defi?: {
|
|
45
44
|
lending: "aave";
|
|
46
45
|
supply?: undefined;
|
|
@@ -50,10 +49,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
50
49
|
withdraw: "aave";
|
|
51
50
|
lending?: undefined;
|
|
52
51
|
} | undefined;
|
|
52
|
+
swapOrBridge?: "lifi" | undefined;
|
|
53
53
|
}>>;
|
|
54
54
|
}, "strict", z.ZodTypeAny, {
|
|
55
55
|
autoRouter?: {
|
|
56
|
-
swapOrBridge?: "lifi" | undefined;
|
|
57
56
|
defi?: {
|
|
58
57
|
lending: "aave";
|
|
59
58
|
supply?: undefined;
|
|
@@ -63,10 +62,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
63
62
|
withdraw: "aave";
|
|
64
63
|
lending?: undefined;
|
|
65
64
|
} | undefined;
|
|
65
|
+
swapOrBridge?: "lifi" | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
autoRouter?: {
|
|
69
|
-
swapOrBridge?: "lifi" | undefined;
|
|
70
69
|
defi?: {
|
|
71
70
|
lending: "aave";
|
|
72
71
|
supply?: undefined;
|
|
@@ -76,6 +75,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
76
75
|
withdraw: "aave";
|
|
77
76
|
lending?: undefined;
|
|
78
77
|
} | undefined;
|
|
78
|
+
swapOrBridge?: "lifi" | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
|
|
@@ -131,28 +131,48 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
131
131
|
}>, z.ZodObject<{
|
|
132
132
|
type: z.ZodLiteral<"tool-call">;
|
|
133
133
|
toolCallId: z.ZodString;
|
|
134
|
-
toolName: z.ZodLiteral<"
|
|
135
|
-
args: z.ZodType<import("../external.js").
|
|
134
|
+
toolName: z.ZodLiteral<"swap">;
|
|
135
|
+
args: z.ZodType<import("../external.js").SwapActionInput>;
|
|
136
136
|
}, "strict", z.ZodTypeAny, {
|
|
137
137
|
type: "tool-call";
|
|
138
|
-
toolName: "
|
|
138
|
+
toolName: "swap";
|
|
139
139
|
toolCallId: string;
|
|
140
140
|
args: {
|
|
141
141
|
fromAddress: string;
|
|
142
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
143
142
|
fromToken: string;
|
|
144
143
|
fromAmount: string;
|
|
145
144
|
protocol: "lifi";
|
|
145
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
146
|
+
toToken?: string | undefined;
|
|
146
147
|
toAddress?: string | undefined;
|
|
148
|
+
toAmount?: string | undefined;
|
|
147
149
|
missingParameters?: string[] | undefined;
|
|
148
150
|
humanFriendlyMessage?: string | undefined;
|
|
149
|
-
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
type: "tool-call";
|
|
154
|
+
toolName: "swap";
|
|
155
|
+
toolCallId: string;
|
|
156
|
+
args: {
|
|
157
|
+
fromAddress: string;
|
|
158
|
+
fromToken: string;
|
|
159
|
+
fromAmount: string;
|
|
160
|
+
protocol: "lifi";
|
|
161
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
150
162
|
toToken?: string | undefined;
|
|
163
|
+
toAddress?: string | undefined;
|
|
151
164
|
toAmount?: string | undefined;
|
|
165
|
+
missingParameters?: string[] | undefined;
|
|
166
|
+
humanFriendlyMessage?: string | undefined;
|
|
152
167
|
};
|
|
153
|
-
}
|
|
168
|
+
}>, z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"tool-call">;
|
|
170
|
+
toolCallId: z.ZodString;
|
|
171
|
+
toolName: z.ZodLiteral<"bridge">;
|
|
172
|
+
args: z.ZodType<import("../external.js").BridgeActionInput>;
|
|
173
|
+
}, "strict", z.ZodTypeAny, {
|
|
154
174
|
type: "tool-call";
|
|
155
|
-
toolName: "
|
|
175
|
+
toolName: "bridge";
|
|
156
176
|
toolCallId: string;
|
|
157
177
|
args: {
|
|
158
178
|
fromAddress: string;
|
|
@@ -160,12 +180,29 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
160
180
|
fromToken: string;
|
|
161
181
|
fromAmount: string;
|
|
162
182
|
protocol: "lifi";
|
|
183
|
+
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
184
|
+
toToken?: string | undefined;
|
|
163
185
|
toAddress?: string | undefined;
|
|
186
|
+
toAmount?: string | undefined;
|
|
164
187
|
missingParameters?: string[] | undefined;
|
|
165
188
|
humanFriendlyMessage?: string | undefined;
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
type: "tool-call";
|
|
192
|
+
toolName: "bridge";
|
|
193
|
+
toolCallId: string;
|
|
194
|
+
args: {
|
|
195
|
+
fromAddress: string;
|
|
196
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
197
|
+
fromToken: string;
|
|
198
|
+
fromAmount: string;
|
|
199
|
+
protocol: "lifi";
|
|
166
200
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
167
201
|
toToken?: string | undefined;
|
|
202
|
+
toAddress?: string | undefined;
|
|
168
203
|
toAmount?: string | undefined;
|
|
204
|
+
missingParameters?: string[] | undefined;
|
|
205
|
+
humanFriendlyMessage?: string | undefined;
|
|
169
206
|
};
|
|
170
207
|
}>, z.ZodObject<{
|
|
171
208
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -214,10 +251,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
214
251
|
args: {
|
|
215
252
|
address: string;
|
|
216
253
|
provider: "moralis";
|
|
217
|
-
token?: string | undefined;
|
|
218
|
-
chain?: string | undefined;
|
|
219
254
|
missingParameters?: string[] | undefined;
|
|
220
255
|
humanFriendlyMessage?: string | undefined;
|
|
256
|
+
token?: string | undefined;
|
|
257
|
+
chain?: string | undefined;
|
|
221
258
|
};
|
|
222
259
|
}, {
|
|
223
260
|
type: "tool-call";
|
|
@@ -226,10 +263,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
226
263
|
args: {
|
|
227
264
|
address: string;
|
|
228
265
|
provider: "moralis";
|
|
229
|
-
token?: string | undefined;
|
|
230
|
-
chain?: string | undefined;
|
|
231
266
|
missingParameters?: string[] | undefined;
|
|
232
267
|
humanFriendlyMessage?: string | undefined;
|
|
268
|
+
token?: string | undefined;
|
|
269
|
+
chain?: string | undefined;
|
|
233
270
|
};
|
|
234
271
|
}>, z.ZodObject<{
|
|
235
272
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -241,8 +278,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
241
278
|
toolName: "defiFetchListings";
|
|
242
279
|
toolCallId: string;
|
|
243
280
|
args: {
|
|
244
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
245
281
|
protocol: "aave";
|
|
282
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
246
283
|
missingParameters?: string[] | undefined;
|
|
247
284
|
humanFriendlyMessage?: string | undefined;
|
|
248
285
|
tokens?: string[] | undefined;
|
|
@@ -254,8 +291,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
254
291
|
toolName: "defiFetchListings";
|
|
255
292
|
toolCallId: string;
|
|
256
293
|
args: {
|
|
257
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
258
294
|
protocol: "aave";
|
|
295
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
259
296
|
missingParameters?: string[] | undefined;
|
|
260
297
|
humanFriendlyMessage?: string | undefined;
|
|
261
298
|
tokens?: string[] | undefined;
|
|
@@ -272,10 +309,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
272
309
|
toolName: "defiSupply";
|
|
273
310
|
toolCallId: string;
|
|
274
311
|
args: {
|
|
312
|
+
protocol: "aave";
|
|
275
313
|
amount: string;
|
|
276
314
|
token: string;
|
|
277
315
|
chain: string;
|
|
278
|
-
protocol: "aave";
|
|
279
316
|
userAddress: string;
|
|
280
317
|
missingParameters?: string[] | undefined;
|
|
281
318
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -285,10 +322,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
285
322
|
toolName: "defiSupply";
|
|
286
323
|
toolCallId: string;
|
|
287
324
|
args: {
|
|
325
|
+
protocol: "aave";
|
|
288
326
|
amount: string;
|
|
289
327
|
token: string;
|
|
290
328
|
chain: string;
|
|
291
|
-
protocol: "aave";
|
|
292
329
|
userAddress: string;
|
|
293
330
|
missingParameters?: string[] | undefined;
|
|
294
331
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -303,10 +340,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
303
340
|
toolName: "defiWithdraw";
|
|
304
341
|
toolCallId: string;
|
|
305
342
|
args: {
|
|
343
|
+
protocol: "aave";
|
|
306
344
|
amount: string;
|
|
307
345
|
token: string;
|
|
308
346
|
chain: string;
|
|
309
|
-
protocol: "aave";
|
|
310
347
|
userAddress: string;
|
|
311
348
|
missingParameters?: string[] | undefined;
|
|
312
349
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -316,10 +353,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
316
353
|
toolName: "defiWithdraw";
|
|
317
354
|
toolCallId: string;
|
|
318
355
|
args: {
|
|
356
|
+
protocol: "aave";
|
|
319
357
|
amount: string;
|
|
320
358
|
token: string;
|
|
321
359
|
chain: string;
|
|
322
|
-
protocol: "aave";
|
|
323
360
|
userAddress: string;
|
|
324
361
|
missingParameters?: string[] | undefined;
|
|
325
362
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -334,8 +371,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
334
371
|
toolName: "defiPositions";
|
|
335
372
|
toolCallId: string;
|
|
336
373
|
args: {
|
|
337
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
338
374
|
protocol: "aave";
|
|
375
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
339
376
|
userAddress: string;
|
|
340
377
|
missingParameters?: string[] | undefined;
|
|
341
378
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -346,8 +383,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
346
383
|
toolName: "defiPositions";
|
|
347
384
|
toolCallId: string;
|
|
348
385
|
args: {
|
|
349
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
350
386
|
protocol: "aave";
|
|
387
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
351
388
|
userAddress: string;
|
|
352
389
|
missingParameters?: string[] | undefined;
|
|
353
390
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -425,20 +462,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
425
462
|
};
|
|
426
463
|
} | {
|
|
427
464
|
type: "tool-call";
|
|
428
|
-
toolName: "
|
|
465
|
+
toolName: "swap";
|
|
429
466
|
toolCallId: string;
|
|
430
467
|
args: {
|
|
431
468
|
fromAddress: string;
|
|
432
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
433
469
|
fromToken: string;
|
|
434
470
|
fromAmount: string;
|
|
435
471
|
protocol: "lifi";
|
|
472
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
473
|
+
toToken?: string | undefined;
|
|
436
474
|
toAddress?: string | undefined;
|
|
475
|
+
toAmount?: string | undefined;
|
|
437
476
|
missingParameters?: string[] | undefined;
|
|
438
477
|
humanFriendlyMessage?: string | undefined;
|
|
478
|
+
};
|
|
479
|
+
} | {
|
|
480
|
+
type: "tool-call";
|
|
481
|
+
toolName: "bridge";
|
|
482
|
+
toolCallId: string;
|
|
483
|
+
args: {
|
|
484
|
+
fromAddress: string;
|
|
485
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
486
|
+
fromToken: string;
|
|
487
|
+
fromAmount: string;
|
|
488
|
+
protocol: "lifi";
|
|
439
489
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
440
490
|
toToken?: string | undefined;
|
|
491
|
+
toAddress?: string | undefined;
|
|
441
492
|
toAmount?: string | undefined;
|
|
493
|
+
missingParameters?: string[] | undefined;
|
|
494
|
+
humanFriendlyMessage?: string | undefined;
|
|
442
495
|
};
|
|
443
496
|
} | {
|
|
444
497
|
type: "tool-call";
|
|
@@ -462,18 +515,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
462
515
|
args: {
|
|
463
516
|
address: string;
|
|
464
517
|
provider: "moralis";
|
|
465
|
-
token?: string | undefined;
|
|
466
|
-
chain?: string | undefined;
|
|
467
518
|
missingParameters?: string[] | undefined;
|
|
468
519
|
humanFriendlyMessage?: string | undefined;
|
|
520
|
+
token?: string | undefined;
|
|
521
|
+
chain?: string | undefined;
|
|
469
522
|
};
|
|
470
523
|
} | {
|
|
471
524
|
type: "tool-call";
|
|
472
525
|
toolName: "defiFetchListings";
|
|
473
526
|
toolCallId: string;
|
|
474
527
|
args: {
|
|
475
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
476
528
|
protocol: "aave";
|
|
529
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
477
530
|
missingParameters?: string[] | undefined;
|
|
478
531
|
humanFriendlyMessage?: string | undefined;
|
|
479
532
|
tokens?: string[] | undefined;
|
|
@@ -485,10 +538,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
485
538
|
toolName: "defiSupply";
|
|
486
539
|
toolCallId: string;
|
|
487
540
|
args: {
|
|
541
|
+
protocol: "aave";
|
|
488
542
|
amount: string;
|
|
489
543
|
token: string;
|
|
490
544
|
chain: string;
|
|
491
|
-
protocol: "aave";
|
|
492
545
|
userAddress: string;
|
|
493
546
|
missingParameters?: string[] | undefined;
|
|
494
547
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -498,10 +551,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
498
551
|
toolName: "defiWithdraw";
|
|
499
552
|
toolCallId: string;
|
|
500
553
|
args: {
|
|
554
|
+
protocol: "aave";
|
|
501
555
|
amount: string;
|
|
502
556
|
token: string;
|
|
503
557
|
chain: string;
|
|
504
|
-
protocol: "aave";
|
|
505
558
|
userAddress: string;
|
|
506
559
|
missingParameters?: string[] | undefined;
|
|
507
560
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -511,8 +564,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
511
564
|
toolName: "defiPositions";
|
|
512
565
|
toolCallId: string;
|
|
513
566
|
args: {
|
|
514
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
515
567
|
protocol: "aave";
|
|
568
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
516
569
|
userAddress: string;
|
|
517
570
|
missingParameters?: string[] | undefined;
|
|
518
571
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -556,20 +609,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
556
609
|
};
|
|
557
610
|
} | {
|
|
558
611
|
type: "tool-call";
|
|
559
|
-
toolName: "
|
|
612
|
+
toolName: "swap";
|
|
560
613
|
toolCallId: string;
|
|
561
614
|
args: {
|
|
562
615
|
fromAddress: string;
|
|
563
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
564
616
|
fromToken: string;
|
|
565
617
|
fromAmount: string;
|
|
566
618
|
protocol: "lifi";
|
|
619
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
620
|
+
toToken?: string | undefined;
|
|
567
621
|
toAddress?: string | undefined;
|
|
622
|
+
toAmount?: string | undefined;
|
|
568
623
|
missingParameters?: string[] | undefined;
|
|
569
624
|
humanFriendlyMessage?: string | undefined;
|
|
625
|
+
};
|
|
626
|
+
} | {
|
|
627
|
+
type: "tool-call";
|
|
628
|
+
toolName: "bridge";
|
|
629
|
+
toolCallId: string;
|
|
630
|
+
args: {
|
|
631
|
+
fromAddress: string;
|
|
632
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
633
|
+
fromToken: string;
|
|
634
|
+
fromAmount: string;
|
|
635
|
+
protocol: "lifi";
|
|
570
636
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
571
637
|
toToken?: string | undefined;
|
|
638
|
+
toAddress?: string | undefined;
|
|
572
639
|
toAmount?: string | undefined;
|
|
640
|
+
missingParameters?: string[] | undefined;
|
|
641
|
+
humanFriendlyMessage?: string | undefined;
|
|
573
642
|
};
|
|
574
643
|
} | {
|
|
575
644
|
type: "tool-call";
|
|
@@ -593,18 +662,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
593
662
|
args: {
|
|
594
663
|
address: string;
|
|
595
664
|
provider: "moralis";
|
|
596
|
-
token?: string | undefined;
|
|
597
|
-
chain?: string | undefined;
|
|
598
665
|
missingParameters?: string[] | undefined;
|
|
599
666
|
humanFriendlyMessage?: string | undefined;
|
|
667
|
+
token?: string | undefined;
|
|
668
|
+
chain?: string | undefined;
|
|
600
669
|
};
|
|
601
670
|
} | {
|
|
602
671
|
type: "tool-call";
|
|
603
672
|
toolName: "defiFetchListings";
|
|
604
673
|
toolCallId: string;
|
|
605
674
|
args: {
|
|
606
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
607
675
|
protocol: "aave";
|
|
676
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
608
677
|
missingParameters?: string[] | undefined;
|
|
609
678
|
humanFriendlyMessage?: string | undefined;
|
|
610
679
|
tokens?: string[] | undefined;
|
|
@@ -616,10 +685,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
616
685
|
toolName: "defiSupply";
|
|
617
686
|
toolCallId: string;
|
|
618
687
|
args: {
|
|
688
|
+
protocol: "aave";
|
|
619
689
|
amount: string;
|
|
620
690
|
token: string;
|
|
621
691
|
chain: string;
|
|
622
|
-
protocol: "aave";
|
|
623
692
|
userAddress: string;
|
|
624
693
|
missingParameters?: string[] | undefined;
|
|
625
694
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -629,10 +698,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
629
698
|
toolName: "defiWithdraw";
|
|
630
699
|
toolCallId: string;
|
|
631
700
|
args: {
|
|
701
|
+
protocol: "aave";
|
|
632
702
|
amount: string;
|
|
633
703
|
token: string;
|
|
634
704
|
chain: string;
|
|
635
|
-
protocol: "aave";
|
|
636
705
|
userAddress: string;
|
|
637
706
|
missingParameters?: string[] | undefined;
|
|
638
707
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -642,8 +711,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
642
711
|
toolName: "defiPositions";
|
|
643
712
|
toolCallId: string;
|
|
644
713
|
args: {
|
|
645
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
646
714
|
protocol: "aave";
|
|
715
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
647
716
|
userAddress: string;
|
|
648
717
|
missingParameters?: string[] | undefined;
|
|
649
718
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -695,7 +764,6 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
695
764
|
}, "strict", z.ZodTypeAny, {
|
|
696
765
|
toolsConfig: {
|
|
697
766
|
autoRouter?: {
|
|
698
|
-
swapOrBridge?: "lifi" | undefined;
|
|
699
767
|
defi?: {
|
|
700
768
|
lending: "aave";
|
|
701
769
|
supply?: undefined;
|
|
@@ -705,6 +773,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
705
773
|
withdraw: "aave";
|
|
706
774
|
lending?: undefined;
|
|
707
775
|
} | undefined;
|
|
776
|
+
swapOrBridge?: "lifi" | undefined;
|
|
708
777
|
} | undefined;
|
|
709
778
|
};
|
|
710
779
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -734,20 +803,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
734
803
|
};
|
|
735
804
|
} | {
|
|
736
805
|
type: "tool-call";
|
|
737
|
-
toolName: "
|
|
806
|
+
toolName: "swap";
|
|
738
807
|
toolCallId: string;
|
|
739
808
|
args: {
|
|
740
809
|
fromAddress: string;
|
|
741
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
742
810
|
fromToken: string;
|
|
743
811
|
fromAmount: string;
|
|
744
812
|
protocol: "lifi";
|
|
813
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
814
|
+
toToken?: string | undefined;
|
|
745
815
|
toAddress?: string | undefined;
|
|
816
|
+
toAmount?: string | undefined;
|
|
746
817
|
missingParameters?: string[] | undefined;
|
|
747
818
|
humanFriendlyMessage?: string | undefined;
|
|
819
|
+
};
|
|
820
|
+
} | {
|
|
821
|
+
type: "tool-call";
|
|
822
|
+
toolName: "bridge";
|
|
823
|
+
toolCallId: string;
|
|
824
|
+
args: {
|
|
825
|
+
fromAddress: string;
|
|
826
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
827
|
+
fromToken: string;
|
|
828
|
+
fromAmount: string;
|
|
829
|
+
protocol: "lifi";
|
|
748
830
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
749
831
|
toToken?: string | undefined;
|
|
832
|
+
toAddress?: string | undefined;
|
|
750
833
|
toAmount?: string | undefined;
|
|
834
|
+
missingParameters?: string[] | undefined;
|
|
835
|
+
humanFriendlyMessage?: string | undefined;
|
|
751
836
|
};
|
|
752
837
|
} | {
|
|
753
838
|
type: "tool-call";
|
|
@@ -771,18 +856,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
771
856
|
args: {
|
|
772
857
|
address: string;
|
|
773
858
|
provider: "moralis";
|
|
774
|
-
token?: string | undefined;
|
|
775
|
-
chain?: string | undefined;
|
|
776
859
|
missingParameters?: string[] | undefined;
|
|
777
860
|
humanFriendlyMessage?: string | undefined;
|
|
861
|
+
token?: string | undefined;
|
|
862
|
+
chain?: string | undefined;
|
|
778
863
|
};
|
|
779
864
|
} | {
|
|
780
865
|
type: "tool-call";
|
|
781
866
|
toolName: "defiFetchListings";
|
|
782
867
|
toolCallId: string;
|
|
783
868
|
args: {
|
|
784
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
785
869
|
protocol: "aave";
|
|
870
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
786
871
|
missingParameters?: string[] | undefined;
|
|
787
872
|
humanFriendlyMessage?: string | undefined;
|
|
788
873
|
tokens?: string[] | undefined;
|
|
@@ -794,10 +879,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
794
879
|
toolName: "defiSupply";
|
|
795
880
|
toolCallId: string;
|
|
796
881
|
args: {
|
|
882
|
+
protocol: "aave";
|
|
797
883
|
amount: string;
|
|
798
884
|
token: string;
|
|
799
885
|
chain: string;
|
|
800
|
-
protocol: "aave";
|
|
801
886
|
userAddress: string;
|
|
802
887
|
missingParameters?: string[] | undefined;
|
|
803
888
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -807,10 +892,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
807
892
|
toolName: "defiWithdraw";
|
|
808
893
|
toolCallId: string;
|
|
809
894
|
args: {
|
|
895
|
+
protocol: "aave";
|
|
810
896
|
amount: string;
|
|
811
897
|
token: string;
|
|
812
898
|
chain: string;
|
|
813
|
-
protocol: "aave";
|
|
814
899
|
userAddress: string;
|
|
815
900
|
missingParameters?: string[] | undefined;
|
|
816
901
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -820,8 +905,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
820
905
|
toolName: "defiPositions";
|
|
821
906
|
toolCallId: string;
|
|
822
907
|
args: {
|
|
823
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
824
908
|
protocol: "aave";
|
|
909
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
825
910
|
userAddress: string;
|
|
826
911
|
missingParameters?: string[] | undefined;
|
|
827
912
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -856,7 +941,6 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
856
941
|
}, {
|
|
857
942
|
toolsConfig: {
|
|
858
943
|
autoRouter?: {
|
|
859
|
-
swapOrBridge?: "lifi" | undefined;
|
|
860
944
|
defi?: {
|
|
861
945
|
lending: "aave";
|
|
862
946
|
supply?: undefined;
|
|
@@ -866,6 +950,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
866
950
|
withdraw: "aave";
|
|
867
951
|
lending?: undefined;
|
|
868
952
|
} | undefined;
|
|
953
|
+
swapOrBridge?: "lifi" | undefined;
|
|
869
954
|
} | undefined;
|
|
870
955
|
};
|
|
871
956
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -892,20 +977,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
892
977
|
};
|
|
893
978
|
} | {
|
|
894
979
|
type: "tool-call";
|
|
895
|
-
toolName: "
|
|
980
|
+
toolName: "swap";
|
|
896
981
|
toolCallId: string;
|
|
897
982
|
args: {
|
|
898
983
|
fromAddress: string;
|
|
899
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
900
984
|
fromToken: string;
|
|
901
985
|
fromAmount: string;
|
|
902
986
|
protocol: "lifi";
|
|
987
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
988
|
+
toToken?: string | undefined;
|
|
903
989
|
toAddress?: string | undefined;
|
|
990
|
+
toAmount?: string | undefined;
|
|
904
991
|
missingParameters?: string[] | undefined;
|
|
905
992
|
humanFriendlyMessage?: string | undefined;
|
|
993
|
+
};
|
|
994
|
+
} | {
|
|
995
|
+
type: "tool-call";
|
|
996
|
+
toolName: "bridge";
|
|
997
|
+
toolCallId: string;
|
|
998
|
+
args: {
|
|
999
|
+
fromAddress: string;
|
|
1000
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1001
|
+
fromToken: string;
|
|
1002
|
+
fromAmount: string;
|
|
1003
|
+
protocol: "lifi";
|
|
906
1004
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
907
1005
|
toToken?: string | undefined;
|
|
1006
|
+
toAddress?: string | undefined;
|
|
908
1007
|
toAmount?: string | undefined;
|
|
1008
|
+
missingParameters?: string[] | undefined;
|
|
1009
|
+
humanFriendlyMessage?: string | undefined;
|
|
909
1010
|
};
|
|
910
1011
|
} | {
|
|
911
1012
|
type: "tool-call";
|
|
@@ -929,18 +1030,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
929
1030
|
args: {
|
|
930
1031
|
address: string;
|
|
931
1032
|
provider: "moralis";
|
|
932
|
-
token?: string | undefined;
|
|
933
|
-
chain?: string | undefined;
|
|
934
1033
|
missingParameters?: string[] | undefined;
|
|
935
1034
|
humanFriendlyMessage?: string | undefined;
|
|
1035
|
+
token?: string | undefined;
|
|
1036
|
+
chain?: string | undefined;
|
|
936
1037
|
};
|
|
937
1038
|
} | {
|
|
938
1039
|
type: "tool-call";
|
|
939
1040
|
toolName: "defiFetchListings";
|
|
940
1041
|
toolCallId: string;
|
|
941
1042
|
args: {
|
|
942
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
943
1043
|
protocol: "aave";
|
|
1044
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
944
1045
|
missingParameters?: string[] | undefined;
|
|
945
1046
|
humanFriendlyMessage?: string | undefined;
|
|
946
1047
|
tokens?: string[] | undefined;
|
|
@@ -952,10 +1053,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
952
1053
|
toolName: "defiSupply";
|
|
953
1054
|
toolCallId: string;
|
|
954
1055
|
args: {
|
|
1056
|
+
protocol: "aave";
|
|
955
1057
|
amount: string;
|
|
956
1058
|
token: string;
|
|
957
1059
|
chain: string;
|
|
958
|
-
protocol: "aave";
|
|
959
1060
|
userAddress: string;
|
|
960
1061
|
missingParameters?: string[] | undefined;
|
|
961
1062
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -965,10 +1066,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
965
1066
|
toolName: "defiWithdraw";
|
|
966
1067
|
toolCallId: string;
|
|
967
1068
|
args: {
|
|
1069
|
+
protocol: "aave";
|
|
968
1070
|
amount: string;
|
|
969
1071
|
token: string;
|
|
970
1072
|
chain: string;
|
|
971
|
-
protocol: "aave";
|
|
972
1073
|
userAddress: string;
|
|
973
1074
|
missingParameters?: string[] | undefined;
|
|
974
1075
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -978,8 +1079,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
978
1079
|
toolName: "defiPositions";
|
|
979
1080
|
toolCallId: string;
|
|
980
1081
|
args: {
|
|
981
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
982
1082
|
protocol: "aave";
|
|
1083
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
983
1084
|
userAddress: string;
|
|
984
1085
|
missingParameters?: string[] | undefined;
|
|
985
1086
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1045,7 +1146,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1045
1146
|
}>]>>;
|
|
1046
1147
|
swapOrBridge: z.ZodOptional<z.ZodEnum<["lifi"]>>;
|
|
1047
1148
|
}, "strict", z.ZodTypeAny, {
|
|
1048
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1049
1149
|
defi?: {
|
|
1050
1150
|
lending: "aave";
|
|
1051
1151
|
supply?: undefined;
|
|
@@ -1055,8 +1155,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1055
1155
|
withdraw: "aave";
|
|
1056
1156
|
lending?: undefined;
|
|
1057
1157
|
} | undefined;
|
|
1058
|
-
}, {
|
|
1059
1158
|
swapOrBridge?: "lifi" | undefined;
|
|
1159
|
+
}, {
|
|
1060
1160
|
defi?: {
|
|
1061
1161
|
lending: "aave";
|
|
1062
1162
|
supply?: undefined;
|
|
@@ -1066,10 +1166,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1066
1166
|
withdraw: "aave";
|
|
1067
1167
|
lending?: undefined;
|
|
1068
1168
|
} | undefined;
|
|
1169
|
+
swapOrBridge?: "lifi" | undefined;
|
|
1069
1170
|
}>>;
|
|
1070
1171
|
}, "strict", z.ZodTypeAny, {
|
|
1071
1172
|
autoRouter?: {
|
|
1072
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1073
1173
|
defi?: {
|
|
1074
1174
|
lending: "aave";
|
|
1075
1175
|
supply?: undefined;
|
|
@@ -1079,10 +1179,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1079
1179
|
withdraw: "aave";
|
|
1080
1180
|
lending?: undefined;
|
|
1081
1181
|
} | undefined;
|
|
1182
|
+
swapOrBridge?: "lifi" | undefined;
|
|
1082
1183
|
} | undefined;
|
|
1083
1184
|
}, {
|
|
1084
1185
|
autoRouter?: {
|
|
1085
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1086
1186
|
defi?: {
|
|
1087
1187
|
lending: "aave";
|
|
1088
1188
|
supply?: undefined;
|
|
@@ -1092,6 +1192,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1092
1192
|
withdraw: "aave";
|
|
1093
1193
|
lending?: undefined;
|
|
1094
1194
|
} | undefined;
|
|
1195
|
+
swapOrBridge?: "lifi" | undefined;
|
|
1095
1196
|
} | undefined;
|
|
1096
1197
|
}>;
|
|
1097
1198
|
messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
|
|
@@ -1147,28 +1248,48 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1147
1248
|
}>, z.ZodObject<{
|
|
1148
1249
|
type: z.ZodLiteral<"tool-call">;
|
|
1149
1250
|
toolCallId: z.ZodString;
|
|
1150
|
-
toolName: z.ZodLiteral<"
|
|
1151
|
-
args: z.ZodType<import("../external.js").
|
|
1251
|
+
toolName: z.ZodLiteral<"swap">;
|
|
1252
|
+
args: z.ZodType<import("../external.js").SwapActionInput>;
|
|
1152
1253
|
}, "strict", z.ZodTypeAny, {
|
|
1153
1254
|
type: "tool-call";
|
|
1154
|
-
toolName: "
|
|
1255
|
+
toolName: "swap";
|
|
1155
1256
|
toolCallId: string;
|
|
1156
1257
|
args: {
|
|
1157
1258
|
fromAddress: string;
|
|
1158
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1159
1259
|
fromToken: string;
|
|
1160
1260
|
fromAmount: string;
|
|
1161
1261
|
protocol: "lifi";
|
|
1262
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1263
|
+
toToken?: string | undefined;
|
|
1162
1264
|
toAddress?: string | undefined;
|
|
1265
|
+
toAmount?: string | undefined;
|
|
1163
1266
|
missingParameters?: string[] | undefined;
|
|
1164
1267
|
humanFriendlyMessage?: string | undefined;
|
|
1165
|
-
|
|
1268
|
+
};
|
|
1269
|
+
}, {
|
|
1270
|
+
type: "tool-call";
|
|
1271
|
+
toolName: "swap";
|
|
1272
|
+
toolCallId: string;
|
|
1273
|
+
args: {
|
|
1274
|
+
fromAddress: string;
|
|
1275
|
+
fromToken: string;
|
|
1276
|
+
fromAmount: string;
|
|
1277
|
+
protocol: "lifi";
|
|
1278
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1166
1279
|
toToken?: string | undefined;
|
|
1280
|
+
toAddress?: string | undefined;
|
|
1167
1281
|
toAmount?: string | undefined;
|
|
1282
|
+
missingParameters?: string[] | undefined;
|
|
1283
|
+
humanFriendlyMessage?: string | undefined;
|
|
1168
1284
|
};
|
|
1169
|
-
}
|
|
1285
|
+
}>, z.ZodObject<{
|
|
1286
|
+
type: z.ZodLiteral<"tool-call">;
|
|
1287
|
+
toolCallId: z.ZodString;
|
|
1288
|
+
toolName: z.ZodLiteral<"bridge">;
|
|
1289
|
+
args: z.ZodType<import("../external.js").BridgeActionInput>;
|
|
1290
|
+
}, "strict", z.ZodTypeAny, {
|
|
1170
1291
|
type: "tool-call";
|
|
1171
|
-
toolName: "
|
|
1292
|
+
toolName: "bridge";
|
|
1172
1293
|
toolCallId: string;
|
|
1173
1294
|
args: {
|
|
1174
1295
|
fromAddress: string;
|
|
@@ -1176,12 +1297,29 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1176
1297
|
fromToken: string;
|
|
1177
1298
|
fromAmount: string;
|
|
1178
1299
|
protocol: "lifi";
|
|
1300
|
+
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1301
|
+
toToken?: string | undefined;
|
|
1179
1302
|
toAddress?: string | undefined;
|
|
1303
|
+
toAmount?: string | undefined;
|
|
1180
1304
|
missingParameters?: string[] | undefined;
|
|
1181
1305
|
humanFriendlyMessage?: string | undefined;
|
|
1306
|
+
};
|
|
1307
|
+
}, {
|
|
1308
|
+
type: "tool-call";
|
|
1309
|
+
toolName: "bridge";
|
|
1310
|
+
toolCallId: string;
|
|
1311
|
+
args: {
|
|
1312
|
+
fromAddress: string;
|
|
1313
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1314
|
+
fromToken: string;
|
|
1315
|
+
fromAmount: string;
|
|
1316
|
+
protocol: "lifi";
|
|
1182
1317
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1183
1318
|
toToken?: string | undefined;
|
|
1319
|
+
toAddress?: string | undefined;
|
|
1184
1320
|
toAmount?: string | undefined;
|
|
1321
|
+
missingParameters?: string[] | undefined;
|
|
1322
|
+
humanFriendlyMessage?: string | undefined;
|
|
1185
1323
|
};
|
|
1186
1324
|
}>, z.ZodObject<{
|
|
1187
1325
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -1230,10 +1368,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1230
1368
|
args: {
|
|
1231
1369
|
address: string;
|
|
1232
1370
|
provider: "moralis";
|
|
1233
|
-
token?: string | undefined;
|
|
1234
|
-
chain?: string | undefined;
|
|
1235
1371
|
missingParameters?: string[] | undefined;
|
|
1236
1372
|
humanFriendlyMessage?: string | undefined;
|
|
1373
|
+
token?: string | undefined;
|
|
1374
|
+
chain?: string | undefined;
|
|
1237
1375
|
};
|
|
1238
1376
|
}, {
|
|
1239
1377
|
type: "tool-call";
|
|
@@ -1242,10 +1380,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1242
1380
|
args: {
|
|
1243
1381
|
address: string;
|
|
1244
1382
|
provider: "moralis";
|
|
1245
|
-
token?: string | undefined;
|
|
1246
|
-
chain?: string | undefined;
|
|
1247
1383
|
missingParameters?: string[] | undefined;
|
|
1248
1384
|
humanFriendlyMessage?: string | undefined;
|
|
1385
|
+
token?: string | undefined;
|
|
1386
|
+
chain?: string | undefined;
|
|
1249
1387
|
};
|
|
1250
1388
|
}>, z.ZodObject<{
|
|
1251
1389
|
type: z.ZodLiteral<"tool-call">;
|
|
@@ -1257,8 +1395,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1257
1395
|
toolName: "defiFetchListings";
|
|
1258
1396
|
toolCallId: string;
|
|
1259
1397
|
args: {
|
|
1260
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1261
1398
|
protocol: "aave";
|
|
1399
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1262
1400
|
missingParameters?: string[] | undefined;
|
|
1263
1401
|
humanFriendlyMessage?: string | undefined;
|
|
1264
1402
|
tokens?: string[] | undefined;
|
|
@@ -1270,8 +1408,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1270
1408
|
toolName: "defiFetchListings";
|
|
1271
1409
|
toolCallId: string;
|
|
1272
1410
|
args: {
|
|
1273
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1274
1411
|
protocol: "aave";
|
|
1412
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1275
1413
|
missingParameters?: string[] | undefined;
|
|
1276
1414
|
humanFriendlyMessage?: string | undefined;
|
|
1277
1415
|
tokens?: string[] | undefined;
|
|
@@ -1288,10 +1426,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1288
1426
|
toolName: "defiSupply";
|
|
1289
1427
|
toolCallId: string;
|
|
1290
1428
|
args: {
|
|
1429
|
+
protocol: "aave";
|
|
1291
1430
|
amount: string;
|
|
1292
1431
|
token: string;
|
|
1293
1432
|
chain: string;
|
|
1294
|
-
protocol: "aave";
|
|
1295
1433
|
userAddress: string;
|
|
1296
1434
|
missingParameters?: string[] | undefined;
|
|
1297
1435
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1301,10 +1439,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1301
1439
|
toolName: "defiSupply";
|
|
1302
1440
|
toolCallId: string;
|
|
1303
1441
|
args: {
|
|
1442
|
+
protocol: "aave";
|
|
1304
1443
|
amount: string;
|
|
1305
1444
|
token: string;
|
|
1306
1445
|
chain: string;
|
|
1307
|
-
protocol: "aave";
|
|
1308
1446
|
userAddress: string;
|
|
1309
1447
|
missingParameters?: string[] | undefined;
|
|
1310
1448
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1319,10 +1457,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1319
1457
|
toolName: "defiWithdraw";
|
|
1320
1458
|
toolCallId: string;
|
|
1321
1459
|
args: {
|
|
1460
|
+
protocol: "aave";
|
|
1322
1461
|
amount: string;
|
|
1323
1462
|
token: string;
|
|
1324
1463
|
chain: string;
|
|
1325
|
-
protocol: "aave";
|
|
1326
1464
|
userAddress: string;
|
|
1327
1465
|
missingParameters?: string[] | undefined;
|
|
1328
1466
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1332,10 +1470,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1332
1470
|
toolName: "defiWithdraw";
|
|
1333
1471
|
toolCallId: string;
|
|
1334
1472
|
args: {
|
|
1473
|
+
protocol: "aave";
|
|
1335
1474
|
amount: string;
|
|
1336
1475
|
token: string;
|
|
1337
1476
|
chain: string;
|
|
1338
|
-
protocol: "aave";
|
|
1339
1477
|
userAddress: string;
|
|
1340
1478
|
missingParameters?: string[] | undefined;
|
|
1341
1479
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1350,8 +1488,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1350
1488
|
toolName: "defiPositions";
|
|
1351
1489
|
toolCallId: string;
|
|
1352
1490
|
args: {
|
|
1353
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1354
1491
|
protocol: "aave";
|
|
1492
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1355
1493
|
userAddress: string;
|
|
1356
1494
|
missingParameters?: string[] | undefined;
|
|
1357
1495
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1362,8 +1500,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1362
1500
|
toolName: "defiPositions";
|
|
1363
1501
|
toolCallId: string;
|
|
1364
1502
|
args: {
|
|
1365
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1366
1503
|
protocol: "aave";
|
|
1504
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1367
1505
|
userAddress: string;
|
|
1368
1506
|
missingParameters?: string[] | undefined;
|
|
1369
1507
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1441,20 +1579,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1441
1579
|
};
|
|
1442
1580
|
} | {
|
|
1443
1581
|
type: "tool-call";
|
|
1444
|
-
toolName: "
|
|
1582
|
+
toolName: "swap";
|
|
1445
1583
|
toolCallId: string;
|
|
1446
1584
|
args: {
|
|
1447
1585
|
fromAddress: string;
|
|
1448
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1449
1586
|
fromToken: string;
|
|
1450
1587
|
fromAmount: string;
|
|
1451
1588
|
protocol: "lifi";
|
|
1589
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1590
|
+
toToken?: string | undefined;
|
|
1452
1591
|
toAddress?: string | undefined;
|
|
1592
|
+
toAmount?: string | undefined;
|
|
1453
1593
|
missingParameters?: string[] | undefined;
|
|
1454
1594
|
humanFriendlyMessage?: string | undefined;
|
|
1595
|
+
};
|
|
1596
|
+
} | {
|
|
1597
|
+
type: "tool-call";
|
|
1598
|
+
toolName: "bridge";
|
|
1599
|
+
toolCallId: string;
|
|
1600
|
+
args: {
|
|
1601
|
+
fromAddress: string;
|
|
1602
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1603
|
+
fromToken: string;
|
|
1604
|
+
fromAmount: string;
|
|
1605
|
+
protocol: "lifi";
|
|
1455
1606
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1456
1607
|
toToken?: string | undefined;
|
|
1608
|
+
toAddress?: string | undefined;
|
|
1457
1609
|
toAmount?: string | undefined;
|
|
1610
|
+
missingParameters?: string[] | undefined;
|
|
1611
|
+
humanFriendlyMessage?: string | undefined;
|
|
1458
1612
|
};
|
|
1459
1613
|
} | {
|
|
1460
1614
|
type: "tool-call";
|
|
@@ -1478,18 +1632,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1478
1632
|
args: {
|
|
1479
1633
|
address: string;
|
|
1480
1634
|
provider: "moralis";
|
|
1481
|
-
token?: string | undefined;
|
|
1482
|
-
chain?: string | undefined;
|
|
1483
1635
|
missingParameters?: string[] | undefined;
|
|
1484
1636
|
humanFriendlyMessage?: string | undefined;
|
|
1637
|
+
token?: string | undefined;
|
|
1638
|
+
chain?: string | undefined;
|
|
1485
1639
|
};
|
|
1486
1640
|
} | {
|
|
1487
1641
|
type: "tool-call";
|
|
1488
1642
|
toolName: "defiFetchListings";
|
|
1489
1643
|
toolCallId: string;
|
|
1490
1644
|
args: {
|
|
1491
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1492
1645
|
protocol: "aave";
|
|
1646
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1493
1647
|
missingParameters?: string[] | undefined;
|
|
1494
1648
|
humanFriendlyMessage?: string | undefined;
|
|
1495
1649
|
tokens?: string[] | undefined;
|
|
@@ -1501,10 +1655,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1501
1655
|
toolName: "defiSupply";
|
|
1502
1656
|
toolCallId: string;
|
|
1503
1657
|
args: {
|
|
1658
|
+
protocol: "aave";
|
|
1504
1659
|
amount: string;
|
|
1505
1660
|
token: string;
|
|
1506
1661
|
chain: string;
|
|
1507
|
-
protocol: "aave";
|
|
1508
1662
|
userAddress: string;
|
|
1509
1663
|
missingParameters?: string[] | undefined;
|
|
1510
1664
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1514,10 +1668,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1514
1668
|
toolName: "defiWithdraw";
|
|
1515
1669
|
toolCallId: string;
|
|
1516
1670
|
args: {
|
|
1671
|
+
protocol: "aave";
|
|
1517
1672
|
amount: string;
|
|
1518
1673
|
token: string;
|
|
1519
1674
|
chain: string;
|
|
1520
|
-
protocol: "aave";
|
|
1521
1675
|
userAddress: string;
|
|
1522
1676
|
missingParameters?: string[] | undefined;
|
|
1523
1677
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1527,8 +1681,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1527
1681
|
toolName: "defiPositions";
|
|
1528
1682
|
toolCallId: string;
|
|
1529
1683
|
args: {
|
|
1530
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1531
1684
|
protocol: "aave";
|
|
1685
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1532
1686
|
userAddress: string;
|
|
1533
1687
|
missingParameters?: string[] | undefined;
|
|
1534
1688
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1572,20 +1726,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1572
1726
|
};
|
|
1573
1727
|
} | {
|
|
1574
1728
|
type: "tool-call";
|
|
1575
|
-
toolName: "
|
|
1729
|
+
toolName: "swap";
|
|
1576
1730
|
toolCallId: string;
|
|
1577
1731
|
args: {
|
|
1578
1732
|
fromAddress: string;
|
|
1579
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1580
1733
|
fromToken: string;
|
|
1581
1734
|
fromAmount: string;
|
|
1582
1735
|
protocol: "lifi";
|
|
1736
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1737
|
+
toToken?: string | undefined;
|
|
1583
1738
|
toAddress?: string | undefined;
|
|
1739
|
+
toAmount?: string | undefined;
|
|
1584
1740
|
missingParameters?: string[] | undefined;
|
|
1585
1741
|
humanFriendlyMessage?: string | undefined;
|
|
1742
|
+
};
|
|
1743
|
+
} | {
|
|
1744
|
+
type: "tool-call";
|
|
1745
|
+
toolName: "bridge";
|
|
1746
|
+
toolCallId: string;
|
|
1747
|
+
args: {
|
|
1748
|
+
fromAddress: string;
|
|
1749
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1750
|
+
fromToken: string;
|
|
1751
|
+
fromAmount: string;
|
|
1752
|
+
protocol: "lifi";
|
|
1586
1753
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1587
1754
|
toToken?: string | undefined;
|
|
1755
|
+
toAddress?: string | undefined;
|
|
1588
1756
|
toAmount?: string | undefined;
|
|
1757
|
+
missingParameters?: string[] | undefined;
|
|
1758
|
+
humanFriendlyMessage?: string | undefined;
|
|
1589
1759
|
};
|
|
1590
1760
|
} | {
|
|
1591
1761
|
type: "tool-call";
|
|
@@ -1609,18 +1779,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1609
1779
|
args: {
|
|
1610
1780
|
address: string;
|
|
1611
1781
|
provider: "moralis";
|
|
1612
|
-
token?: string | undefined;
|
|
1613
|
-
chain?: string | undefined;
|
|
1614
1782
|
missingParameters?: string[] | undefined;
|
|
1615
1783
|
humanFriendlyMessage?: string | undefined;
|
|
1784
|
+
token?: string | undefined;
|
|
1785
|
+
chain?: string | undefined;
|
|
1616
1786
|
};
|
|
1617
1787
|
} | {
|
|
1618
1788
|
type: "tool-call";
|
|
1619
1789
|
toolName: "defiFetchListings";
|
|
1620
1790
|
toolCallId: string;
|
|
1621
1791
|
args: {
|
|
1622
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1623
1792
|
protocol: "aave";
|
|
1793
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1624
1794
|
missingParameters?: string[] | undefined;
|
|
1625
1795
|
humanFriendlyMessage?: string | undefined;
|
|
1626
1796
|
tokens?: string[] | undefined;
|
|
@@ -1632,10 +1802,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1632
1802
|
toolName: "defiSupply";
|
|
1633
1803
|
toolCallId: string;
|
|
1634
1804
|
args: {
|
|
1805
|
+
protocol: "aave";
|
|
1635
1806
|
amount: string;
|
|
1636
1807
|
token: string;
|
|
1637
1808
|
chain: string;
|
|
1638
|
-
protocol: "aave";
|
|
1639
1809
|
userAddress: string;
|
|
1640
1810
|
missingParameters?: string[] | undefined;
|
|
1641
1811
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1645,10 +1815,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1645
1815
|
toolName: "defiWithdraw";
|
|
1646
1816
|
toolCallId: string;
|
|
1647
1817
|
args: {
|
|
1818
|
+
protocol: "aave";
|
|
1648
1819
|
amount: string;
|
|
1649
1820
|
token: string;
|
|
1650
1821
|
chain: string;
|
|
1651
|
-
protocol: "aave";
|
|
1652
1822
|
userAddress: string;
|
|
1653
1823
|
missingParameters?: string[] | undefined;
|
|
1654
1824
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1658,8 +1828,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1658
1828
|
toolName: "defiPositions";
|
|
1659
1829
|
toolCallId: string;
|
|
1660
1830
|
args: {
|
|
1661
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1662
1831
|
protocol: "aave";
|
|
1832
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1663
1833
|
userAddress: string;
|
|
1664
1834
|
missingParameters?: string[] | undefined;
|
|
1665
1835
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1711,7 +1881,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1711
1881
|
}, "strict", z.ZodTypeAny, {
|
|
1712
1882
|
toolsConfig: {
|
|
1713
1883
|
autoRouter?: {
|
|
1714
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1715
1884
|
defi?: {
|
|
1716
1885
|
lending: "aave";
|
|
1717
1886
|
supply?: undefined;
|
|
@@ -1721,6 +1890,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1721
1890
|
withdraw: "aave";
|
|
1722
1891
|
lending?: undefined;
|
|
1723
1892
|
} | undefined;
|
|
1893
|
+
swapOrBridge?: "lifi" | undefined;
|
|
1724
1894
|
} | undefined;
|
|
1725
1895
|
};
|
|
1726
1896
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -1750,20 +1920,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1750
1920
|
};
|
|
1751
1921
|
} | {
|
|
1752
1922
|
type: "tool-call";
|
|
1753
|
-
toolName: "
|
|
1923
|
+
toolName: "swap";
|
|
1754
1924
|
toolCallId: string;
|
|
1755
1925
|
args: {
|
|
1756
1926
|
fromAddress: string;
|
|
1757
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1758
1927
|
fromToken: string;
|
|
1759
1928
|
fromAmount: string;
|
|
1760
1929
|
protocol: "lifi";
|
|
1930
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1931
|
+
toToken?: string | undefined;
|
|
1761
1932
|
toAddress?: string | undefined;
|
|
1933
|
+
toAmount?: string | undefined;
|
|
1762
1934
|
missingParameters?: string[] | undefined;
|
|
1763
1935
|
humanFriendlyMessage?: string | undefined;
|
|
1936
|
+
};
|
|
1937
|
+
} | {
|
|
1938
|
+
type: "tool-call";
|
|
1939
|
+
toolName: "bridge";
|
|
1940
|
+
toolCallId: string;
|
|
1941
|
+
args: {
|
|
1942
|
+
fromAddress: string;
|
|
1943
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1944
|
+
fromToken: string;
|
|
1945
|
+
fromAmount: string;
|
|
1946
|
+
protocol: "lifi";
|
|
1764
1947
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1765
1948
|
toToken?: string | undefined;
|
|
1949
|
+
toAddress?: string | undefined;
|
|
1766
1950
|
toAmount?: string | undefined;
|
|
1951
|
+
missingParameters?: string[] | undefined;
|
|
1952
|
+
humanFriendlyMessage?: string | undefined;
|
|
1767
1953
|
};
|
|
1768
1954
|
} | {
|
|
1769
1955
|
type: "tool-call";
|
|
@@ -1787,18 +1973,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1787
1973
|
args: {
|
|
1788
1974
|
address: string;
|
|
1789
1975
|
provider: "moralis";
|
|
1790
|
-
token?: string | undefined;
|
|
1791
|
-
chain?: string | undefined;
|
|
1792
1976
|
missingParameters?: string[] | undefined;
|
|
1793
1977
|
humanFriendlyMessage?: string | undefined;
|
|
1978
|
+
token?: string | undefined;
|
|
1979
|
+
chain?: string | undefined;
|
|
1794
1980
|
};
|
|
1795
1981
|
} | {
|
|
1796
1982
|
type: "tool-call";
|
|
1797
1983
|
toolName: "defiFetchListings";
|
|
1798
1984
|
toolCallId: string;
|
|
1799
1985
|
args: {
|
|
1800
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1801
1986
|
protocol: "aave";
|
|
1987
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1802
1988
|
missingParameters?: string[] | undefined;
|
|
1803
1989
|
humanFriendlyMessage?: string | undefined;
|
|
1804
1990
|
tokens?: string[] | undefined;
|
|
@@ -1810,10 +1996,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1810
1996
|
toolName: "defiSupply";
|
|
1811
1997
|
toolCallId: string;
|
|
1812
1998
|
args: {
|
|
1999
|
+
protocol: "aave";
|
|
1813
2000
|
amount: string;
|
|
1814
2001
|
token: string;
|
|
1815
2002
|
chain: string;
|
|
1816
|
-
protocol: "aave";
|
|
1817
2003
|
userAddress: string;
|
|
1818
2004
|
missingParameters?: string[] | undefined;
|
|
1819
2005
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1823,10 +2009,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1823
2009
|
toolName: "defiWithdraw";
|
|
1824
2010
|
toolCallId: string;
|
|
1825
2011
|
args: {
|
|
2012
|
+
protocol: "aave";
|
|
1826
2013
|
amount: string;
|
|
1827
2014
|
token: string;
|
|
1828
2015
|
chain: string;
|
|
1829
|
-
protocol: "aave";
|
|
1830
2016
|
userAddress: string;
|
|
1831
2017
|
missingParameters?: string[] | undefined;
|
|
1832
2018
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1836,8 +2022,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1836
2022
|
toolName: "defiPositions";
|
|
1837
2023
|
toolCallId: string;
|
|
1838
2024
|
args: {
|
|
1839
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1840
2025
|
protocol: "aave";
|
|
2026
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1841
2027
|
userAddress: string;
|
|
1842
2028
|
missingParameters?: string[] | undefined;
|
|
1843
2029
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1872,7 +2058,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1872
2058
|
}, {
|
|
1873
2059
|
toolsConfig: {
|
|
1874
2060
|
autoRouter?: {
|
|
1875
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1876
2061
|
defi?: {
|
|
1877
2062
|
lending: "aave";
|
|
1878
2063
|
supply?: undefined;
|
|
@@ -1882,6 +2067,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1882
2067
|
withdraw: "aave";
|
|
1883
2068
|
lending?: undefined;
|
|
1884
2069
|
} | undefined;
|
|
2070
|
+
swapOrBridge?: "lifi" | undefined;
|
|
1885
2071
|
} | undefined;
|
|
1886
2072
|
};
|
|
1887
2073
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -1908,20 +2094,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1908
2094
|
};
|
|
1909
2095
|
} | {
|
|
1910
2096
|
type: "tool-call";
|
|
1911
|
-
toolName: "
|
|
2097
|
+
toolName: "swap";
|
|
1912
2098
|
toolCallId: string;
|
|
1913
2099
|
args: {
|
|
1914
2100
|
fromAddress: string;
|
|
1915
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1916
2101
|
fromToken: string;
|
|
1917
2102
|
fromAmount: string;
|
|
1918
2103
|
protocol: "lifi";
|
|
2104
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2105
|
+
toToken?: string | undefined;
|
|
1919
2106
|
toAddress?: string | undefined;
|
|
2107
|
+
toAmount?: string | undefined;
|
|
1920
2108
|
missingParameters?: string[] | undefined;
|
|
1921
2109
|
humanFriendlyMessage?: string | undefined;
|
|
2110
|
+
};
|
|
2111
|
+
} | {
|
|
2112
|
+
type: "tool-call";
|
|
2113
|
+
toolName: "bridge";
|
|
2114
|
+
toolCallId: string;
|
|
2115
|
+
args: {
|
|
2116
|
+
fromAddress: string;
|
|
2117
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2118
|
+
fromToken: string;
|
|
2119
|
+
fromAmount: string;
|
|
2120
|
+
protocol: "lifi";
|
|
1922
2121
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1923
2122
|
toToken?: string | undefined;
|
|
2123
|
+
toAddress?: string | undefined;
|
|
1924
2124
|
toAmount?: string | undefined;
|
|
2125
|
+
missingParameters?: string[] | undefined;
|
|
2126
|
+
humanFriendlyMessage?: string | undefined;
|
|
1925
2127
|
};
|
|
1926
2128
|
} | {
|
|
1927
2129
|
type: "tool-call";
|
|
@@ -1945,18 +2147,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1945
2147
|
args: {
|
|
1946
2148
|
address: string;
|
|
1947
2149
|
provider: "moralis";
|
|
1948
|
-
token?: string | undefined;
|
|
1949
|
-
chain?: string | undefined;
|
|
1950
2150
|
missingParameters?: string[] | undefined;
|
|
1951
2151
|
humanFriendlyMessage?: string | undefined;
|
|
2152
|
+
token?: string | undefined;
|
|
2153
|
+
chain?: string | undefined;
|
|
1952
2154
|
};
|
|
1953
2155
|
} | {
|
|
1954
2156
|
type: "tool-call";
|
|
1955
2157
|
toolName: "defiFetchListings";
|
|
1956
2158
|
toolCallId: string;
|
|
1957
2159
|
args: {
|
|
1958
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1959
2160
|
protocol: "aave";
|
|
2161
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1960
2162
|
missingParameters?: string[] | undefined;
|
|
1961
2163
|
humanFriendlyMessage?: string | undefined;
|
|
1962
2164
|
tokens?: string[] | undefined;
|
|
@@ -1968,10 +2170,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1968
2170
|
toolName: "defiSupply";
|
|
1969
2171
|
toolCallId: string;
|
|
1970
2172
|
args: {
|
|
2173
|
+
protocol: "aave";
|
|
1971
2174
|
amount: string;
|
|
1972
2175
|
token: string;
|
|
1973
2176
|
chain: string;
|
|
1974
|
-
protocol: "aave";
|
|
1975
2177
|
userAddress: string;
|
|
1976
2178
|
missingParameters?: string[] | undefined;
|
|
1977
2179
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1981,10 +2183,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1981
2183
|
toolName: "defiWithdraw";
|
|
1982
2184
|
toolCallId: string;
|
|
1983
2185
|
args: {
|
|
2186
|
+
protocol: "aave";
|
|
1984
2187
|
amount: string;
|
|
1985
2188
|
token: string;
|
|
1986
2189
|
chain: string;
|
|
1987
|
-
protocol: "aave";
|
|
1988
2190
|
userAddress: string;
|
|
1989
2191
|
missingParameters?: string[] | undefined;
|
|
1990
2192
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1994,8 +2196,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1994
2196
|
toolName: "defiPositions";
|
|
1995
2197
|
toolCallId: string;
|
|
1996
2198
|
args: {
|
|
1997
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1998
2199
|
protocol: "aave";
|
|
2200
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1999
2201
|
userAddress: string;
|
|
2000
2202
|
missingParameters?: string[] | undefined;
|
|
2001
2203
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2033,7 +2235,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2033
2235
|
}>, {
|
|
2034
2236
|
toolsConfig: {
|
|
2035
2237
|
autoRouter?: {
|
|
2036
|
-
swapOrBridge?: "lifi" | undefined;
|
|
2037
2238
|
defi?: {
|
|
2038
2239
|
lending: "aave";
|
|
2039
2240
|
supply?: undefined;
|
|
@@ -2043,6 +2244,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2043
2244
|
withdraw: "aave";
|
|
2044
2245
|
lending?: undefined;
|
|
2045
2246
|
} | undefined;
|
|
2247
|
+
swapOrBridge?: "lifi" | undefined;
|
|
2046
2248
|
} | undefined;
|
|
2047
2249
|
};
|
|
2048
2250
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -2072,20 +2274,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2072
2274
|
};
|
|
2073
2275
|
} | {
|
|
2074
2276
|
type: "tool-call";
|
|
2075
|
-
toolName: "
|
|
2277
|
+
toolName: "swap";
|
|
2076
2278
|
toolCallId: string;
|
|
2077
2279
|
args: {
|
|
2078
2280
|
fromAddress: string;
|
|
2079
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2080
2281
|
fromToken: string;
|
|
2081
2282
|
fromAmount: string;
|
|
2082
2283
|
protocol: "lifi";
|
|
2284
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2285
|
+
toToken?: string | undefined;
|
|
2083
2286
|
toAddress?: string | undefined;
|
|
2287
|
+
toAmount?: string | undefined;
|
|
2084
2288
|
missingParameters?: string[] | undefined;
|
|
2085
2289
|
humanFriendlyMessage?: string | undefined;
|
|
2290
|
+
};
|
|
2291
|
+
} | {
|
|
2292
|
+
type: "tool-call";
|
|
2293
|
+
toolName: "bridge";
|
|
2294
|
+
toolCallId: string;
|
|
2295
|
+
args: {
|
|
2296
|
+
fromAddress: string;
|
|
2297
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2298
|
+
fromToken: string;
|
|
2299
|
+
fromAmount: string;
|
|
2300
|
+
protocol: "lifi";
|
|
2086
2301
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
2087
2302
|
toToken?: string | undefined;
|
|
2303
|
+
toAddress?: string | undefined;
|
|
2088
2304
|
toAmount?: string | undefined;
|
|
2305
|
+
missingParameters?: string[] | undefined;
|
|
2306
|
+
humanFriendlyMessage?: string | undefined;
|
|
2089
2307
|
};
|
|
2090
2308
|
} | {
|
|
2091
2309
|
type: "tool-call";
|
|
@@ -2109,18 +2327,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2109
2327
|
args: {
|
|
2110
2328
|
address: string;
|
|
2111
2329
|
provider: "moralis";
|
|
2112
|
-
token?: string | undefined;
|
|
2113
|
-
chain?: string | undefined;
|
|
2114
2330
|
missingParameters?: string[] | undefined;
|
|
2115
2331
|
humanFriendlyMessage?: string | undefined;
|
|
2332
|
+
token?: string | undefined;
|
|
2333
|
+
chain?: string | undefined;
|
|
2116
2334
|
};
|
|
2117
2335
|
} | {
|
|
2118
2336
|
type: "tool-call";
|
|
2119
2337
|
toolName: "defiFetchListings";
|
|
2120
2338
|
toolCallId: string;
|
|
2121
2339
|
args: {
|
|
2122
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2123
2340
|
protocol: "aave";
|
|
2341
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2124
2342
|
missingParameters?: string[] | undefined;
|
|
2125
2343
|
humanFriendlyMessage?: string | undefined;
|
|
2126
2344
|
tokens?: string[] | undefined;
|
|
@@ -2132,10 +2350,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2132
2350
|
toolName: "defiSupply";
|
|
2133
2351
|
toolCallId: string;
|
|
2134
2352
|
args: {
|
|
2353
|
+
protocol: "aave";
|
|
2135
2354
|
amount: string;
|
|
2136
2355
|
token: string;
|
|
2137
2356
|
chain: string;
|
|
2138
|
-
protocol: "aave";
|
|
2139
2357
|
userAddress: string;
|
|
2140
2358
|
missingParameters?: string[] | undefined;
|
|
2141
2359
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2145,10 +2363,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2145
2363
|
toolName: "defiWithdraw";
|
|
2146
2364
|
toolCallId: string;
|
|
2147
2365
|
args: {
|
|
2366
|
+
protocol: "aave";
|
|
2148
2367
|
amount: string;
|
|
2149
2368
|
token: string;
|
|
2150
2369
|
chain: string;
|
|
2151
|
-
protocol: "aave";
|
|
2152
2370
|
userAddress: string;
|
|
2153
2371
|
missingParameters?: string[] | undefined;
|
|
2154
2372
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2158,8 +2376,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2158
2376
|
toolName: "defiPositions";
|
|
2159
2377
|
toolCallId: string;
|
|
2160
2378
|
args: {
|
|
2161
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2162
2379
|
protocol: "aave";
|
|
2380
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2163
2381
|
userAddress: string;
|
|
2164
2382
|
missingParameters?: string[] | undefined;
|
|
2165
2383
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2194,7 +2412,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2194
2412
|
}, {
|
|
2195
2413
|
toolsConfig: {
|
|
2196
2414
|
autoRouter?: {
|
|
2197
|
-
swapOrBridge?: "lifi" | undefined;
|
|
2198
2415
|
defi?: {
|
|
2199
2416
|
lending: "aave";
|
|
2200
2417
|
supply?: undefined;
|
|
@@ -2204,6 +2421,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2204
2421
|
withdraw: "aave";
|
|
2205
2422
|
lending?: undefined;
|
|
2206
2423
|
} | undefined;
|
|
2424
|
+
swapOrBridge?: "lifi" | undefined;
|
|
2207
2425
|
} | undefined;
|
|
2208
2426
|
};
|
|
2209
2427
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -2230,20 +2448,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2230
2448
|
};
|
|
2231
2449
|
} | {
|
|
2232
2450
|
type: "tool-call";
|
|
2233
|
-
toolName: "
|
|
2451
|
+
toolName: "swap";
|
|
2234
2452
|
toolCallId: string;
|
|
2235
2453
|
args: {
|
|
2236
2454
|
fromAddress: string;
|
|
2237
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2238
2455
|
fromToken: string;
|
|
2239
2456
|
fromAmount: string;
|
|
2240
2457
|
protocol: "lifi";
|
|
2458
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2459
|
+
toToken?: string | undefined;
|
|
2241
2460
|
toAddress?: string | undefined;
|
|
2461
|
+
toAmount?: string | undefined;
|
|
2242
2462
|
missingParameters?: string[] | undefined;
|
|
2243
2463
|
humanFriendlyMessage?: string | undefined;
|
|
2464
|
+
};
|
|
2465
|
+
} | {
|
|
2466
|
+
type: "tool-call";
|
|
2467
|
+
toolName: "bridge";
|
|
2468
|
+
toolCallId: string;
|
|
2469
|
+
args: {
|
|
2470
|
+
fromAddress: string;
|
|
2471
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2472
|
+
fromToken: string;
|
|
2473
|
+
fromAmount: string;
|
|
2474
|
+
protocol: "lifi";
|
|
2244
2475
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
2245
2476
|
toToken?: string | undefined;
|
|
2477
|
+
toAddress?: string | undefined;
|
|
2246
2478
|
toAmount?: string | undefined;
|
|
2479
|
+
missingParameters?: string[] | undefined;
|
|
2480
|
+
humanFriendlyMessage?: string | undefined;
|
|
2247
2481
|
};
|
|
2248
2482
|
} | {
|
|
2249
2483
|
type: "tool-call";
|
|
@@ -2267,18 +2501,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2267
2501
|
args: {
|
|
2268
2502
|
address: string;
|
|
2269
2503
|
provider: "moralis";
|
|
2270
|
-
token?: string | undefined;
|
|
2271
|
-
chain?: string | undefined;
|
|
2272
2504
|
missingParameters?: string[] | undefined;
|
|
2273
2505
|
humanFriendlyMessage?: string | undefined;
|
|
2506
|
+
token?: string | undefined;
|
|
2507
|
+
chain?: string | undefined;
|
|
2274
2508
|
};
|
|
2275
2509
|
} | {
|
|
2276
2510
|
type: "tool-call";
|
|
2277
2511
|
toolName: "defiFetchListings";
|
|
2278
2512
|
toolCallId: string;
|
|
2279
2513
|
args: {
|
|
2280
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2281
2514
|
protocol: "aave";
|
|
2515
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2282
2516
|
missingParameters?: string[] | undefined;
|
|
2283
2517
|
humanFriendlyMessage?: string | undefined;
|
|
2284
2518
|
tokens?: string[] | undefined;
|
|
@@ -2290,10 +2524,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2290
2524
|
toolName: "defiSupply";
|
|
2291
2525
|
toolCallId: string;
|
|
2292
2526
|
args: {
|
|
2527
|
+
protocol: "aave";
|
|
2293
2528
|
amount: string;
|
|
2294
2529
|
token: string;
|
|
2295
2530
|
chain: string;
|
|
2296
|
-
protocol: "aave";
|
|
2297
2531
|
userAddress: string;
|
|
2298
2532
|
missingParameters?: string[] | undefined;
|
|
2299
2533
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2303,10 +2537,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2303
2537
|
toolName: "defiWithdraw";
|
|
2304
2538
|
toolCallId: string;
|
|
2305
2539
|
args: {
|
|
2540
|
+
protocol: "aave";
|
|
2306
2541
|
amount: string;
|
|
2307
2542
|
token: string;
|
|
2308
2543
|
chain: string;
|
|
2309
|
-
protocol: "aave";
|
|
2310
2544
|
userAddress: string;
|
|
2311
2545
|
missingParameters?: string[] | undefined;
|
|
2312
2546
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2316,8 +2550,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2316
2550
|
toolName: "defiPositions";
|
|
2317
2551
|
toolCallId: string;
|
|
2318
2552
|
args: {
|
|
2319
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2320
2553
|
protocol: "aave";
|
|
2554
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2321
2555
|
userAddress: string;
|
|
2322
2556
|
missingParameters?: string[] | undefined;
|
|
2323
2557
|
humanFriendlyMessage?: string | undefined;
|