solana-agent 2.0.1__tar.gz → 2.1.1__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-2.0.1 → solana_agent-2.1.1}/PKG-INFO +2 -1
- {solana_agent-2.0.1 → solana_agent-2.1.1}/pyproject.toml +2 -1
- {solana_agent-2.0.1 → solana_agent-2.1.1}/solana_agent/ai.py +15 -6
- {solana_agent-2.0.1 → solana_agent-2.1.1}/LICENSE +0 -0
- {solana_agent-2.0.1 → solana_agent-2.1.1}/README.md +0 -0
- {solana_agent-2.0.1 → solana_agent-2.1.1}/solana_agent/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: solana-agent
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: Build self-learning AI Agents
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: ai,openai,ai agents
|
|
@@ -23,6 +23,7 @@ Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
|
|
23
23
|
Requires-Dist: pymongo (>=4.11.1,<5.0.0)
|
|
24
24
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
25
25
|
Requires-Dist: zep-cloud (>=2.4.0,<3.0.0)
|
|
26
|
+
Requires-Dist: zep-python (>=2.0.2,<3.0.0)
|
|
26
27
|
Project-URL: Repository, https://github.com/truemagic-coder/solana-agent
|
|
27
28
|
Description-Content-Type: text/markdown
|
|
28
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "solana-agent"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.1"
|
|
4
4
|
description = "Build self-learning AI Agents"
|
|
5
5
|
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -22,6 +22,7 @@ openai = "^1.64.0"
|
|
|
22
22
|
pydantic = "^2.10.6"
|
|
23
23
|
pymongo = "^4.11.1"
|
|
24
24
|
zep-cloud = "^2.4.0"
|
|
25
|
+
zep-python = "^2.0.2"
|
|
25
26
|
requests = "^2.32.3"
|
|
26
27
|
pinecone = "^6.0.1"
|
|
27
28
|
pandas = "^2.2.3"
|
|
@@ -9,8 +9,10 @@ from pymongo import MongoClient
|
|
|
9
9
|
from openai import OpenAI
|
|
10
10
|
import inspect
|
|
11
11
|
import requests
|
|
12
|
-
from zep_cloud.client import AsyncZep
|
|
13
|
-
from zep_cloud.client import Zep
|
|
12
|
+
from zep_cloud.client import AsyncZep as AsyncZepCloud
|
|
13
|
+
from zep_cloud.client import Zep as ZepCloud
|
|
14
|
+
from zep_python.client import Zep
|
|
15
|
+
from zep_python.client import AsyncZep
|
|
14
16
|
from zep_cloud.types import Message
|
|
15
17
|
from pinecone import Pinecone
|
|
16
18
|
|
|
@@ -58,6 +60,7 @@ class AI:
|
|
|
58
60
|
instructions: str,
|
|
59
61
|
database: Any,
|
|
60
62
|
zep_api_key: str = None,
|
|
63
|
+
zep_base_url: str = None,
|
|
61
64
|
perplexity_api_key: str = None,
|
|
62
65
|
grok_api_key: str = None,
|
|
63
66
|
pinecone_api_key: str = None,
|
|
@@ -74,6 +77,7 @@ class AI:
|
|
|
74
77
|
instructions (str): Base behavioral instructions for the AI
|
|
75
78
|
database (Any): Database instance for message/thread storage
|
|
76
79
|
zep_api_key (str, optional): API key for Zep memory storage. Defaults to None
|
|
80
|
+
zep_base_url (str, optional): Base URL for Zep API. Defaults to None
|
|
77
81
|
perplexity_api_key (str, optional): API key for Perplexity search. Defaults to None
|
|
78
82
|
grok_api_key (str, optional): API key for X/Twitter search via Grok. Defaults to None
|
|
79
83
|
pinecone_api_key (str, optional): API key for Pinecone. Defaults to None
|
|
@@ -113,8 +117,15 @@ class AI:
|
|
|
113
117
|
self._instructions = instructions + " " + memory_instructions
|
|
114
118
|
self._database: MongoDatabase = database
|
|
115
119
|
self._accumulated_value_queue = asyncio.Queue()
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
if zep_api_key and not zep_base_url:
|
|
121
|
+
self._zep = AsyncZepCloud(api_key=zep_api_key)
|
|
122
|
+
self._sync_zep = ZepCloud(api_key=zep_api_key)
|
|
123
|
+
elif zep_api_key and zep_base_url:
|
|
124
|
+
self._zep = AsyncZep(api_key=zep_api_key, base_url=zep_base_url)
|
|
125
|
+
self._sync_zep = Zep(api_key=zep_api_key, base_url=zep_base_url)
|
|
126
|
+
else:
|
|
127
|
+
self._zep = None
|
|
128
|
+
self._sync_zep = None
|
|
118
129
|
self._perplexity_api_key = perplexity_api_key
|
|
119
130
|
self._grok_api_key = grok_api_key
|
|
120
131
|
self._gemini_api_key = gemini_api_key
|
|
@@ -822,7 +833,6 @@ class AI:
|
|
|
822
833
|
"content": result,
|
|
823
834
|
},
|
|
824
835
|
],
|
|
825
|
-
tools=self._tools,
|
|
826
836
|
stream=True,
|
|
827
837
|
)
|
|
828
838
|
for chunk in response:
|
|
@@ -983,7 +993,6 @@ class AI:
|
|
|
983
993
|
"content": result,
|
|
984
994
|
},
|
|
985
995
|
],
|
|
986
|
-
tools=self._tools,
|
|
987
996
|
stream=True,
|
|
988
997
|
)
|
|
989
998
|
for chunk in response:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|