intentkit 0.8.4.dev2__py3-none-any.whl → 0.8.5__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 CHANGED
@@ -3,7 +3,7 @@
3
3
  A powerful platform for building AI agents with blockchain and cryptocurrency capabilities.
4
4
  """
5
5
 
6
- __version__ = "0.8.4-dev2"
6
+ __version__ = "0.8.5"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/core/engine.py CHANGED
@@ -156,7 +156,7 @@ async def build_agent(agent: Agent, agent_data: AgentData) -> CompiledStateGraph
156
156
  return llm.bind_tools(private_tools)
157
157
  return llm.bind_tools(tools)
158
158
 
159
- for tool in tools:
159
+ for tool in private_tools:
160
160
  logger.info(
161
161
  f"[{agent.id}] loaded tool: {tool.name if isinstance(tool, BaseTool) else tool}"
162
162
  )
@@ -174,7 +174,7 @@ async def build_agent(agent: Agent, agent_data: AgentData) -> CompiledStateGraph
174
174
  # Create ReAct Agent using the LLM and CDP Agentkit tools.
175
175
  executor = create_react_agent(
176
176
  model=select_model,
177
- tools=tools,
177
+ tools=private_tools,
178
178
  prompt=formatted_prompt,
179
179
  pre_model_hook=pre_model_hook,
180
180
  post_model_hook=post_model_node if config.payment_enabled else None,
intentkit/core/node.py CHANGED
@@ -24,7 +24,6 @@ from langmem.short_term.summarization import (
24
24
 
25
25
  from intentkit.abstracts.graph import AgentContext, AgentError, AgentState
26
26
  from intentkit.core.credit import skill_cost
27
- from intentkit.models.agent import Agent
28
27
  from intentkit.models.credit import CreditAccount, OwnerType
29
28
  from intentkit.models.skill import Skill
30
29
 
@@ -191,8 +190,7 @@ class PostModelNode(RunnableCallable):
191
190
  return state_update
192
191
  logger.debug(f"last: {messages[-1]}")
193
192
  msg = messages[-1]
194
- agent_id = context.agent_id
195
- agent = await Agent.get(agent_id)
193
+ agent = context.agent
196
194
  account = await CreditAccount.get_or_create(OwnerType.USER, payer)
197
195
  if hasattr(msg, "tool_calls") and msg.tool_calls:
198
196
  for tool_call in msg.tool_calls:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intentkit
3
- Version: 0.8.4.dev2
3
+ Version: 0.8.5
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=lgqLrXX95ipha98rtiTYH8nPDeBawv3Vqba2pRwyJmc,383
1
+ intentkit/__init__.py,sha256=NMl6anGU3TjMg0mX1lHhODWitl2--_uPMiXMnmleYQk,378
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
@@ -19,8 +19,8 @@ intentkit/core/asset.py,sha256=9hkIgi-QRmr4FQddloEcQ5xdZlnHGFcxekNhss_gHOY,7339
19
19
  intentkit/core/chat.py,sha256=YN20CnDazWLjiOZFOHgV6uHmA2DKkvPCsD5Q5sfNcZg,1685
20
20
  intentkit/core/client.py,sha256=J5K7f08-ucszBKAbn9K3QNOFKIC__7amTbKYii1jFkI,3056
21
21
  intentkit/core/credit.py,sha256=b4f4T6G6eeBTMe0L_r8awWtXgUnqiog4IUaymDPYym0,75587
22
- intentkit/core/engine.py,sha256=QpN3myrbMxX_x8l2-iPE8RA0_XhZLYwjjp-OSyTQ8yI,38393
23
- intentkit/core/node.py,sha256=Cjekrg5RFtNNj3k_pLAWTZVGzm33Wnn2JtE__RSNMA8,8880
22
+ intentkit/core/engine.py,sha256=CCAo-N3PYxYw13xhiovEqoVWZWbMYdQX3bSaOZ68Ni8,38409
23
+ intentkit/core/node.py,sha256=-QVgmQuMnrzo6cF-4AECOIVT3R4gCnWfQ1EjTm2Sz1g,8791
24
24
  intentkit/core/prompt.py,sha256=idNx1ono4Maz2i6IBKfaKOBBbEQiWbaSxr2Eb1vZTI4,15482
25
25
  intentkit/core/scheduler.py,sha256=De84aTHYoIH18YPooB_GckHts5oGFZg-XQZQcqFvlXc,2842
26
26
  intentkit/core/statistics.py,sha256=-IZmxIBzyzZuai7QyfPEY1tx8Q8ydmmcm6eqbSSy_6o,6366
@@ -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.4.dev2.dist-info/METADATA,sha256=nQsTbh7EFP-KP0fijqCOUmFZZlSCmobQxoMfsgp14fU,6315
455
- intentkit-0.8.4.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
456
- intentkit-0.8.4.dev2.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
457
- intentkit-0.8.4.dev2.dist-info/RECORD,,
454
+ intentkit-0.8.5.dist-info/METADATA,sha256=pjqHQKq3YBMvK37BSUU55nRWCB6O_rjBJ1r17gIRHUg,6310
455
+ intentkit-0.8.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
456
+ intentkit-0.8.5.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
457
+ intentkit-0.8.5.dist-info/RECORD,,