intentkit 0.8.9.dev1__py3-none-any.whl → 0.8.9.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/core/prompt.py +20 -2
- {intentkit-0.8.9.dev1.dist-info → intentkit-0.8.9.dev3.dist-info}/METADATA +1 -1
- {intentkit-0.8.9.dev1.dist-info → intentkit-0.8.9.dev3.dist-info}/RECORD +6 -6
- {intentkit-0.8.9.dev1.dist-info → intentkit-0.8.9.dev3.dist-info}/WHEEL +0 -0
- {intentkit-0.8.9.dev1.dist-info → intentkit-0.8.9.dev3.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/core/prompt.py
CHANGED
|
@@ -111,13 +111,31 @@ def _build_wallet_section(agent: Agent, agent_data: AgentData) -> str:
|
|
|
111
111
|
|
|
112
112
|
if agent_data.evm_wallet_address and network_id != "solana":
|
|
113
113
|
wallet_parts.append(
|
|
114
|
-
f"Your wallet address
|
|
114
|
+
f"Your EVM wallet address is {agent_data.evm_wallet_address}."
|
|
115
|
+
f"You are now in {network_id} network."
|
|
115
116
|
)
|
|
116
117
|
if agent_data.solana_wallet_address and network_id == "solana":
|
|
117
118
|
wallet_parts.append(
|
|
118
|
-
f"Your wallet address
|
|
119
|
+
f"Your Solana wallet address is {agent_data.solana_wallet_address}."
|
|
120
|
+
f"You are now in {network_id} network."
|
|
119
121
|
)
|
|
120
122
|
|
|
123
|
+
# Add CDP skills prompt if CDP skills are enabled
|
|
124
|
+
if agent.skills and "cdp" in agent.skills:
|
|
125
|
+
cdp_config = agent.skills["cdp"]
|
|
126
|
+
if cdp_config and cdp_config.get("enabled") is True:
|
|
127
|
+
# Check if any CDP skills are in public or private state (not disabled)
|
|
128
|
+
states = cdp_config.get("states", {})
|
|
129
|
+
has_enabled_cdp_skills = any(
|
|
130
|
+
state in ["public", "private"] for state in states.values()
|
|
131
|
+
)
|
|
132
|
+
if has_enabled_cdp_skills:
|
|
133
|
+
wallet_parts.append(
|
|
134
|
+
"Before any token-related operations, use the `token_search` skill to query the token's address and confirm with the user. "
|
|
135
|
+
"If the `token_search` skill is not found, remind the user to enable it. "
|
|
136
|
+
"Do not perform any transfers, swaps, or other transactions without checking and confirming the token address."
|
|
137
|
+
)
|
|
138
|
+
|
|
121
139
|
return "\n".join(wallet_parts) + ("\n" if wallet_parts else "")
|
|
122
140
|
|
|
123
141
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.8.9.
|
|
3
|
+
Version: 0.8.9.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=N0o0PVo9BQs-ZYnvP8AawBshCNb0_JgXhYUcRTmJpKk,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
|
|
@@ -21,7 +21,7 @@ intentkit/core/client.py,sha256=J5K7f08-ucszBKAbn9K3QNOFKIC__7amTbKYii1jFkI,3056
|
|
|
21
21
|
intentkit/core/credit.py,sha256=b4f4T6G6eeBTMe0L_r8awWtXgUnqiog4IUaymDPYym0,75587
|
|
22
22
|
intentkit/core/engine.py,sha256=cpJfAtq9v_I49OJdnvu1QyOF-oW2V8NPqIpO1j00TlM,38677
|
|
23
23
|
intentkit/core/node.py,sha256=-QVgmQuMnrzo6cF-4AECOIVT3R4gCnWfQ1EjTm2Sz1g,8791
|
|
24
|
-
intentkit/core/prompt.py,sha256=
|
|
24
|
+
intentkit/core/prompt.py,sha256=MX4qu2W2Ou7LG0attm6JwlW9c8tD_cY11ZeDl9sx0Vk,17114
|
|
25
25
|
intentkit/core/scheduler.py,sha256=De84aTHYoIH18YPooB_GckHts5oGFZg-XQZQcqFvlXc,2842
|
|
26
26
|
intentkit/core/statistics.py,sha256=-IZmxIBzyzZuai7QyfPEY1tx8Q8ydmmcm6eqbSSy_6o,6366
|
|
27
27
|
intentkit/models/agent.py,sha256=TjAnpefyWAv3BVqQUTrp5Kl4Q7mhUqYGHtSRiUPJyKU,69083
|
|
@@ -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.9.
|
|
455
|
-
intentkit-0.8.9.
|
|
456
|
-
intentkit-0.8.9.
|
|
457
|
-
intentkit-0.8.9.
|
|
454
|
+
intentkit-0.8.9.dev3.dist-info/METADATA,sha256=-ixy_hu4b76Iriplk5B2RB9UY0le3J5ybcFSJ00sY6o,6315
|
|
455
|
+
intentkit-0.8.9.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
456
|
+
intentkit-0.8.9.dev3.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
457
|
+
intentkit-0.8.9.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|