solana-agent 23.0.1__py3-none-any.whl → 23.0.3__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.
- solana_agent/repositories/memory.py +17 -11
- {solana_agent-23.0.1.dist-info → solana_agent-23.0.3.dist-info}/METADATA +24 -4
- {solana_agent-23.0.1.dist-info → solana_agent-23.0.3.dist-info}/RECORD +5 -5
- {solana_agent-23.0.1.dist-info → solana_agent-23.0.3.dist-info}/LICENSE +0 -0
- {solana_agent-23.0.1.dist-info → solana_agent-23.0.3.dist-info}/WHEEL +0 -0
@@ -81,16 +81,6 @@ class MemoryRepository(MemoryProvider):
|
|
81
81
|
if not self.zep:
|
82
82
|
return
|
83
83
|
|
84
|
-
try:
|
85
|
-
await self.zep.user.add(user_id=user_id)
|
86
|
-
except Exception as e:
|
87
|
-
print(f"Zep user addition error: {e}")
|
88
|
-
|
89
|
-
try:
|
90
|
-
await self.zep.memory.add_session(session_id=user_id, user_id=user_id)
|
91
|
-
except Exception as e:
|
92
|
-
print(f"Zep session creation error: {e}")
|
93
|
-
|
94
84
|
# Convert messages to Zep format
|
95
85
|
zep_messages = []
|
96
86
|
for msg in messages:
|
@@ -111,7 +101,23 @@ class MemoryRepository(MemoryProvider):
|
|
111
101
|
messages=zep_messages
|
112
102
|
)
|
113
103
|
except Exception as e:
|
114
|
-
|
104
|
+
try:
|
105
|
+
try:
|
106
|
+
await self.zep.user.add(user_id=user_id)
|
107
|
+
except Exception as e:
|
108
|
+
print(f"Zep user addition error: {e}")
|
109
|
+
|
110
|
+
try:
|
111
|
+
await self.zep.memory.add_session(session_id=user_id, user_id=user_id)
|
112
|
+
except Exception as e:
|
113
|
+
print(f"Zep session creation error: {e}")
|
114
|
+
await self.zep.memory.add(
|
115
|
+
session_id=user_id,
|
116
|
+
messages=zep_messages
|
117
|
+
)
|
118
|
+
except Exception as e:
|
119
|
+
print(f"Zep memory addition error: {e}")
|
120
|
+
return
|
115
121
|
|
116
122
|
async def retrieve(self, user_id: str) -> str:
|
117
123
|
"""Retrieve memory context from Zep only."""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: solana-agent
|
3
|
-
Version: 23.0.
|
3
|
+
Version: 23.0.3
|
4
4
|
Summary: Agentic IQ
|
5
5
|
License: MIT
|
6
6
|
Keywords: ai,openai,ai agents,agi
|
@@ -89,6 +89,10 @@ An agent can have multiple tools and will choose the best one to answer the user
|
|
89
89
|
|
90
90
|
Routing is determined by optimal domain expertise of the agent for the user query.
|
91
91
|
|
92
|
+
When the agent uses a tool it feeds the tool output back into the agent to generate the final response.
|
93
|
+
|
94
|
+
This is important as tools generally output unstructured and unformatted data that the agent needs to prepare for the user.
|
95
|
+
|
92
96
|
Keep this in mind while designing your agentic systems using Solana Agent.
|
93
97
|
|
94
98
|
```ascii
|
@@ -153,6 +157,10 @@ async for response in solana_agent.process("user123", "What are the latest AI de
|
|
153
157
|
print(response, end="")
|
154
158
|
```
|
155
159
|
|
160
|
+
OpenAI API calls with no tool call = 1 (text)
|
161
|
+
|
162
|
+
OpenAI API calls with tool call = 2 (text, text)
|
163
|
+
|
156
164
|
### Audio/Audio Streaming
|
157
165
|
|
158
166
|
```python
|
@@ -184,6 +192,10 @@ async for response in solana_agent.process("user123", audio_content, output_form
|
|
184
192
|
print(response, end="")
|
185
193
|
```
|
186
194
|
|
195
|
+
OpenAI API calls with no tool call = 3 (audio transcribe, text, TTS)
|
196
|
+
|
197
|
+
OpenAI API calls with tool call = 4 (audio transcribe, text, text, TTS)
|
198
|
+
|
187
199
|
### Text/Audio Streaming
|
188
200
|
|
189
201
|
```python
|
@@ -213,6 +225,10 @@ async for response in solana_agent.process("user123", "What is the latest news o
|
|
213
225
|
print(response, end="")
|
214
226
|
```
|
215
227
|
|
228
|
+
OpenAI API calls with no tool call = 2 (text, TTS)
|
229
|
+
|
230
|
+
OpenAI API calls with tool call = 3 (text, text, TTS)
|
231
|
+
|
216
232
|
### Audio/Text Streaming
|
217
233
|
|
218
234
|
```python
|
@@ -244,6 +260,10 @@ async for response in solana_agent.process("user123", audio_content, audio_input
|
|
244
260
|
print(response, end="")
|
245
261
|
```
|
246
262
|
|
263
|
+
OpenAI API calls with no tool call = 2 (audio transcribe, text)
|
264
|
+
|
265
|
+
OpenAI API calls with tool call = 3 (audio transcribe, text, text)
|
266
|
+
|
247
267
|
## Optional Feature Configs
|
248
268
|
|
249
269
|
### Business Alignment
|
@@ -289,9 +309,9 @@ config = {
|
|
289
309
|
|
290
310
|
This mode is great for text output where the default response from OpenAI is enough.
|
291
311
|
|
292
|
-
However, it is also found to sometimes
|
312
|
+
However, it is also found to sometimes to not call tools when the tool should be called.
|
293
313
|
|
294
|
-
It is faster than calling `search_internet` from `sakit`
|
314
|
+
It is faster than calling `search_internet` from `sakit` by saving 2 API calls.
|
295
315
|
|
296
316
|
The default mode is disabled due to the issue of not calling tools properly and is not suitable for audio output.
|
297
317
|
|
@@ -547,7 +567,7 @@ If you have a question, feedback, or feature request - please open a GitHub disc
|
|
547
567
|
|
548
568
|
If you find a bug - please open a GitHub issue.
|
549
569
|
|
550
|
-
We are currently
|
570
|
+
We are currently accepting PRs if approved in discussions. Make sure all tests pass and the README & docs are updated.
|
551
571
|
|
552
572
|
To run the documentation site locally run `make livehtml` in the root directory.
|
553
573
|
|
@@ -24,12 +24,12 @@ solana_agent/plugins/registry.py,sha256=5S0DlUQKogsg1zLiRUIGMHEmGYHtOovU-S-5W1Mw
|
|
24
24
|
solana_agent/plugins/tools/__init__.py,sha256=c0z7ij42gs94_VJrcn4Y8gUlTxMhsFNY6ahIsNswdLk,231
|
25
25
|
solana_agent/plugins/tools/auto_tool.py,sha256=DgES_cZ6xKSf_HJpFINpvJxrjVlk5oeqa7pZRBsR9SM,1575
|
26
26
|
solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
|
27
|
-
solana_agent/repositories/memory.py,sha256=
|
27
|
+
solana_agent/repositories/memory.py,sha256=GYyNcwdQZKqfCjG_6uYh7YqjwwbUwvuVwbNim4aHN3I,7329
|
28
28
|
solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
|
29
29
|
solana_agent/services/agent.py,sha256=-u2rtu6w_0BQoHPFU3GdLuZLinQzQ0cpktOUsCRcbUU,20048
|
30
30
|
solana_agent/services/query.py,sha256=6K5RcxoHXaKMvxmDPo_WInRYtjOKJ8In4BgdLhzc_98,11363
|
31
31
|
solana_agent/services/routing.py,sha256=PMCSG5m3uLMaHMj3dxNvNfcFZaeaDi7kMr7AEBCzwDE,6499
|
32
|
-
solana_agent-23.0.
|
33
|
-
solana_agent-23.0.
|
34
|
-
solana_agent-23.0.
|
35
|
-
solana_agent-23.0.
|
32
|
+
solana_agent-23.0.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
|
33
|
+
solana_agent-23.0.3.dist-info/METADATA,sha256=18rqbhGAJM7J9_r0IJ4YW0x-QMR5MZ815BEQ2xdA4wo,19773
|
34
|
+
solana_agent-23.0.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
35
|
+
solana_agent-23.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|