intentkit 0.8.12.dev2__py3-none-any.whl → 0.8.12.dev3__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.
- intentkit/__init__.py +1 -1
- intentkit/abstracts/skill.py +2 -59
- intentkit/clients/twitter.py +35 -28
- intentkit/core/agent.py +2 -279
- intentkit/core/engine.py +2 -3
- intentkit/models/agent.py +109 -89
- intentkit/models/agent_schema.json +4 -2
- intentkit/skills/acolyt/__init__.py +2 -9
- intentkit/skills/acolyt/base.py +2 -5
- intentkit/skills/aixbt/__init__.py +2 -13
- intentkit/skills/aixbt/base.py +0 -4
- intentkit/skills/aixbt/projects.py +1 -2
- intentkit/skills/allora/__init__.py +2 -9
- intentkit/skills/allora/base.py +2 -5
- intentkit/skills/base.py +101 -27
- intentkit/skills/basename/__init__.py +1 -3
- intentkit/skills/carv/__init__.py +116 -121
- intentkit/skills/carv/base.py +184 -185
- intentkit/skills/casino/__init__.py +4 -15
- intentkit/skills/casino/base.py +0 -4
- intentkit/skills/casino/deck_draw.py +1 -2
- intentkit/skills/casino/deck_shuffle.py +1 -2
- intentkit/skills/casino/dice_roll.py +1 -2
- intentkit/skills/cdp/__init__.py +0 -4
- intentkit/skills/cdp/base.py +0 -4
- intentkit/skills/chainlist/__init__.py +2 -7
- intentkit/skills/chainlist/base.py +0 -4
- intentkit/skills/common/__init__.py +2 -9
- intentkit/skills/common/base.py +0 -4
- intentkit/skills/cookiefun/__init__.py +6 -9
- intentkit/skills/cookiefun/base.py +0 -4
- intentkit/skills/cryptocompare/__init__.py +7 -24
- intentkit/skills/cryptocompare/base.py +0 -5
- intentkit/skills/cryptopanic/__init__.py +3 -6
- intentkit/skills/cryptopanic/base.py +53 -55
- intentkit/skills/cryptopanic/fetch_crypto_news.py +0 -2
- intentkit/skills/cryptopanic/fetch_crypto_sentiment.py +1 -3
- intentkit/skills/dapplooker/__init__.py +2 -9
- intentkit/skills/dapplooker/base.py +2 -5
- intentkit/skills/defillama/__init__.py +24 -74
- intentkit/skills/defillama/base.py +0 -4
- intentkit/skills/defillama/coins/fetch_batch_historical_prices.py +2 -2
- intentkit/skills/defillama/coins/fetch_block.py +2 -2
- intentkit/skills/defillama/coins/fetch_current_prices.py +2 -2
- intentkit/skills/defillama/coins/fetch_first_price.py +2 -2
- intentkit/skills/defillama/coins/fetch_historical_prices.py +2 -2
- intentkit/skills/defillama/coins/fetch_price_chart.py +2 -2
- intentkit/skills/defillama/coins/fetch_price_percentage.py +2 -2
- intentkit/skills/defillama/fees/fetch_fees_overview.py +2 -2
- intentkit/skills/defillama/stablecoins/fetch_stablecoin_chains.py +2 -2
- intentkit/skills/defillama/stablecoins/fetch_stablecoin_charts.py +2 -2
- intentkit/skills/defillama/stablecoins/fetch_stablecoin_prices.py +2 -2
- intentkit/skills/defillama/stablecoins/fetch_stablecoins.py +2 -2
- intentkit/skills/defillama/tvl/fetch_chain_historical_tvl.py +2 -2
- intentkit/skills/defillama/tvl/fetch_chains.py +2 -2
- intentkit/skills/defillama/tvl/fetch_historical_tvl.py +2 -2
- intentkit/skills/defillama/tvl/fetch_protocol.py +2 -2
- intentkit/skills/defillama/tvl/fetch_protocol_current_tvl.py +2 -2
- intentkit/skills/defillama/tvl/fetch_protocols.py +2 -2
- intentkit/skills/defillama/volumes/fetch_dex_overview.py +2 -2
- intentkit/skills/defillama/volumes/fetch_dex_summary.py +2 -2
- intentkit/skills/defillama/volumes/fetch_options_overview.py +2 -2
- intentkit/skills/defillama/yields/fetch_pool_chart.py +2 -2
- intentkit/skills/defillama/yields/fetch_pools.py +2 -2
- intentkit/skills/dexscreener/__init__.py +97 -102
- intentkit/skills/dexscreener/base.py +125 -130
- intentkit/skills/dexscreener/get_pair_info.py +2 -3
- intentkit/skills/dexscreener/get_token_pairs.py +2 -3
- intentkit/skills/dexscreener/get_tokens_info.py +2 -3
- intentkit/skills/dexscreener/search_token.py +2 -4
- intentkit/skills/dune_analytics/__init__.py +4 -6
- intentkit/skills/dune_analytics/base.py +50 -52
- intentkit/skills/dune_analytics/fetch_kol_buys.py +0 -2
- intentkit/skills/dune_analytics/fetch_nation_metrics.py +0 -2
- intentkit/skills/elfa/__init__.py +5 -18
- intentkit/skills/elfa/base.py +8 -10
- intentkit/skills/enso/__init__.py +9 -29
- intentkit/skills/enso/base.py +3 -6
- intentkit/skills/enso/route.py +1 -3
- intentkit/skills/erc20/__init__.py +1 -5
- intentkit/skills/erc721/__init__.py +1 -3
- intentkit/skills/firecrawl/__init__.py +5 -18
- intentkit/skills/firecrawl/base.py +2 -5
- intentkit/skills/firecrawl/crawl.py +10 -9
- intentkit/skills/firecrawl/query.py +3 -1
- intentkit/skills/firecrawl/scrape.py +8 -10
- intentkit/skills/firecrawl/utils.py +25 -26
- intentkit/skills/github/__init__.py +2 -7
- intentkit/skills/github/base.py +0 -4
- intentkit/skills/heurist/__init__.py +8 -27
- intentkit/skills/heurist/base.py +2 -5
- intentkit/skills/heurist/image_generation_animagine_xl.py +5 -5
- intentkit/skills/heurist/image_generation_arthemy_comics.py +5 -5
- intentkit/skills/heurist/image_generation_arthemy_real.py +5 -5
- intentkit/skills/heurist/image_generation_braindance.py +5 -5
- intentkit/skills/heurist/image_generation_cyber_realistic_xl.py +5 -5
- intentkit/skills/heurist/image_generation_flux_1_dev.py +5 -5
- intentkit/skills/heurist/image_generation_sdxl.py +5 -5
- intentkit/skills/http/__init__.py +4 -15
- intentkit/skills/http/base.py +0 -4
- intentkit/skills/lifi/__init__.py +1 -6
- intentkit/skills/lifi/base.py +0 -4
- intentkit/skills/lifi/token_execute.py +1 -4
- intentkit/skills/lifi/token_quote.py +1 -3
- intentkit/skills/moralis/__init__.py +3 -7
- intentkit/skills/moralis/base.py +2 -5
- intentkit/skills/morpho/__init__.py +1 -3
- intentkit/skills/nation/__init__.py +2 -7
- intentkit/skills/nation/base.py +4 -7
- intentkit/skills/openai/__init__.py +5 -18
- intentkit/skills/openai/base.py +8 -10
- intentkit/skills/openai/dalle_image_generation.py +2 -5
- intentkit/skills/openai/gpt_image_generation.py +2 -5
- intentkit/skills/openai/gpt_image_to_image.py +2 -5
- intentkit/skills/openai/image_to_text.py +2 -5
- intentkit/skills/portfolio/__init__.py +11 -35
- intentkit/skills/portfolio/base.py +2 -5
- intentkit/skills/pyth/__init__.py +1 -5
- intentkit/skills/slack/__init__.py +5 -17
- intentkit/skills/slack/base.py +0 -4
- intentkit/skills/supabase/__init__.py +7 -23
- intentkit/skills/supabase/base.py +0 -4
- intentkit/skills/superfluid/__init__.py +1 -3
- intentkit/skills/system/__init__.py +7 -24
- intentkit/skills/system/add_autonomous_task.py +2 -2
- intentkit/skills/system/delete_autonomous_task.py +2 -2
- intentkit/skills/system/edit_autonomous_task.py +2 -4
- intentkit/skills/system/list_autonomous_tasks.py +2 -2
- intentkit/skills/system/read_agent_api_key.py +6 -4
- intentkit/skills/system/regenerate_agent_api_key.py +6 -4
- intentkit/skills/tavily/__init__.py +3 -12
- intentkit/skills/tavily/base.py +2 -5
- intentkit/skills/tavily/tavily_extract.py +1 -2
- intentkit/skills/tavily/tavily_search.py +3 -3
- intentkit/skills/token/__init__.py +5 -10
- intentkit/skills/token/base.py +2 -6
- intentkit/skills/twitter/__init__.py +11 -35
- intentkit/skills/twitter/base.py +14 -16
- intentkit/skills/twitter/follow_user.py +0 -1
- intentkit/skills/twitter/get_mentions.py +0 -1
- intentkit/skills/twitter/get_timeline.py +0 -1
- intentkit/skills/twitter/get_user_by_username.py +0 -1
- intentkit/skills/twitter/get_user_tweets.py +0 -1
- intentkit/skills/twitter/like_tweet.py +0 -1
- intentkit/skills/twitter/post_tweet.py +2 -2
- intentkit/skills/twitter/reply_tweet.py +2 -2
- intentkit/skills/twitter/retweet.py +0 -1
- intentkit/skills/twitter/search_tweets.py +0 -1
- intentkit/skills/unrealspeech/__init__.py +2 -7
- intentkit/skills/unrealspeech/base.py +0 -4
- intentkit/skills/venice_audio/__init__.py +99 -106
- intentkit/skills/venice_audio/base.py +118 -121
- intentkit/skills/venice_audio/venice_audio.py +1 -5
- intentkit/skills/venice_image/__init__.py +147 -154
- intentkit/skills/venice_image/base.py +185 -192
- intentkit/skills/web_scraper/__init__.py +5 -18
- intentkit/skills/web_scraper/base.py +20 -4
- intentkit/skills/web_scraper/document_indexer.py +6 -4
- intentkit/skills/web_scraper/scrape_and_index.py +11 -8
- intentkit/skills/web_scraper/utils.py +31 -27
- intentkit/skills/web_scraper/website_indexer.py +7 -8
- intentkit/skills/weth/__init__.py +1 -5
- intentkit/skills/wow/__init__.py +1 -5
- intentkit/skills/xmtp/__init__.py +4 -15
- {intentkit-0.8.12.dev2.dist-info → intentkit-0.8.12.dev3.dist-info}/METADATA +1 -1
- {intentkit-0.8.12.dev2.dist-info → intentkit-0.8.12.dev3.dist-info}/RECORD +168 -168
- {intentkit-0.8.12.dev2.dist-info → intentkit-0.8.12.dev3.dist-info}/WHEEL +0 -0
- {intentkit-0.8.12.dev2.dist-info → intentkit-0.8.12.dev3.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import logging
|
|
4
4
|
from typing import TypedDict
|
|
5
5
|
|
|
6
|
-
from intentkit.abstracts.skill import SkillStoreABC
|
|
7
6
|
from intentkit.skills.base import SkillConfig, SkillState
|
|
8
7
|
from intentkit.skills.defillama.base import DefiLlamaBaseTool
|
|
9
8
|
from intentkit.skills.defillama.coins.fetch_batch_historical_prices import (
|
|
@@ -124,7 +123,6 @@ class Config(SkillConfig):
|
|
|
124
123
|
async def get_skills(
|
|
125
124
|
config: "Config",
|
|
126
125
|
is_private: bool,
|
|
127
|
-
store: SkillStoreABC,
|
|
128
126
|
**_,
|
|
129
127
|
) -> list[DefiLlamaBaseTool]:
|
|
130
128
|
"""Get all DeFi Llama skills."""
|
|
@@ -140,7 +138,7 @@ async def get_skills(
|
|
|
140
138
|
# Get each skill using the cached getter
|
|
141
139
|
result = []
|
|
142
140
|
for name in available_skills:
|
|
143
|
-
skill = get_defillama_skill(name
|
|
141
|
+
skill = get_defillama_skill(name)
|
|
144
142
|
if skill:
|
|
145
143
|
result.append(skill)
|
|
146
144
|
return result
|
|
@@ -148,13 +146,11 @@ async def get_skills(
|
|
|
148
146
|
|
|
149
147
|
def get_defillama_skill(
|
|
150
148
|
name: str,
|
|
151
|
-
store: SkillStoreABC,
|
|
152
149
|
) -> DefiLlamaBaseTool:
|
|
153
150
|
"""Get a DeFi Llama skill by name.
|
|
154
151
|
|
|
155
152
|
Args:
|
|
156
153
|
name: The name of the skill to get
|
|
157
|
-
store: The skill store for persisting data
|
|
158
154
|
|
|
159
155
|
Returns:
|
|
160
156
|
The requested DeFi Llama skill
|
|
@@ -167,145 +163,101 @@ def get_defillama_skill(
|
|
|
167
163
|
# TVL Skills
|
|
168
164
|
if name == "fetch_protocols":
|
|
169
165
|
if name not in _cache:
|
|
170
|
-
_cache[name] = DefiLlamaFetchProtocols(
|
|
171
|
-
skill_store=store,
|
|
172
|
-
)
|
|
166
|
+
_cache[name] = DefiLlamaFetchProtocols()
|
|
173
167
|
return _cache[name]
|
|
174
168
|
elif name == "fetch_protocol":
|
|
175
169
|
if name not in _cache:
|
|
176
|
-
_cache[name] = DefiLlamaFetchProtocol(
|
|
177
|
-
skill_store=store,
|
|
178
|
-
)
|
|
170
|
+
_cache[name] = DefiLlamaFetchProtocol()
|
|
179
171
|
return _cache[name]
|
|
180
172
|
elif name == "fetch_historical_tvl":
|
|
181
173
|
if name not in _cache:
|
|
182
|
-
_cache[name] = DefiLlamaFetchHistoricalTvl(
|
|
183
|
-
skill_store=store,
|
|
184
|
-
)
|
|
174
|
+
_cache[name] = DefiLlamaFetchHistoricalTvl()
|
|
185
175
|
return _cache[name]
|
|
186
176
|
elif name == "fetch_chain_historical_tvl":
|
|
187
177
|
if name not in _cache:
|
|
188
|
-
_cache[name] = DefiLlamaFetchChainHistoricalTvl(
|
|
189
|
-
skill_store=store,
|
|
190
|
-
)
|
|
178
|
+
_cache[name] = DefiLlamaFetchChainHistoricalTvl()
|
|
191
179
|
return _cache[name]
|
|
192
180
|
elif name == "fetch_protocol_current_tvl":
|
|
193
181
|
if name not in _cache:
|
|
194
|
-
_cache[name] = DefiLlamaFetchProtocolCurrentTvl(
|
|
195
|
-
skill_store=store,
|
|
196
|
-
)
|
|
182
|
+
_cache[name] = DefiLlamaFetchProtocolCurrentTvl()
|
|
197
183
|
return _cache[name]
|
|
198
184
|
elif name == "fetch_chains":
|
|
199
185
|
if name not in _cache:
|
|
200
|
-
_cache[name] = DefiLlamaFetchChains(
|
|
201
|
-
skill_store=store,
|
|
202
|
-
)
|
|
186
|
+
_cache[name] = DefiLlamaFetchChains()
|
|
203
187
|
return _cache[name]
|
|
204
188
|
|
|
205
189
|
# Coins Skills
|
|
206
190
|
elif name == "fetch_current_prices":
|
|
207
191
|
if name not in _cache:
|
|
208
|
-
_cache[name] = DefiLlamaFetchCurrentPrices(
|
|
209
|
-
skill_store=store,
|
|
210
|
-
)
|
|
192
|
+
_cache[name] = DefiLlamaFetchCurrentPrices()
|
|
211
193
|
return _cache[name]
|
|
212
194
|
elif name == "fetch_historical_prices":
|
|
213
195
|
if name not in _cache:
|
|
214
|
-
_cache[name] = DefiLlamaFetchHistoricalPrices(
|
|
215
|
-
skill_store=store,
|
|
216
|
-
)
|
|
196
|
+
_cache[name] = DefiLlamaFetchHistoricalPrices()
|
|
217
197
|
return _cache[name]
|
|
218
198
|
elif name == "fetch_batch_historical_prices":
|
|
219
199
|
if name not in _cache:
|
|
220
|
-
_cache[name] = DefiLlamaFetchBatchHistoricalPrices(
|
|
221
|
-
skill_store=store,
|
|
222
|
-
)
|
|
200
|
+
_cache[name] = DefiLlamaFetchBatchHistoricalPrices()
|
|
223
201
|
return _cache[name]
|
|
224
202
|
elif name == "fetch_price_chart":
|
|
225
203
|
if name not in _cache:
|
|
226
|
-
_cache[name] = DefiLlamaFetchPriceChart(
|
|
227
|
-
skill_store=store,
|
|
228
|
-
)
|
|
204
|
+
_cache[name] = DefiLlamaFetchPriceChart()
|
|
229
205
|
return _cache[name]
|
|
230
206
|
elif name == "fetch_price_percentage":
|
|
231
207
|
if name not in _cache:
|
|
232
|
-
_cache[name] = DefiLlamaFetchPricePercentage(
|
|
233
|
-
skill_store=store,
|
|
234
|
-
)
|
|
208
|
+
_cache[name] = DefiLlamaFetchPricePercentage()
|
|
235
209
|
return _cache[name]
|
|
236
210
|
elif name == "fetch_first_price":
|
|
237
211
|
if name not in _cache:
|
|
238
|
-
_cache[name] = DefiLlamaFetchFirstPrice(
|
|
239
|
-
skill_store=store,
|
|
240
|
-
)
|
|
212
|
+
_cache[name] = DefiLlamaFetchFirstPrice()
|
|
241
213
|
return _cache[name]
|
|
242
214
|
elif name == "fetch_block":
|
|
243
215
|
if name not in _cache:
|
|
244
|
-
_cache[name] = DefiLlamaFetchBlock(
|
|
245
|
-
skill_store=store,
|
|
246
|
-
)
|
|
216
|
+
_cache[name] = DefiLlamaFetchBlock()
|
|
247
217
|
return _cache[name]
|
|
248
218
|
|
|
249
219
|
# Stablecoins Skills
|
|
250
220
|
elif name == "fetch_stablecoins":
|
|
251
221
|
if name not in _cache:
|
|
252
|
-
_cache[name] = DefiLlamaFetchStablecoins(
|
|
253
|
-
skill_store=store,
|
|
254
|
-
)
|
|
222
|
+
_cache[name] = DefiLlamaFetchStablecoins()
|
|
255
223
|
return _cache[name]
|
|
256
224
|
elif name == "fetch_stablecoin_charts":
|
|
257
225
|
if name not in _cache:
|
|
258
|
-
_cache[name] = DefiLlamaFetchStablecoinCharts(
|
|
259
|
-
skill_store=store,
|
|
260
|
-
)
|
|
226
|
+
_cache[name] = DefiLlamaFetchStablecoinCharts()
|
|
261
227
|
return _cache[name]
|
|
262
228
|
elif name == "fetch_stablecoin_chains":
|
|
263
229
|
if name not in _cache:
|
|
264
|
-
_cache[name] = DefiLlamaFetchStablecoinChains(
|
|
265
|
-
skill_store=store,
|
|
266
|
-
)
|
|
230
|
+
_cache[name] = DefiLlamaFetchStablecoinChains()
|
|
267
231
|
return _cache[name]
|
|
268
232
|
elif name == "fetch_stablecoin_prices":
|
|
269
233
|
if name not in _cache:
|
|
270
|
-
_cache[name] = DefiLlamaFetchStablecoinPrices(
|
|
271
|
-
skill_store=store,
|
|
272
|
-
)
|
|
234
|
+
_cache[name] = DefiLlamaFetchStablecoinPrices()
|
|
273
235
|
return _cache[name]
|
|
274
236
|
|
|
275
237
|
# Yields Skills
|
|
276
238
|
elif name == "fetch_pools":
|
|
277
239
|
if name not in _cache:
|
|
278
|
-
_cache[name] = DefiLlamaFetchPools(
|
|
279
|
-
skill_store=store,
|
|
280
|
-
)
|
|
240
|
+
_cache[name] = DefiLlamaFetchPools()
|
|
281
241
|
return _cache[name]
|
|
282
242
|
elif name == "fetch_pool_chart":
|
|
283
243
|
if name not in _cache:
|
|
284
|
-
_cache[name] = DefiLlamaFetchPoolChart(
|
|
285
|
-
skill_store=store,
|
|
286
|
-
)
|
|
244
|
+
_cache[name] = DefiLlamaFetchPoolChart()
|
|
287
245
|
return _cache[name]
|
|
288
246
|
|
|
289
247
|
# Volumes Skills
|
|
290
248
|
elif name == "fetch_dex_overview": # Handles both base and chain-specific overviews
|
|
291
249
|
if name not in _cache:
|
|
292
|
-
_cache[name] = DefiLlamaFetchDexOverview(
|
|
293
|
-
skill_store=store,
|
|
294
|
-
)
|
|
250
|
+
_cache[name] = DefiLlamaFetchDexOverview()
|
|
295
251
|
return _cache[name]
|
|
296
252
|
elif name == "fetch_dex_summary":
|
|
297
253
|
if name not in _cache:
|
|
298
|
-
_cache[name] = DefiLlamaFetchDexSummary(
|
|
299
|
-
skill_store=store,
|
|
300
|
-
)
|
|
254
|
+
_cache[name] = DefiLlamaFetchDexSummary()
|
|
301
255
|
return _cache[name]
|
|
302
256
|
elif (
|
|
303
257
|
name == "fetch_options_overview"
|
|
304
258
|
): # Handles both base and chain-specific overviews
|
|
305
259
|
if name not in _cache:
|
|
306
|
-
_cache[name] = DefiLlamaFetchOptionsOverview(
|
|
307
|
-
skill_store=store,
|
|
308
|
-
)
|
|
260
|
+
_cache[name] = DefiLlamaFetchOptionsOverview()
|
|
309
261
|
return _cache[name]
|
|
310
262
|
|
|
311
263
|
# Fees Skills
|
|
@@ -313,9 +265,7 @@ def get_defillama_skill(
|
|
|
313
265
|
name == "fetch_fees_overview"
|
|
314
266
|
): # Handles both base and chain-specific overviews
|
|
315
267
|
if name not in _cache:
|
|
316
|
-
_cache[name] = DefiLlamaFetchFeesOverview(
|
|
317
|
-
skill_store=store,
|
|
318
|
-
)
|
|
268
|
+
_cache[name] = DefiLlamaFetchFeesOverview()
|
|
319
269
|
return _cache[name]
|
|
320
270
|
|
|
321
271
|
else:
|
|
@@ -6,7 +6,6 @@ from typing import Type
|
|
|
6
6
|
from pydantic import BaseModel, Field
|
|
7
7
|
|
|
8
8
|
from intentkit.abstracts.graph import AgentContext
|
|
9
|
-
from intentkit.abstracts.skill import SkillStoreABC
|
|
10
9
|
from intentkit.skills.base import IntentKitSkill
|
|
11
10
|
from intentkit.skills.defillama.config.chains import (
|
|
12
11
|
get_chain_from_alias,
|
|
@@ -28,9 +27,6 @@ class DefiLlamaBaseTool(IntentKitSkill):
|
|
|
28
27
|
name: str = Field(description="The name of the tool")
|
|
29
28
|
description: str = Field(description="A description of what the tool does")
|
|
30
29
|
args_schema: Type[BaseModel]
|
|
31
|
-
skill_store: SkillStoreABC = Field(
|
|
32
|
-
description="The skill store for persisting data"
|
|
33
|
-
)
|
|
34
30
|
base_url: str = Field(
|
|
35
31
|
default=DEFILLAMA_BASE_URL, description="Base URL for DeFi Llama API"
|
|
36
32
|
)
|
|
@@ -64,9 +64,9 @@ class DefiLlamaFetchBatchHistoricalPrices(DefiLlamaBaseTool):
|
|
|
64
64
|
|
|
65
65
|
Example:
|
|
66
66
|
prices_tool = DefiLlamaFetchBatchHistoricalPrices(
|
|
67
|
-
|
|
67
|
+
,
|
|
68
68
|
agent_id="agent_123",
|
|
69
|
-
|
|
69
|
+
agent=agent
|
|
70
70
|
)
|
|
71
71
|
result = await prices_tool._arun(
|
|
72
72
|
coins_timestamps={
|
|
@@ -46,9 +46,9 @@ class DefiLlamaFetchBlock(DefiLlamaBaseTool):
|
|
|
46
46
|
|
|
47
47
|
Example:
|
|
48
48
|
block_tool = DefiLlamaFetchBlock(
|
|
49
|
-
|
|
49
|
+
,
|
|
50
50
|
agent_id="agent_123",
|
|
51
|
-
|
|
51
|
+
agent=agent
|
|
52
52
|
)
|
|
53
53
|
result = await block_tool._arun(chain="ethereum")
|
|
54
54
|
"""
|
|
@@ -58,9 +58,9 @@ class DefiLlamaFetchCurrentPrices(DefiLlamaBaseTool):
|
|
|
58
58
|
|
|
59
59
|
Example:
|
|
60
60
|
prices_tool = DefiLlamaFetchCurrentPrices(
|
|
61
|
-
|
|
61
|
+
,
|
|
62
62
|
agent_id="agent_123",
|
|
63
|
-
|
|
63
|
+
agent=agent
|
|
64
64
|
)
|
|
65
65
|
result = await prices_tool._arun(
|
|
66
66
|
coins=["ethereum:0x...", "coingecko:bitcoin"]
|
|
@@ -53,9 +53,9 @@ class DefiLlamaFetchFirstPrice(DefiLlamaBaseTool):
|
|
|
53
53
|
|
|
54
54
|
Example:
|
|
55
55
|
first_price_tool = DefiLlamaFetchFirstPrice(
|
|
56
|
-
|
|
56
|
+
,
|
|
57
57
|
agent_id="agent_123",
|
|
58
|
-
|
|
58
|
+
agent=agent
|
|
59
59
|
)
|
|
60
60
|
result = await first_price_tool._arun(
|
|
61
61
|
coins=["ethereum:0x...", "coingecko:ethereum"]
|
|
@@ -61,9 +61,9 @@ class DefiLlamaFetchHistoricalPrices(DefiLlamaBaseTool):
|
|
|
61
61
|
|
|
62
62
|
Example:
|
|
63
63
|
prices_tool = DefiLlamaFetchHistoricalPrices(
|
|
64
|
-
|
|
64
|
+
,
|
|
65
65
|
agent_id="agent_123",
|
|
66
|
-
|
|
66
|
+
agent=agent
|
|
67
67
|
)
|
|
68
68
|
result = await prices_tool._arun(
|
|
69
69
|
timestamp=1640995200, # Jan 1, 2022
|
|
@@ -62,9 +62,9 @@ class DefiLlamaFetchPriceChart(DefiLlamaBaseTool):
|
|
|
62
62
|
|
|
63
63
|
Example:
|
|
64
64
|
chart_tool = DefiLlamaFetchPriceChart(
|
|
65
|
-
|
|
65
|
+
,
|
|
66
66
|
agent_id="agent_123",
|
|
67
|
-
|
|
67
|
+
agent=agent
|
|
68
68
|
)
|
|
69
69
|
result = await chart_tool._arun(
|
|
70
70
|
coins=["ethereum:0x...", "coingecko:ethereum"]
|
|
@@ -46,9 +46,9 @@ class DefiLlamaFetchPricePercentage(DefiLlamaBaseTool):
|
|
|
46
46
|
|
|
47
47
|
Example:
|
|
48
48
|
percentage_tool = DefiLlamaFetchPricePercentage(
|
|
49
|
-
|
|
49
|
+
,
|
|
50
50
|
agent_id="agent_123",
|
|
51
|
-
|
|
51
|
+
agent=agent
|
|
52
52
|
)
|
|
53
53
|
result = await percentage_tool._arun(
|
|
54
54
|
coins=["ethereum:0x...", "coingecko:ethereum"]
|
|
@@ -85,9 +85,9 @@ class DefiLlamaFetchFeesOverview(DefiLlamaBaseTool):
|
|
|
85
85
|
|
|
86
86
|
Example:
|
|
87
87
|
overview_tool = DefiLlamaFetchFeesOverview(
|
|
88
|
-
|
|
88
|
+
,
|
|
89
89
|
agent_id="agent_123",
|
|
90
|
-
|
|
90
|
+
agent=agent
|
|
91
91
|
)
|
|
92
92
|
result = await overview_tool._arun()
|
|
93
93
|
"""
|
|
@@ -61,9 +61,9 @@ class DefiLlamaFetchStablecoinChains(DefiLlamaBaseTool):
|
|
|
61
61
|
|
|
62
62
|
Example:
|
|
63
63
|
chains_tool = DefiLlamaFetchStablecoinChains(
|
|
64
|
-
|
|
64
|
+
,
|
|
65
65
|
agent_id="agent_123",
|
|
66
|
-
|
|
66
|
+
agent=agent
|
|
67
67
|
)
|
|
68
68
|
result = await chains_tool._arun()
|
|
69
69
|
"""
|
|
@@ -69,9 +69,9 @@ class DefiLlamaFetchStablecoinCharts(DefiLlamaBaseTool):
|
|
|
69
69
|
|
|
70
70
|
Example:
|
|
71
71
|
charts_tool = DefiLlamaFetchStablecoinCharts(
|
|
72
|
-
|
|
72
|
+
,
|
|
73
73
|
agent_id="agent_123",
|
|
74
|
-
|
|
74
|
+
agent=agent
|
|
75
75
|
)
|
|
76
76
|
# Get all chains data
|
|
77
77
|
result = await charts_tool._arun(stablecoin_id="1")
|
|
@@ -42,9 +42,9 @@ class DefiLlamaFetchStablecoinPrices(DefiLlamaBaseTool):
|
|
|
42
42
|
|
|
43
43
|
Example:
|
|
44
44
|
prices_tool = DefiLlamaFetchStablecoinPrices(
|
|
45
|
-
|
|
45
|
+
,
|
|
46
46
|
agent_id="agent_123",
|
|
47
|
-
|
|
47
|
+
agent=agent
|
|
48
48
|
)
|
|
49
49
|
result = await prices_tool._arun()
|
|
50
50
|
"""
|
|
@@ -87,9 +87,9 @@ class DefiLlamaFetchStablecoins(DefiLlamaBaseTool):
|
|
|
87
87
|
|
|
88
88
|
Example:
|
|
89
89
|
stablecoins_tool = DefiLlamaFetchStablecoins(
|
|
90
|
-
|
|
90
|
+
,
|
|
91
91
|
agent_id="agent_123",
|
|
92
|
-
|
|
92
|
+
agent=agent
|
|
93
93
|
)
|
|
94
94
|
result = await stablecoins_tool._arun()
|
|
95
95
|
"""
|
|
@@ -48,9 +48,9 @@ class DefiLlamaFetchChainHistoricalTvl(DefiLlamaBaseTool):
|
|
|
48
48
|
|
|
49
49
|
Example:
|
|
50
50
|
tvl_tool = DefiLlamaFetchChainHistoricalTvl(
|
|
51
|
-
|
|
51
|
+
,
|
|
52
52
|
agent_id="agent_123",
|
|
53
|
-
|
|
53
|
+
agent=agent
|
|
54
54
|
)
|
|
55
55
|
result = await tvl_tool._arun(chain="ethereum")
|
|
56
56
|
"""
|
|
@@ -144,9 +144,9 @@ class DefiLlamaFetchProtocol(DefiLlamaBaseTool):
|
|
|
144
144
|
|
|
145
145
|
Example:
|
|
146
146
|
protocol_tool = DefiLlamaFetchProtocol(
|
|
147
|
-
|
|
147
|
+
,
|
|
148
148
|
agent_id="agent_123",
|
|
149
|
-
|
|
149
|
+
agent=agent
|
|
150
150
|
)
|
|
151
151
|
result = await protocol_tool._arun(protocol="aave")
|
|
152
152
|
"""
|
|
@@ -38,9 +38,9 @@ class DefiLlamaFetchProtocolCurrentTvl(DefiLlamaBaseTool):
|
|
|
38
38
|
|
|
39
39
|
Example:
|
|
40
40
|
tvl_tool = DefiLlamaFetchProtocolCurrentTvl(
|
|
41
|
-
|
|
41
|
+
,
|
|
42
42
|
agent_id="agent_123",
|
|
43
|
-
|
|
43
|
+
agent=agent
|
|
44
44
|
)
|
|
45
45
|
result = await tvl_tool._arun(protocol="aave")
|
|
46
46
|
"""
|
|
@@ -128,9 +128,9 @@ class DefiLlamaFetchProtocols(DefiLlamaBaseTool):
|
|
|
128
128
|
|
|
129
129
|
Example:
|
|
130
130
|
protocols_tool = DefiLlamaFetchProtocols(
|
|
131
|
-
|
|
131
|
+
,
|
|
132
132
|
agent_id="agent_123",
|
|
133
|
-
|
|
133
|
+
agent=agent
|
|
134
134
|
)
|
|
135
135
|
result = await protocols_tool._arun()
|
|
136
136
|
"""
|
|
@@ -118,9 +118,9 @@ class DefiLlamaFetchDexOverview(DefiLlamaBaseTool):
|
|
|
118
118
|
|
|
119
119
|
Example:
|
|
120
120
|
overview_tool = DefiLlamaFetchDexOverview(
|
|
121
|
-
|
|
121
|
+
,
|
|
122
122
|
agent_id="agent_123",
|
|
123
|
-
|
|
123
|
+
agent=agent
|
|
124
124
|
)
|
|
125
125
|
result = await overview_tool._arun()
|
|
126
126
|
"""
|
|
@@ -78,9 +78,9 @@ class DefiLlamaFetchDexSummary(DefiLlamaBaseTool):
|
|
|
78
78
|
|
|
79
79
|
Example:
|
|
80
80
|
summary_tool = DefiLlamaFetchDexSummary(
|
|
81
|
-
|
|
81
|
+
,
|
|
82
82
|
agent_id="agent_123",
|
|
83
|
-
|
|
83
|
+
agent=agent
|
|
84
84
|
)
|
|
85
85
|
result = await summary_tool._arun(protocol="uniswap")
|
|
86
86
|
"""
|
|
@@ -86,9 +86,9 @@ class DefiLlamaFetchOptionsOverview(DefiLlamaBaseTool):
|
|
|
86
86
|
|
|
87
87
|
Example:
|
|
88
88
|
overview_tool = DefiLlamaFetchOptionsOverview(
|
|
89
|
-
|
|
89
|
+
,
|
|
90
90
|
agent_id="agent_123",
|
|
91
|
-
|
|
91
|
+
agent=agent
|
|
92
92
|
)
|
|
93
93
|
result = await overview_tool._arun()
|
|
94
94
|
"""
|
|
@@ -54,9 +54,9 @@ class DefiLlamaFetchPoolChart(DefiLlamaBaseTool):
|
|
|
54
54
|
|
|
55
55
|
Example:
|
|
56
56
|
chart_tool = DefiLlamaFetchPoolChart(
|
|
57
|
-
|
|
57
|
+
,
|
|
58
58
|
agent_id="agent_123",
|
|
59
|
-
|
|
59
|
+
agent=agent
|
|
60
60
|
)
|
|
61
61
|
result = await chart_tool._arun(
|
|
62
62
|
pool_id="747c1d2a-c668-4682-b9f9-296708a3dd90"
|