solana-agent 0.0.10__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.10 → solana_agent-0.0.12}/PKG-INFO +2 -2
- {solana_agent-0.0.10 → solana_agent-0.0.12}/pyproject.toml +2 -2
- {solana_agent-0.0.10 → solana_agent-0.0.12}/solana_agent/ai.py +7 -3
- {solana_agent-0.0.10 → solana_agent-0.0.12}/LICENSE +0 -0
- {solana_agent-0.0.10 → solana_agent-0.0.12}/README.md +0 -0
- {solana_agent-0.0.10 → 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"
|
|
@@ -47,7 +47,7 @@ class MongoDatabase:
|
|
|
47
47
|
self._client = AsyncIOMotorClient(db_url)
|
|
48
48
|
self._db = self._client[db_name]
|
|
49
49
|
self._threads = self._db["threads"]
|
|
50
|
-
self.
|
|
50
|
+
self.messages = self._db["messages"]
|
|
51
51
|
|
|
52
52
|
async def save_thread_id(self, user_id: str, thread_id: str):
|
|
53
53
|
await self._threads.insert_one({"thread_id": thread_id, "user_id": user_id})
|
|
@@ -58,11 +58,15 @@ class MongoDatabase:
|
|
|
58
58
|
|
|
59
59
|
async def save_message(self, user_id: str, metadata: Dict[str, Any]):
|
|
60
60
|
metadata["user_id"] = user_id
|
|
61
|
-
await self.
|
|
61
|
+
await self.messages.insert_one(metadata)
|
|
62
62
|
|
|
63
63
|
async def delete_all_threads(self):
|
|
64
64
|
await self._threads.delete_many({})
|
|
65
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})
|
|
69
|
+
|
|
66
70
|
|
|
67
71
|
class AI:
|
|
68
72
|
def __init__(
|
|
@@ -125,7 +129,7 @@ class AI:
|
|
|
125
129
|
] if code_interpreter else []
|
|
126
130
|
self._tool_handlers = {}
|
|
127
131
|
self._assistant_id = None
|
|
128
|
-
self._database = database
|
|
132
|
+
self._database: MongoDatabase = database
|
|
129
133
|
self._accumulated_value_queue = asyncio.Queue()
|
|
130
134
|
self._zep = (
|
|
131
135
|
AsyncZep(api_key=zep_api_key)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|