solana-agent 0.0.11__tar.gz → 0.0.12__tar.gz
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.
- {solana_agent-0.0.11 → solana_agent-0.0.12}/PKG-INFO +2 -2
- {solana_agent-0.0.11 → solana_agent-0.0.12}/pyproject.toml +2 -2
- {solana_agent-0.0.11 → solana_agent-0.0.12}/solana_agent/ai.py +8 -4
- {solana_agent-0.0.11 → solana_agent-0.0.12}/LICENSE +0 -0
- {solana_agent-0.0.11 → solana_agent-0.0.12}/README.md +0 -0
- {solana_agent-0.0.11 → solana_agent-0.0.12}/solana_agent/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: solana-agent
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.12
|
|
4
4
|
Summary: Build self-learning AI Agents
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: ai,openai,ai agents
|
|
@@ -22,7 +22,7 @@ Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
|
|
22
22
|
Requires-Dist: pinecone (>=6.0.1,<7.0.0)
|
|
23
23
|
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
|
24
24
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
25
|
-
Requires-Dist: zep-cloud (>=2.
|
|
25
|
+
Requires-Dist: zep-cloud (>=2.4.0,<3.0.0)
|
|
26
26
|
Project-URL: Repository, https://github.com/truemagic-coder/solana-agent
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "solana-agent"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.12"
|
|
4
4
|
description = "Build self-learning AI Agents"
|
|
5
5
|
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -21,7 +21,7 @@ python = ">=3.9,<4.0"
|
|
|
21
21
|
openai = "^1.61.1"
|
|
22
22
|
pydantic = "^2.10.6"
|
|
23
23
|
motor = "^3.7.0"
|
|
24
|
-
zep-cloud = "^2.
|
|
24
|
+
zep-cloud = "^2.4.0"
|
|
25
25
|
requests = "^2.32.3"
|
|
26
26
|
pandas = "^2.2.3"
|
|
27
27
|
pinecone = "^6.0.1"
|
|
@@ -46,14 +46,14 @@ class MongoDatabase:
|
|
|
46
46
|
def __init__(self, db_url: str, db_name: str):
|
|
47
47
|
self._client = AsyncIOMotorClient(db_url)
|
|
48
48
|
self._db = self._client[db_name]
|
|
49
|
-
self.
|
|
49
|
+
self._threads = self._db["threads"]
|
|
50
50
|
self.messages = self._db["messages"]
|
|
51
51
|
|
|
52
52
|
async def save_thread_id(self, user_id: str, thread_id: str):
|
|
53
|
-
await self.
|
|
53
|
+
await self._threads.insert_one({"thread_id": thread_id, "user_id": user_id})
|
|
54
54
|
|
|
55
55
|
async def get_thread_id(self, user_id: str) -> Optional[str]:
|
|
56
|
-
document = await self.
|
|
56
|
+
document = await self._threads.find_one({"user_id": user_id})
|
|
57
57
|
return document["thread_id"] if document else None
|
|
58
58
|
|
|
59
59
|
async def save_message(self, user_id: str, metadata: Dict[str, Any]):
|
|
@@ -61,7 +61,11 @@ class MongoDatabase:
|
|
|
61
61
|
await self.messages.insert_one(metadata)
|
|
62
62
|
|
|
63
63
|
async def delete_all_threads(self):
|
|
64
|
-
await self.
|
|
64
|
+
await self._threads.delete_many({})
|
|
65
|
+
|
|
66
|
+
async def clear_user_history(self, user_id: str):
|
|
67
|
+
await self.messages.delete_many({"user_id": user_id})
|
|
68
|
+
await self._threads.delete_one({"user_id": user_id})
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
class AI:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|