@illalabs/interfaces 0.2.1 → 0.3.0-canary.1a98d5f6
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 +115 -46
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +374 -140
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.js +1 -1
- package/dist/schemas/chatRequestBody.js.map +1 -1
- package/dist/schemas/executionCheckerQueryParams.d.ts +5 -5
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- 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/modelContext.d.ts +35 -0
- package/dist/schemas/modelContext.d.ts.map +1 -0
- package/dist/schemas/modelContext.js +29 -0
- package/dist/schemas/modelContext.js.map +1 -0
- 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 +4 -4
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +11 -3
- 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;
|
|
@@ -684,7 +753,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
684
753
|
result?: unknown;
|
|
685
754
|
error?: unknown;
|
|
686
755
|
}>, "many">>;
|
|
687
|
-
languageModel: z.
|
|
756
|
+
languageModel: z.ZodString;
|
|
688
757
|
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
689
758
|
channel: z.ZodEnum<["voice", "text"]>;
|
|
690
759
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -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,12 +773,14 @@ 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[];
|
|
711
780
|
userContext: {
|
|
712
781
|
address: `0x${string}`;
|
|
713
782
|
};
|
|
783
|
+
languageModel: string;
|
|
714
784
|
personalityContext: {
|
|
715
785
|
channel: "text" | "voice";
|
|
716
786
|
};
|
|
@@ -734,20 +804,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
734
804
|
};
|
|
735
805
|
} | {
|
|
736
806
|
type: "tool-call";
|
|
737
|
-
toolName: "
|
|
807
|
+
toolName: "swap";
|
|
738
808
|
toolCallId: string;
|
|
739
809
|
args: {
|
|
740
810
|
fromAddress: string;
|
|
741
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
742
811
|
fromToken: string;
|
|
743
812
|
fromAmount: string;
|
|
744
813
|
protocol: "lifi";
|
|
814
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
815
|
+
toToken?: string | undefined;
|
|
745
816
|
toAddress?: string | undefined;
|
|
817
|
+
toAmount?: string | undefined;
|
|
746
818
|
missingParameters?: string[] | undefined;
|
|
747
819
|
humanFriendlyMessage?: string | undefined;
|
|
820
|
+
};
|
|
821
|
+
} | {
|
|
822
|
+
type: "tool-call";
|
|
823
|
+
toolName: "bridge";
|
|
824
|
+
toolCallId: string;
|
|
825
|
+
args: {
|
|
826
|
+
fromAddress: string;
|
|
827
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
828
|
+
fromToken: string;
|
|
829
|
+
fromAmount: string;
|
|
830
|
+
protocol: "lifi";
|
|
748
831
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
749
832
|
toToken?: string | undefined;
|
|
833
|
+
toAddress?: string | undefined;
|
|
750
834
|
toAmount?: string | undefined;
|
|
835
|
+
missingParameters?: string[] | undefined;
|
|
836
|
+
humanFriendlyMessage?: string | undefined;
|
|
751
837
|
};
|
|
752
838
|
} | {
|
|
753
839
|
type: "tool-call";
|
|
@@ -771,18 +857,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
771
857
|
args: {
|
|
772
858
|
address: string;
|
|
773
859
|
provider: "moralis";
|
|
774
|
-
token?: string | undefined;
|
|
775
|
-
chain?: string | undefined;
|
|
776
860
|
missingParameters?: string[] | undefined;
|
|
777
861
|
humanFriendlyMessage?: string | undefined;
|
|
862
|
+
token?: string | undefined;
|
|
863
|
+
chain?: string | undefined;
|
|
778
864
|
};
|
|
779
865
|
} | {
|
|
780
866
|
type: "tool-call";
|
|
781
867
|
toolName: "defiFetchListings";
|
|
782
868
|
toolCallId: string;
|
|
783
869
|
args: {
|
|
784
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
785
870
|
protocol: "aave";
|
|
871
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
786
872
|
missingParameters?: string[] | undefined;
|
|
787
873
|
humanFriendlyMessage?: string | undefined;
|
|
788
874
|
tokens?: string[] | undefined;
|
|
@@ -794,10 +880,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
794
880
|
toolName: "defiSupply";
|
|
795
881
|
toolCallId: string;
|
|
796
882
|
args: {
|
|
883
|
+
protocol: "aave";
|
|
797
884
|
amount: string;
|
|
798
885
|
token: string;
|
|
799
886
|
chain: string;
|
|
800
|
-
protocol: "aave";
|
|
801
887
|
userAddress: string;
|
|
802
888
|
missingParameters?: string[] | undefined;
|
|
803
889
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -807,10 +893,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
807
893
|
toolName: "defiWithdraw";
|
|
808
894
|
toolCallId: string;
|
|
809
895
|
args: {
|
|
896
|
+
protocol: "aave";
|
|
810
897
|
amount: string;
|
|
811
898
|
token: string;
|
|
812
899
|
chain: string;
|
|
813
|
-
protocol: "aave";
|
|
814
900
|
userAddress: string;
|
|
815
901
|
missingParameters?: string[] | undefined;
|
|
816
902
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -820,8 +906,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
820
906
|
toolName: "defiPositions";
|
|
821
907
|
toolCallId: string;
|
|
822
908
|
args: {
|
|
823
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
824
909
|
protocol: "aave";
|
|
910
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
825
911
|
userAddress: string;
|
|
826
912
|
missingParameters?: string[] | undefined;
|
|
827
913
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -852,11 +938,9 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
852
938
|
result?: unknown;
|
|
853
939
|
error?: unknown;
|
|
854
940
|
}[] | undefined;
|
|
855
|
-
languageModel?: string | undefined;
|
|
856
941
|
}, {
|
|
857
942
|
toolsConfig: {
|
|
858
943
|
autoRouter?: {
|
|
859
|
-
swapOrBridge?: "lifi" | undefined;
|
|
860
944
|
defi?: {
|
|
861
945
|
lending: "aave";
|
|
862
946
|
supply?: undefined;
|
|
@@ -866,12 +950,14 @@ 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[];
|
|
872
957
|
userContext: {
|
|
873
958
|
address: string;
|
|
874
959
|
};
|
|
960
|
+
languageModel: string;
|
|
875
961
|
prompt?: {
|
|
876
962
|
role: "user" | "assistant" | "tool" | "system";
|
|
877
963
|
content: ({
|
|
@@ -892,20 +978,36 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
892
978
|
};
|
|
893
979
|
} | {
|
|
894
980
|
type: "tool-call";
|
|
895
|
-
toolName: "
|
|
981
|
+
toolName: "swap";
|
|
896
982
|
toolCallId: string;
|
|
897
983
|
args: {
|
|
898
984
|
fromAddress: string;
|
|
899
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
900
985
|
fromToken: string;
|
|
901
986
|
fromAmount: string;
|
|
902
987
|
protocol: "lifi";
|
|
988
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
989
|
+
toToken?: string | undefined;
|
|
903
990
|
toAddress?: string | undefined;
|
|
991
|
+
toAmount?: string | undefined;
|
|
904
992
|
missingParameters?: string[] | undefined;
|
|
905
993
|
humanFriendlyMessage?: string | undefined;
|
|
994
|
+
};
|
|
995
|
+
} | {
|
|
996
|
+
type: "tool-call";
|
|
997
|
+
toolName: "bridge";
|
|
998
|
+
toolCallId: string;
|
|
999
|
+
args: {
|
|
1000
|
+
fromAddress: string;
|
|
1001
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1002
|
+
fromToken: string;
|
|
1003
|
+
fromAmount: string;
|
|
1004
|
+
protocol: "lifi";
|
|
906
1005
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
907
1006
|
toToken?: string | undefined;
|
|
1007
|
+
toAddress?: string | undefined;
|
|
908
1008
|
toAmount?: string | undefined;
|
|
1009
|
+
missingParameters?: string[] | undefined;
|
|
1010
|
+
humanFriendlyMessage?: string | undefined;
|
|
909
1011
|
};
|
|
910
1012
|
} | {
|
|
911
1013
|
type: "tool-call";
|
|
@@ -929,18 +1031,18 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
929
1031
|
args: {
|
|
930
1032
|
address: string;
|
|
931
1033
|
provider: "moralis";
|
|
932
|
-
token?: string | undefined;
|
|
933
|
-
chain?: string | undefined;
|
|
934
1034
|
missingParameters?: string[] | undefined;
|
|
935
1035
|
humanFriendlyMessage?: string | undefined;
|
|
1036
|
+
token?: string | undefined;
|
|
1037
|
+
chain?: string | undefined;
|
|
936
1038
|
};
|
|
937
1039
|
} | {
|
|
938
1040
|
type: "tool-call";
|
|
939
1041
|
toolName: "defiFetchListings";
|
|
940
1042
|
toolCallId: string;
|
|
941
1043
|
args: {
|
|
942
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
943
1044
|
protocol: "aave";
|
|
1045
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
944
1046
|
missingParameters?: string[] | undefined;
|
|
945
1047
|
humanFriendlyMessage?: string | undefined;
|
|
946
1048
|
tokens?: string[] | undefined;
|
|
@@ -952,10 +1054,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
952
1054
|
toolName: "defiSupply";
|
|
953
1055
|
toolCallId: string;
|
|
954
1056
|
args: {
|
|
1057
|
+
protocol: "aave";
|
|
955
1058
|
amount: string;
|
|
956
1059
|
token: string;
|
|
957
1060
|
chain: string;
|
|
958
|
-
protocol: "aave";
|
|
959
1061
|
userAddress: string;
|
|
960
1062
|
missingParameters?: string[] | undefined;
|
|
961
1063
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -965,10 +1067,10 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
965
1067
|
toolName: "defiWithdraw";
|
|
966
1068
|
toolCallId: string;
|
|
967
1069
|
args: {
|
|
1070
|
+
protocol: "aave";
|
|
968
1071
|
amount: string;
|
|
969
1072
|
token: string;
|
|
970
1073
|
chain: string;
|
|
971
|
-
protocol: "aave";
|
|
972
1074
|
userAddress: string;
|
|
973
1075
|
missingParameters?: string[] | undefined;
|
|
974
1076
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -978,8 +1080,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
978
1080
|
toolName: "defiPositions";
|
|
979
1081
|
toolCallId: string;
|
|
980
1082
|
args: {
|
|
981
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
982
1083
|
protocol: "aave";
|
|
1084
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
983
1085
|
userAddress: string;
|
|
984
1086
|
missingParameters?: string[] | undefined;
|
|
985
1087
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1010,7 +1112,6 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
1010
1112
|
result?: unknown;
|
|
1011
1113
|
error?: unknown;
|
|
1012
1114
|
}[] | undefined;
|
|
1013
|
-
languageModel?: string | undefined;
|
|
1014
1115
|
personalityContext?: {
|
|
1015
1116
|
channel: "text" | "voice";
|
|
1016
1117
|
} | 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;
|
|
@@ -1700,7 +1870,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1700
1870
|
result?: unknown;
|
|
1701
1871
|
error?: unknown;
|
|
1702
1872
|
}>, "many">>;
|
|
1703
|
-
languageModel: z.
|
|
1873
|
+
languageModel: z.ZodString;
|
|
1704
1874
|
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1705
1875
|
channel: z.ZodEnum<["voice", "text"]>;
|
|
1706
1876
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -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,12 +1890,14 @@ 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[];
|
|
1727
1897
|
userContext: {
|
|
1728
1898
|
address: `0x${string}`;
|
|
1729
1899
|
};
|
|
1900
|
+
languageModel: string;
|
|
1730
1901
|
personalityContext: {
|
|
1731
1902
|
channel: "text" | "voice";
|
|
1732
1903
|
};
|
|
@@ -1750,20 +1921,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1750
1921
|
};
|
|
1751
1922
|
} | {
|
|
1752
1923
|
type: "tool-call";
|
|
1753
|
-
toolName: "
|
|
1924
|
+
toolName: "swap";
|
|
1754
1925
|
toolCallId: string;
|
|
1755
1926
|
args: {
|
|
1756
1927
|
fromAddress: string;
|
|
1757
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1758
1928
|
fromToken: string;
|
|
1759
1929
|
fromAmount: string;
|
|
1760
1930
|
protocol: "lifi";
|
|
1931
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1932
|
+
toToken?: string | undefined;
|
|
1761
1933
|
toAddress?: string | undefined;
|
|
1934
|
+
toAmount?: string | undefined;
|
|
1762
1935
|
missingParameters?: string[] | undefined;
|
|
1763
1936
|
humanFriendlyMessage?: string | undefined;
|
|
1937
|
+
};
|
|
1938
|
+
} | {
|
|
1939
|
+
type: "tool-call";
|
|
1940
|
+
toolName: "bridge";
|
|
1941
|
+
toolCallId: string;
|
|
1942
|
+
args: {
|
|
1943
|
+
fromAddress: string;
|
|
1944
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1945
|
+
fromToken: string;
|
|
1946
|
+
fromAmount: string;
|
|
1947
|
+
protocol: "lifi";
|
|
1764
1948
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1765
1949
|
toToken?: string | undefined;
|
|
1950
|
+
toAddress?: string | undefined;
|
|
1766
1951
|
toAmount?: string | undefined;
|
|
1952
|
+
missingParameters?: string[] | undefined;
|
|
1953
|
+
humanFriendlyMessage?: string | undefined;
|
|
1767
1954
|
};
|
|
1768
1955
|
} | {
|
|
1769
1956
|
type: "tool-call";
|
|
@@ -1787,18 +1974,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1787
1974
|
args: {
|
|
1788
1975
|
address: string;
|
|
1789
1976
|
provider: "moralis";
|
|
1790
|
-
token?: string | undefined;
|
|
1791
|
-
chain?: string | undefined;
|
|
1792
1977
|
missingParameters?: string[] | undefined;
|
|
1793
1978
|
humanFriendlyMessage?: string | undefined;
|
|
1979
|
+
token?: string | undefined;
|
|
1980
|
+
chain?: string | undefined;
|
|
1794
1981
|
};
|
|
1795
1982
|
} | {
|
|
1796
1983
|
type: "tool-call";
|
|
1797
1984
|
toolName: "defiFetchListings";
|
|
1798
1985
|
toolCallId: string;
|
|
1799
1986
|
args: {
|
|
1800
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1801
1987
|
protocol: "aave";
|
|
1988
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1802
1989
|
missingParameters?: string[] | undefined;
|
|
1803
1990
|
humanFriendlyMessage?: string | undefined;
|
|
1804
1991
|
tokens?: string[] | undefined;
|
|
@@ -1810,10 +1997,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1810
1997
|
toolName: "defiSupply";
|
|
1811
1998
|
toolCallId: string;
|
|
1812
1999
|
args: {
|
|
2000
|
+
protocol: "aave";
|
|
1813
2001
|
amount: string;
|
|
1814
2002
|
token: string;
|
|
1815
2003
|
chain: string;
|
|
1816
|
-
protocol: "aave";
|
|
1817
2004
|
userAddress: string;
|
|
1818
2005
|
missingParameters?: string[] | undefined;
|
|
1819
2006
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1823,10 +2010,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1823
2010
|
toolName: "defiWithdraw";
|
|
1824
2011
|
toolCallId: string;
|
|
1825
2012
|
args: {
|
|
2013
|
+
protocol: "aave";
|
|
1826
2014
|
amount: string;
|
|
1827
2015
|
token: string;
|
|
1828
2016
|
chain: string;
|
|
1829
|
-
protocol: "aave";
|
|
1830
2017
|
userAddress: string;
|
|
1831
2018
|
missingParameters?: string[] | undefined;
|
|
1832
2019
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1836,8 +2023,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1836
2023
|
toolName: "defiPositions";
|
|
1837
2024
|
toolCallId: string;
|
|
1838
2025
|
args: {
|
|
1839
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1840
2026
|
protocol: "aave";
|
|
2027
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1841
2028
|
userAddress: string;
|
|
1842
2029
|
missingParameters?: string[] | undefined;
|
|
1843
2030
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1868,11 +2055,9 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1868
2055
|
result?: unknown;
|
|
1869
2056
|
error?: unknown;
|
|
1870
2057
|
}[] | undefined;
|
|
1871
|
-
languageModel?: string | undefined;
|
|
1872
2058
|
}, {
|
|
1873
2059
|
toolsConfig: {
|
|
1874
2060
|
autoRouter?: {
|
|
1875
|
-
swapOrBridge?: "lifi" | undefined;
|
|
1876
2061
|
defi?: {
|
|
1877
2062
|
lending: "aave";
|
|
1878
2063
|
supply?: undefined;
|
|
@@ -1882,12 +2067,14 @@ 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[];
|
|
1888
2074
|
userContext: {
|
|
1889
2075
|
address: string;
|
|
1890
2076
|
};
|
|
2077
|
+
languageModel: string;
|
|
1891
2078
|
prompt?: {
|
|
1892
2079
|
role: "user" | "assistant" | "tool" | "system";
|
|
1893
2080
|
content: ({
|
|
@@ -1908,20 +2095,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1908
2095
|
};
|
|
1909
2096
|
} | {
|
|
1910
2097
|
type: "tool-call";
|
|
1911
|
-
toolName: "
|
|
2098
|
+
toolName: "swap";
|
|
1912
2099
|
toolCallId: string;
|
|
1913
2100
|
args: {
|
|
1914
2101
|
fromAddress: string;
|
|
1915
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1916
2102
|
fromToken: string;
|
|
1917
2103
|
fromAmount: string;
|
|
1918
2104
|
protocol: "lifi";
|
|
2105
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2106
|
+
toToken?: string | undefined;
|
|
1919
2107
|
toAddress?: string | undefined;
|
|
2108
|
+
toAmount?: string | undefined;
|
|
1920
2109
|
missingParameters?: string[] | undefined;
|
|
1921
2110
|
humanFriendlyMessage?: string | undefined;
|
|
2111
|
+
};
|
|
2112
|
+
} | {
|
|
2113
|
+
type: "tool-call";
|
|
2114
|
+
toolName: "bridge";
|
|
2115
|
+
toolCallId: string;
|
|
2116
|
+
args: {
|
|
2117
|
+
fromAddress: string;
|
|
2118
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2119
|
+
fromToken: string;
|
|
2120
|
+
fromAmount: string;
|
|
2121
|
+
protocol: "lifi";
|
|
1922
2122
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
1923
2123
|
toToken?: string | undefined;
|
|
2124
|
+
toAddress?: string | undefined;
|
|
1924
2125
|
toAmount?: string | undefined;
|
|
2126
|
+
missingParameters?: string[] | undefined;
|
|
2127
|
+
humanFriendlyMessage?: string | undefined;
|
|
1925
2128
|
};
|
|
1926
2129
|
} | {
|
|
1927
2130
|
type: "tool-call";
|
|
@@ -1945,18 +2148,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1945
2148
|
args: {
|
|
1946
2149
|
address: string;
|
|
1947
2150
|
provider: "moralis";
|
|
1948
|
-
token?: string | undefined;
|
|
1949
|
-
chain?: string | undefined;
|
|
1950
2151
|
missingParameters?: string[] | undefined;
|
|
1951
2152
|
humanFriendlyMessage?: string | undefined;
|
|
2153
|
+
token?: string | undefined;
|
|
2154
|
+
chain?: string | undefined;
|
|
1952
2155
|
};
|
|
1953
2156
|
} | {
|
|
1954
2157
|
type: "tool-call";
|
|
1955
2158
|
toolName: "defiFetchListings";
|
|
1956
2159
|
toolCallId: string;
|
|
1957
2160
|
args: {
|
|
1958
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1959
2161
|
protocol: "aave";
|
|
2162
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1960
2163
|
missingParameters?: string[] | undefined;
|
|
1961
2164
|
humanFriendlyMessage?: string | undefined;
|
|
1962
2165
|
tokens?: string[] | undefined;
|
|
@@ -1968,10 +2171,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1968
2171
|
toolName: "defiSupply";
|
|
1969
2172
|
toolCallId: string;
|
|
1970
2173
|
args: {
|
|
2174
|
+
protocol: "aave";
|
|
1971
2175
|
amount: string;
|
|
1972
2176
|
token: string;
|
|
1973
2177
|
chain: string;
|
|
1974
|
-
protocol: "aave";
|
|
1975
2178
|
userAddress: string;
|
|
1976
2179
|
missingParameters?: string[] | undefined;
|
|
1977
2180
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1981,10 +2184,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1981
2184
|
toolName: "defiWithdraw";
|
|
1982
2185
|
toolCallId: string;
|
|
1983
2186
|
args: {
|
|
2187
|
+
protocol: "aave";
|
|
1984
2188
|
amount: string;
|
|
1985
2189
|
token: string;
|
|
1986
2190
|
chain: string;
|
|
1987
|
-
protocol: "aave";
|
|
1988
2191
|
userAddress: string;
|
|
1989
2192
|
missingParameters?: string[] | undefined;
|
|
1990
2193
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -1994,8 +2197,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1994
2197
|
toolName: "defiPositions";
|
|
1995
2198
|
toolCallId: string;
|
|
1996
2199
|
args: {
|
|
1997
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1998
2200
|
protocol: "aave";
|
|
2201
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
1999
2202
|
userAddress: string;
|
|
2000
2203
|
missingParameters?: string[] | undefined;
|
|
2001
2204
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2026,14 +2229,12 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2026
2229
|
result?: unknown;
|
|
2027
2230
|
error?: unknown;
|
|
2028
2231
|
}[] | undefined;
|
|
2029
|
-
languageModel?: string | undefined;
|
|
2030
2232
|
personalityContext?: {
|
|
2031
2233
|
channel: "text" | "voice";
|
|
2032
2234
|
} | undefined;
|
|
2033
2235
|
}>, {
|
|
2034
2236
|
toolsConfig: {
|
|
2035
2237
|
autoRouter?: {
|
|
2036
|
-
swapOrBridge?: "lifi" | undefined;
|
|
2037
2238
|
defi?: {
|
|
2038
2239
|
lending: "aave";
|
|
2039
2240
|
supply?: undefined;
|
|
@@ -2043,12 +2244,14 @@ 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[];
|
|
2049
2251
|
userContext: {
|
|
2050
2252
|
address: `0x${string}`;
|
|
2051
2253
|
};
|
|
2254
|
+
languageModel: string;
|
|
2052
2255
|
personalityContext: {
|
|
2053
2256
|
channel: "text" | "voice";
|
|
2054
2257
|
};
|
|
@@ -2072,20 +2275,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2072
2275
|
};
|
|
2073
2276
|
} | {
|
|
2074
2277
|
type: "tool-call";
|
|
2075
|
-
toolName: "
|
|
2278
|
+
toolName: "swap";
|
|
2076
2279
|
toolCallId: string;
|
|
2077
2280
|
args: {
|
|
2078
2281
|
fromAddress: string;
|
|
2079
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2080
2282
|
fromToken: string;
|
|
2081
2283
|
fromAmount: string;
|
|
2082
2284
|
protocol: "lifi";
|
|
2285
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2286
|
+
toToken?: string | undefined;
|
|
2083
2287
|
toAddress?: string | undefined;
|
|
2288
|
+
toAmount?: string | undefined;
|
|
2084
2289
|
missingParameters?: string[] | undefined;
|
|
2085
2290
|
humanFriendlyMessage?: string | undefined;
|
|
2291
|
+
};
|
|
2292
|
+
} | {
|
|
2293
|
+
type: "tool-call";
|
|
2294
|
+
toolName: "bridge";
|
|
2295
|
+
toolCallId: string;
|
|
2296
|
+
args: {
|
|
2297
|
+
fromAddress: string;
|
|
2298
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2299
|
+
fromToken: string;
|
|
2300
|
+
fromAmount: string;
|
|
2301
|
+
protocol: "lifi";
|
|
2086
2302
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
2087
2303
|
toToken?: string | undefined;
|
|
2304
|
+
toAddress?: string | undefined;
|
|
2088
2305
|
toAmount?: string | undefined;
|
|
2306
|
+
missingParameters?: string[] | undefined;
|
|
2307
|
+
humanFriendlyMessage?: string | undefined;
|
|
2089
2308
|
};
|
|
2090
2309
|
} | {
|
|
2091
2310
|
type: "tool-call";
|
|
@@ -2109,18 +2328,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2109
2328
|
args: {
|
|
2110
2329
|
address: string;
|
|
2111
2330
|
provider: "moralis";
|
|
2112
|
-
token?: string | undefined;
|
|
2113
|
-
chain?: string | undefined;
|
|
2114
2331
|
missingParameters?: string[] | undefined;
|
|
2115
2332
|
humanFriendlyMessage?: string | undefined;
|
|
2333
|
+
token?: string | undefined;
|
|
2334
|
+
chain?: string | undefined;
|
|
2116
2335
|
};
|
|
2117
2336
|
} | {
|
|
2118
2337
|
type: "tool-call";
|
|
2119
2338
|
toolName: "defiFetchListings";
|
|
2120
2339
|
toolCallId: string;
|
|
2121
2340
|
args: {
|
|
2122
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2123
2341
|
protocol: "aave";
|
|
2342
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2124
2343
|
missingParameters?: string[] | undefined;
|
|
2125
2344
|
humanFriendlyMessage?: string | undefined;
|
|
2126
2345
|
tokens?: string[] | undefined;
|
|
@@ -2132,10 +2351,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2132
2351
|
toolName: "defiSupply";
|
|
2133
2352
|
toolCallId: string;
|
|
2134
2353
|
args: {
|
|
2354
|
+
protocol: "aave";
|
|
2135
2355
|
amount: string;
|
|
2136
2356
|
token: string;
|
|
2137
2357
|
chain: string;
|
|
2138
|
-
protocol: "aave";
|
|
2139
2358
|
userAddress: string;
|
|
2140
2359
|
missingParameters?: string[] | undefined;
|
|
2141
2360
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2145,10 +2364,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2145
2364
|
toolName: "defiWithdraw";
|
|
2146
2365
|
toolCallId: string;
|
|
2147
2366
|
args: {
|
|
2367
|
+
protocol: "aave";
|
|
2148
2368
|
amount: string;
|
|
2149
2369
|
token: string;
|
|
2150
2370
|
chain: string;
|
|
2151
|
-
protocol: "aave";
|
|
2152
2371
|
userAddress: string;
|
|
2153
2372
|
missingParameters?: string[] | undefined;
|
|
2154
2373
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2158,8 +2377,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2158
2377
|
toolName: "defiPositions";
|
|
2159
2378
|
toolCallId: string;
|
|
2160
2379
|
args: {
|
|
2161
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2162
2380
|
protocol: "aave";
|
|
2381
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2163
2382
|
userAddress: string;
|
|
2164
2383
|
missingParameters?: string[] | undefined;
|
|
2165
2384
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2190,11 +2409,9 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2190
2409
|
result?: unknown;
|
|
2191
2410
|
error?: unknown;
|
|
2192
2411
|
}[] | undefined;
|
|
2193
|
-
languageModel?: string | undefined;
|
|
2194
2412
|
}, {
|
|
2195
2413
|
toolsConfig: {
|
|
2196
2414
|
autoRouter?: {
|
|
2197
|
-
swapOrBridge?: "lifi" | undefined;
|
|
2198
2415
|
defi?: {
|
|
2199
2416
|
lending: "aave";
|
|
2200
2417
|
supply?: undefined;
|
|
@@ -2204,12 +2421,14 @@ 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[];
|
|
2210
2428
|
userContext: {
|
|
2211
2429
|
address: string;
|
|
2212
2430
|
};
|
|
2431
|
+
languageModel: string;
|
|
2213
2432
|
prompt?: {
|
|
2214
2433
|
role: "user" | "assistant" | "tool" | "system";
|
|
2215
2434
|
content: ({
|
|
@@ -2230,20 +2449,36 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2230
2449
|
};
|
|
2231
2450
|
} | {
|
|
2232
2451
|
type: "tool-call";
|
|
2233
|
-
toolName: "
|
|
2452
|
+
toolName: "swap";
|
|
2234
2453
|
toolCallId: string;
|
|
2235
2454
|
args: {
|
|
2236
2455
|
fromAddress: string;
|
|
2237
|
-
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2238
2456
|
fromToken: string;
|
|
2239
2457
|
fromAmount: string;
|
|
2240
2458
|
protocol: "lifi";
|
|
2459
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2460
|
+
toToken?: string | undefined;
|
|
2241
2461
|
toAddress?: string | undefined;
|
|
2462
|
+
toAmount?: string | undefined;
|
|
2242
2463
|
missingParameters?: string[] | undefined;
|
|
2243
2464
|
humanFriendlyMessage?: string | undefined;
|
|
2465
|
+
};
|
|
2466
|
+
} | {
|
|
2467
|
+
type: "tool-call";
|
|
2468
|
+
toolName: "bridge";
|
|
2469
|
+
toolCallId: string;
|
|
2470
|
+
args: {
|
|
2471
|
+
fromAddress: string;
|
|
2472
|
+
fromChain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2473
|
+
fromToken: string;
|
|
2474
|
+
fromAmount: string;
|
|
2475
|
+
protocol: "lifi";
|
|
2244
2476
|
toChain?: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC" | undefined;
|
|
2245
2477
|
toToken?: string | undefined;
|
|
2478
|
+
toAddress?: string | undefined;
|
|
2246
2479
|
toAmount?: string | undefined;
|
|
2480
|
+
missingParameters?: string[] | undefined;
|
|
2481
|
+
humanFriendlyMessage?: string | undefined;
|
|
2247
2482
|
};
|
|
2248
2483
|
} | {
|
|
2249
2484
|
type: "tool-call";
|
|
@@ -2267,18 +2502,18 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2267
2502
|
args: {
|
|
2268
2503
|
address: string;
|
|
2269
2504
|
provider: "moralis";
|
|
2270
|
-
token?: string | undefined;
|
|
2271
|
-
chain?: string | undefined;
|
|
2272
2505
|
missingParameters?: string[] | undefined;
|
|
2273
2506
|
humanFriendlyMessage?: string | undefined;
|
|
2507
|
+
token?: string | undefined;
|
|
2508
|
+
chain?: string | undefined;
|
|
2274
2509
|
};
|
|
2275
2510
|
} | {
|
|
2276
2511
|
type: "tool-call";
|
|
2277
2512
|
toolName: "defiFetchListings";
|
|
2278
2513
|
toolCallId: string;
|
|
2279
2514
|
args: {
|
|
2280
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2281
2515
|
protocol: "aave";
|
|
2516
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2282
2517
|
missingParameters?: string[] | undefined;
|
|
2283
2518
|
humanFriendlyMessage?: string | undefined;
|
|
2284
2519
|
tokens?: string[] | undefined;
|
|
@@ -2290,10 +2525,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2290
2525
|
toolName: "defiSupply";
|
|
2291
2526
|
toolCallId: string;
|
|
2292
2527
|
args: {
|
|
2528
|
+
protocol: "aave";
|
|
2293
2529
|
amount: string;
|
|
2294
2530
|
token: string;
|
|
2295
2531
|
chain: string;
|
|
2296
|
-
protocol: "aave";
|
|
2297
2532
|
userAddress: string;
|
|
2298
2533
|
missingParameters?: string[] | undefined;
|
|
2299
2534
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2303,10 +2538,10 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2303
2538
|
toolName: "defiWithdraw";
|
|
2304
2539
|
toolCallId: string;
|
|
2305
2540
|
args: {
|
|
2541
|
+
protocol: "aave";
|
|
2306
2542
|
amount: string;
|
|
2307
2543
|
token: string;
|
|
2308
2544
|
chain: string;
|
|
2309
|
-
protocol: "aave";
|
|
2310
2545
|
userAddress: string;
|
|
2311
2546
|
missingParameters?: string[] | undefined;
|
|
2312
2547
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2316,8 +2551,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2316
2551
|
toolName: "defiPositions";
|
|
2317
2552
|
toolCallId: string;
|
|
2318
2553
|
args: {
|
|
2319
|
-
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2320
2554
|
protocol: "aave";
|
|
2555
|
+
chain: "Ethereum" | "Polygon" | "Optimism" | "Base" | "Arbitrum" | "Avalanche" | "BSC";
|
|
2321
2556
|
userAddress: string;
|
|
2322
2557
|
missingParameters?: string[] | undefined;
|
|
2323
2558
|
humanFriendlyMessage?: string | undefined;
|
|
@@ -2348,7 +2583,6 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2348
2583
|
result?: unknown;
|
|
2349
2584
|
error?: unknown;
|
|
2350
2585
|
}[] | undefined;
|
|
2351
|
-
languageModel?: string | undefined;
|
|
2352
2586
|
personalityContext?: {
|
|
2353
2587
|
channel: "text" | "voice";
|
|
2354
2588
|
} | undefined;
|