intentkit 0.8.11.dev1__py3-none-any.whl → 0.8.12__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/graph.py +4 -0
- intentkit/abstracts/skill.py +2 -140
- intentkit/clients/twitter.py +35 -28
- intentkit/core/agent.py +2 -374
- intentkit/core/asset.py +63 -16
- intentkit/core/engine.py +16 -7
- intentkit/core/scheduler.py +8 -8
- intentkit/models/agent.py +109 -94
- intentkit/models/agent_schema.json +6 -9
- intentkit/models/llm.csv +15 -12
- intentkit/models/skill.py +38 -40
- 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 +168 -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 +4 -6
- intentkit/skills/casino/deck_shuffle.py +5 -4
- intentkit/skills/casino/dice_roll.py +1 -2
- intentkit/skills/cdp/__init__.py +0 -5
- intentkit/skills/cdp/base.py +0 -4
- intentkit/skills/cdp/schema.json +1 -17
- 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 +4 -18
- intentkit/skills/cryptocompare/fetch_news.py +1 -1
- intentkit/skills/cryptocompare/fetch_price.py +1 -1
- intentkit/skills/cryptocompare/fetch_top_exchanges.py +1 -1
- intentkit/skills/cryptocompare/fetch_top_market_cap.py +1 -1
- intentkit/skills/cryptocompare/fetch_top_volume.py +1 -1
- intentkit/skills/cryptocompare/fetch_trading_signals.py +1 -1
- 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 +3 -13
- 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/networks.py +1 -6
- intentkit/skills/enso/route.py +4 -8
- intentkit/skills/enso/tokens.py +2 -12
- 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/clear.py +3 -6
- intentkit/skills/firecrawl/crawl.py +10 -9
- intentkit/skills/firecrawl/query.py +3 -1
- intentkit/skills/firecrawl/scrape.py +10 -14
- intentkit/skills/firecrawl/utils.py +39 -31
- 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 +18 -29
- intentkit/skills/twitter/follow_user.py +1 -4
- intentkit/skills/twitter/get_mentions.py +2 -8
- intentkit/skills/twitter/get_timeline.py +3 -10
- intentkit/skills/twitter/get_user_by_username.py +1 -4
- intentkit/skills/twitter/get_user_tweets.py +3 -10
- intentkit/skills/twitter/like_tweet.py +1 -4
- intentkit/skills/twitter/post_tweet.py +3 -5
- intentkit/skills/twitter/reply_tweet.py +3 -5
- intentkit/skills/twitter/retweet.py +1 -4
- intentkit/skills/twitter/search_tweets.py +3 -10
- 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 -10
- intentkit/skills/web_scraper/utils.py +38 -38
- 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.11.dev1.dist-info → intentkit-0.8.12.dist-info}/METADATA +1 -1
- {intentkit-0.8.11.dev1.dist-info → intentkit-0.8.12.dist-info}/RECORD +183 -183
- {intentkit-0.8.11.dev1.dist-info → intentkit-0.8.12.dist-info}/WHEEL +0 -0
- {intentkit-0.8.11.dev1.dist-info → intentkit-0.8.12.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,154 +1,147 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
from typing import NotRequired, Optional, TypedDict
|
|
3
|
-
|
|
4
|
-
from intentkit.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
from intentkit.skills.venice_image.
|
|
12
|
-
from intentkit.skills.venice_image.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
from intentkit.skills.venice_image.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return None
|
|
149
|
-
|
|
150
|
-
# Cache and return the newly created instance
|
|
151
|
-
_cache[name] = skill_class(
|
|
152
|
-
skill_store=store,
|
|
153
|
-
)
|
|
154
|
-
return _cache[name]
|
|
1
|
+
import logging
|
|
2
|
+
from typing import NotRequired, Optional, TypedDict
|
|
3
|
+
|
|
4
|
+
from intentkit.skills.base import (
|
|
5
|
+
SkillConfig,
|
|
6
|
+
SkillState,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
# Import the base tool and all specific model skill classes
|
|
10
|
+
from intentkit.skills.venice_image.base import VeniceImageBaseTool
|
|
11
|
+
from intentkit.skills.venice_image.image_enhance.image_enhance import ImageEnhance
|
|
12
|
+
from intentkit.skills.venice_image.image_generation.image_generation_fluently_xl import (
|
|
13
|
+
ImageGenerationFluentlyXL,
|
|
14
|
+
)
|
|
15
|
+
from intentkit.skills.venice_image.image_generation.image_generation_flux_dev import (
|
|
16
|
+
ImageGenerationFluxDev,
|
|
17
|
+
)
|
|
18
|
+
from intentkit.skills.venice_image.image_generation.image_generation_flux_dev_uncensored import (
|
|
19
|
+
ImageGenerationFluxDevUncensored,
|
|
20
|
+
)
|
|
21
|
+
from intentkit.skills.venice_image.image_generation.image_generation_lustify_sdxl import (
|
|
22
|
+
ImageGenerationLustifySDXL,
|
|
23
|
+
)
|
|
24
|
+
from intentkit.skills.venice_image.image_generation.image_generation_pony_realism import (
|
|
25
|
+
ImageGenerationPonyRealism,
|
|
26
|
+
)
|
|
27
|
+
from intentkit.skills.venice_image.image_generation.image_generation_stable_diffusion_3_5 import (
|
|
28
|
+
ImageGenerationStableDiffusion35,
|
|
29
|
+
)
|
|
30
|
+
from intentkit.skills.venice_image.image_generation.image_generation_venice_sd35 import (
|
|
31
|
+
ImageGenerationVeniceSD35,
|
|
32
|
+
)
|
|
33
|
+
from intentkit.skills.venice_image.image_upscale.image_upscale import ImageUpscale
|
|
34
|
+
from intentkit.skills.venice_image.image_vision.image_vision import ImageVision
|
|
35
|
+
|
|
36
|
+
# Cache skills at the system level, because they are stateless and only depend on the store
|
|
37
|
+
_cache: dict[str, VeniceImageBaseTool] = {}
|
|
38
|
+
|
|
39
|
+
logger = logging.getLogger(__name__)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# Define the expected structure for the 'states' dictionary in the config
|
|
43
|
+
class SkillStates(TypedDict):
|
|
44
|
+
image_upscale: SkillState
|
|
45
|
+
image_enhance: SkillState
|
|
46
|
+
image_vision: SkillState
|
|
47
|
+
image_generation_flux_dev: SkillState
|
|
48
|
+
image_generation_flux_dev_uncensored: SkillState
|
|
49
|
+
image_generation_venice_sd35: SkillState
|
|
50
|
+
image_generation_fluently_xl: SkillState
|
|
51
|
+
image_generation_lustify_sdxl: SkillState
|
|
52
|
+
image_generation_pony_realism: SkillState
|
|
53
|
+
image_generation_stable_diffusion_3_5: SkillState
|
|
54
|
+
# Add new skill names here if more models are added
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Define the overall configuration structure for the venice_image category
|
|
58
|
+
class Config(SkillConfig):
|
|
59
|
+
"""Configuration for Venice Image skills."""
|
|
60
|
+
|
|
61
|
+
enabled: bool # Keep standard enabled flag
|
|
62
|
+
states: SkillStates
|
|
63
|
+
api_key_provider: str = "agent_owner"
|
|
64
|
+
api_key: NotRequired[Optional[str]] # Explicitly Optional
|
|
65
|
+
safe_mode: NotRequired[bool] # Defaults handled in base or usage
|
|
66
|
+
hide_watermark: NotRequired[bool] # Defaults handled in base or usage
|
|
67
|
+
negative_prompt: NotRequired[str] # Defaults handled in base or usage
|
|
68
|
+
rate_limit_number: NotRequired[Optional[int]] # Explicitly Optional
|
|
69
|
+
rate_limit_minutes: NotRequired[Optional[int]] # Explicitly Optional
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
_SKILL_NAME_TO_CLASS_MAP: dict[str, type[VeniceImageBaseTool]] = {
|
|
73
|
+
"image_upscale": ImageUpscale,
|
|
74
|
+
"image_enhance": ImageEnhance,
|
|
75
|
+
"image_vision": ImageVision,
|
|
76
|
+
"image_generation_flux_dev": ImageGenerationFluxDev,
|
|
77
|
+
"image_generation_flux_dev_uncensored": ImageGenerationFluxDevUncensored,
|
|
78
|
+
"image_generation_venice_sd35": ImageGenerationVeniceSD35,
|
|
79
|
+
"image_generation_fluently_xl": ImageGenerationFluentlyXL,
|
|
80
|
+
"image_generation_lustify_sdxl": ImageGenerationLustifySDXL,
|
|
81
|
+
"image_generation_pony_realism": ImageGenerationPonyRealism,
|
|
82
|
+
"image_generation_stable_diffusion_3_5": ImageGenerationStableDiffusion35,
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
async def get_skills(
|
|
87
|
+
config: "Config",
|
|
88
|
+
is_private: bool,
|
|
89
|
+
**_, # Allow for extra arguments if the loader passes them
|
|
90
|
+
) -> list[VeniceImageBaseTool]:
|
|
91
|
+
"""Get all enabled Venice Image skills based on configuration and privacy level.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
config: The configuration for Venice Image skills.
|
|
95
|
+
is_private: Whether the context is private (e.g., agent owner).
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
A list of instantiated and enabled Venice Image skill objects.
|
|
99
|
+
"""
|
|
100
|
+
# Check if the entire category is disabled first
|
|
101
|
+
if not config.get("enabled", False):
|
|
102
|
+
return []
|
|
103
|
+
|
|
104
|
+
available_skills: list[VeniceImageBaseTool] = []
|
|
105
|
+
|
|
106
|
+
# Include skills based on their state
|
|
107
|
+
for skill_name, state in config["states"].items():
|
|
108
|
+
if state == "disabled":
|
|
109
|
+
continue
|
|
110
|
+
elif state == "public" or (state == "private" and is_private):
|
|
111
|
+
available_skills.append(skill_name)
|
|
112
|
+
|
|
113
|
+
# Get each skill using the cached getter
|
|
114
|
+
result = []
|
|
115
|
+
for name in available_skills:
|
|
116
|
+
skill = get_venice_image_skill(name, config)
|
|
117
|
+
if skill:
|
|
118
|
+
result.append(skill)
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def get_venice_image_skill(
|
|
123
|
+
name: str,
|
|
124
|
+
config: "Config",
|
|
125
|
+
) -> Optional[VeniceImageBaseTool]:
|
|
126
|
+
"""
|
|
127
|
+
Factory function to get a cached Venice Image skill instance by name.
|
|
128
|
+
|
|
129
|
+
Args:
|
|
130
|
+
name: The name of the skill to get (must match keys in _SKILL_NAME_TO_CLASS_MAP).
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
The requested Venice Image skill instance, or None if the name is unknown.
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
# Return from cache immediately if already exists
|
|
137
|
+
if name in _cache:
|
|
138
|
+
return _cache[name]
|
|
139
|
+
|
|
140
|
+
skill_class = _SKILL_NAME_TO_CLASS_MAP.get(name)
|
|
141
|
+
if not skill_class:
|
|
142
|
+
logger.warning(f"Unknown Venice skill: {name}")
|
|
143
|
+
return None
|
|
144
|
+
|
|
145
|
+
# Cache and return the newly created instance
|
|
146
|
+
_cache[name] = skill_class()
|
|
147
|
+
return _cache[name]
|