intentkit 0.7.5.dev15__py3-none-any.whl → 0.7.5.dev17__py3-none-any.whl

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.

Potentially problematic release.


This version of intentkit might be problematic. Click here for more details.

Files changed (49) hide show
  1. intentkit/__init__.py +1 -1
  2. intentkit/models/agent.py +82 -13
  3. intentkit/models/skills.csv +23 -28
  4. intentkit/skills/base.py +45 -0
  5. intentkit/skills/basename/__init__.py +49 -0
  6. intentkit/skills/basename/base.py +11 -0
  7. intentkit/skills/basename/basename.svg +11 -0
  8. intentkit/skills/basename/schema.json +57 -0
  9. intentkit/skills/cdp/__init__.py +18 -92
  10. intentkit/skills/cdp/schema.json +13 -301
  11. intentkit/skills/erc20/__init__.py +50 -0
  12. intentkit/skills/erc20/base.py +11 -0
  13. intentkit/skills/erc20/erc20.svg +5 -0
  14. intentkit/skills/erc20/schema.json +73 -0
  15. intentkit/skills/erc721/__init__.py +51 -0
  16. intentkit/skills/erc721/base.py +11 -0
  17. intentkit/skills/erc721/erc721.svg +5 -0
  18. intentkit/skills/erc721/schema.json +89 -0
  19. intentkit/skills/lifi/__init__.py +4 -4
  20. intentkit/skills/lifi/token_execute.py +24 -12
  21. intentkit/skills/lifi/token_quote.py +2 -2
  22. intentkit/skills/lifi/utils.py +96 -43
  23. intentkit/skills/morpho/__init__.py +50 -0
  24. intentkit/skills/morpho/base.py +11 -0
  25. intentkit/skills/morpho/morpho.svg +12 -0
  26. intentkit/skills/morpho/schema.json +73 -0
  27. intentkit/skills/pyth/__init__.py +50 -0
  28. intentkit/skills/pyth/base.py +11 -0
  29. intentkit/skills/pyth/pyth.svg +6 -0
  30. intentkit/skills/pyth/schema.json +73 -0
  31. intentkit/skills/skills.toml +32 -0
  32. intentkit/skills/superfluid/__init__.py +51 -0
  33. intentkit/skills/superfluid/base.py +11 -0
  34. intentkit/skills/superfluid/schema.json +89 -0
  35. intentkit/skills/superfluid/superfluid.svg +6 -0
  36. intentkit/skills/weth/__init__.py +49 -0
  37. intentkit/skills/weth/base.py +11 -0
  38. intentkit/skills/weth/schema.json +57 -0
  39. intentkit/skills/weth/weth.svg +6 -0
  40. intentkit/skills/wow/__init__.py +51 -0
  41. intentkit/skills/wow/base.py +11 -0
  42. intentkit/skills/wow/schema.json +89 -0
  43. intentkit/skills/wow/wow.svg +7 -0
  44. {intentkit-0.7.5.dev15.dist-info → intentkit-0.7.5.dev17.dist-info}/METADATA +1 -1
  45. {intentkit-0.7.5.dev15.dist-info → intentkit-0.7.5.dev17.dist-info}/RECORD +47 -17
  46. intentkit/skills/cdp/get_balance.py +0 -110
  47. intentkit/skills/cdp/swap.py +0 -121
  48. {intentkit-0.7.5.dev15.dist-info → intentkit-0.7.5.dev17.dist-info}/WHEEL +0 -0
  49. {intentkit-0.7.5.dev15.dist-info → intentkit-0.7.5.dev17.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
- intentkit/__init__.py,sha256=vjaWlNHln5QVdZTtZ5-BEqKKtbIeYYNU8p5zc3jwFtA,384
1
+ intentkit/__init__.py,sha256=zzYPe38hldbmSqiTWyKK_F_D4FWBcbvtkt2-n4h0zDU,384
2
2
  intentkit/abstracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  intentkit/abstracts/agent.py,sha256=108gb5W8Q1Sy4G55F2_ZFv2-_CnY76qrBtpIr0Oxxqk,1489
4
4
  intentkit/abstracts/api.py,sha256=ZUc24vaQvQVbbjznx7bV0lbbQxdQPfEV8ZxM2R6wZWo,166
@@ -21,7 +21,7 @@ intentkit/core/credit.py,sha256=b4f4T6G6eeBTMe0L_r8awWtXgUnqiog4IUaymDPYym0,7558
21
21
  intentkit/core/engine.py,sha256=Ecwt-ZuPrJmFcN69P6dsEs_NeCyp52HJ9TL_8X2cP34,36086
22
22
  intentkit/core/node.py,sha256=7h9zgDSd928bzUi3m3EZnKkhbwqlbRAQUr_uz7gKB5Y,8880
23
23
  intentkit/core/prompt.py,sha256=idNx1ono4Maz2i6IBKfaKOBBbEQiWbaSxr2Eb1vZTI4,15482
24
- intentkit/models/agent.py,sha256=pZUbIRd56Ti1irCTH6yOf7SXskqoeBENe8aWG98sZ5k,65133
24
+ intentkit/models/agent.py,sha256=yXulE5vlOOku6DSiid_Jp6OCfqy3-XN47rmKax5xX1w,67582
25
25
  intentkit/models/agent_data.py,sha256=5zq3EPKnygT2P1OHc2IfEmL8hXkjeBND6sJ0JJsvQJg,28370
26
26
  intentkit/models/agent_public.json,sha256=0X8Bd2WOobDJLsok8avWNzmzu4uvKSGEyy6Myn53eT4,2802
27
27
  intentkit/models/agent_schema.json,sha256=hFGUE57JIiN8V4olgLf2LBXPejA2QLiQoFc6riM1UFo,17139
@@ -37,11 +37,11 @@ intentkit/models/llm.csv,sha256=J2DsXgnmkPeOw-3OBKRg4q8uGlFYxNW8ebwi4OrOupw,2598
37
37
  intentkit/models/llm.py,sha256=veuUmJ-tkFQjaXTYRm5p3WQjGw83m-QUdzv9531nzzU,20372
38
38
  intentkit/models/redis.py,sha256=UoN8jqLREO1VO9_w6m-JhldpP19iEHj4TiGVCMutQW4,3702
39
39
  intentkit/models/skill.py,sha256=-6FYzjnh2OL-l-K69dBUhmQZ-acJnXTRYBSOcjzy5mI,20329
40
- intentkit/models/skills.csv,sha256=PhqaOiOe5QttKFZpEOqwF1qkedEV6Ew8qM5i_ETABME,19676
40
+ intentkit/models/skills.csv,sha256=lvQg_1byPvJaHToQbEqRZarfYDuXpP4EXeVJVMc8aDs,19132
41
41
  intentkit/models/user.py,sha256=r2UWpuBJbS6bbfS-fz_rAtOTHL3zodRt1rccA7HhAQM,9902
42
42
  intentkit/skills/__init__.py,sha256=WkjmKB4xvy36zyXMroPMf_DTPgQloNS3L73nVnBmuQI,303
43
- intentkit/skills/base.py,sha256=2Lw3LpqKPYzsxRlAaSXz5ObG-LQtHfDxsyT4bgPYEhE,5705
44
- intentkit/skills/skills.toml,sha256=BCqO6nQVaU3wSpY0Js1xjakLzfttsq6hcHcJbw7q958,2734
43
+ intentkit/skills/base.py,sha256=feCSPp6J3XP_intveE-GV3Fub1bT_UDokNbbm8YHcas,7058
44
+ intentkit/skills/skills.toml,sha256=WQiai9RKIQ2Mqp-eW35_RCn2RW5QLWN3aRgsj7B7OvE,3532
45
45
  intentkit/skills/acolyt/__init__.py,sha256=qHQXFlqyyx4deRxC0rts_ZEEpDVV-vWXPncqI_ZMOi4,2074
46
46
  intentkit/skills/acolyt/acolyt.jpg,sha256=CwrrouzXzYvnHi1rprYruvZqPopG06ppMczEZmZ7D2s,11559
47
47
  intentkit/skills/acolyt/ask.py,sha256=UuTdjF5961MLDMzDChnD7OGAqi0UYTTFgwGvuAIUDkQ,5871
@@ -58,6 +58,10 @@ intentkit/skills/allora/allora.jpeg,sha256=OOFkmkdUouw0a5FH137-ai1mvksS9oy9pFoD9
58
58
  intentkit/skills/allora/base.py,sha256=dkzkfCZfkpjizVBF1ebkSHpIyrGUCEkHKOGzw05niZI,1315
59
59
  intentkit/skills/allora/price.py,sha256=_xQHroUpmNsmDCkqIdIymQloxO1sxvr0gmfCj2GGlNc,5194
60
60
  intentkit/skills/allora/schema.json,sha256=hHgWEdjAK4Lu4f5cYJsiBq_xlASs9EGsa9DxPIQmPWc,2231
61
+ intentkit/skills/basename/__init__.py,sha256=qg_6Vg8R04WabJ_QSc7IUY_RA8yVlOAYd-nDGPBk1g8,1313
62
+ intentkit/skills/basename/base.py,sha256=yJZNjFF2m5ej6B9o4orlPg4MoxCcx_2pgqYicV34dME,246
63
+ intentkit/skills/basename/basename.svg,sha256=1YoKTX90HDJUYI7yhKF31FVQWFud80Gcy8BnRuQ1NUg,605
64
+ intentkit/skills/basename/schema.json,sha256=s-Iir6Ea3SKHC3BNXz1ThseJe55HhKwUAPk3TlwL0C4,1458
61
65
  intentkit/skills/carv/README.md,sha256=mCyt8r_fBekt4Dv1QiwFRCQhwlpTiE4NE8GUa_thLQQ,5327
62
66
  intentkit/skills/carv/__init__.py,sha256=qqtljOBo95DgB0L81znu91Y4kK6G7AeULlGWxYOKIMw,3845
63
67
  intentkit/skills/carv/base.py,sha256=HX8HSE7AWoDKywUZwiZlMY5lTLATg5gFFYA9tbg9N-4,7531
@@ -75,12 +79,10 @@ intentkit/skills/casino/deck_shuffle.py,sha256=bJvo6BdHhfdgnDWuFE1FA0m3kCd131Q72
75
79
  intentkit/skills/casino/dice_roll.py,sha256=-exkBlN0V7ocFTCO4mmT7aUied9tavJIPlFal3WLbl4,3339
76
80
  intentkit/skills/casino/schema.json,sha256=7VtA2VZA7Y7pSA-W4wCkLy8xCCN21GX839Pd1Yzg8fo,2122
77
81
  intentkit/skills/casino/utils.py,sha256=b5fPwACH_tHgXD-V646weDDEvd4giRGPNfd9f7RRXc0,2593
78
- intentkit/skills/cdp/__init__.py,sha256=pHVFX2KIv44iKky3zUid88TmYwhhpqHM5YiGpPos4nw,5170
82
+ intentkit/skills/cdp/__init__.py,sha256=enpepAKCiR_eg4-rNvs0dY3t9bcPdlBfgOawM8pkSnM,2206
79
83
  intentkit/skills/cdp/base.py,sha256=BcleKSXm0oNcHYky4uUPCJ3roXxMeTJs2OUS-8MkfMI,581
80
84
  intentkit/skills/cdp/cdp.png,sha256=dxPF6jPbKVfxJNMvbGTmBhXM-rSDvweF06txoX1cIM4,4425
81
- intentkit/skills/cdp/get_balance.py,sha256=-mRFJjlc2gQ4LZRMqD6HZqyR_y_rsMl1HlVONoE0kIw,4473
82
- intentkit/skills/cdp/schema.json,sha256=42RIctR_VUwrsIKelEdCreTmVgfUTF9pu3d7gVTe0DQ,12191
83
- intentkit/skills/cdp/swap.py,sha256=QO476onHskkv5xYoLlV56iU_NDg4q9KVntmknK5EL5Y,4983
85
+ intentkit/skills/cdp/schema.json,sha256=VlBwt2nVsLChPqk0FGd0GIORGf9JBvyExAHO40fMStg,3882
84
86
  intentkit/skills/chainlist/README.md,sha256=FEVQObs2W_oL2kyV-vZpHNwZCCgqm5Kt0sv0GD_Xo1M,958
85
87
  intentkit/skills/chainlist/__init__.py,sha256=2aRC-jXW3WYiR_-RM-_Ls1lby_54ZemZ6qtggntGa-U,1502
86
88
  intentkit/skills/chainlist/base.py,sha256=rRhrXcdg06qAYE0uIiL9NctpODuTIu51Eyxp4UVtflU,599
@@ -207,6 +209,14 @@ intentkit/skills/enso/abi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
207
209
  intentkit/skills/enso/abi/approval.py,sha256=IsyQLFxzAttocrtCB2PhbgprA7Vqujzpxvg0hJbeJ00,9867
208
210
  intentkit/skills/enso/abi/erc20.py,sha256=IScqZhHpMt_eFfYtMXw0-w5jptkAK0xsqqUDjbWdb2s,439
209
211
  intentkit/skills/enso/abi/route.py,sha256=ng9U2RSyS5R3d-b0m5ELa4rFpaUDO9HcgSoX9P_wWZo,4746
212
+ intentkit/skills/erc20/__init__.py,sha256=S-dDGFvrFlr0m-TmlutG8FxFujBQdv-qHSvmfftLu14,1322
213
+ intentkit/skills/erc20/base.py,sha256=6F5XHhujzRts_KcK35MiZA3HIAnrJnX3OFBkE3p8PkE,234
214
+ intentkit/skills/erc20/erc20.svg,sha256=llKPc2BHM2XKl5n1csa_96Bcbij-Qvb4BIArBGd-v30,324
215
+ intentkit/skills/erc20/schema.json,sha256=RK7m6tbRHuj4rbaiXRk9l0-gln9d7mTyhhDveaj2hnM,1885
216
+ intentkit/skills/erc721/__init__.py,sha256=UMRZWjjUGl_We-_UHimxqIdaf--Xpf-D7DAq0n1J9iw,1375
217
+ intentkit/skills/erc721/base.py,sha256=xGYCrSjqFezZCHHVj042ilfNYmGlR5BPXUKon7MQz44,238
218
+ intentkit/skills/erc721/erc721.svg,sha256=sKQxaV5Lb2ug0KJoZ4f_UimV2_ozYXa5hLEdkyBQsyM,338
219
+ intentkit/skills/erc721/schema.json,sha256=IU09xQ_rz3K4pGSP3RILj7PnajkhvSdliz2skBrKNlI,2328
210
220
  intentkit/skills/firecrawl/README.md,sha256=OP5rCC5aNx9A4YjgotZB-JFdBR_0qHiWmYLuA52a8Tw,7366
211
221
  intentkit/skills/firecrawl/__init__.py,sha256=QQ0I5vlUgsLRFqHO17vbq-3ERKL3nzoo2B4MFGH0Igg,3160
212
222
  intentkit/skills/firecrawl/base.py,sha256=8D66w4kRM807DRAO0kW9ph1GoGdR4dBXoU0p96I1QxE,1250
@@ -243,13 +253,13 @@ intentkit/skills/http/post.py,sha256=Rh3Zclvri_s1gSpCFzjXOoQQns2Clp4JWEcDb4E_FFc
243
253
  intentkit/skills/http/put.py,sha256=PKe7XuQcomsBrh8XgpkltQpOH-KGO1hJeIo0pKGaVpw,4161
244
254
  intentkit/skills/http/schema.json,sha256=zryLRzGm4_BpBZmzlmNlyHmWrPFu3bdv0yx0sqrCwa4,2074
245
255
  intentkit/skills/lifi/README.md,sha256=7Cjn6-VDzXIeNNlt8aXrwErEOk22ofPzk4hCubyT3vQ,8355
246
- intentkit/skills/lifi/__init__.py,sha256=m7fim2BabigaWsv1VNr0TtVlvkNbHwvFvohPZTQHw_8,4944
256
+ intentkit/skills/lifi/__init__.py,sha256=U2zOLqnMNS9q-5lDhVOOU2_mch0JowLor5ktneaTa0k,4985
247
257
  intentkit/skills/lifi/base.py,sha256=8MrF3vJmh0ZmVHoGZ51K73u0o9AljVV1bch6ji9rS5E,584
248
258
  intentkit/skills/lifi/lifi.png,sha256=CtFw-pbaD51BqduIOu5zNeGGBigw0e_OQLsZJe3XnsE,7311
249
259
  intentkit/skills/lifi/schema.json,sha256=Hzy4s8LOoI-JOMyo-JAVWqylFFbS6SRAaL7hOmA2_4k,2579
250
- intentkit/skills/lifi/token_execute.py,sha256=lnoRfo17vSXF6-0bfzLliGt_xfkeuCgknCMafjC1Fog,17179
251
- intentkit/skills/lifi/token_quote.py,sha256=p6QrzbxHmKtSMxat_9x3BYu2YP3US1I24HyXjeVaLQs,6874
252
- intentkit/skills/lifi/utils.py,sha256=bGefOONC_FtdQ8EGLGwfyBOE0l0TGkFzoWZ_hBgom04,19084
260
+ intentkit/skills/lifi/token_execute.py,sha256=cqaMjKebatW6VjTsegald97LIj88MMIhxg44rTfToWM,17654
261
+ intentkit/skills/lifi/token_quote.py,sha256=OyuRhNrjU0QbDfzyrmU6mEBtBed0xfwldv1R1AoeQvA,6892
262
+ intentkit/skills/lifi/utils.py,sha256=gYd7quenIyqwPl7FOvgGnehmtz4dcf_IiHPWGORPAMM,21057
253
263
  intentkit/skills/moralis/README.md,sha256=zrXuTBBruB4XmQln3ELFagsO1eDnaZnCKqvEdvZPl94,13253
254
264
  intentkit/skills/moralis/__init__.py,sha256=n72KfGiehQ1HSQiOrMcNIUwnaFpwg2TwKeN9zxCkaaE,3301
255
265
  intentkit/skills/moralis/api.py,sha256=48MGdHYF29Q77OQOGdAVWFogyuZQ3SbmfrJW6mUxoT0,7935
@@ -262,6 +272,10 @@ intentkit/skills/moralis/moralis.png,sha256=fUm771g9SmL3SO2m0yeEAzrnT0C_scj_r9ro
262
272
  intentkit/skills/moralis/schema.json,sha256=dI6zMd3HHtNBhrxm9iITDwFjKgpdjefyU8HanMOmVUA,4672
263
273
  intentkit/skills/moralis/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
264
274
  intentkit/skills/moralis/tests/test_wallet.py,sha256=MI4WwFNBoILDEXlK22glntiySgR9BWkpHUdIfKUu2-A,18610
275
+ intentkit/skills/morpho/__init__.py,sha256=7J-ZOhrTERfE_WeIxAH2i5hqKoptzTDP-MU9KD3OUtM,1329
276
+ intentkit/skills/morpho/base.py,sha256=FYbgul_35OX-oHwTqA8Jb99V9azM1AVcsUqGScOvQAg,238
277
+ intentkit/skills/morpho/morpho.svg,sha256=v3snRB2CkMbaw36YbdmNRuptu5I07O-6WUw__Htciv8,602
278
+ intentkit/skills/morpho/schema.json,sha256=TQjsPt3y0ftMDYzL57h4zowruxXj281JopQN6xHibZE,1851
265
279
  intentkit/skills/nation/__init__.py,sha256=QgNHWRfe-7ZCCgCzUzEzOqR2QGPOVQThjRFEhLjLGqQ,1602
266
280
  intentkit/skills/nation/base.py,sha256=PXZFuhrgmWksfSE7SYZWOKXTw3dcXd7Tk_7keAUrp5k,951
267
281
  intentkit/skills/nation/nation.png,sha256=yWsOQiUxaR6T274Z_xW4nI1vFA0SeC4Zy_PslT5GvPQ,130648
@@ -291,6 +305,10 @@ intentkit/skills/portfolio/wallet_profitability.py,sha256=3XR1mRT6U9IHlQLzwVdx1R
291
305
  intentkit/skills/portfolio/wallet_profitability_summary.py,sha256=kGWZ2iVVSmJA8mM40kDcjxTaLqq8Ep9b3ONPUvap_CY,2972
292
306
  intentkit/skills/portfolio/wallet_stats.py,sha256=-HjRuJZbFcqyhww0zIItrknG53UC9FNUwQX9vlE0qMY,2431
293
307
  intentkit/skills/portfolio/wallet_swaps.py,sha256=LWeHmuJLVaUHaaE39uynio2htjXwAv1aZIpTFDPwqqU,4947
308
+ intentkit/skills/pyth/__init__.py,sha256=DqCgH2ErAKzqXMib79EbfvmDb3ISopSHeFbTZE74bt8,1319
309
+ intentkit/skills/pyth/base.py,sha256=IWQP6yiNWm-tzTEVj9BXv-gCsiHf7MQRFH76YhD5OyA,230
310
+ intentkit/skills/pyth/pyth.svg,sha256=cH_UjhbUHyPDQHW0Xz7SqPaKygIi1eMETvSEu6wFou4,387
311
+ intentkit/skills/pyth/schema.json,sha256=ek6f43QtLqrMpiEg1Bo98lsq7-i_8jvM8hIJtYBQuXU,1871
294
312
  intentkit/skills/slack/__init__.py,sha256=P3oPb7SnMq5wPFVMh_kQv_HUXZzdznvMvp4syzKTGiA,2681
295
313
  intentkit/skills/slack/base.py,sha256=GMAnV-v0z7J8W7yVfBlsAeuHQbMuPC5YT0xGrCpxD38,2035
296
314
  intentkit/skills/slack/get_channel.py,sha256=gCBoeFk5nQiLcflubOhWIwh3GDr-EScxNRAxLh4DIxk,4218
@@ -309,6 +327,10 @@ intentkit/skills/supabase/schema.json,sha256=cqjo20flg6Xlv6b-2nrsJAbdCMBCJfmlfz8
309
327
  intentkit/skills/supabase/supabase.svg,sha256=65_80QCtJiKKV4EAuny_xbOD5JlTONEiq9xqO00hDtM,1107
310
328
  intentkit/skills/supabase/update_data.py,sha256=IOB78dSbP3yrsNuE2DH5z-UztADXpu890myq42c4hQU,3872
311
329
  intentkit/skills/supabase/upsert_data.py,sha256=tZOch4jOfXwrk6V-1D6UIWXRRgpgfO9dIXWZLnEJvyw,2387
330
+ intentkit/skills/superfluid/__init__.py,sha256=zTaGiUAs6jSCz7NjCdKTWHy1kI0nqja5dUuNzKw0fCo,1433
331
+ intentkit/skills/superfluid/base.py,sha256=CD075eBd9OWliYex4P1BscGWCJqnurWpu63cUcoMEC4,254
332
+ intentkit/skills/superfluid/schema.json,sha256=_RPx7vaSSqwNo6zKxkRqRJPvb5bx8stItcS4RWCyR7c,2376
333
+ intentkit/skills/superfluid/superfluid.svg,sha256=lIre1sDtkv0opwekdVb7gqqY3Xp8P73nnzbPhjZXxnY,422
312
334
  intentkit/skills/system/__init__.py,sha256=bqNYJCjLx9p23E21ELLP-T0B_NP0ltzT0TMqsBI-9Bg,3668
313
335
  intentkit/skills/system/add_autonomous_task.py,sha256=YnkxBaNLPUEPt7rWWWKFVXugdb_wCcxCpSr1cuCSPio,3164
314
336
  intentkit/skills/system/base.py,sha256=Sm4lSNgbxwGK5YimnBfwi3Hc8E1EwSMZIXsCJbIPiLM,700
@@ -404,6 +426,14 @@ intentkit/skills/web_scraper/schema.json,sha256=gSXihGJh8uG7b2Xbj8jZUYKP-_uMckB2
404
426
  intentkit/skills/web_scraper/scrape_and_index.py,sha256=Xi1BmUd-LgmJXnQOgSz82baq76vEKn4aa1X_JSlUXHI,9599
405
427
  intentkit/skills/web_scraper/utils.py,sha256=feGBTMWqpkoY7RFy2xDHVs5y8c2h8-XZ111jRo6cC3k,23349
406
428
  intentkit/skills/web_scraper/website_indexer.py,sha256=rTqCx-XzJtMlZnyGImPGWRdLpS13_exXc3lQu9EDjQM,17925
429
+ intentkit/skills/weth/__init__.py,sha256=Bz8iPjOtTBjk8oGZJtQHwZESz0XRAMKST_gFnwz7fFM,1264
430
+ intentkit/skills/weth/base.py,sha256=gRzTPrMX2E7N3EqAh11moyt-JEsrvTpEhUeAp5LLJiY,230
431
+ intentkit/skills/weth/schema.json,sha256=Yu5q8BsAn92Ziipi8xIkXDJtykpbSmX0sgPmBvfT-dg,1387
432
+ intentkit/skills/weth/weth.svg,sha256=WoHgvjDXJ2YR5o4PCv23Hdesi_IP155OekCNVZSJ-YE,382
433
+ intentkit/skills/wow/__init__.py,sha256=RtK5EPF3S9MQWa5-TWIUgBLWhaK-Pq_RYrJrpkvS9Do,1347
434
+ intentkit/skills/wow/base.py,sha256=nFt8sJtQQsu2_ZlRasXhyG148fSJYRL-20kEt380PaE,226
435
+ intentkit/skills/wow/schema.json,sha256=xOX9UYckD2IeNYKIGMzTEpHRSOD3IHEoZYZGIhLQTU4,2296
436
+ intentkit/skills/wow/wow.svg,sha256=PO0-m6TZjJCql9r1oWohlRV5PyqGc5kIDUEnpP2-5SU,427
407
437
  intentkit/skills/xmtp/README.md,sha256=7y3ny77l5WUI758Q3xip1akFEgBdbibkwZjeJDu5MwE,2963
408
438
  intentkit/skills/xmtp/__init__.py,sha256=inpuVqA9i98g8VIqqfC28PbfveozSukbEHOLbOMYv14,2538
409
439
  intentkit/skills/xmtp/base.py,sha256=iZHRzl4KJ1XFRKR_QnR7hYojSyEIB89S8MGoBVarLZY,2495
@@ -420,7 +450,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
420
450
  intentkit/utils/s3.py,sha256=A8Nsx5QJyLsxhj9g7oHNy2-m24tjQUhC9URm8Qb1jFw,10057
421
451
  intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
422
452
  intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
423
- intentkit-0.7.5.dev15.dist-info/METADATA,sha256=Th8klLCi6ZGW5ysp9u9Estpo60d6YT8HBBMmQA6liy0,6360
424
- intentkit-0.7.5.dev15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
425
- intentkit-0.7.5.dev15.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
426
- intentkit-0.7.5.dev15.dist-info/RECORD,,
453
+ intentkit-0.7.5.dev17.dist-info/METADATA,sha256=hm_zrcP_dUGiGA9ezniXpGahyR9Io4Aj4YHW_9Mtnrs,6360
454
+ intentkit-0.7.5.dev17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
455
+ intentkit-0.7.5.dev17.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
456
+ intentkit-0.7.5.dev17.dist-info/RECORD,,
@@ -1,110 +0,0 @@
1
- from typing import Optional, Type
2
-
3
- from pydantic import BaseModel, Field
4
-
5
- from intentkit.abstracts.skill import SkillStoreABC
6
- from intentkit.clients import get_cdp_client
7
- from intentkit.skills.cdp.base import CDPBaseTool
8
-
9
-
10
- class GetBalanceInput(BaseModel):
11
- """Input for GetBalance tool."""
12
-
13
- asset_id: Optional[str] = Field(
14
- default=None,
15
- description="The asset ID to get the balance for (e.g., 'eth', 'usdc', or a valid contract address). If not provided, returns all token balances.",
16
- )
17
-
18
-
19
- class GetBalance(CDPBaseTool):
20
- """Tool for getting balance from CDP wallet.
21
-
22
- This tool uses the CDP API to get balance for all addresses in a wallet for a given asset.
23
-
24
- Attributes:
25
- name: The name of the tool.
26
- description: A description of what the tool does.
27
- args_schema: The schema for the tool's input arguments.
28
- """
29
-
30
- agent_id: str
31
- skill_store: SkillStoreABC
32
-
33
- name: str = "cdp_get_balance"
34
- description: str = (
35
- "This tool will get the balance of all the addresses in the wallet. If asset_id is provided, it returns the balance for that specific asset. "
36
- "If no asset_id is provided, it returns all token balances. "
37
- "Always use 'eth' for the native asset ETH and 'usdc' for USDC. "
38
- "Other valid asset IDs are: weth,dai,reth,brett,w,cbeth,axl,iotx,prime,aero,rsr,mog,tbtc,npc,yfi"
39
- )
40
- args_schema: Type[BaseModel] = GetBalanceInput
41
-
42
- async def _arun(self, asset_id: Optional[str] = None) -> str:
43
- """Async implementation of the tool to get balance.
44
-
45
- Args:
46
- asset_id (Optional[str]): The asset ID to get the balance for. If None, returns all token balances.
47
-
48
- Returns:
49
- str: A message containing the balance information or error message.
50
- """
51
- # Get network information from CDP client
52
- cdp_client = await get_cdp_client(self.agent_id, self.skill_store)
53
- provider = await cdp_client.get_wallet_provider()
54
- provider_config = await cdp_client.get_provider_config()
55
- network_id = provider_config.network_id
56
-
57
- # Map network_id to the format expected by the API
58
- network_mapping = {
59
- "base-mainnet": "base",
60
- "ethereum-mainnet": "ethereum",
61
- }
62
- api_network = network_mapping.get(network_id, network_id)
63
-
64
- # For native ETH balance, use the account's balance directly
65
- if asset_id and asset_id.lower() == "eth":
66
- try:
67
- # Get native balance using Web3
68
- balance_wei = provider.get_balance()
69
- balance_eth = balance_wei / (10**18) # Convert from wei to ETH
70
- return f"ETH balance: {balance_eth} ETH"
71
- except Exception as e:
72
- return f"Error getting ETH balance: {e!s}"
73
-
74
- client = provider.get_client()
75
- async with client:
76
- account = await client.evm.get_account(provider.get_address())
77
- # If no asset_id provided, return all token balances
78
- if asset_id is None:
79
- # Get native ETH balance
80
- balance_wei = provider.get_balance()
81
- balance_eth = balance_wei / (10**18) # Convert from wei to ETH
82
-
83
- # Get all token balances
84
- token_balances = await account.list_token_balances(api_network)
85
-
86
- result = [f"ETH balance: {balance_eth} ETH"]
87
-
88
- for balance in token_balances.balances:
89
- result.append(
90
- f"{balance.token.symbol} balance: {balance.amount.decimals} {balance.token.name}"
91
- )
92
-
93
- return f"All balances for account {account.address}:\n" + "\n".join(
94
- result
95
- )
96
-
97
- # For other tokens, try the list_token_balances API
98
- token_balances = await account.list_token_balances(api_network)
99
-
100
- # Find the balance for the specific asset
101
- target_balance = None
102
- for balance in token_balances.balances:
103
- if balance.token.symbol.lower() == asset_id.lower():
104
- target_balance = balance
105
- break
106
-
107
- if target_balance:
108
- return f"Balance for {asset_id} in account {account.address}: {target_balance.amount.decimals} {target_balance.token.name}"
109
- else:
110
- return f"No balance found for asset {asset_id} in account {account.address}"
@@ -1,121 +0,0 @@
1
- from typing import Optional, Type, Union
2
-
3
- from pydantic import BaseModel, Field
4
-
5
- from intentkit.abstracts.skill import SkillStoreABC
6
- from intentkit.clients import get_cdp_client
7
- from intentkit.skills.cdp.base import CDPBaseTool
8
-
9
-
10
- class SwapInput(BaseModel):
11
- """Input for Swap tool."""
12
-
13
- from_token: str = Field(
14
- description="The contract address of the token to swap from (e.g., '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' for USDC on Base)"
15
- )
16
- to_token: str = Field(
17
- description="The contract address of the token to swap to (e.g., '0x4200000000000000000000000000000000000006' for WETH on Base)"
18
- )
19
- from_amount: Union[str, int] = Field(
20
- description="The amount to swap from in smallest unit (e.g., 1000000 for 1 USDC with 6 decimals)"
21
- )
22
- slippage_bps: Optional[int] = Field(
23
- default=100,
24
- description="Maximum slippage in basis points (100 = 1%). Defaults to 100 (1%)",
25
- )
26
-
27
-
28
- class Swap(CDPBaseTool):
29
- """Tool for swapping tokens using CDP wallet.
30
-
31
- This tool uses the CDP API to execute token swaps on supported networks.
32
- It wraps the swap functionality from the EVM account.
33
-
34
- Attributes:
35
- name: The name of the tool.
36
- description: A description of what the tool does.
37
- args_schema: The schema for the tool's input arguments.
38
- """
39
-
40
- agent_id: str
41
- skill_store: SkillStoreABC
42
-
43
- name: str = "cdp_swap"
44
- description: str = (
45
- "This tool will swap tokens using the CDP wallet. "
46
- "It supports swapping between any ERC-20 tokens on supported networks (Base and Ethereum). "
47
- "You need to provide the contract addresses of both tokens and the amount to swap. "
48
- "The amount should be in the smallest unit of the token (e.g., wei for ETH, or atomic units for ERC-20 tokens). "
49
- "Common token addresses on Base: USDC=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, WETH=0x4200000000000000000000000000000000000006. "
50
- "The tool will automatically handle gas estimation and transaction submission."
51
- )
52
- args_schema: Type[BaseModel] = SwapInput
53
-
54
- async def _arun(
55
- self,
56
- from_token: str,
57
- to_token: str,
58
- from_amount: Union[str, int],
59
- slippage_bps: Optional[int] = 100,
60
- ) -> str:
61
- """Async implementation of the tool to swap tokens.
62
-
63
- Args:
64
- from_token (str): The contract address of the token to swap from.
65
- to_token (str): The contract address of the token to swap to.
66
- from_amount (Union[str, int]): The amount to swap from in smallest unit.
67
- slippage_bps (Optional[int]): Maximum slippage in basis points. Defaults to 100 (1%).
68
-
69
- Returns:
70
- str: A message containing the swap result or error message.
71
- """
72
- try:
73
- # Get CDP client and network information
74
- cdp_client = await get_cdp_client(self.agent_id, self.skill_store)
75
- provider = await cdp_client.get_wallet_provider()
76
- provider_config = await cdp_client.get_provider_config()
77
- network_id = provider_config.network_id
78
-
79
- # Map network_id to the format expected by the swap API
80
- network_mapping = {
81
- "base-mainnet": "base",
82
- "ethereum-mainnet": "ethereum",
83
- }
84
- api_network = network_mapping.get(network_id, network_id)
85
-
86
- # Validate network is supported
87
- supported_networks = ["base", "ethereum"]
88
- if api_network not in supported_networks:
89
- return f"Error: Network {api_network} is not supported for swaps. Supported networks: {', '.join(supported_networks)}"
90
-
91
- # Get the EVM account
92
- client = provider.get_client()
93
- async with client:
94
- account = await client.evm.get_account(provider.get_address())
95
-
96
- # Import AccountSwapOptions here to avoid circular imports
97
- from cdp.actions.evm.swap.types import AccountSwapOptions
98
-
99
- # Create swap options
100
- swap_options = AccountSwapOptions(
101
- network=api_network,
102
- from_token=from_token,
103
- to_token=to_token,
104
- from_amount=str(from_amount),
105
- slippage_bps=slippage_bps,
106
- )
107
-
108
- # Execute the swap
109
- result = await account.swap(swap_options)
110
-
111
- return (
112
- f"Swap executed successfully!\n"
113
- f"Transaction hash: {result.transaction_hash}\n"
114
- f"Swapped from {from_token} to {to_token}\n"
115
- f"Amount: {from_amount} (smallest units)\n"
116
- f"Network: {api_network}\n"
117
- f"Slippage tolerance: {slippage_bps} basis points ({slippage_bps / 100 if slippage_bps else 0}%)"
118
- )
119
-
120
- except Exception as e:
121
- return f"Error executing swap: {e!s}"