intentkit 0.7.5.dev2__py3-none-any.whl → 0.7.5.dev3__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.7.5-dev2"
6
+ __version__ = "0.7.5-dev3"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/models/agent.py CHANGED
@@ -644,6 +644,11 @@ class AgentCore(BaseModel):
644
644
  class AgentUserInput(AgentCore):
645
645
  """Agent update model."""
646
646
 
647
+ model_config = ConfigDict(
648
+ title="AgentUserInput",
649
+ from_attributes=True,
650
+ )
651
+
647
652
  short_term_memory_strategy: Annotated[
648
653
  Optional[Literal["trim", "summarize"]],
649
654
  PydanticField(
@@ -942,6 +947,11 @@ class AgentCreate(AgentUpdate):
942
947
  class AgentPublicInfo(BaseModel):
943
948
  """Public information of the agent."""
944
949
 
950
+ model_config = ConfigDict(
951
+ title="AgentPublicInfo",
952
+ from_attributes=True,
953
+ )
954
+
945
955
  description: Annotated[
946
956
  Optional[str],
947
957
  PydanticField(
@@ -1465,6 +1475,7 @@ class AgentResponse(Agent):
1465
1475
  """Response model for Agent API."""
1466
1476
 
1467
1477
  model_config = ConfigDict(
1478
+ use_enum_values=True,
1468
1479
  from_attributes=True,
1469
1480
  json_encoders={
1470
1481
  datetime: lambda dt: dt.isoformat(),
@@ -1575,14 +1586,33 @@ class AgentResponse(Agent):
1575
1586
  filtered_autonomous = []
1576
1587
  for item in data["autonomous"]:
1577
1588
  if isinstance(item, dict):
1578
- filtered_item = {
1579
- "id": item.get("id"),
1580
- "name": item.get("name"),
1581
- "enabled": item.get("enabled"),
1582
- }
1583
- filtered_autonomous.append(filtered_item)
1589
+ # Create proper AgentAutonomous instance with only public fields
1590
+ filtered_autonomous.append(
1591
+ AgentAutonomous(
1592
+ id=item.get("id"),
1593
+ name=item.get("name"),
1594
+ enabled=item.get("enabled"),
1595
+ # Set required prompt field to empty string for public view
1596
+ prompt="",
1597
+ )
1598
+ )
1584
1599
  data["autonomous"] = filtered_autonomous
1585
1600
 
1601
+ # Convert examples dictionaries to AgentExample instances
1602
+ if data.get("examples"):
1603
+ examples_list = []
1604
+ for item in data["examples"]:
1605
+ if isinstance(item, dict):
1606
+ # Create proper AgentExample instance
1607
+ examples_list.append(
1608
+ AgentExample(
1609
+ name=item.get("name", ""),
1610
+ description=item.get("description", ""),
1611
+ prompt=item.get("prompt", ""),
1612
+ )
1613
+ )
1614
+ data["examples"] = examples_list
1615
+
1586
1616
  # Filter sensitive fields from skills dictionary
1587
1617
  if data.get("skills"):
1588
1618
  filtered_skills = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intentkit
3
- Version: 0.7.5.dev2
3
+ Version: 0.7.5.dev3
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=VCU0QsMzeGTe5uO6NnEMoH1WLduLphPqje1w98EwKxY,383
1
+ intentkit/__init__.py,sha256=jYOK-vdAbz3TzlZQCZ62CIeojpA_vBgwk0uYxL0ABjY,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
@@ -21,7 +21,7 @@ intentkit/core/credit.py,sha256=vW3I5c_fKe_bmFvOc9_EaMsMuAbqw-XQ_NbJg_okdA8,7528
21
21
  intentkit/core/engine.py,sha256=c5EJp2uxseSv5CLCEAH1UPgqLw6d2C_KlJzOQxSyrM4,36025
22
22
  intentkit/core/node.py,sha256=7h9zgDSd928bzUi3m3EZnKkhbwqlbRAQUr_uz7gKB5Y,8880
23
23
  intentkit/core/prompt.py,sha256=ssiyKHDNIjQOLU0KwUlIFX3jy51TqgeKOxrwnW4HBkw,15875
24
- intentkit/models/agent.py,sha256=tFBJjH18q0giEEydAH3vT_O4NtvZPXwKXqOoHiPjXsI,60951
24
+ intentkit/models/agent.py,sha256=PoWbsN5iEwShO7jjTjbhhwimaSg7jQNCM7eEWPxyXCY,62042
25
25
  intentkit/models/agent_data.py,sha256=mVsiK8TziYa1W1ujU1KwI9osIVIeSM7XJEogGRL1WVU,28263
26
26
  intentkit/models/agent_public.json,sha256=0X8Bd2WOobDJLsok8avWNzmzu4uvKSGEyy6Myn53eT4,2802
27
27
  intentkit/models/agent_schema.json,sha256=hFGUE57JIiN8V4olgLf2LBXPejA2QLiQoFc6riM1UFo,17139
@@ -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.dev2.dist-info/METADATA,sha256=bqXIkDehk5PtC8QooQUYQ9VAG2g2GXgb4JmFUw3letA,6409
422
- intentkit-0.7.5.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
423
- intentkit-0.7.5.dev2.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
424
- intentkit-0.7.5.dev2.dist-info/RECORD,,
421
+ intentkit-0.7.5.dev3.dist-info/METADATA,sha256=24mOzcf72sWjqZROFZxlMpJjqShNUO4s3Ot7xWqfwoM,6409
422
+ intentkit-0.7.5.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
423
+ intentkit-0.7.5.dev3.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
424
+ intentkit-0.7.5.dev3.dist-info/RECORD,,