intentkit 0.6.0.dev9__py3-none-any.whl → 0.6.0.dev10__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 +4 -17
- intentkit/config/config.py +5 -3
- {intentkit-0.6.0.dev9.dist-info → intentkit-0.6.0.dev10.dist-info}/METADATA +1 -1
- {intentkit-0.6.0.dev9.dist-info → intentkit-0.6.0.dev10.dist-info}/RECORD +7 -7
- {intentkit-0.6.0.dev9.dist-info → intentkit-0.6.0.dev10.dist-info}/WHEEL +0 -0
- {intentkit-0.6.0.dev9.dist-info → intentkit-0.6.0.dev10.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/clients/cdp.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import logging
|
|
3
|
-
import os
|
|
4
3
|
from typing import Dict, Optional
|
|
5
4
|
|
|
6
5
|
from cdp import EvmServerAccount
|
|
@@ -32,22 +31,10 @@ class CdpClient:
|
|
|
32
31
|
|
|
33
32
|
logger = logging.getLogger(__name__)
|
|
34
33
|
|
|
35
|
-
#
|
|
36
|
-
api_key_id = (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
or os.getenv("CDP_API_KEY_NAME")
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
api_key_secret = (
|
|
43
|
-
self._skill_store.get_system_config("cdp_api_key_private_key")
|
|
44
|
-
or os.getenv("CDP_API_KEY_SECRET")
|
|
45
|
-
or os.getenv("CDP_API_KEY_PRIVATE_KEY")
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
wallet_secret = self._skill_store.get_system_config(
|
|
49
|
-
"cdp_wallet_secret"
|
|
50
|
-
) or os.getenv("CDP_WALLET_SECRET")
|
|
34
|
+
# Get credentials from skill store system config
|
|
35
|
+
api_key_id = self._skill_store.get_system_config("cdp_api_key_id")
|
|
36
|
+
api_key_secret = self._skill_store.get_system_config("cdp_api_key_secret")
|
|
37
|
+
wallet_secret = self._skill_store.get_system_config("cdp_wallet_secret")
|
|
51
38
|
|
|
52
39
|
address = None
|
|
53
40
|
|
intentkit/config/config.py
CHANGED
|
@@ -83,9 +83,10 @@ class Config:
|
|
|
83
83
|
self.payment_enabled = self.load("PAYMENT_ENABLED", "false") == "true"
|
|
84
84
|
# Open API for agent
|
|
85
85
|
self.open_api_base_url = self.load("OPEN_API_BASE_URL", "http://localhost:8000")
|
|
86
|
-
# CDP
|
|
87
|
-
self.
|
|
88
|
-
self.
|
|
86
|
+
# CDP - AgentKit 0.6.0 Configuration
|
|
87
|
+
self.cdp_api_key_id = self.load("CDP_API_KEY_ID")
|
|
88
|
+
self.cdp_api_key_secret = self.load("CDP_API_KEY_SECRET")
|
|
89
|
+
self.cdp_wallet_secret = self.load("CDP_WALLET_SECRET")
|
|
89
90
|
# LLM providers
|
|
90
91
|
self.openai_api_key = self.load("OPENAI_API_KEY")
|
|
91
92
|
self.deepseek_api_key = self.load("DEEPSEEK_API_KEY")
|
|
@@ -149,6 +150,7 @@ class Config:
|
|
|
149
150
|
# Now we know the env, set up logging
|
|
150
151
|
setup_logging(self.env, self.debug)
|
|
151
152
|
logger.info("config loaded")
|
|
153
|
+
|
|
152
154
|
# If the slack alert token exists, init it
|
|
153
155
|
if self.slack_alert_token and self.slack_alert_channel:
|
|
154
156
|
init_slack(self.slack_alert_token, self.slack_alert_channel)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.6.0.
|
|
3
|
+
Version: 0.6.0.dev10
|
|
4
4
|
Summary: Intent-based AI Agent Platform - Core Package
|
|
5
5
|
Project-URL: Homepage, https://github.com/crestal-network/intentkit
|
|
6
6
|
Project-URL: Repository, https://github.com/crestal-network/intentkit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
intentkit/__init__.py,sha256=
|
|
1
|
+
intentkit/__init__.py,sha256=hVXEIAWwM8EyA7aMfYIABoEDHghZn1drhkUJAPoGfz0,385
|
|
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
|
|
@@ -8,10 +8,10 @@ intentkit/abstracts/graph.py,sha256=QhaVLtKyo9iTotIWhjgUi7BbmRCcb8yrHCTSq4Hsvnw,
|
|
|
8
8
|
intentkit/abstracts/skill.py,sha256=f3DbeJzXjveATgd7tb3Ig0vYKl-bob3pzB_7MXeQmQA,3266
|
|
9
9
|
intentkit/abstracts/twitter.py,sha256=cEtP7ygR_b-pHdc9i8kBuyooz1cPoGUGwsBHDpowJyY,1262
|
|
10
10
|
intentkit/clients/__init__.py,sha256=sQ_6_bRC2MPWLPH-skQ3qsEe8ce-dUGL7i8VJOautHg,298
|
|
11
|
-
intentkit/clients/cdp.py,sha256=
|
|
11
|
+
intentkit/clients/cdp.py,sha256=9iK5t-zSITIWS-bdv1ymF-86FeblAh9QI9GjNP2Mg5Y,3783
|
|
12
12
|
intentkit/clients/twitter.py,sha256=JAc-skIhZZjAFcwzLSTiOPOonteGjrl_JwXoA8IVBmI,16934
|
|
13
13
|
intentkit/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
intentkit/config/config.py,sha256=
|
|
14
|
+
intentkit/config/config.py,sha256=SYt23xyXhW3ieOo0m7TUxVqKM3EjSgqTkeMD7JC3MIc,7202
|
|
15
15
|
intentkit/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
intentkit/core/agent.py,sha256=PTHsFV_EbsfPUcTI0ErkebWurjxVykP9ISbNUsqV44Q,7764
|
|
17
17
|
intentkit/core/api.py,sha256=3GIMJpwduLUSbVPNW6mQVxZncYHH3OlLwdiqFtYtEAE,1208
|
|
@@ -362,7 +362,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
|
|
|
362
362
|
intentkit/utils/s3.py,sha256=9trQNkKQ5VgxWsewVsV8Y0q_pXzGRvsCYP8xauyUYkg,8549
|
|
363
363
|
intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
|
|
364
364
|
intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
|
|
365
|
-
intentkit-0.6.0.
|
|
366
|
-
intentkit-0.6.0.
|
|
367
|
-
intentkit-0.6.0.
|
|
368
|
-
intentkit-0.6.0.
|
|
365
|
+
intentkit-0.6.0.dev10.dist-info/METADATA,sha256=bp3idF5YQkVqFUYJgl7Kgcw5s9O8IrrxqbeC56UnHWg,7286
|
|
366
|
+
intentkit-0.6.0.dev10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
367
|
+
intentkit-0.6.0.dev10.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
368
|
+
intentkit-0.6.0.dev10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|