intentkit 0.8.4.dev1__py3-none-any.whl → 0.8.4.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/clients/cdp.py +9 -1
- intentkit/core/agent.py +0 -7
- intentkit/core/engine.py +2 -2
- intentkit/core/node.py +1 -3
- intentkit/skills/cookiefun/schema.json +2 -2
- intentkit/skills/twitter/schema.json +3 -2
- {intentkit-0.8.4.dev1.dist-info → intentkit-0.8.4.dev3.dist-info}/METADATA +1 -1
- {intentkit-0.8.4.dev1.dist-info → intentkit-0.8.4.dev3.dist-info}/RECORD +11 -11
- {intentkit-0.8.4.dev1.dist-info → intentkit-0.8.4.dev3.dist-info}/WHEEL +0 -0
- {intentkit-0.8.4.dev1.dist-info → intentkit-0.8.4.dev3.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/clients/cdp.py
CHANGED
|
@@ -13,8 +13,9 @@ from eth_keys.datatypes import PrivateKey
|
|
|
13
13
|
from eth_utils import to_checksum_address
|
|
14
14
|
|
|
15
15
|
from intentkit.config.config import config
|
|
16
|
-
from intentkit.models.agent import Agent # noqa: E402
|
|
16
|
+
from intentkit.models.agent import Agent, AgentTable # noqa: E402
|
|
17
17
|
from intentkit.models.agent_data import AgentData
|
|
18
|
+
from intentkit.models.db import get_session
|
|
18
19
|
from intentkit.utils.error import IntentKitAPIError # noqa: E402
|
|
19
20
|
|
|
20
21
|
_wallet_providers: Dict[str, Tuple[str, str, CdpEvmWalletProvider]] = {}
|
|
@@ -144,6 +145,13 @@ async def get_wallet_provider(agent: Agent) -> CdpEvmWalletProvider:
|
|
|
144
145
|
|
|
145
146
|
agent_data.evm_wallet_address = address
|
|
146
147
|
await agent_data.save()
|
|
148
|
+
# Update agent slug with evm_wallet_address if slug is null or empty
|
|
149
|
+
if not agent.slug:
|
|
150
|
+
async with get_session() as db:
|
|
151
|
+
db_agent = await db.get(AgentTable, agent.id)
|
|
152
|
+
if db_agent:
|
|
153
|
+
db_agent.slug = agent_data.evm_wallet_address
|
|
154
|
+
await db.commit()
|
|
147
155
|
|
|
148
156
|
wallet_provider_config = CdpEvmWalletProviderConfig(
|
|
149
157
|
api_key_id=api_key_id,
|
intentkit/core/agent.py
CHANGED
|
@@ -83,13 +83,6 @@ async def process_agent_wallet(
|
|
|
83
83
|
if config.cdp_api_key_id and current_wallet_provider == "cdp":
|
|
84
84
|
await get_wallet_provider(agent)
|
|
85
85
|
agent_data = await AgentData.get(agent.id)
|
|
86
|
-
# Update agent slug with evm_wallet_address if slug is null or empty
|
|
87
|
-
if not agent.slug:
|
|
88
|
-
async with get_session() as db:
|
|
89
|
-
db_agent = await db.get(AgentTable, agent.id)
|
|
90
|
-
if db_agent:
|
|
91
|
-
db_agent.slug = agent_data.evm_wallet_address
|
|
92
|
-
await db.commit()
|
|
93
86
|
elif current_wallet_provider == "readonly":
|
|
94
87
|
agent_data = await AgentData.patch(
|
|
95
88
|
agent.id,
|
intentkit/core/engine.py
CHANGED
|
@@ -156,7 +156,7 @@ async def build_agent(agent: Agent, agent_data: AgentData) -> CompiledStateGraph
|
|
|
156
156
|
return llm.bind_tools(private_tools)
|
|
157
157
|
return llm.bind_tools(tools)
|
|
158
158
|
|
|
159
|
-
for tool in
|
|
159
|
+
for tool in private_tools:
|
|
160
160
|
logger.info(
|
|
161
161
|
f"[{agent.id}] loaded tool: {tool.name if isinstance(tool, BaseTool) else tool}"
|
|
162
162
|
)
|
|
@@ -174,7 +174,7 @@ async def build_agent(agent: Agent, agent_data: AgentData) -> CompiledStateGraph
|
|
|
174
174
|
# Create ReAct Agent using the LLM and CDP Agentkit tools.
|
|
175
175
|
executor = create_react_agent(
|
|
176
176
|
model=select_model,
|
|
177
|
-
tools=
|
|
177
|
+
tools=private_tools,
|
|
178
178
|
prompt=formatted_prompt,
|
|
179
179
|
pre_model_hook=pre_model_hook,
|
|
180
180
|
post_model_hook=post_model_node if config.payment_enabled else None,
|
intentkit/core/node.py
CHANGED
|
@@ -24,7 +24,6 @@ from langmem.short_term.summarization import (
|
|
|
24
24
|
|
|
25
25
|
from intentkit.abstracts.graph import AgentContext, AgentError, AgentState
|
|
26
26
|
from intentkit.core.credit import skill_cost
|
|
27
|
-
from intentkit.models.agent import Agent
|
|
28
27
|
from intentkit.models.credit import CreditAccount, OwnerType
|
|
29
28
|
from intentkit.models.skill import Skill
|
|
30
29
|
|
|
@@ -191,8 +190,7 @@ class PostModelNode(RunnableCallable):
|
|
|
191
190
|
return state_update
|
|
192
191
|
logger.debug(f"last: {messages[-1]}")
|
|
193
192
|
msg = messages[-1]
|
|
194
|
-
|
|
195
|
-
agent = await Agent.get(agent_id)
|
|
193
|
+
agent = context.agent
|
|
196
194
|
account = await CreditAccount.get_or_create(OwnerType.USER, payer)
|
|
197
195
|
if hasattr(msg, "tool_calls") and msg.tool_calls:
|
|
198
196
|
for tool_call in msg.tool_calls:
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"x-icon": "https://ai.service.crestal.dev/skills/cookiefun/cookiefun.png",
|
|
7
7
|
"x-tags": [
|
|
8
8
|
"Analytics",
|
|
9
|
-
"
|
|
9
|
+
"Social"
|
|
10
10
|
],
|
|
11
11
|
"x-nft-requirement": 10,
|
|
12
12
|
"properties": {
|
|
@@ -150,4 +150,4 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"additionalProperties": true
|
|
153
|
-
}
|
|
153
|
+
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"description": "Integration with X API enabling social media interactions including retrieving posts, mentions, user information, and posting content with media support",
|
|
6
6
|
"x-icon": "https://ai.service.crestal.dev/skills/twitter/twitter.png",
|
|
7
7
|
"x-tags": [
|
|
8
|
-
"Communication"
|
|
8
|
+
"Communication",
|
|
9
|
+
"Social"
|
|
9
10
|
],
|
|
10
11
|
"properties": {
|
|
11
12
|
"enabled": {
|
|
@@ -255,4 +256,4 @@
|
|
|
255
256
|
}
|
|
256
257
|
},
|
|
257
258
|
"additionalProperties": true
|
|
258
|
-
}
|
|
259
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.8.4.
|
|
3
|
+
Version: 0.8.4.dev3
|
|
4
4
|
Summary: Intent-based AI Agent Platform - Core Package
|
|
5
5
|
Project-URL: Homepage, https://github.com/crestalnetwork/intentkit
|
|
6
6
|
Project-URL: Repository, https://github.com/crestalnetwork/intentkit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
intentkit/__init__.py,sha256=
|
|
1
|
+
intentkit/__init__.py,sha256=xiNnxquB8oqfDflpIYrUyU3FQLLHGdw31hVDZRnKxCI,383
|
|
2
2
|
intentkit/abstracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
intentkit/abstracts/agent.py,sha256=108gb5W8Q1Sy4G55F2_ZFv2-_CnY76qrBtpIr0Oxxqk,1489
|
|
4
4
|
intentkit/abstracts/api.py,sha256=ZUc24vaQvQVbbjznx7bV0lbbQxdQPfEV8ZxM2R6wZWo,166
|
|
@@ -7,20 +7,20 @@ intentkit/abstracts/graph.py,sha256=fTkAHb4nf95Klg_yYEv1pliw3aVhGgNLiZPlz3Hl11c,
|
|
|
7
7
|
intentkit/abstracts/skill.py,sha256=cIJ6BkASD31U1IEkE8rdAawq99w_xsg0lt3oalqa1ZA,5071
|
|
8
8
|
intentkit/abstracts/twitter.py,sha256=cEtP7ygR_b-pHdc9i8kBuyooz1cPoGUGwsBHDpowJyY,1262
|
|
9
9
|
intentkit/clients/__init__.py,sha256=YmXSif963E5rUfkfHaI6JdWRFU5yNa_yJwafs2KEIVo,406
|
|
10
|
-
intentkit/clients/cdp.py,sha256=
|
|
10
|
+
intentkit/clients/cdp.py,sha256=A-cczpek9iPw6dDxKub_BOjCAtpIbUP_MYYP06fYW90,5791
|
|
11
11
|
intentkit/clients/twitter.py,sha256=2g2XGbTISGOcQYk5K7J5BzPdwqCfhts9YZmGhJAeOLY,20094
|
|
12
12
|
intentkit/clients/web3.py,sha256=iFjjingL9Aqh3kwUUKN8Tw5N66o2SE_bfo6OhqI-6SU,890
|
|
13
13
|
intentkit/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
intentkit/config/config.py,sha256=kw9F-uLsJd-knCKmYNb-hqR7x7HUXUkNg5FZCgOPH54,8868
|
|
15
15
|
intentkit/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
intentkit/core/agent.py,sha256=
|
|
16
|
+
intentkit/core/agent.py,sha256=GLdd9Rh6aTdiU514R_aze7zuq4PgnDO7SDlwUAQrMyA,38016
|
|
17
17
|
intentkit/core/api.py,sha256=WfoaHNquujYJIpNPuTR1dSaaxog0S3X2W4lG9Ehmkm4,3284
|
|
18
18
|
intentkit/core/asset.py,sha256=9hkIgi-QRmr4FQddloEcQ5xdZlnHGFcxekNhss_gHOY,7339
|
|
19
19
|
intentkit/core/chat.py,sha256=YN20CnDazWLjiOZFOHgV6uHmA2DKkvPCsD5Q5sfNcZg,1685
|
|
20
20
|
intentkit/core/client.py,sha256=J5K7f08-ucszBKAbn9K3QNOFKIC__7amTbKYii1jFkI,3056
|
|
21
21
|
intentkit/core/credit.py,sha256=b4f4T6G6eeBTMe0L_r8awWtXgUnqiog4IUaymDPYym0,75587
|
|
22
|
-
intentkit/core/engine.py,sha256=
|
|
23
|
-
intentkit/core/node.py,sha256
|
|
22
|
+
intentkit/core/engine.py,sha256=CCAo-N3PYxYw13xhiovEqoVWZWbMYdQX3bSaOZ68Ni8,38409
|
|
23
|
+
intentkit/core/node.py,sha256=-QVgmQuMnrzo6cF-4AECOIVT3R4gCnWfQ1EjTm2Sz1g,8791
|
|
24
24
|
intentkit/core/prompt.py,sha256=idNx1ono4Maz2i6IBKfaKOBBbEQiWbaSxr2Eb1vZTI4,15482
|
|
25
25
|
intentkit/core/scheduler.py,sha256=De84aTHYoIH18YPooB_GckHts5oGFZg-XQZQcqFvlXc,2842
|
|
26
26
|
intentkit/core/statistics.py,sha256=-IZmxIBzyzZuai7QyfPEY1tx8Q8ydmmcm6eqbSSy_6o,6366
|
|
@@ -106,7 +106,7 @@ intentkit/skills/cookiefun/get_account_details.py,sha256=kDeg-_oWmyVg3GVXo0Q2eiW
|
|
|
106
106
|
intentkit/skills/cookiefun/get_account_feed.py,sha256=1oVahOiLM9lZxHzZBS3UFRkPQzUnqrdXAL_OFyXIi0I,10835
|
|
107
107
|
intentkit/skills/cookiefun/get_account_smart_followers.py,sha256=dOuUcb9piyCBz8SAlMA9Fw_1oCcuNekdBSfA2yWOHm0,7683
|
|
108
108
|
intentkit/skills/cookiefun/get_sectors.py,sha256=YF3CFjiiQ2xtXRzYPGUoqTcRjNgNX9lSezgmRu2h7G0,5417
|
|
109
|
-
intentkit/skills/cookiefun/schema.json,sha256=
|
|
109
|
+
intentkit/skills/cookiefun/schema.json,sha256=jleyFSy8hzgLWI0fzxMbY-5ehyjCrGhkUPYX1RdP4V8,4514
|
|
110
110
|
intentkit/skills/cookiefun/search_accounts.py,sha256=3tlSSPNlL7DVkuEPr30cvceY99nPEarhTSA5aK3iHic,8722
|
|
111
111
|
intentkit/skills/cryptocompare/__init__.py,sha256=xAsUcZjqNKvKSe5EXe_7DnDaVnm7ykbBXKwI1JlgoCU,3852
|
|
112
112
|
intentkit/skills/cryptocompare/api.py,sha256=6WcnqhxElHaLJXCCNjNBPKS6Fdivpgfg3d8U4Thuk2E,5650
|
|
@@ -370,7 +370,7 @@ intentkit/skills/twitter/like_tweet.py,sha256=KWX4rh1s_Y9gx_JMCKt3ew7HsIQhRlVyPD
|
|
|
370
370
|
intentkit/skills/twitter/post_tweet.py,sha256=UocAXACT5lm_VKI0Xn1Ok6qpOw4AvgMjj2dooD6cTUw,3712
|
|
371
371
|
intentkit/skills/twitter/reply_tweet.py,sha256=TCnI9tW97L35S1c7SddzYxsUI0G8l03w7HkgX0EtmTI,3954
|
|
372
372
|
intentkit/skills/twitter/retweet.py,sha256=vyQgFutLrLqjo43YDZrEW-uKsZMZ6gTrPf0MHCXttnU,2417
|
|
373
|
-
intentkit/skills/twitter/schema.json,sha256=
|
|
373
|
+
intentkit/skills/twitter/schema.json,sha256=c3bL6rHTnPTwWxJ7kBjlvl6UR1z4tewW9MWu7AbmJVA,6998
|
|
374
374
|
intentkit/skills/twitter/search_tweets.py,sha256=oR-dF3oIPDGjZKy1LN6ifG7GqJ9Ef5YYSuYlBalE9hY,3998
|
|
375
375
|
intentkit/skills/twitter/twitter.png,sha256=MggF-4UC40K2mf1K0hqsIFzCmw-n_2yMSH50MjxvZso,23879
|
|
376
376
|
intentkit/skills/unrealspeech/__init__.py,sha256=1A8084j67jltD4njAsCJVTP7IsPYxTghz2IbtuNS4O8,1588
|
|
@@ -451,7 +451,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
|
|
|
451
451
|
intentkit/utils/s3.py,sha256=A8Nsx5QJyLsxhj9g7oHNy2-m24tjQUhC9URm8Qb1jFw,10057
|
|
452
452
|
intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
|
|
453
453
|
intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
|
|
454
|
-
intentkit-0.8.4.
|
|
455
|
-
intentkit-0.8.4.
|
|
456
|
-
intentkit-0.8.4.
|
|
457
|
-
intentkit-0.8.4.
|
|
454
|
+
intentkit-0.8.4.dev3.dist-info/METADATA,sha256=jdW9tQ_GYeOoVxWq2Y54qX-l0q0PgFbLw_oHfm4Ppxc,6315
|
|
455
|
+
intentkit-0.8.4.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
456
|
+
intentkit-0.8.4.dev3.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
457
|
+
intentkit-0.8.4.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|