solana-agent 23.0.2__py3-none-any.whl → 23.0.4__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.
@@ -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
- print(f"Zep memory addition error: {e}")
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.2
3
+ Version: 23.0.4
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -157,9 +157,17 @@ async for response in solana_agent.process("user123", "What are the latest AI de
157
157
  print(response, end="")
158
158
  ```
159
159
 
160
- OpenAI API calls with no tool call = 1 (text)
160
+ Single Agent:
161
161
 
162
- OpenAI API calls with tool call = 2 (text, text)
162
+ * OpenAI API calls with no tool call = 1 (agent)
163
+
164
+ * OpenAI API calls with tool call = 2 (agent, agent)
165
+
166
+ Multiple Agents:
167
+
168
+ * OpenAI API calls with no tool call = 2 (router, agent)
169
+
170
+ * OpenAI API calls with tool call = 3 (router, agent, agent)
163
171
 
164
172
  ### Audio/Audio Streaming
165
173
 
@@ -192,9 +200,18 @@ async for response in solana_agent.process("user123", audio_content, output_form
192
200
  print(response, end="")
193
201
  ```
194
202
 
195
- OpenAI API calls with no tool call = 3 (audio transcribe, text, TTS)
203
+ Single Agent:
204
+
205
+ * OpenAI API calls with no tool call = 3 (audio transcribe, agent, TTS)
206
+
207
+ * OpenAI API calls with tool call = 4 (audio transcribe, agent, agent, TTS)
208
+
209
+ Multiple Agents:
210
+
211
+ * OpenAI API calls with no tool call = 4 (router, audio transcribe, agent, TTS)
212
+
213
+ * OpenAI API calls with tool call = 5 (router, audio transcribe, agent, agent, TTS)
196
214
 
197
- OpenAI API calls with tool call = 4 (audio transcribe, text, text, TTS)
198
215
 
199
216
  ### Text/Audio Streaming
200
217
 
@@ -225,9 +242,17 @@ async for response in solana_agent.process("user123", "What is the latest news o
225
242
  print(response, end="")
226
243
  ```
227
244
 
228
- OpenAI API calls with no tool call = 2 (text, TTS)
245
+ Single Agent:
246
+
247
+ * OpenAI API calls with no tool call = 2 (agent, TTS)
229
248
 
230
- OpenAI API calls with tool call = 3 (text, text, TTS)
249
+ * OpenAI API calls with tool call = 3 (agent, agent, TTS)
250
+
251
+ Multiple Agents:
252
+
253
+ * OpenAI API calls with no tool call = 3 (router, agent, TTS)
254
+
255
+ * OpenAI API calls with tool call = 4 (router, agent, agent, TTS)
231
256
 
232
257
  ### Audio/Text Streaming
233
258
 
@@ -260,9 +285,17 @@ async for response in solana_agent.process("user123", audio_content, audio_input
260
285
  print(response, end="")
261
286
  ```
262
287
 
263
- OpenAI API calls with no tool call = 2 (audio transcribe, text)
288
+ Single Agent:
289
+
290
+ * OpenAI API calls with no tool call = 2 (audio transcribe, agent)
291
+
292
+ * OpenAI API calls with tool call = 3 (audio transcribe, agent, agent)
264
293
 
265
- OpenAI API calls with tool call = 3 (audio transcribe, text, text)
294
+ Multiple Agents:
295
+
296
+ * OpenAI API calls with no tool call = 3 (router, audio transcribe, agent)
297
+
298
+ * OpenAI API calls with tool call = 4 (router, audio transcribe, agent, agent)
266
299
 
267
300
  ## Optional Feature Configs
268
301
 
@@ -305,6 +338,12 @@ config = {
305
338
  }
306
339
  ```
307
340
 
341
+ API Calls:
342
+
343
+ * Zep adds 2 API calls per user query (GET and POST)
344
+
345
+ * If the Zep user and session isn't created it creates them for 2 API calls (POST)
346
+
308
347
  ### Internet Search
309
348
 
310
349
  This mode is great for text output where the default response from OpenAI is enough.
@@ -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=mrpmNSQ0D_eLebNY-cBqtecVVpIGXE7s9jCzOWEAuR4,6984
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.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
- solana_agent-23.0.2.dist-info/METADATA,sha256=joE8sHh6LPK0pcFKQYV4DD_khkI-7GPblIK76093JbM,19773
34
- solana_agent-23.0.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
- solana_agent-23.0.2.dist-info/RECORD,,
32
+ solana_agent-23.0.4.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
+ solana_agent-23.0.4.dist-info/METADATA,sha256=skglPDLw_o9I7N59WKtC_8XkfMyNh8j-r1WgwYrGkIw,20656
34
+ solana_agent-23.0.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
+ solana_agent-23.0.4.dist-info/RECORD,,