intentkit 0.7.5.dev2__py3-none-any.whl → 0.7.5.dev4__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-dev4"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/models/agent.py CHANGED
@@ -644,6 +644,14 @@ 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
+ json_schema_extra={
651
+ "required": ["name"],
652
+ },
653
+ )
654
+
647
655
  short_term_memory_strategy: Annotated[
648
656
  Optional[Literal["trim", "summarize"]],
649
657
  PydanticField(
@@ -942,6 +950,11 @@ class AgentCreate(AgentUpdate):
942
950
  class AgentPublicInfo(BaseModel):
943
951
  """Public information of the agent."""
944
952
 
953
+ model_config = ConfigDict(
954
+ title="AgentPublicInfo",
955
+ from_attributes=True,
956
+ )
957
+
945
958
  description: Annotated[
946
959
  Optional[str],
947
960
  PydanticField(
@@ -1465,6 +1478,7 @@ class AgentResponse(Agent):
1465
1478
  """Response model for Agent API."""
1466
1479
 
1467
1480
  model_config = ConfigDict(
1481
+ use_enum_values=True,
1468
1482
  from_attributes=True,
1469
1483
  json_encoders={
1470
1484
  datetime: lambda dt: dt.isoformat(),
@@ -1575,14 +1589,33 @@ class AgentResponse(Agent):
1575
1589
  filtered_autonomous = []
1576
1590
  for item in data["autonomous"]:
1577
1591
  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)
1592
+ # Create proper AgentAutonomous instance with only public fields
1593
+ filtered_autonomous.append(
1594
+ AgentAutonomous(
1595
+ id=item.get("id"),
1596
+ name=item.get("name"),
1597
+ enabled=item.get("enabled"),
1598
+ # Set required prompt field to empty string for public view
1599
+ prompt="",
1600
+ )
1601
+ )
1584
1602
  data["autonomous"] = filtered_autonomous
1585
1603
 
1604
+ # Convert examples dictionaries to AgentExample instances
1605
+ if data.get("examples"):
1606
+ examples_list = []
1607
+ for item in data["examples"]:
1608
+ if isinstance(item, dict):
1609
+ # Create proper AgentExample instance
1610
+ examples_list.append(
1611
+ AgentExample(
1612
+ name=item.get("name", ""),
1613
+ description=item.get("description", ""),
1614
+ prompt=item.get("prompt", ""),
1615
+ )
1616
+ )
1617
+ data["examples"] = examples_list
1618
+
1586
1619
  # Filter sensitive fields from skills dictionary
1587
1620
  if data.get("skills"):
1588
1621
  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.dev4
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=OijTAifHrliQhTQqtu99vkdOwPuTp_W4tMwnYtUICy0,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=3l5X3RakAFo9RaPbtO4RN5yhA6OFiVikoxQLO7zx04E,62115
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.dev4.dist-info/METADATA,sha256=1B93xX5D45sBLiwEa4_igHFGOuOcCwCcFcqYnNTuAog,6409
422
+ intentkit-0.7.5.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
423
+ intentkit-0.7.5.dev4.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
424
+ intentkit-0.7.5.dev4.dist-info/RECORD,,