intentkit 0.7.5.dev5__py3-none-any.whl → 0.7.5.dev7__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/agent.py +7 -7
- {intentkit-0.7.5.dev5.dist-info → intentkit-0.7.5.dev7.dist-info}/METADATA +1 -1
- {intentkit-0.7.5.dev5.dist-info → intentkit-0.7.5.dev7.dist-info}/RECORD +6 -6
- {intentkit-0.7.5.dev5.dist-info → intentkit-0.7.5.dev7.dist-info}/WHEEL +0 -0
- {intentkit-0.7.5.dev5.dist-info → intentkit-0.7.5.dev7.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/core/agent.py
CHANGED
|
@@ -261,26 +261,26 @@ async def deploy_agent(
|
|
|
261
261
|
"""
|
|
262
262
|
existing_agent = await Agent.get(agent_id)
|
|
263
263
|
if not existing_agent:
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
new_agent = AgentCreate.model_validate(agent)
|
|
265
|
+
new_agent.id = agent_id
|
|
266
266
|
if owner:
|
|
267
|
-
|
|
267
|
+
new_agent.owner = owner
|
|
268
268
|
else:
|
|
269
|
-
|
|
269
|
+
new_agent.owner = "system"
|
|
270
270
|
# Check for existing agent by upstream_id, forward compatibility, raise error after 3.0
|
|
271
|
-
existing = await
|
|
271
|
+
existing = await new_agent.get_by_upstream_id()
|
|
272
272
|
if existing:
|
|
273
273
|
agent_data = await AgentData.get(existing.id)
|
|
274
274
|
agent_response = await AgentResponse.from_agent(existing, agent_data)
|
|
275
275
|
return agent_response
|
|
276
276
|
|
|
277
277
|
# Create new agent
|
|
278
|
-
latest_agent = await
|
|
278
|
+
latest_agent = await new_agent.create()
|
|
279
279
|
# Process common post-creation actions
|
|
280
280
|
agent_data = await _process_agent_post_actions(
|
|
281
281
|
latest_agent, True, "Agent Created"
|
|
282
282
|
)
|
|
283
|
-
agent_data = await _process_telegram_config(
|
|
283
|
+
agent_data = await _process_telegram_config(agent, None, agent_data)
|
|
284
284
|
agent_response = await AgentResponse.from_agent(latest_agent, agent_data)
|
|
285
285
|
|
|
286
286
|
return agent_response
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.7.5.
|
|
3
|
+
Version: 0.7.5.dev7
|
|
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=SvBOTStwllPHJRA52GRtBPJwotn1EdtkIcY8vT-URck,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
|
|
@@ -13,7 +13,7 @@ intentkit/clients/web3.py,sha256=A-w4vBPXHpDh8svsEFj_LkmvRgoDTZw4E-84S-UC9ws,102
|
|
|
13
13
|
intentkit/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
intentkit/config/config.py,sha256=xDbm5KSXt4rZh2Nak0bmrYv5Rf__mJz8aJ9PHzar-Lk,8941
|
|
15
15
|
intentkit/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
intentkit/core/agent.py,sha256=
|
|
16
|
+
intentkit/core/agent.py,sha256=UGQ5vPCRq_ib2zpz4IX_AlEvv6RhI05ZLphSyW_Bx0k,31711
|
|
17
17
|
intentkit/core/api.py,sha256=WfoaHNquujYJIpNPuTR1dSaaxog0S3X2W4lG9Ehmkm4,3284
|
|
18
18
|
intentkit/core/chat.py,sha256=YN20CnDazWLjiOZFOHgV6uHmA2DKkvPCsD5Q5sfNcZg,1685
|
|
19
19
|
intentkit/core/client.py,sha256=J5K7f08-ucszBKAbn9K3QNOFKIC__7amTbKYii1jFkI,3056
|
|
@@ -418,7 +418,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
|
|
|
418
418
|
intentkit/utils/s3.py,sha256=9trQNkKQ5VgxWsewVsV8Y0q_pXzGRvsCYP8xauyUYkg,8549
|
|
419
419
|
intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
|
|
420
420
|
intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
|
|
421
|
-
intentkit-0.7.5.
|
|
422
|
-
intentkit-0.7.5.
|
|
423
|
-
intentkit-0.7.5.
|
|
424
|
-
intentkit-0.7.5.
|
|
421
|
+
intentkit-0.7.5.dev7.dist-info/METADATA,sha256=Q0pKGpE0HvRiaGakL96V4M7QKEA3jikcvrEp5PoY2Es,6409
|
|
422
|
+
intentkit-0.7.5.dev7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
423
|
+
intentkit-0.7.5.dev7.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
424
|
+
intentkit-0.7.5.dev7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|