intentkit 0.7.5.dev8__py3-none-any.whl → 0.7.5.dev9__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/core/agent.py +15 -4
- {intentkit-0.7.5.dev8.dist-info → intentkit-0.7.5.dev9.dist-info}/METADATA +1 -1
- {intentkit-0.7.5.dev8.dist-info → intentkit-0.7.5.dev9.dist-info}/RECORD +6 -6
- {intentkit-0.7.5.dev8.dist-info → intentkit-0.7.5.dev9.dist-info}/WHEEL +0 -0
- {intentkit-0.7.5.dev8.dist-info → intentkit-0.7.5.dev9.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py
CHANGED
intentkit/core/agent.py
CHANGED
|
@@ -206,7 +206,7 @@ async def deploy_agent(
|
|
|
206
206
|
owner: Optional owner for the agent
|
|
207
207
|
|
|
208
208
|
Returns:
|
|
209
|
-
Agent: Updated agent configuration
|
|
209
|
+
tuple[Agent, AgentData]: Updated agent configuration and processed agent data
|
|
210
210
|
|
|
211
211
|
Raises:
|
|
212
212
|
HTTPException:
|
|
@@ -216,6 +216,7 @@ async def deploy_agent(
|
|
|
216
216
|
- 500: Database error
|
|
217
217
|
"""
|
|
218
218
|
existing_agent = await Agent.get(agent_id)
|
|
219
|
+
|
|
219
220
|
if not existing_agent:
|
|
220
221
|
new_agent = AgentCreate.model_validate(agent)
|
|
221
222
|
new_agent.id = agent_id
|
|
@@ -226,20 +227,30 @@ async def deploy_agent(
|
|
|
226
227
|
# Check for existing agent by upstream_id, forward compatibility, raise error after 3.0
|
|
227
228
|
existing = await new_agent.get_by_upstream_id()
|
|
228
229
|
if existing:
|
|
229
|
-
|
|
230
|
+
raise IntentKitAPIError(
|
|
231
|
+
status_code=400,
|
|
232
|
+
key="BadRequest",
|
|
233
|
+
message="Agent with this upstream ID already exists",
|
|
234
|
+
)
|
|
230
235
|
|
|
231
236
|
# Create new agent
|
|
232
237
|
latest_agent = await new_agent.create()
|
|
238
|
+
agent_data = await process_agent_wallet(latest_agent)
|
|
239
|
+
send_agent_notification(latest_agent, agent_data, "Agent Deployed")
|
|
233
240
|
|
|
234
|
-
return latest_agent
|
|
241
|
+
return latest_agent, agent_data
|
|
235
242
|
|
|
236
243
|
if owner and owner != existing_agent.owner:
|
|
237
244
|
raise IntentKitAPIError(403, "Forbidden", "forbidden")
|
|
238
245
|
|
|
239
246
|
# Update agent
|
|
240
247
|
latest_agent = await agent.override(agent_id)
|
|
248
|
+
agent_data = await process_agent_wallet(
|
|
249
|
+
latest_agent, existing_agent.wallet_provider
|
|
250
|
+
)
|
|
251
|
+
send_agent_notification(latest_agent, agent_data, "Agent Overridden Deployed")
|
|
241
252
|
|
|
242
|
-
return latest_agent
|
|
253
|
+
return latest_agent, agent_data
|
|
243
254
|
|
|
244
255
|
|
|
245
256
|
async def agent_action_cost(agent_id: str) -> Dict[str, Decimal]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentkit
|
|
3
|
-
Version: 0.7.5.
|
|
3
|
+
Version: 0.7.5.dev9
|
|
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=46rAmnU-MtPUs_PFUOeb2d-ZfnXhp7RJIABBbN6sLgE,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=BMCcBdxbewSJFk3VfJwEWbQks5k0Fg7LsnqRTsCEExY,30006
|
|
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.dev9.dist-info/METADATA,sha256=98yN0Ivapq5xqDvUIkUdtkTqQLMGjX3NqyBtL6RNBJs,6409
|
|
422
|
+
intentkit-0.7.5.dev9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
423
|
+
intentkit-0.7.5.dev9.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
|
|
424
|
+
intentkit-0.7.5.dev9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|