intentkit 0.6.11.dev8__py3-none-any.whl → 0.6.12.dev1__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.6.11-dev8"
6
+ __version__ = "0.6.12-dev1"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/core/engine.py CHANGED
@@ -571,6 +571,7 @@ async def stream_agent(message: ChatMessageCreate):
571
571
  )
572
572
  continue
573
573
  skill_calls = []
574
+ cached_attachments = []
574
575
  have_first_call_in_cache = False # tool node emit every tool call
575
576
  for msg in chunk["tools"]["messages"]:
576
577
  if not hasattr(msg, "tool_call_id"):
@@ -600,25 +601,7 @@ async def stream_agent(message: ChatMessageCreate):
600
601
  str(msg.content), width=1000, placeholder="..."
601
602
  )
602
603
  if msg.artifact:
603
- artifact_message_create = ChatMessageCreate(
604
- id=str(XID()),
605
- agent_id=input.agent_id,
606
- chat_id=input.chat_id,
607
- user_id=input.user_id,
608
- author_id=input.agent_id,
609
- author_type=AuthorType.SKILL,
610
- model=agent.model,
611
- thread_type=input.author_type,
612
- reply_to=input.id,
613
- message="",
614
- attachments=msg.artifact,
615
- time_cost=this_time - last,
616
- )
617
- artifact_message = (
618
- await artifact_message_create.save()
619
- )
620
- yield artifact_message
621
- last = this_time
604
+ cached_attachments.extend(msg.artifact)
622
605
  skill_calls.append(skill_call)
623
606
  break
624
607
  skill_message_create = ChatMessageCreate(
@@ -633,6 +616,7 @@ async def stream_agent(message: ChatMessageCreate):
633
616
  reply_to=input.id,
634
617
  message="",
635
618
  skill_calls=skill_calls,
619
+ attachments=cached_attachments,
636
620
  input_tokens=(
637
621
  cached_tool_step.usage_metadata.get("input_tokens", 0)
638
622
  if hasattr(cached_tool_step, "usage_metadata")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intentkit
3
- Version: 0.6.11.dev8
3
+ Version: 0.6.12.dev1
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=Q7VWjxlur_qiKhqxdojs0fc_I7bGzMUoKOL-TOGjWV4,384
1
+ intentkit/__init__.py,sha256=oKGU6_FsTPeI2dcmuMICOPeO1bygY3wFZ-m5pMf4QR0,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
@@ -17,7 +17,7 @@ intentkit/core/agent.py,sha256=GIKDn1dTenIHWMRxe-ud7hd1cQaHzbTDdypy5IAgPfU,16658
17
17
  intentkit/core/api.py,sha256=3GIMJpwduLUSbVPNW6mQVxZncYHH3OlLwdiqFtYtEAE,1208
18
18
  intentkit/core/client.py,sha256=rIwtJVVm-7piXtFNDbeykt9vWdNTecgjW0aA3N-lHnM,1495
19
19
  intentkit/core/credit.py,sha256=Y5cjShFFqGBhz7Uc_ziqejyW-2FP58TYxsSNc4N_6hI,63039
20
- intentkit/core/engine.py,sha256=aDfaqw8kBWYg_cznIapSWPT4Z8O2pTOMVEIJTgxSut8,38020
20
+ intentkit/core/engine.py,sha256=RESmyjzzcnBVHdsuA2ul68ZkxwLoqB34NnLwYJ0vwYw,37028
21
21
  intentkit/core/node.py,sha256=7h9zgDSd928bzUi3m3EZnKkhbwqlbRAQUr_uz7gKB5Y,8880
22
22
  intentkit/core/prompt.py,sha256=eaa2FyFptpsWlEGWCL8jVmZMGB6Pl9hBnt-y8Yq37RU,16041
23
23
  intentkit/core/skill.py,sha256=vPK37sDRT9kzkMBymPwqZ5uEdxTTRtb_DfREIeyz-Xw,5788
@@ -403,7 +403,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
403
403
  intentkit/utils/s3.py,sha256=9trQNkKQ5VgxWsewVsV8Y0q_pXzGRvsCYP8xauyUYkg,8549
404
404
  intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
405
405
  intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
406
- intentkit-0.6.11.dev8.dist-info/METADATA,sha256=kzC29yoFVdS62rNNPYMlYUM96uCJWGeJ47kLIbqfN0A,6414
407
- intentkit-0.6.11.dev8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
408
- intentkit-0.6.11.dev8.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
409
- intentkit-0.6.11.dev8.dist-info/RECORD,,
406
+ intentkit-0.6.12.dev1.dist-info/METADATA,sha256=pjP8Iw0oO5K-Zb5RdJ35NJHRFQ-wL0y2N8Sj4tddDCs,6414
407
+ intentkit-0.6.12.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
408
+ intentkit-0.6.12.dev1.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
409
+ intentkit-0.6.12.dev1.dist-info/RECORD,,