intentkit 0.8.24__tar.gz
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.
- intentkit-0.8.24/.gitignore +178 -0
- intentkit-0.8.24/LICENSE +21 -0
- intentkit-0.8.24/PKG-INFO +179 -0
- intentkit-0.8.24/intentkit/LICENSE +21 -0
- intentkit-0.8.24/intentkit/MANIFEST.in +14 -0
- intentkit-0.8.24/intentkit/README.md +88 -0
- intentkit-0.8.24/intentkit/__init__.py +19 -0
- intentkit-0.8.24/intentkit/abstracts/__init__.py +0 -0
- intentkit-0.8.24/intentkit/abstracts/agent.py +59 -0
- intentkit-0.8.24/intentkit/abstracts/api.py +4 -0
- intentkit-0.8.24/intentkit/abstracts/engine.py +38 -0
- intentkit-0.8.24/intentkit/abstracts/graph.py +48 -0
- intentkit-0.8.24/intentkit/abstracts/skill.py +60 -0
- intentkit-0.8.24/intentkit/abstracts/twitter.py +53 -0
- intentkit-0.8.24/intentkit/clients/__init__.py +17 -0
- intentkit-0.8.24/intentkit/clients/cdp.py +128 -0
- intentkit-0.8.24/intentkit/clients/twitter.py +522 -0
- intentkit-0.8.24/intentkit/clients/web3.py +29 -0
- intentkit-0.8.24/intentkit/config/__init__.py +0 -0
- intentkit-0.8.24/intentkit/config/config.py +240 -0
- intentkit-0.8.24/intentkit/core/__init__.py +0 -0
- intentkit-0.8.24/intentkit/core/agent.py +741 -0
- intentkit-0.8.24/intentkit/core/api.py +100 -0
- intentkit-0.8.24/intentkit/core/asset.py +267 -0
- intentkit-0.8.24/intentkit/core/chat.py +51 -0
- intentkit-0.8.24/intentkit/core/client.py +85 -0
- intentkit-0.8.24/intentkit/core/credit.py +2146 -0
- intentkit-0.8.24/intentkit/core/engine.py +955 -0
- intentkit-0.8.24/intentkit/core/node.py +214 -0
- intentkit-0.8.24/intentkit/core/prompt.py +462 -0
- intentkit-0.8.24/intentkit/core/scheduler.py +92 -0
- intentkit-0.8.24/intentkit/core/statistics.py +168 -0
- intentkit-0.8.24/intentkit/models/agent.py +2026 -0
- intentkit-0.8.24/intentkit/models/agent_data.py +877 -0
- intentkit-0.8.24/intentkit/models/agent_public.json +98 -0
- intentkit-0.8.24/intentkit/models/agent_schema.json +382 -0
- intentkit-0.8.24/intentkit/models/app_setting.py +244 -0
- intentkit-0.8.24/intentkit/models/base.py +9 -0
- intentkit-0.8.24/intentkit/models/chat.py +656 -0
- intentkit-0.8.24/intentkit/models/conversation.py +287 -0
- intentkit-0.8.24/intentkit/models/credit.py +1714 -0
- intentkit-0.8.24/intentkit/models/db.py +148 -0
- intentkit-0.8.24/intentkit/models/db_mig.py +103 -0
- intentkit-0.8.24/intentkit/models/llm.csv +27 -0
- intentkit-0.8.24/intentkit/models/llm.py +638 -0
- intentkit-0.8.24/intentkit/models/redis.py +134 -0
- intentkit-0.8.24/intentkit/models/skill.py +600 -0
- intentkit-0.8.24/intentkit/models/skills.csv +174 -0
- intentkit-0.8.24/intentkit/models/user.py +374 -0
- intentkit-0.8.24/intentkit/skills/__init__.py +12 -0
- intentkit-0.8.24/intentkit/skills/acolyt/__init__.py +76 -0
- intentkit-0.8.24/intentkit/skills/acolyt/acolyt.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/acolyt/ask.py +123 -0
- intentkit-0.8.24/intentkit/skills/acolyt/base.py +33 -0
- intentkit-0.8.24/intentkit/skills/acolyt/schema.json +90 -0
- intentkit-0.8.24/intentkit/skills/aixbt/README.md +71 -0
- intentkit-0.8.24/intentkit/skills/aixbt/__init__.py +58 -0
- intentkit-0.8.24/intentkit/skills/aixbt/aixbt.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/aixbt/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/aixbt/projects.py +128 -0
- intentkit-0.8.24/intentkit/skills/aixbt/schema.json +99 -0
- intentkit-0.8.24/intentkit/skills/allora/__init__.py +76 -0
- intentkit-0.8.24/intentkit/skills/allora/allora.jpeg +0 -0
- intentkit-0.8.24/intentkit/skills/allora/base.py +33 -0
- intentkit-0.8.24/intentkit/skills/allora/price.py +127 -0
- intentkit-0.8.24/intentkit/skills/allora/schema.json +90 -0
- intentkit-0.8.24/intentkit/skills/base.py +364 -0
- intentkit-0.8.24/intentkit/skills/basename/__init__.py +51 -0
- intentkit-0.8.24/intentkit/skills/basename/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/basename/basename.svg +11 -0
- intentkit-0.8.24/intentkit/skills/basename/schema.json +58 -0
- intentkit-0.8.24/intentkit/skills/carv/README.md +95 -0
- intentkit-0.8.24/intentkit/skills/carv/__init__.py +115 -0
- intentkit-0.8.24/intentkit/skills/carv/base.py +184 -0
- intentkit-0.8.24/intentkit/skills/carv/carv.webp +0 -0
- intentkit-0.8.24/intentkit/skills/carv/fetch_news.py +90 -0
- intentkit-0.8.24/intentkit/skills/carv/onchain_query.py +162 -0
- intentkit-0.8.24/intentkit/skills/carv/schema.json +134 -0
- intentkit-0.8.24/intentkit/skills/carv/token_info_and_price.py +108 -0
- intentkit-0.8.24/intentkit/skills/casino/README.md +254 -0
- intentkit-0.8.24/intentkit/skills/casino/__init__.py +86 -0
- intentkit-0.8.24/intentkit/skills/casino/base.py +17 -0
- intentkit-0.8.24/intentkit/skills/casino/casino.png +0 -0
- intentkit-0.8.24/intentkit/skills/casino/deck_draw.py +127 -0
- intentkit-0.8.24/intentkit/skills/casino/deck_shuffle.py +118 -0
- intentkit-0.8.24/intentkit/skills/casino/dice_roll.py +100 -0
- intentkit-0.8.24/intentkit/skills/casino/schema.json +77 -0
- intentkit-0.8.24/intentkit/skills/casino/utils.py +107 -0
- intentkit-0.8.24/intentkit/skills/cdp/__init__.py +78 -0
- intentkit-0.8.24/intentkit/skills/cdp/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/cdp/cdp.png +0 -0
- intentkit-0.8.24/intentkit/skills/cdp/schema.json +122 -0
- intentkit-0.8.24/intentkit/skills/chainlist/README.md +38 -0
- intentkit-0.8.24/intentkit/skills/chainlist/__init__.py +49 -0
- intentkit-0.8.24/intentkit/skills/chainlist/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/chainlist/chain_lookup.py +207 -0
- intentkit-0.8.24/intentkit/skills/chainlist/chainlist.png +0 -0
- intentkit-0.8.24/intentkit/skills/chainlist/schema.json +45 -0
- intentkit-0.8.24/intentkit/skills/common/__init__.py +75 -0
- intentkit-0.8.24/intentkit/skills/common/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/common/common.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/common/current_time.py +82 -0
- intentkit-0.8.24/intentkit/skills/common/schema.json +57 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/README.md +121 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/__init__.py +75 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/base.py +44 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/constants.py +18 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/cookiefun.png +0 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/get_account_details.py +169 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/get_account_feed.py +280 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/get_account_smart_followers.py +179 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/get_sectors.py +127 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/schema.json +153 -0
- intentkit-0.8.24/intentkit/skills/cookiefun/search_accounts.py +223 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/__init__.py +113 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/api.py +158 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/base.py +289 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/cryptocompare.png +0 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_news.py +94 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_price.py +97 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_top_exchanges.py +111 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_top_market_cap.py +107 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_top_volume.py +106 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/fetch_trading_signals.py +105 -0
- intentkit-0.8.24/intentkit/skills/cryptocompare/schema.json +168 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/__init__.py +105 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/base.py +51 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/cryptopanic.png +0 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/fetch_crypto_news.py +146 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/fetch_crypto_sentiment.py +131 -0
- intentkit-0.8.24/intentkit/skills/cryptopanic/schema.json +105 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/README.md +92 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/__init__.py +76 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/base.py +31 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/dapplooker.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/dapplooker_token_data.py +474 -0
- intentkit-0.8.24/intentkit/skills/dapplooker/schema.json +89 -0
- intentkit-0.8.24/intentkit/skills/defillama/__init__.py +273 -0
- intentkit-0.8.24/intentkit/skills/defillama/api.py +312 -0
- intentkit-0.8.24/intentkit/skills/defillama/base.py +125 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_batch_historical_prices.py +113 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_block.py +95 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_current_prices.py +100 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_first_price.py +95 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_historical_prices.py +107 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_price_chart.py +104 -0
- intentkit-0.8.24/intentkit/skills/defillama/coins/fetch_price_percentage.py +88 -0
- intentkit-0.8.24/intentkit/skills/defillama/config/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/config/chains.py +431 -0
- intentkit-0.8.24/intentkit/skills/defillama/defillama.jpeg +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/fees/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/fees/fetch_fees_overview.py +127 -0
- intentkit-0.8.24/intentkit/skills/defillama/schema.json +387 -0
- intentkit-0.8.24/intentkit/skills/defillama/stablecoins/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/stablecoins/fetch_stablecoin_chains.py +97 -0
- intentkit-0.8.24/intentkit/skills/defillama/stablecoins/fetch_stablecoin_charts.py +126 -0
- intentkit-0.8.24/intentkit/skills/defillama/stablecoins/fetch_stablecoin_prices.py +80 -0
- intentkit-0.8.24/intentkit/skills/defillama/stablecoins/fetch_stablecoins.py +123 -0
- intentkit-0.8.24/intentkit/skills/defillama/tests/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/tests/api_integration.test.py +192 -0
- intentkit-0.8.24/intentkit/skills/defillama/tests/api_unit.test.py +583 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_chain_historical_tvl.py +101 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_chains.py +104 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_historical_tvl.py +88 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_protocol.py +198 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_protocol_current_tvl.py +88 -0
- intentkit-0.8.24/intentkit/skills/defillama/tvl/fetch_protocols.py +187 -0
- intentkit-0.8.24/intentkit/skills/defillama/volumes/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/volumes/fetch_dex_overview.py +150 -0
- intentkit-0.8.24/intentkit/skills/defillama/volumes/fetch_dex_summary.py +118 -0
- intentkit-0.8.24/intentkit/skills/defillama/volumes/fetch_options_overview.py +126 -0
- intentkit-0.8.24/intentkit/skills/defillama/yields/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/defillama/yields/fetch_pool_chart.py +95 -0
- intentkit-0.8.24/intentkit/skills/defillama/yields/fetch_pools.py +121 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/README.md +154 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/__init__.py +97 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/base.py +125 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/dexscreener.png +0 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/get_pair_info.py +158 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/get_token_pairs.py +165 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/get_tokens_info.py +212 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/model/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/model/search_token_response.py +80 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/schema.json +91 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/search_token.py +182 -0
- intentkit-0.8.24/intentkit/skills/dexscreener/utils.py +420 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/__init__.py +101 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/base.py +48 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/dune.png +0 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/fetch_kol_buys.py +123 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/fetch_nation_metrics.py +232 -0
- intentkit-0.8.24/intentkit/skills/dune_analytics/schema.json +104 -0
- intentkit-0.8.24/intentkit/skills/elfa/README.md +152 -0
- intentkit-0.8.24/intentkit/skills/elfa/__init__.py +101 -0
- intentkit-0.8.24/intentkit/skills/elfa/base.py +34 -0
- intentkit-0.8.24/intentkit/skills/elfa/elfa.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/elfa/mention.py +216 -0
- intentkit-0.8.24/intentkit/skills/elfa/schema.json +138 -0
- intentkit-0.8.24/intentkit/skills/elfa/stats.py +81 -0
- intentkit-0.8.24/intentkit/skills/elfa/tokens.py +119 -0
- intentkit-0.8.24/intentkit/skills/elfa/utils.py +127 -0
- intentkit-0.8.24/intentkit/skills/enso/README.md +75 -0
- intentkit-0.8.24/intentkit/skills/enso/__init__.py +94 -0
- intentkit-0.8.24/intentkit/skills/enso/abi/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/enso/abi/approval.py +279 -0
- intentkit-0.8.24/intentkit/skills/enso/abi/erc20.py +14 -0
- intentkit-0.8.24/intentkit/skills/enso/abi/route.py +129 -0
- intentkit-0.8.24/intentkit/skills/enso/base.py +98 -0
- intentkit-0.8.24/intentkit/skills/enso/best_yield.py +275 -0
- intentkit-0.8.24/intentkit/skills/enso/enso.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/enso/networks.py +97 -0
- intentkit-0.8.24/intentkit/skills/enso/prices.py +87 -0
- intentkit-0.8.24/intentkit/skills/enso/route.py +294 -0
- intentkit-0.8.24/intentkit/skills/enso/schema.json +213 -0
- intentkit-0.8.24/intentkit/skills/enso/tokens.py +211 -0
- intentkit-0.8.24/intentkit/skills/enso/wallet.py +264 -0
- intentkit-0.8.24/intentkit/skills/erc20/__init__.py +50 -0
- intentkit-0.8.24/intentkit/skills/erc20/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/erc20/erc20.svg +5 -0
- intentkit-0.8.24/intentkit/skills/erc20/schema.json +74 -0
- intentkit-0.8.24/intentkit/skills/erc721/__init__.py +53 -0
- intentkit-0.8.24/intentkit/skills/erc721/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/erc721/erc721.svg +5 -0
- intentkit-0.8.24/intentkit/skills/erc721/schema.json +90 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/README.md +217 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/__init__.py +94 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/base.py +31 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/clear.py +81 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/crawl.py +398 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/firecrawl.png +0 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/query.py +122 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/schema.json +151 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/scrape.py +427 -0
- intentkit-0.8.24/intentkit/skills/firecrawl/utils.py +314 -0
- intentkit-0.8.24/intentkit/skills/github/README.md +63 -0
- intentkit-0.8.24/intentkit/skills/github/__init__.py +49 -0
- intentkit-0.8.24/intentkit/skills/github/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/github/github.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/github/github_search.py +180 -0
- intentkit-0.8.24/intentkit/skills/github/schema.json +58 -0
- intentkit-0.8.24/intentkit/skills/heurist/__init__.py +124 -0
- intentkit-0.8.24/intentkit/skills/heurist/base.py +36 -0
- intentkit-0.8.24/intentkit/skills/heurist/heurist.png +0 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_animagine_xl.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_arthemy_comics.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_arthemy_real.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_braindance.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_cyber_realistic_xl.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_flux_1_dev.py +160 -0
- intentkit-0.8.24/intentkit/skills/heurist/image_generation_sdxl.py +159 -0
- intentkit-0.8.24/intentkit/skills/heurist/schema.json +196 -0
- intentkit-0.8.24/intentkit/skills/http/README.md +78 -0
- intentkit-0.8.24/intentkit/skills/http/__init__.py +89 -0
- intentkit-0.8.24/intentkit/skills/http/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/http/get.py +99 -0
- intentkit-0.8.24/intentkit/skills/http/http.svg +15 -0
- intentkit-0.8.24/intentkit/skills/http/post.py +116 -0
- intentkit-0.8.24/intentkit/skills/http/put.py +116 -0
- intentkit-0.8.24/intentkit/skills/http/schema.json +79 -0
- intentkit-0.8.24/intentkit/skills/lifi/README.md +294 -0
- intentkit-0.8.24/intentkit/skills/lifi/__init__.py +136 -0
- intentkit-0.8.24/intentkit/skills/lifi/base.py +15 -0
- intentkit-0.8.24/intentkit/skills/lifi/lifi.png +0 -0
- intentkit-0.8.24/intentkit/skills/lifi/schema.json +98 -0
- intentkit-0.8.24/intentkit/skills/lifi/token_execute.py +476 -0
- intentkit-0.8.24/intentkit/skills/lifi/token_quote.py +186 -0
- intentkit-0.8.24/intentkit/skills/lifi/utils.py +709 -0
- intentkit-0.8.24/intentkit/skills/moralis/README.md +490 -0
- intentkit-0.8.24/intentkit/skills/moralis/__init__.py +106 -0
- intentkit-0.8.24/intentkit/skills/moralis/api.py +280 -0
- intentkit-0.8.24/intentkit/skills/moralis/base.py +64 -0
- intentkit-0.8.24/intentkit/skills/moralis/fetch_chain_portfolio.py +190 -0
- intentkit-0.8.24/intentkit/skills/moralis/fetch_nft_portfolio.py +284 -0
- intentkit-0.8.24/intentkit/skills/moralis/fetch_solana_portfolio.py +330 -0
- intentkit-0.8.24/intentkit/skills/moralis/fetch_wallet_portfolio.py +300 -0
- intentkit-0.8.24/intentkit/skills/moralis/moralis.png +0 -0
- intentkit-0.8.24/intentkit/skills/moralis/schema.json +161 -0
- intentkit-0.8.24/intentkit/skills/morpho/__init__.py +52 -0
- intentkit-0.8.24/intentkit/skills/morpho/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/morpho/morpho.svg +12 -0
- intentkit-0.8.24/intentkit/skills/morpho/schema.json +73 -0
- intentkit-0.8.24/intentkit/skills/nation/__init__.py +57 -0
- intentkit-0.8.24/intentkit/skills/nation/base.py +26 -0
- intentkit-0.8.24/intentkit/skills/nation/nation.png +0 -0
- intentkit-0.8.24/intentkit/skills/nation/nft_check.py +102 -0
- intentkit-0.8.24/intentkit/skills/nation/schema.json +59 -0
- intentkit-0.8.24/intentkit/skills/onchain.py +23 -0
- intentkit-0.8.24/intentkit/skills/openai/__init__.py +106 -0
- intentkit-0.8.24/intentkit/skills/openai/base.py +37 -0
- intentkit-0.8.24/intentkit/skills/openai/dalle_image_generation.py +124 -0
- intentkit-0.8.24/intentkit/skills/openai/gpt_avatar_generator.py +102 -0
- intentkit-0.8.24/intentkit/skills/openai/gpt_image_generation.py +149 -0
- intentkit-0.8.24/intentkit/skills/openai/gpt_image_mini_generator.py +92 -0
- intentkit-0.8.24/intentkit/skills/openai/gpt_image_to_image.py +183 -0
- intentkit-0.8.24/intentkit/skills/openai/image_to_text.py +122 -0
- intentkit-0.8.24/intentkit/skills/openai/openai.png +0 -0
- intentkit-0.8.24/intentkit/skills/openai/schema.json +170 -0
- intentkit-0.8.24/intentkit/skills/portfolio/README.md +55 -0
- intentkit-0.8.24/intentkit/skills/portfolio/__init__.py +127 -0
- intentkit-0.8.24/intentkit/skills/portfolio/base.py +122 -0
- intentkit-0.8.24/intentkit/skills/portfolio/constants.py +9 -0
- intentkit-0.8.24/intentkit/skills/portfolio/moralis.png +0 -0
- intentkit-0.8.24/intentkit/skills/portfolio/schema.json +235 -0
- intentkit-0.8.24/intentkit/skills/portfolio/token_balances.py +153 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_approvals.py +99 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_defi_positions.py +79 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_history.py +153 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_net_worth.py +110 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_nfts.py +137 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_profitability.py +99 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_profitability_summary.py +89 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_stats.py +77 -0
- intentkit-0.8.24/intentkit/skills/portfolio/wallet_swaps.py +145 -0
- intentkit-0.8.24/intentkit/skills/pyth/__init__.py +50 -0
- intentkit-0.8.24/intentkit/skills/pyth/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/pyth/pyth.svg +6 -0
- intentkit-0.8.24/intentkit/skills/pyth/schema.json +75 -0
- intentkit-0.8.24/intentkit/skills/skills.toml +143 -0
- intentkit-0.8.24/intentkit/skills/slack/__init__.py +86 -0
- intentkit-0.8.24/intentkit/skills/slack/base.py +67 -0
- intentkit-0.8.24/intentkit/skills/slack/get_channel.py +108 -0
- intentkit-0.8.24/intentkit/skills/slack/get_message.py +135 -0
- intentkit-0.8.24/intentkit/skills/slack/schedule_message.py +91 -0
- intentkit-0.8.24/intentkit/skills/slack/schema.json +135 -0
- intentkit-0.8.24/intentkit/skills/slack/send_message.py +78 -0
- intentkit-0.8.24/intentkit/skills/slack/slack.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/supabase/__init__.py +101 -0
- intentkit-0.8.24/intentkit/skills/supabase/base.py +77 -0
- intentkit-0.8.24/intentkit/skills/supabase/delete_data.py +100 -0
- intentkit-0.8.24/intentkit/skills/supabase/fetch_data.py +118 -0
- intentkit-0.8.24/intentkit/skills/supabase/insert_data.py +68 -0
- intentkit-0.8.24/intentkit/skills/supabase/invoke_function.py +72 -0
- intentkit-0.8.24/intentkit/skills/supabase/schema.json +175 -0
- intentkit-0.8.24/intentkit/skills/supabase/supabase.svg +15 -0
- intentkit-0.8.24/intentkit/skills/supabase/update_data.py +103 -0
- intentkit-0.8.24/intentkit/skills/supabase/upsert_data.py +75 -0
- intentkit-0.8.24/intentkit/skills/superfluid/__init__.py +53 -0
- intentkit-0.8.24/intentkit/skills/superfluid/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/superfluid/schema.json +89 -0
- intentkit-0.8.24/intentkit/skills/superfluid/superfluid.svg +6 -0
- intentkit-0.8.24/intentkit/skills/system/__init__.py +105 -0
- intentkit-0.8.24/intentkit/skills/system/add_autonomous_task.py +89 -0
- intentkit-0.8.24/intentkit/skills/system/base.py +22 -0
- intentkit-0.8.24/intentkit/skills/system/delete_autonomous_task.py +54 -0
- intentkit-0.8.24/intentkit/skills/system/edit_autonomous_task.py +110 -0
- intentkit-0.8.24/intentkit/skills/system/list_autonomous_tasks.py +48 -0
- intentkit-0.8.24/intentkit/skills/system/read_agent_api_key.py +85 -0
- intentkit-0.8.24/intentkit/skills/system/regenerate_agent_api_key.py +73 -0
- intentkit-0.8.24/intentkit/skills/system/schema.json +107 -0
- intentkit-0.8.24/intentkit/skills/system/system.svg +76 -0
- intentkit-0.8.24/intentkit/skills/tavily/README.md +86 -0
- intentkit-0.8.24/intentkit/skills/tavily/__init__.py +82 -0
- intentkit-0.8.24/intentkit/skills/tavily/base.py +31 -0
- intentkit-0.8.24/intentkit/skills/tavily/schema.json +117 -0
- intentkit-0.8.24/intentkit/skills/tavily/tavily.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/tavily/tavily_extract.py +144 -0
- intentkit-0.8.24/intentkit/skills/tavily/tavily_search.py +139 -0
- intentkit-0.8.24/intentkit/skills/token/README.md +89 -0
- intentkit-0.8.24/intentkit/skills/token/__init__.py +102 -0
- intentkit-0.8.24/intentkit/skills/token/base.py +110 -0
- intentkit-0.8.24/intentkit/skills/token/constants.py +9 -0
- intentkit-0.8.24/intentkit/skills/token/erc20_transfers.py +143 -0
- intentkit-0.8.24/intentkit/skills/token/moralis.png +0 -0
- intentkit-0.8.24/intentkit/skills/token/schema.json +138 -0
- intentkit-0.8.24/intentkit/skills/token/token_analytics.py +79 -0
- intentkit-0.8.24/intentkit/skills/token/token_price.py +130 -0
- intentkit-0.8.24/intentkit/skills/token/token_search.py +119 -0
- intentkit-0.8.24/intentkit/skills/twitter/__init__.py +122 -0
- intentkit-0.8.24/intentkit/skills/twitter/base.py +97 -0
- intentkit-0.8.24/intentkit/skills/twitter/follow_user.py +65 -0
- intentkit-0.8.24/intentkit/skills/twitter/get_mentions.py +117 -0
- intentkit-0.8.24/intentkit/skills/twitter/get_timeline.py +104 -0
- intentkit-0.8.24/intentkit/skills/twitter/get_user_by_username.py +80 -0
- intentkit-0.8.24/intentkit/skills/twitter/get_user_tweets.py +115 -0
- intentkit-0.8.24/intentkit/skills/twitter/like_tweet.py +61 -0
- intentkit-0.8.24/intentkit/skills/twitter/post_tweet.py +100 -0
- intentkit-0.8.24/intentkit/skills/twitter/reply_tweet.py +106 -0
- intentkit-0.8.24/intentkit/skills/twitter/retweet.py +72 -0
- intentkit-0.8.24/intentkit/skills/twitter/schema.json +259 -0
- intentkit-0.8.24/intentkit/skills/twitter/search_tweets.py +107 -0
- intentkit-0.8.24/intentkit/skills/twitter/twitter.png +0 -0
- intentkit-0.8.24/intentkit/skills/unrealspeech/__init__.py +50 -0
- intentkit-0.8.24/intentkit/skills/unrealspeech/base.py +31 -0
- intentkit-0.8.24/intentkit/skills/unrealspeech/schema.json +97 -0
- intentkit-0.8.24/intentkit/skills/unrealspeech/text_to_speech.py +156 -0
- intentkit-0.8.24/intentkit/skills/unrealspeech/unrealspeech.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/__init__.py +98 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/base.py +117 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/input.py +41 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/schema.json +151 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/venice_audio.py +255 -0
- intentkit-0.8.24/intentkit/skills/venice_audio/venice_logo.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/venice_image/README.md +119 -0
- intentkit-0.8.24/intentkit/skills/venice_image/__init__.py +147 -0
- intentkit-0.8.24/intentkit/skills/venice_image/api.py +138 -0
- intentkit-0.8.24/intentkit/skills/venice_image/base.py +185 -0
- intentkit-0.8.24/intentkit/skills/venice_image/config.py +33 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_enhance/README.md +119 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_enhance/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_enhance/image_enhance.py +77 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_enhance/image_enhance_base.py +21 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_enhance/image_enhance_input.py +38 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/README.md +144 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_base.py +115 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_fluently_xl.py +26 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_flux_dev.py +27 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_flux_dev_uncensored.py +26 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_input.py +158 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_lustify_sdxl.py +26 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_pony_realism.py +26 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_stable_diffusion_3_5.py +28 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_generation/image_generation_venice_sd35.py +28 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_upscale/README.md +111 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_upscale/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_upscale/image_upscale.py +88 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_upscale/image_upscale_base.py +21 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_upscale/image_upscale_input.py +22 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_vision/README.md +112 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_vision/__init__.py +0 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_vision/image_vision.py +98 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_vision/image_vision_base.py +17 -0
- intentkit-0.8.24/intentkit/skills/venice_image/image_vision/image_vision_input.py +9 -0
- intentkit-0.8.24/intentkit/skills/venice_image/schema.json +267 -0
- intentkit-0.8.24/intentkit/skills/venice_image/utils.py +77 -0
- intentkit-0.8.24/intentkit/skills/venice_image/venice_image.jpg +0 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/README.md +113 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/__init__.py +95 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/base.py +35 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/document_indexer.py +142 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/langchain.png +0 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/schema.json +139 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/scrape_and_index.py +259 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/utils.py +683 -0
- intentkit-0.8.24/intentkit/skills/web_scraper/website_indexer.py +452 -0
- intentkit-0.8.24/intentkit/skills/weth/__init__.py +49 -0
- intentkit-0.8.24/intentkit/skills/weth/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/weth/schema.json +58 -0
- intentkit-0.8.24/intentkit/skills/weth/weth.svg +6 -0
- intentkit-0.8.24/intentkit/skills/wow/__init__.py +51 -0
- intentkit-0.8.24/intentkit/skills/wow/base.py +11 -0
- intentkit-0.8.24/intentkit/skills/wow/schema.json +89 -0
- intentkit-0.8.24/intentkit/skills/wow/wow.svg +7 -0
- intentkit-0.8.24/intentkit/skills/x402/__init__.py +61 -0
- intentkit-0.8.24/intentkit/skills/x402/ask_agent.py +98 -0
- intentkit-0.8.24/intentkit/skills/x402/base.py +99 -0
- intentkit-0.8.24/intentkit/skills/x402/http_request.py +117 -0
- intentkit-0.8.24/intentkit/skills/x402/schema.json +45 -0
- intentkit-0.8.24/intentkit/skills/x402/x402.webp +0 -0
- intentkit-0.8.24/intentkit/skills/xmtp/README.md +110 -0
- intentkit-0.8.24/intentkit/skills/xmtp/__init__.py +87 -0
- intentkit-0.8.24/intentkit/skills/xmtp/base.py +74 -0
- intentkit-0.8.24/intentkit/skills/xmtp/price.py +77 -0
- intentkit-0.8.24/intentkit/skills/xmtp/schema.json +73 -0
- intentkit-0.8.24/intentkit/skills/xmtp/swap.py +210 -0
- intentkit-0.8.24/intentkit/skills/xmtp/transfer.py +205 -0
- intentkit-0.8.24/intentkit/skills/xmtp/xmtp.png +0 -0
- intentkit-0.8.24/intentkit/utils/__init__.py +5 -0
- intentkit-0.8.24/intentkit/utils/chain.py +538 -0
- intentkit-0.8.24/intentkit/utils/ens.py +135 -0
- intentkit-0.8.24/intentkit/utils/error.py +147 -0
- intentkit-0.8.24/intentkit/utils/logging.py +68 -0
- intentkit-0.8.24/intentkit/utils/random.py +16 -0
- intentkit-0.8.24/intentkit/utils/s3.py +319 -0
- intentkit-0.8.24/intentkit/utils/schema.py +100 -0
- intentkit-0.8.24/intentkit/utils/slack_alert.py +78 -0
- intentkit-0.8.24/intentkit/utils/tx.py +37 -0
- intentkit-0.8.24/intentkit/uv.lock +3377 -0
- intentkit-0.8.24/pyproject.toml +142 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# MacOS
|
|
7
|
+
.DS_Store
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.nox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
*.py,cover
|
|
52
|
+
.hypothesis/
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
cover/
|
|
55
|
+
|
|
56
|
+
# Translations
|
|
57
|
+
*.mo
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
local_settings.py
|
|
63
|
+
db.sqlite3
|
|
64
|
+
db.sqlite3-journal
|
|
65
|
+
|
|
66
|
+
# Flask stuff:
|
|
67
|
+
instance/
|
|
68
|
+
.webassets-cache
|
|
69
|
+
|
|
70
|
+
# Scrapy stuff:
|
|
71
|
+
.scrapy
|
|
72
|
+
|
|
73
|
+
# Sphinx documentation
|
|
74
|
+
docs/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
# .python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# poetry
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
104
|
+
#poetry.lock
|
|
105
|
+
|
|
106
|
+
# pdm
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
108
|
+
#pdm.lock
|
|
109
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
110
|
+
# in version control.
|
|
111
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
112
|
+
.pdm.toml
|
|
113
|
+
.pdm-python
|
|
114
|
+
.pdm-build/
|
|
115
|
+
|
|
116
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
117
|
+
__pypackages__/
|
|
118
|
+
|
|
119
|
+
# Celery stuff
|
|
120
|
+
celerybeat-schedule
|
|
121
|
+
celerybeat.pid
|
|
122
|
+
|
|
123
|
+
# SageMath parsed files
|
|
124
|
+
*.sage.py
|
|
125
|
+
|
|
126
|
+
# Environments
|
|
127
|
+
*.env
|
|
128
|
+
.env
|
|
129
|
+
!example.env
|
|
130
|
+
.venv
|
|
131
|
+
env/
|
|
132
|
+
venv/
|
|
133
|
+
ENV/
|
|
134
|
+
env.bak/
|
|
135
|
+
venv.bak/
|
|
136
|
+
|
|
137
|
+
# Spyder project settings
|
|
138
|
+
.spyderproject
|
|
139
|
+
.spyproject
|
|
140
|
+
|
|
141
|
+
# Rope project settings
|
|
142
|
+
.ropeproject
|
|
143
|
+
|
|
144
|
+
# mkdocs documentation
|
|
145
|
+
/site
|
|
146
|
+
|
|
147
|
+
# mypy
|
|
148
|
+
.mypy_cache/
|
|
149
|
+
.dmypy.json
|
|
150
|
+
dmypy.json
|
|
151
|
+
|
|
152
|
+
# Pyre type checker
|
|
153
|
+
.pyre/
|
|
154
|
+
|
|
155
|
+
# pytype static type analyzer
|
|
156
|
+
.pytype/
|
|
157
|
+
|
|
158
|
+
# Cython debug symbols
|
|
159
|
+
cython_debug/
|
|
160
|
+
|
|
161
|
+
# PyCharm
|
|
162
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
163
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
164
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
165
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
166
|
+
#.idea/
|
|
167
|
+
|
|
168
|
+
# IDE
|
|
169
|
+
.idea
|
|
170
|
+
.vscode
|
|
171
|
+
.cursor
|
|
172
|
+
|
|
173
|
+
# web3
|
|
174
|
+
wallet_data.txt
|
|
175
|
+
|
|
176
|
+
# export/import data
|
|
177
|
+
*.response
|
|
178
|
+
scripts/*.yaml
|
intentkit-0.8.24/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Crestal Network
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: intentkit
|
|
3
|
+
Version: 0.8.24
|
|
4
|
+
Summary: Intent-based AI Agent Platform - Core Package
|
|
5
|
+
Project-URL: Homepage, https://github.com/crestalnetwork/intentkit
|
|
6
|
+
Project-URL: Repository, https://github.com/crestalnetwork/intentkit
|
|
7
|
+
Project-URL: Documentation, https://github.com/crestalnetwork/intentkit/tree/main/docs
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/crestalnetwork/intentkit/issues
|
|
9
|
+
Author-email: Ruihua <ruihua@crestal.network>
|
|
10
|
+
License: MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2024 Crestal Network
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Keywords: agent,ai,blockchain,crypto,intent
|
|
33
|
+
Classifier: Development Status :: 4 - Beta
|
|
34
|
+
Classifier: Intended Audience :: Developers
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
38
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
39
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
40
|
+
Requires-Python: ==3.13.*
|
|
41
|
+
Requires-Dist: aiohttp>=3.11.16
|
|
42
|
+
Requires-Dist: aiosqlite>=0.21.0
|
|
43
|
+
Requires-Dist: asyncpg>=0.30.0
|
|
44
|
+
Requires-Dist: aws-secretsmanager-caching>=1.1.3
|
|
45
|
+
Requires-Dist: boto3<2.0.0,>=1.37.23
|
|
46
|
+
Requires-Dist: botocore>=1.35.97
|
|
47
|
+
Requires-Dist: cdp-sdk>=1.31.1
|
|
48
|
+
Requires-Dist: coinbase-agentkit>=0.7.2
|
|
49
|
+
Requires-Dist: cron-validator<2.0.0,>=1.0.8
|
|
50
|
+
Requires-Dist: epyxid>=0.3.3
|
|
51
|
+
Requires-Dist: eth-keys>=0.4.0
|
|
52
|
+
Requires-Dist: eth-utils>=2.1.0
|
|
53
|
+
Requires-Dist: fastapi>=0.115.8
|
|
54
|
+
Requires-Dist: filetype<2.0.0,>=1.2.0
|
|
55
|
+
Requires-Dist: httpx>=0.28.1
|
|
56
|
+
Requires-Dist: jsonref>=1.1.0
|
|
57
|
+
Requires-Dist: langchain-community>=0.3.19
|
|
58
|
+
Requires-Dist: langchain-core>=0.3.43
|
|
59
|
+
Requires-Dist: langchain-deepseek>=0.1.4
|
|
60
|
+
Requires-Dist: langchain-mcp-adapters>=0.0.11
|
|
61
|
+
Requires-Dist: langchain-openai>=0.3.8
|
|
62
|
+
Requires-Dist: langchain-text-splitters>=0.3.8
|
|
63
|
+
Requires-Dist: langchain-xai>=0.2.1
|
|
64
|
+
Requires-Dist: langchain>=0.3.25
|
|
65
|
+
Requires-Dist: langgraph-checkpoint-postgres>=2.0.16
|
|
66
|
+
Requires-Dist: langgraph-checkpoint>=2.0.18
|
|
67
|
+
Requires-Dist: langgraph-prebuilt>=0.6.1
|
|
68
|
+
Requires-Dist: langgraph>=0.6.1
|
|
69
|
+
Requires-Dist: langmem>=0.0.27
|
|
70
|
+
Requires-Dist: mypy-boto3-s3<2.0.0,>=1.37.24
|
|
71
|
+
Requires-Dist: openai>=1.59.6
|
|
72
|
+
Requires-Dist: pillow<13.0.0,>=11.1.0
|
|
73
|
+
Requires-Dist: psycopg-pool>=3.2.4
|
|
74
|
+
Requires-Dist: psycopg>=3.2.9
|
|
75
|
+
Requires-Dist: pydantic>=2.10.6
|
|
76
|
+
Requires-Dist: python-dotenv>=1.0.1
|
|
77
|
+
Requires-Dist: pytz>=2025.1
|
|
78
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
79
|
+
Requires-Dist: redis<8.0.0,>=5.2.1
|
|
80
|
+
Requires-Dist: requests-oauthlib>=2.0.0
|
|
81
|
+
Requires-Dist: requests>=2.32.3
|
|
82
|
+
Requires-Dist: slack-sdk>=3.34.0
|
|
83
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0.37
|
|
84
|
+
Requires-Dist: starlette>=0.47.1
|
|
85
|
+
Requires-Dist: supabase>=2.16.0
|
|
86
|
+
Requires-Dist: tenacity>=9.1.2
|
|
87
|
+
Requires-Dist: tweepy[async]>=4.15.0
|
|
88
|
+
Requires-Dist: uvicorn<1.0.0,>=0.34.0
|
|
89
|
+
Requires-Dist: web3>=7.10.0
|
|
90
|
+
Description-Content-Type: text/markdown
|
|
91
|
+
|
|
92
|
+
# IntentKit
|
|
93
|
+
|
|
94
|
+
IntentKit is a powerful intent-based AI agent platform that enables developers to build sophisticated AI agents with blockchain and cryptocurrency capabilities.
|
|
95
|
+
|
|
96
|
+
## Features
|
|
97
|
+
|
|
98
|
+
- **Intent-based Architecture**: Build agents that understand and execute user intents
|
|
99
|
+
- **Blockchain Integration**: Native support for multiple blockchain networks
|
|
100
|
+
- **Cryptocurrency Operations**: Built-in tools for DeFi, trading, and token operations
|
|
101
|
+
- **Extensible Skills System**: Modular skill system with 30+ pre-built skills
|
|
102
|
+
- **Multi-platform Support**: Telegram, Twitter, Slack, and API integrations
|
|
103
|
+
- **Advanced AI Capabilities**: Powered by LangChain and LangGraph
|
|
104
|
+
|
|
105
|
+
## Installation
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
pip install intentkit
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Development
|
|
112
|
+
|
|
113
|
+
To build the package locally:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Build both source and wheel distributions
|
|
117
|
+
uv build
|
|
118
|
+
|
|
119
|
+
# Build only wheel
|
|
120
|
+
uv build --wheel
|
|
121
|
+
|
|
122
|
+
# Build only source distribution
|
|
123
|
+
uv build --sdist
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
To publish to PyPI:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Build and publish to PyPI
|
|
130
|
+
uv build
|
|
131
|
+
uv publish
|
|
132
|
+
|
|
133
|
+
# Publish to Test PyPI
|
|
134
|
+
uv publish --publish-url https://test.pypi.org/legacy/
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
> **Note**: This package uses `hatchling` as the build backend with `uv` for dependency management and publishing.
|
|
138
|
+
|
|
139
|
+
## Quick Start
|
|
140
|
+
|
|
141
|
+
```python
|
|
142
|
+
from intentkit.core.agent import Agent
|
|
143
|
+
from intentkit.config.config import Config
|
|
144
|
+
|
|
145
|
+
# Initialize configuration
|
|
146
|
+
config = Config()
|
|
147
|
+
|
|
148
|
+
# Create an agent
|
|
149
|
+
agent = Agent(config=config)
|
|
150
|
+
|
|
151
|
+
# Your agent is ready to use!
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Skills
|
|
155
|
+
|
|
156
|
+
IntentKit comes with 30+ pre-built skills including:
|
|
157
|
+
|
|
158
|
+
- **DeFi**: Uniswap, 1inch, Enso, LiFi
|
|
159
|
+
- **Data**: DexScreener, CoinGecko, DefiLlama, CryptoCompare
|
|
160
|
+
- **Social**: Twitter, Telegram, Slack
|
|
161
|
+
- **Blockchain**: CDP, Moralis, various wallet integrations
|
|
162
|
+
- **AI**: OpenAI, Heurist, Venice AI
|
|
163
|
+
- **And many more...**
|
|
164
|
+
|
|
165
|
+
## Documentation
|
|
166
|
+
|
|
167
|
+
For detailed documentation, examples, and guides, visit our [documentation](https://github.com/crestal-network/intentkit/tree/main/docs).
|
|
168
|
+
|
|
169
|
+
## Contributing
|
|
170
|
+
|
|
171
|
+
We welcome contributions! Please see our [Contributing Guide](https://github.com/crestal-network/intentkit/blob/main/CONTRIBUTING.md) for details.
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
176
|
+
|
|
177
|
+
## Support
|
|
178
|
+
|
|
179
|
+
For support, please open an issue on our [GitHub repository](https://github.com/crestal-network/intentkit/issues).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Crestal Network
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
recursive-include abstracts *.py
|
|
4
|
+
recursive-include clients *.py
|
|
5
|
+
recursive-include config *.py
|
|
6
|
+
recursive-include core *.py
|
|
7
|
+
recursive-include models *.py *.json
|
|
8
|
+
recursive-include skills *.py *.toml *.md
|
|
9
|
+
recursive-include utils *.py
|
|
10
|
+
recursive-exclude * __pycache__
|
|
11
|
+
recursive-exclude * *.pyc
|
|
12
|
+
recursive-exclude * *.pyo
|
|
13
|
+
recursive-exclude * .DS_Store
|
|
14
|
+
recursive-exclude * .ruff_cache
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# IntentKit
|
|
2
|
+
|
|
3
|
+
IntentKit is a powerful intent-based AI agent platform that enables developers to build sophisticated AI agents with blockchain and cryptocurrency capabilities.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Intent-based Architecture**: Build agents that understand and execute user intents
|
|
8
|
+
- **Blockchain Integration**: Native support for multiple blockchain networks
|
|
9
|
+
- **Cryptocurrency Operations**: Built-in tools for DeFi, trading, and token operations
|
|
10
|
+
- **Extensible Skills System**: Modular skill system with 30+ pre-built skills
|
|
11
|
+
- **Multi-platform Support**: Telegram, Twitter, Slack, and API integrations
|
|
12
|
+
- **Advanced AI Capabilities**: Powered by LangChain and LangGraph
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install intentkit
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Development
|
|
21
|
+
|
|
22
|
+
To build the package locally:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Build both source and wheel distributions
|
|
26
|
+
uv build
|
|
27
|
+
|
|
28
|
+
# Build only wheel
|
|
29
|
+
uv build --wheel
|
|
30
|
+
|
|
31
|
+
# Build only source distribution
|
|
32
|
+
uv build --sdist
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
To publish to PyPI:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Build and publish to PyPI
|
|
39
|
+
uv build
|
|
40
|
+
uv publish
|
|
41
|
+
|
|
42
|
+
# Publish to Test PyPI
|
|
43
|
+
uv publish --publish-url https://test.pypi.org/legacy/
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> **Note**: This package uses `hatchling` as the build backend with `uv` for dependency management and publishing.
|
|
47
|
+
|
|
48
|
+
## Quick Start
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
from intentkit.core.agent import Agent
|
|
52
|
+
from intentkit.config.config import Config
|
|
53
|
+
|
|
54
|
+
# Initialize configuration
|
|
55
|
+
config = Config()
|
|
56
|
+
|
|
57
|
+
# Create an agent
|
|
58
|
+
agent = Agent(config=config)
|
|
59
|
+
|
|
60
|
+
# Your agent is ready to use!
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Skills
|
|
64
|
+
|
|
65
|
+
IntentKit comes with 30+ pre-built skills including:
|
|
66
|
+
|
|
67
|
+
- **DeFi**: Uniswap, 1inch, Enso, LiFi
|
|
68
|
+
- **Data**: DexScreener, CoinGecko, DefiLlama, CryptoCompare
|
|
69
|
+
- **Social**: Twitter, Telegram, Slack
|
|
70
|
+
- **Blockchain**: CDP, Moralis, various wallet integrations
|
|
71
|
+
- **AI**: OpenAI, Heurist, Venice AI
|
|
72
|
+
- **And many more...**
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
For detailed documentation, examples, and guides, visit our [documentation](https://github.com/crestal-network/intentkit/tree/main/docs).
|
|
77
|
+
|
|
78
|
+
## Contributing
|
|
79
|
+
|
|
80
|
+
We welcome contributions! Please see our [Contributing Guide](https://github.com/crestal-network/intentkit/blob/main/CONTRIBUTING.md) for details.
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
85
|
+
|
|
86
|
+
## Support
|
|
87
|
+
|
|
88
|
+
For support, please open an issue on our [GitHub repository](https://github.com/crestal-network/intentkit/issues).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""IntentKit - Intent-based AI Agent Platform.
|
|
2
|
+
|
|
3
|
+
A powerful platform for building AI agents with blockchain and cryptocurrency capabilities.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "0.8.24"
|
|
7
|
+
__author__ = "Ruihua"
|
|
8
|
+
__email__ = "ruihua@crestal.network"
|
|
9
|
+
|
|
10
|
+
# Core components
|
|
11
|
+
# Abstract base classes
|
|
12
|
+
from .core.engine import build_agent, create_agent, stream_agent, stream_agent_raw
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"create_agent",
|
|
16
|
+
"stream_agent",
|
|
17
|
+
"build_agent",
|
|
18
|
+
"stream_agent_raw",
|
|
19
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
|
|
3
|
+
from intentkit.models.agent import Agent
|
|
4
|
+
from intentkit.models.agent_data import AgentData, AgentQuota
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AgentStoreABC(ABC):
|
|
8
|
+
"""Abstract base class for agent data storage operations.
|
|
9
|
+
|
|
10
|
+
This class defines the interface for interacting with agent-related data,
|
|
11
|
+
including configuration, additional data, and quotas.
|
|
12
|
+
|
|
13
|
+
Attributes:
|
|
14
|
+
agent_id: ID of the agent to store/retrieve data for
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, agent_id: str) -> None:
|
|
18
|
+
"""Initialize the agent store.
|
|
19
|
+
|
|
20
|
+
Args:
|
|
21
|
+
agent_id: ID of the agent
|
|
22
|
+
"""
|
|
23
|
+
self.agent_id = agent_id
|
|
24
|
+
|
|
25
|
+
@abstractmethod
|
|
26
|
+
async def get_config(self) -> Agent | None:
|
|
27
|
+
"""Get agent configuration.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
Agent configuration if found, None otherwise
|
|
31
|
+
"""
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
@abstractmethod
|
|
35
|
+
async def get_data(self) -> AgentData | None:
|
|
36
|
+
"""Get additional agent data.
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
Agent data if found, None otherwise
|
|
40
|
+
"""
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
@abstractmethod
|
|
44
|
+
async def set_data(self, data: dict) -> None:
|
|
45
|
+
"""Update agent data.
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
data: Dictionary containing fields to update
|
|
49
|
+
"""
|
|
50
|
+
pass
|
|
51
|
+
|
|
52
|
+
@abstractmethod
|
|
53
|
+
async def get_quota(self) -> AgentQuota | None:
|
|
54
|
+
"""Get agent quota information.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
Agent quota if found, None otherwise
|
|
58
|
+
"""
|
|
59
|
+
pass
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AgentMessageInput(BaseModel):
|
|
7
|
+
"""Input message model for AI agent interactions.
|
|
8
|
+
|
|
9
|
+
This class represents the structured input that can be sent to an AI agent,
|
|
10
|
+
supporting both text-based queries and image-based inputs for multimodal
|
|
11
|
+
interactions.
|
|
12
|
+
|
|
13
|
+
Attributes:
|
|
14
|
+
text (str): The main text content of the message or query
|
|
15
|
+
images (list[str]): List of image references/URLs to be processed by the agent.
|
|
16
|
+
Empty list if no images are provided.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
text: str # required
|
|
20
|
+
"""The main text content or query to be processed by the agent"""
|
|
21
|
+
|
|
22
|
+
images: list[str] = [] # optional, defaults to empty list
|
|
23
|
+
"""List of image references or URLs for multimodal processing"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Define a type hint for the callback that takes three strings and returns a list of strings
|
|
27
|
+
AgentExecutionCallback = Callable[[str, AgentMessageInput, str], list[str]]
|
|
28
|
+
"""Callback function type for agent execution.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
aid (str): The agent ID that uniquely identifies the AI agent
|
|
32
|
+
message (AgentMessageInput): The input message containing text and optional images
|
|
33
|
+
thread_id (str): The thread ID for tracking the conversation context
|
|
34
|
+
|
|
35
|
+
Returns:
|
|
36
|
+
list[str]: A list of formatted response lines from the agent execution. Each line
|
|
37
|
+
typically contains input/output markers, agent responses, and timing information.
|
|
38
|
+
"""
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
from enum import Enum
|
|
3
|
+
from typing import Any, NotRequired
|
|
4
|
+
|
|
5
|
+
from langgraph.prebuilt.chat_agent_executor import AgentState as BaseAgentState
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
|
|
8
|
+
from intentkit.models.agent import Agent
|
|
9
|
+
from intentkit.models.chat import AuthorType
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AgentError(str, Enum):
|
|
13
|
+
"""The error types that can be raised by the agent."""
|
|
14
|
+
|
|
15
|
+
INSUFFICIENT_CREDITS = "insufficient_credits"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# We create the AgentState that we will pass around
|
|
19
|
+
# This simply involves a list of messages
|
|
20
|
+
# We want steps to return messages to append to the list
|
|
21
|
+
# So we annotate the messages attribute with operator.add
|
|
22
|
+
class AgentState(BaseAgentState):
|
|
23
|
+
"""The state of the agent."""
|
|
24
|
+
|
|
25
|
+
context: dict[str, Any]
|
|
26
|
+
error: NotRequired[AgentError]
|
|
27
|
+
__extra__: NotRequired[dict[str, Any]]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AgentContext(BaseModel):
|
|
31
|
+
agent_id: str
|
|
32
|
+
get_agent: Callable[[], Agent]
|
|
33
|
+
chat_id: str
|
|
34
|
+
user_id: str | None = None
|
|
35
|
+
app_id: str | None = None
|
|
36
|
+
entrypoint: AuthorType
|
|
37
|
+
is_private: bool
|
|
38
|
+
search: bool = False
|
|
39
|
+
thinking: bool = False
|
|
40
|
+
payer: str | None = None
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def agent(self) -> Agent:
|
|
44
|
+
return self.get_agent()
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def thread_id(self) -> str:
|
|
48
|
+
return f"{self.agent_id}-{self.chat_id}"
|