intentkit 0.7.5.dev25__py3-none-any.whl → 0.7.5.dev26__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.
- intentkit/__init__.py +1 -1
- intentkit/models/redis.py +4 -1
- {intentkit-0.7.5.dev25.dist-info → intentkit-0.7.5.dev26.dist-info}/METADATA +1 -1
- {intentkit-0.7.5.dev25.dist-info → intentkit-0.7.5.dev26.dist-info}/RECORD +6 -6
- {intentkit-0.7.5.dev25.dist-info → intentkit-0.7.5.dev26.dist-info}/WHEEL +0 -0
- {intentkit-0.7.5.dev25.dist-info → intentkit-0.7.5.dev26.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/models/redis.py
CHANGED
|
@@ -74,6 +74,9 @@ def get_redis() -> Redis:
|
|
|
74
74
|
return _redis_client
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
DEFAULT_HEARTBEAT_TTL = 16 * 60
|
|
78
|
+
|
|
79
|
+
|
|
77
80
|
async def send_heartbeat(redis_client: Redis, name: str) -> None:
|
|
78
81
|
"""Set a heartbeat key in Redis that expires after 16 minutes.
|
|
79
82
|
|
|
@@ -83,7 +86,7 @@ async def send_heartbeat(redis_client: Redis, name: str) -> None:
|
|
|
83
86
|
"""
|
|
84
87
|
try:
|
|
85
88
|
key = f"intentkit:heartbeat:{name}"
|
|
86
|
-
await redis_client.set(key, 1, ex=
|
|
89
|
+
await redis_client.set(key, 1, ex=DEFAULT_HEARTBEAT_TTL)
|
|
87
90
|
except Exception as e:
|
|
88
91
|
logger.error(f"Failed to send heartbeat for {name}: {e}")
|
|
89
92
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.7.5.
|
|
3
|
+
Version: 0.7.5.dev26
|
|
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=4rN9u7UCNJjYV4LQCR8urA6S1ezNFBSDgvOl-nbSg-A,384
|
|
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
|
|
@@ -35,7 +35,7 @@ intentkit/models/db_mig.py,sha256=vT6Tanm-BHC2T7dTztuB1UG494EFBAlHADKsNzR6xaQ,35
|
|
|
35
35
|
intentkit/models/generator.py,sha256=lyZu9U9rZUGkqd_QT5SAhay9DY358JJY8EhDSpN8I1M,10298
|
|
36
36
|
intentkit/models/llm.csv,sha256=R298CcmK-pcD8-2Q8xPgaymu6Gqc50yBFtBjRQI4aXM,3403
|
|
37
37
|
intentkit/models/llm.py,sha256=ZnM6qpk9ouTqFysQzzg8TcAfxXASD-H9f1eHsmVjYv8,22186
|
|
38
|
-
intentkit/models/redis.py,sha256=
|
|
38
|
+
intentkit/models/redis.py,sha256=Vqb9pjeMQ85Az5GvUbqCsQ5stBpFg3n85p94TB40xEw,3727
|
|
39
39
|
intentkit/models/skill.py,sha256=n9d1VKWxACe852wMOUC5P7Ps1EUMzIDAYT62Vfs8pQU,20826
|
|
40
40
|
intentkit/models/skills.csv,sha256=lvQg_1byPvJaHToQbEqRZarfYDuXpP4EXeVJVMc8aDs,19132
|
|
41
41
|
intentkit/models/user.py,sha256=r2UWpuBJbS6bbfS-fz_rAtOTHL3zodRt1rccA7HhAQM,9902
|
|
@@ -450,7 +450,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
|
|
|
450
450
|
intentkit/utils/s3.py,sha256=A8Nsx5QJyLsxhj9g7oHNy2-m24tjQUhC9URm8Qb1jFw,10057
|
|
451
451
|
intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
|
|
452
452
|
intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
|
|
453
|
-
intentkit-0.7.5.
|
|
454
|
-
intentkit-0.7.5.
|
|
455
|
-
intentkit-0.7.5.
|
|
456
|
-
intentkit-0.7.5.
|
|
453
|
+
intentkit-0.7.5.dev26.dist-info/METADATA,sha256=Jq7PY9gUq6oZwLYs5QzItmy3Jeqj9rJEgRmgWxlriBA,6360
|
|
454
|
+
intentkit-0.7.5.dev26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
455
|
+
intentkit-0.7.5.dev26.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
456
|
+
intentkit-0.7.5.dev26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|