intentkit 0.7.4rc2__py3-none-any.whl → 0.7.5.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.7.4-rc.2"
6
+ __version__ = "0.7.5-dev1"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/models/agent.py CHANGED
@@ -1442,7 +1442,7 @@ class Agent(AgentCreate):
1442
1442
  return schema
1443
1443
 
1444
1444
 
1445
- class AgentResponse(BaseModel):
1445
+ class AgentResponse(Agent):
1446
1446
  """Response model for Agent API."""
1447
1447
 
1448
1448
  model_config = ConfigDict(
@@ -1452,179 +1452,6 @@ class AgentResponse(BaseModel):
1452
1452
  },
1453
1453
  )
1454
1454
 
1455
- id: Annotated[
1456
- str,
1457
- PydanticField(
1458
- description="Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens",
1459
- ),
1460
- ]
1461
- # auto timestamp
1462
- created_at: Annotated[
1463
- datetime,
1464
- PydanticField(
1465
- description="Timestamp when the agent was created, will ignore when importing"
1466
- ),
1467
- ]
1468
- updated_at: Annotated[
1469
- datetime,
1470
- PydanticField(
1471
- description="Timestamp when the agent was last updated, will ignore when importing"
1472
- ),
1473
- ]
1474
- # Agent part
1475
- name: Annotated[
1476
- Optional[str],
1477
- PydanticField(
1478
- default=None,
1479
- description="Display name of the agent",
1480
- ),
1481
- ]
1482
- slug: Annotated[
1483
- Optional[str],
1484
- PydanticField(
1485
- default=None,
1486
- description="Slug of the agent, used for URL generation",
1487
- ),
1488
- ]
1489
- description: Annotated[
1490
- Optional[str],
1491
- PydanticField(
1492
- default=None,
1493
- description="Description of the agent, for public view, not contained in prompt",
1494
- ),
1495
- ]
1496
- external_website: Annotated[
1497
- Optional[str],
1498
- PydanticField(
1499
- default=None,
1500
- description="Link of external website of the agent, if you have one",
1501
- ),
1502
- ]
1503
- picture: Annotated[
1504
- Optional[str],
1505
- PydanticField(
1506
- default=None,
1507
- description="Picture of the agent",
1508
- ),
1509
- ]
1510
- ticker: Annotated[
1511
- Optional[str],
1512
- PydanticField(
1513
- default=None,
1514
- description="Ticker symbol of the agent",
1515
- ),
1516
- ]
1517
- token_address: Annotated[
1518
- Optional[str],
1519
- PydanticField(
1520
- default=None,
1521
- description="Token address of the agent",
1522
- ),
1523
- ]
1524
- token_pool: Annotated[
1525
- Optional[str],
1526
- PydanticField(
1527
- default=None,
1528
- description="Pool of the agent token",
1529
- ),
1530
- ]
1531
- fee_percentage: Annotated[
1532
- Optional[Decimal],
1533
- PydanticField(
1534
- default=None,
1535
- description="Fee percentage of the agent",
1536
- ),
1537
- ]
1538
- owner: Annotated[
1539
- Optional[str],
1540
- PydanticField(
1541
- default=None,
1542
- description="Owner identifier of the agent, used for access control",
1543
- max_length=50,
1544
- json_schema_extra={
1545
- "x-group": "internal",
1546
- },
1547
- ),
1548
- ]
1549
- upstream_id: Annotated[
1550
- Optional[str],
1551
- PydanticField(
1552
- default=None,
1553
- description="External reference ID for idempotent operations",
1554
- max_length=100,
1555
- json_schema_extra={
1556
- "x-group": "internal",
1557
- },
1558
- ),
1559
- ]
1560
- upstream_extra: Annotated[
1561
- Optional[Dict[str, Any]],
1562
- PydanticField(
1563
- default=None,
1564
- description="Additional data store for upstream use",
1565
- ),
1566
- ]
1567
- # AI part
1568
- model: Annotated[
1569
- str,
1570
- PydanticField(
1571
- description="AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent",
1572
- ),
1573
- ]
1574
- # autonomous mode
1575
- autonomous: Annotated[
1576
- Optional[List[Dict[str, Any]]],
1577
- PydanticField(
1578
- default=None,
1579
- description=("Autonomous agent configurations."),
1580
- ),
1581
- ]
1582
- # agent examples
1583
- example_intro: Annotated[
1584
- Optional[str],
1585
- PydanticField(
1586
- default=None,
1587
- description="Introduction for example interactions",
1588
- ),
1589
- ]
1590
- examples: Annotated[
1591
- Optional[List[AgentExample]],
1592
- PydanticField(
1593
- default=None,
1594
- description="List of example prompts for the agent",
1595
- ),
1596
- ]
1597
- # skills
1598
- skills: Annotated[
1599
- Optional[Dict[str, Any]],
1600
- PydanticField(
1601
- default=None,
1602
- description="Dict of skills and their corresponding configurations",
1603
- ),
1604
- ]
1605
- wallet_provider: Annotated[
1606
- Optional[Literal["cdp", "readonly"]],
1607
- PydanticField(
1608
- default="cdp",
1609
- description="Provider of the agent's wallet",
1610
- ),
1611
- ]
1612
- network_id: Annotated[
1613
- Optional[str],
1614
- PydanticField(
1615
- default="base-mainnet",
1616
- description="Network identifier",
1617
- ),
1618
- ]
1619
- # telegram entrypoint
1620
- telegram_entrypoint_enabled: Annotated[
1621
- Optional[bool],
1622
- PydanticField(
1623
- default=False,
1624
- description="Whether the agent can play telegram bot",
1625
- ),
1626
- ]
1627
-
1628
1455
  # data part
1629
1456
  cdp_wallet_address: Annotated[
1630
1457
  Optional[str], PydanticField(description="CDP wallet address for the agent")
@@ -1712,6 +1539,18 @@ class AgentResponse(BaseModel):
1712
1539
  # Get base data from agent
1713
1540
  data = agent.model_dump()
1714
1541
 
1542
+ # Hide the sensitive fields
1543
+ data.pop("purpose", None)
1544
+ data.pop("personality", None)
1545
+ data.pop("principles", None)
1546
+ data.pop("prompt", None)
1547
+ data.pop("prompt_append", None)
1548
+ data.pop("temperature", None)
1549
+ data.pop("frequency_penalty", None)
1550
+ data.pop("telegram_entrypoint_prompt", None)
1551
+ data.pop("telegram_config", None)
1552
+ data.pop("xmtp_entrypoint_prompt", None)
1553
+
1715
1554
  # Filter sensitive fields from autonomous list
1716
1555
  if data.get("autonomous"):
1717
1556
  filtered_autonomous = []
@@ -1811,4 +1650,4 @@ class AgentResponse(BaseModel):
1811
1650
  }
1812
1651
  )
1813
1652
 
1814
- return cls.model_validate(data)
1653
+ return cls.model_construct(**data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intentkit
3
- Version: 0.7.4rc2
3
+ Version: 0.7.5.dev1
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=TwN56FgZdyyNNs4AUkvOPimEjE4SzDZJjIA1mdophCA,383
1
+ intentkit/__init__.py,sha256=hfwBroo6KBOEt91JoKuYT_ok_ExFJnTFidSXHojPUIc,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=Et9X9Geg5sZjJC3KsqpWEk2PyqoM6jn0aOQ4vUvjVPY,64826
24
+ intentkit/models/agent.py,sha256=65JC3bNSvJXLAcrpEFEdIWA84u37Qot_Z1j-v4R94lE,60533
25
25
  intentkit/models/agent_data.py,sha256=mVsiK8TziYa1W1ujU1KwI9osIVIeSM7XJEogGRL1WVU,28263
26
26
  intentkit/models/agent_schema.json,sha256=B7qUrQk8BqlRmyWDpK5XeMRf9_5rgAbrJ88ZtuUvpPw,20237
27
27
  intentkit/models/app_setting.py,sha256=iYbW63QD91bt4oEYV3wOXHuRFav2b4VXLwb_StgUQtQ,8230
@@ -417,7 +417,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
417
417
  intentkit/utils/s3.py,sha256=9trQNkKQ5VgxWsewVsV8Y0q_pXzGRvsCYP8xauyUYkg,8549
418
418
  intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
419
419
  intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
420
- intentkit-0.7.4rc2.dist-info/METADATA,sha256=Fr3MzecqjCpaxFWEDJEc0n228nDSqaWou0m4crdrul0,6407
421
- intentkit-0.7.4rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
422
- intentkit-0.7.4rc2.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
423
- intentkit-0.7.4rc2.dist-info/RECORD,,
420
+ intentkit-0.7.5.dev1.dist-info/METADATA,sha256=H6Dd0I44qUUdSpzs5Ud_cKMQyaF8iJSMY_shNGdsi-Y,6409
421
+ intentkit-0.7.5.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
422
+ intentkit-0.7.5.dev1.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
423
+ intentkit-0.7.5.dev1.dist-info/RECORD,,