@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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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 ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
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, {
|
|
@@ -722,7 +791,6 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
722
791
|
}>]>>;
|
|
723
792
|
swapOrBridge: z.ZodOptional<z.ZodEnum<["lifi"]>>;
|
|
724
793
|
}, "strict", z.ZodTypeAny, {
|
|
725
|
-
swapOrBridge?: "lifi" | undefined;
|
|
726
794
|
defi?: {
|
|
727
795
|
lending: "aave";
|
|
728
796
|
supply?: undefined;
|
|
@@ -732,8 +800,8 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
732
800
|
withdraw: "aave";
|
|
733
801
|
lending?: undefined;
|
|
734
802
|
} | undefined;
|
|
735
|
-
}, {
|
|
736
803
|
swapOrBridge?: "lifi" | undefined;
|
|
804
|
+
}, {
|
|
737
805
|
defi?: {
|
|
738
806
|
lending: "aave";
|
|
739
807
|
supply?: undefined;
|
|
@@ -743,10 +811,10 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
743
811
|
withdraw: "aave";
|
|
744
812
|
lending?: undefined;
|
|
745
813
|
} | undefined;
|
|
814
|
+
swapOrBridge?: "lifi" | undefined;
|
|
746
815
|
}>>;
|
|
747
816
|
}, "strict", z.ZodTypeAny, {
|
|
748
817
|
autoRouter?: {
|
|
749
|
-
swapOrBridge?: "lifi" | undefined;
|
|
750
818
|
defi?: {
|
|
751
819
|
lending: "aave";
|
|
752
820
|
supply?: undefined;
|
|
@@ -756,10 +824,10 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
756
824
|
withdraw: "aave";
|
|
757
825
|
lending?: undefined;
|
|
758
826
|
} | undefined;
|
|
827
|
+
swapOrBridge?: "lifi" | undefined;
|
|
759
828
|
} | undefined;
|
|
760
829
|
}, {
|
|
761
830
|
autoRouter?: {
|
|
762
|
-
swapOrBridge?: "lifi" | undefined;
|
|
763
831
|
defi?: {
|
|
764
832
|
lending: "aave";
|
|
765
833
|
supply?: undefined;
|
|
@@ -769,12 +837,12 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
769
837
|
withdraw: "aave";
|
|
770
838
|
lending?: undefined;
|
|
771
839
|
} | undefined;
|
|
840
|
+
swapOrBridge?: "lifi" | undefined;
|
|
772
841
|
} | undefined;
|
|
773
842
|
}>;
|
|
774
843
|
}>, "strip", z.ZodTypeAny, {
|
|
775
844
|
toolsConfig: {
|
|
776
845
|
autoRouter?: {
|
|
777
|
-
swapOrBridge?: "lifi" | undefined;
|
|
778
846
|
defi?: {
|
|
779
847
|
lending: "aave";
|
|
780
848
|
supply?: undefined;
|
|
@@ -784,13 +852,13 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
784
852
|
withdraw: "aave";
|
|
785
853
|
lending?: undefined;
|
|
786
854
|
} | undefined;
|
|
855
|
+
swapOrBridge?: "lifi" | undefined;
|
|
787
856
|
} | undefined;
|
|
788
857
|
};
|
|
789
858
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
790
859
|
}, {
|
|
791
860
|
toolsConfig: {
|
|
792
861
|
autoRouter?: {
|
|
793
|
-
swapOrBridge?: "lifi" | undefined;
|
|
794
862
|
defi?: {
|
|
795
863
|
lending: "aave";
|
|
796
864
|
supply?: undefined;
|
|
@@ -800,6 +868,7 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
800
868
|
withdraw: "aave";
|
|
801
869
|
lending?: undefined;
|
|
802
870
|
} | undefined;
|
|
871
|
+
swapOrBridge?: "lifi" | undefined;
|
|
803
872
|
} | undefined;
|
|
804
873
|
};
|
|
805
874
|
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC"}
|