intentkit 0.6.5.dev1__py3-none-any.whl → 0.6.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.6.5-dev1"
6
+ __version__ = "0.6.5-dev3"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
intentkit/models/agent.py CHANGED
@@ -18,12 +18,10 @@ from pydantic import BaseModel, ConfigDict, field_validator, model_validator
18
18
  from pydantic import Field as PydanticField
19
19
  from pydantic.json_schema import SkipJsonSchema
20
20
  from sqlalchemy import (
21
- BigInteger,
22
21
  Boolean,
23
22
  Column,
24
23
  DateTime,
25
24
  Float,
26
- Identity,
27
25
  Numeric,
28
26
  String,
29
27
  func,
@@ -199,12 +197,6 @@ class AgentTable(Base):
199
197
  primary_key=True,
200
198
  comment="Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens",
201
199
  )
202
- number = Column(
203
- BigInteger(),
204
- Identity(start=1, increment=1),
205
- nullable=True,
206
- comment="Auto-incrementing number assigned by the system for easy reference",
207
- )
208
200
  name = Column(
209
201
  String,
210
202
  nullable=True,
@@ -1114,13 +1106,6 @@ class Agent(AgentCreate):
1114
1106
 
1115
1107
  model_config = ConfigDict(from_attributes=True)
1116
1108
 
1117
- # auto increment number by db
1118
- number: Annotated[
1119
- Optional[int],
1120
- PydanticField(
1121
- description="Auto-incrementing number assigned by the system for easy reference",
1122
- ),
1123
- ]
1124
1109
  # auto timestamp
1125
1110
  created_at: Annotated[
1126
1111
  datetime,
@@ -1317,13 +1302,6 @@ class AgentResponse(BaseModel):
1317
1302
  description="Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens",
1318
1303
  ),
1319
1304
  ]
1320
- # auto increment number by db
1321
- number: Annotated[
1322
- Optional[int],
1323
- PydanticField(
1324
- description="Auto-incrementing number assigned by the system for easy reference",
1325
- ),
1326
- ]
1327
1305
  # auto timestamp
1328
1306
  created_at: Annotated[
1329
1307
  datetime,
intentkit/models/db.py CHANGED
@@ -38,8 +38,11 @@ async def init_db(
38
38
  # Initialize psycopg pool and AsyncPostgresSaver if not already initialized
39
39
  if _langgraph_checkpointer is None:
40
40
  if host:
41
+ conn_string = (
42
+ f"postgresql://{username}:{quote_plus(password)}@{host}:{port}/{dbname}"
43
+ )
41
44
  pool = AsyncConnectionPool(
42
- conninfo=f"postgresql://{username}:{quote_plus(password)}@{host}:{port}/{dbname}",
45
+ conninfo=conn_string,
43
46
  min_size=3,
44
47
  max_size=20,
45
48
  timeout=60,
@@ -47,7 +50,9 @@ async def init_db(
47
50
  )
48
51
  _langgraph_checkpointer = AsyncPostgresSaver(pool)
49
52
  if auto_migrate:
50
- await _langgraph_checkpointer.setup()
53
+ # Migrate can not use pool, so we start from scratch
54
+ async with AsyncPostgresSaver.from_conn_string(conn_string) as saver:
55
+ await saver.setup()
51
56
  else:
52
57
  _langgraph_checkpointer = InMemorySaver()
53
58
  # Initialize SQLAlchemy engine with pool settings
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intentkit
3
- Version: 0.6.5.dev1
3
+ Version: 0.6.5.dev3
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=PHR7qa9b9oKkXykw7RLg-lfeQ_qd8GysRjcRVYdl_qI,383
1
+ intentkit/__init__.py,sha256=3BrX5qMtwlJA1bKb8TwzMYCjIDGsUue1JKasbuCNbqE,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/engine.py,sha256=ZoMk8fBUg1fqbELT8Pi8vB667ytFqAT4mQfUNt5g_H0,4119
21
21
  intentkit/core/node.py,sha256=RqAdcR1Fcpgw4k7q9l1Sry8LgcuZWdNxSjOHDcoavCI,9108
22
22
  intentkit/core/prompt.py,sha256=RfLhlUktkB2kCr3wfldqq6ZP2l8heZIMc8jVp31KIyQ,3631
23
23
  intentkit/core/skill.py,sha256=fFM_HVc8Qam2zICb_dH3nRcInEXdtfgzFnL0vvMNz2Y,3830
24
- intentkit/models/agent.py,sha256=I9wAsDqdfILpXsj5H0sE0fNwX-enzuEdEvmx-rWt_5E,57221
24
+ intentkit/models/agent.py,sha256=JnISK4SuS-50xXcoLHqFSBrRVdcn7-qQjaqF4L8b8A8,56565
25
25
  intentkit/models/agent_data.py,sha256=x3pYRpI0QUcaK09r0m8-06rSbQB4pKEymF5d9JCemlo,27465
26
26
  intentkit/models/agent_schema.json,sha256=M5MMMAVNJnp6kE8hjti6D0WLdFIGtIdF66_Cg6nZfJU,21724
27
27
  intentkit/models/app_setting.py,sha256=WgW-9t0EbiVemRLrVaC6evdfRU5QFSDK0elsnUU5nIo,5008
@@ -29,7 +29,7 @@ intentkit/models/base.py,sha256=o-zRjVrak-f5Jokdvj8BjLm8gcC3yYiYMCTLegwT2lA,185
29
29
  intentkit/models/chat.py,sha256=2P9dPWEti9f7XbO6L6Kp89lcYuyymSwqzxhL4GfBmBc,18019
30
30
  intentkit/models/conversation.py,sha256=nrbDIw-3GK5BYi_xkI15FLdx4a6SNrFK8wfAGLCsrqk,9032
31
31
  intentkit/models/credit.py,sha256=95buGlZwIuoSPasZcqYEKvdrnUiUe2RzJCR3a2rvQvU,42397
32
- intentkit/models/db.py,sha256=2OpdTjQWUM9FkDP8Ni0mGLeVJ5q9ah3bGlGe9-IzDp0,3999
32
+ intentkit/models/db.py,sha256=Ked8-PsvKvqxgvytGpWlDxZNgEuyac-uGM0xWWshKmY,4210
33
33
  intentkit/models/db_mig.py,sha256=vT6Tanm-BHC2T7dTztuB1UG494EFBAlHADKsNzR6xaQ,3577
34
34
  intentkit/models/generator.py,sha256=lyZu9U9rZUGkqd_QT5SAhay9DY358JJY8EhDSpN8I1M,10298
35
35
  intentkit/models/llm.py,sha256=f_F11cjeXACu5qDB1JaCltWqS_uVb8GqOSmPTq1LYo8,25123
@@ -390,7 +390,7 @@ intentkit/utils/random.py,sha256=DymMxu9g0kuQLgJUqalvgksnIeLdS-v0aRk5nQU0mLI,452
390
390
  intentkit/utils/s3.py,sha256=9trQNkKQ5VgxWsewVsV8Y0q_pXzGRvsCYP8xauyUYkg,8549
391
391
  intentkit/utils/slack_alert.py,sha256=s7UpRgyzLW7Pbmt8cKzTJgMA9bm4EP-1rQ5KXayHu6E,2264
392
392
  intentkit/utils/tx.py,sha256=2yLLGuhvfBEY5n_GJ8wmIWLCzn0FsYKv5kRNzw_sLUI,1454
393
- intentkit-0.6.5.dev1.dist-info/METADATA,sha256=EpLnXn-fW0zS1l_X0yCHsBRJxn6_bBSR_NoSxR8dXWo,6321
394
- intentkit-0.6.5.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
395
- intentkit-0.6.5.dev1.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
396
- intentkit-0.6.5.dev1.dist-info/RECORD,,
393
+ intentkit-0.6.5.dev3.dist-info/METADATA,sha256=UtTKDrtt2s1FnYib3keiB48DWzoFp487ptOfBIu2sYg,6321
394
+ intentkit-0.6.5.dev3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
395
+ intentkit-0.6.5.dev3.dist-info/licenses/LICENSE,sha256=Bln6DhK-LtcO4aXy-PBcdZv2f24MlJFm_qn222biJtE,1071
396
+ intentkit-0.6.5.dev3.dist-info/RECORD,,