solana-agent 27.1.0__py3-none-any.whl → 27.2.0__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.
@@ -20,8 +20,8 @@ class OpenAIAdapter(LLMProvider):
20
20
 
21
21
  def __init__(self, api_key: str):
22
22
  self.client = AsyncOpenAI(api_key=api_key)
23
- self.parse_model = "gpt-4o-mini"
24
- self.text_model = "gpt-4o-mini"
23
+ self.parse_model = "gpt-4.1-nano"
24
+ self.text_model = "gpt-4.1-mini"
25
25
  self.transcription_model = "gpt-4o-mini-transcribe"
26
26
  self.tts_model = "tts-1"
27
27
 
@@ -15,7 +15,7 @@ from solana_agent.services.routing import RoutingService
15
15
  from solana_agent.repositories.memory import MemoryRepository
16
16
 
17
17
  # Adapter imports
18
- from solana_agent.adapters.llm_adapter import OpenAIAdapter
18
+ from solana_agent.adapters.openai_adapter import OpenAIAdapter
19
19
  from solana_agent.adapters.mongodb_adapter import MongoDBAdapter
20
20
 
21
21
  # Domain and plugin imports
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 27.1.0
3
+ Version: 27.2.0
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
17
  Requires-Dist: instructor (>=1.7.9,<2.0.0)
18
- Requires-Dist: openai (>=1.72.0,<2.0.0)
18
+ Requires-Dist: openai (>=1.74.0,<2.0.0)
19
19
  Requires-Dist: pydantic (>=2.11.3,<3.0.0)
20
20
  Requires-Dist: pymongo (>=4.12.0,<5.0.0)
21
21
  Requires-Dist: zep-cloud (>=2.10.1,<3.0.0)
@@ -82,19 +82,12 @@ Build your AI business in three lines of code!
82
82
 
83
83
  ### LLMs
84
84
 
85
- * [gpt-4o-mini](https://platform.openai.com/docs/models/gpt-4o-mini)
86
- * [gemini-2.0-flash](https://ai.google.dev/gemini-api/docs/models#gemini-2.0-flash)
87
- * [grok-3-mini-fast-beta](https://docs.x.ai/docs/models#models-and-pricing)
88
- * [tts-1](https://platform.openai.com/docs/models/tts-1)
89
- * [gpt-4o-mini-transcribe](https://platform.openai.com/docs/models/gpt-4o-mini-transcribe)
90
-
91
- It is recommended to use all three LLM providers as it is the best setup.
92
-
93
- Gemini makes the routing about 2x faster.
94
-
95
- Grok is a fast reasoning model and makes the answers and conversation much better.
96
-
97
- OpenAI is required while Gemini and Grok are optional.
85
+ * [gpt-4.1-mini](https://platform.openai.com/docs/models/gpt-4.1-mini) (agent)
86
+ * [gpt-4.1-nano](https://platform.openai.com/docs/models/gpt-4.1-nano) (router)
87
+ * [gemini-2.0-flash](https://ai.google.dev/gemini-api/docs/models#gemini-2.0-flash) (optional)
88
+ * [grok-3-mini-fast-beta](https://docs.x.ai/docs/models#models-and-pricing) (optional)
89
+ * [tts-1](https://platform.openai.com/docs/models/tts-1) (audio TTS)
90
+ * [gpt-4o-mini-transcribe](https://platform.openai.com/docs/models/gpt-4o-mini-transcribe) (audio transcription)
98
91
 
99
92
  ## Installation
100
93
 
@@ -155,12 +148,6 @@ Keep this in mind while designing your agentic systems using Solana Agent.
155
148
  from solana_agent import SolanaAgent
156
149
 
157
150
  config = {
158
- "grok": {
159
- "api_key": "your-grok-api-key",
160
- },
161
- "gemini": {
162
- "api_key": "your-gemini-api-key",
163
- },
164
151
  "openai": {
165
152
  "api_key": "your-openai-api-key",
166
153
  },
@@ -190,12 +177,6 @@ async for response in solana_agent.process("user123", "What are the latest AI de
190
177
  from solana_agent import SolanaAgent
191
178
 
192
179
  config = {
193
- "grok": {
194
- "api_key": "your-grok-api-key",
195
- },
196
- "gemini": {
197
- "api_key": "your-gemini-api-key",
198
- },
199
180
  "openai": {
200
181
  "api_key": "your-openai-api-key",
201
182
  },
@@ -227,12 +208,6 @@ async for response in solana_agent.process("user123", audio_content, output_form
227
208
  from solana_agent import SolanaAgent
228
209
 
229
210
  config = {
230
- "grok": {
231
- "api_key": "your-grok-api-key",
232
- },
233
- "gemini": {
234
- "api_key": "your-gemini-api-key",
235
- },
236
211
  "openai": {
237
212
  "api_key": "your-openai-api-key",
238
213
  },
@@ -262,12 +237,6 @@ async for response in solana_agent.process("user123", "What is the latest news o
262
237
  from solana_agent import SolanaAgent
263
238
 
264
239
  config = {
265
- "grok": {
266
- "api_key": "your-grok-api-key",
267
- },
268
- "gemini": {
269
- "api_key": "your-gemini-api-key",
270
- },
271
240
  "openai": {
272
241
  "api_key": "your-openai-api-key",
273
242
  },
@@ -334,6 +303,30 @@ config = {
334
303
  }
335
304
  ```
336
305
 
306
+ ### Gemini
307
+
308
+ This allows Gemini to replace OpenAI for agent and router.
309
+
310
+ ```python
311
+ config = {
312
+ "gemini": {
313
+ "api_key": "your-gemini-api-key",
314
+ },
315
+ }
316
+ ```
317
+
318
+ ### Grok
319
+
320
+ This allows Grok to replace OpenAI (or Gemini) for agent.
321
+
322
+ ```python
323
+ config = {
324
+ "grok": {
325
+ "api_key": "your-grok-api-key",
326
+ },
327
+ }
328
+ ```
329
+
337
330
  ## Tools
338
331
 
339
332
  Tools can be used from plugins like Solana Agent Kit (sakit) or via inline tools. Tools available via plugins integrate automatically with Solana Agent.
@@ -351,12 +344,6 @@ Tools can be used from plugins like Solana Agent Kit (sakit) or via inline tools
351
344
  from solana_agent import SolanaAgent
352
345
 
353
346
  config = {
354
- "grok": {
355
- "api_key": "your-grok-api-key",
356
- },
357
- "gemini": {
358
- "api_key": "your-gemini-api-key",
359
- },
360
347
  "openai": {
361
348
  "api_key": "your-openai-api-key",
362
349
  },
@@ -439,12 +426,6 @@ class TestTool(Tool):
439
426
  }
440
427
 
441
428
  config = {
442
- "grok": {
443
- "api_key": "your-grok-api-key",
444
- },
445
- "gemini": {
446
- "api_key": "your-gemini-api-key",
447
- },
448
429
  "openai": {
449
430
  "api_key": "your-openai-api-key",
450
431
  },
@@ -484,12 +465,6 @@ This knowledge is accessible to all your AI agents.
484
465
  from solana_agent import SolanaAgent
485
466
 
486
467
  config = {
487
- "grok": {
488
- "api_key": "your-grok-api-key",
489
- },
490
- "gemini": {
491
- "api_key": "your-gemini-api-key",
492
- },
493
468
  "openai": {
494
469
  "api_key": "your-openai-api-key",
495
470
  },
@@ -517,12 +492,6 @@ from solana_agent import SolanaAgent
517
492
  from solana_agent.interfaces.services.routing import RoutingService as RoutingServiceInterface
518
493
 
519
494
  config = {
520
- "grok": {
521
- "api_key": "your-grok-api-key",
522
- },
523
- "gemini": {
524
- "api_key": "your-gemini-api-key",
525
- },
526
495
  "openai": {
527
496
  "api_key": "your-openai-api-key",
528
497
  },
@@ -1,14 +1,14 @@
1
1
  solana_agent/__init__.py,sha256=ceYeUpjIitpln8YK1r0JVJU8mzG6cRPYu-HLny3d-Tw,887
2
2
  solana_agent/adapters/__init__.py,sha256=tiEEuuy0NF3ngc_tGEcRTt71zVI58v3dYY9RvMrF2Cg,204
3
- solana_agent/adapters/llm_adapter.py,sha256=Zx2-8LMixocDrymBFpS_UkUNm9PyL50XXLqlFCjdtFk,9050
4
3
  solana_agent/adapters/mongodb_adapter.py,sha256=qqEFbY_v1XGyFXBmwd5HSXSSHnA9wWo-Hm1vGEyIG0k,2718
4
+ solana_agent/adapters/openai_adapter.py,sha256=MVd5rLDcjDIFvNo9eh96NzreeDIE5FhpvYyjfhiRLag,9052
5
5
  solana_agent/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  solana_agent/client/solana_agent.py,sha256=cjzTUYIaCpH152XlkX7YxeY6z3Jja7KNfkAFdTxmZyc,5208
7
7
  solana_agent/domains/__init__.py,sha256=HiC94wVPRy-QDJSSRywCRrhrFfTBeHjfi5z-QfZv46U,168
8
8
  solana_agent/domains/agent.py,sha256=WTo-pEc66V6D_35cpDE-kTsw1SJM-dtylPZ7em5em7Q,2659
9
9
  solana_agent/domains/routing.py,sha256=UDlgTjUoC9xIBVYu_dnf9-KG_bBgdEXAv_UtDOrYo0w,650
10
10
  solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- solana_agent/factories/agent_factory.py,sha256=tVy29vHObuyALYcU8iNwVv200WOpj7np86_DAOXSeiQ,7897
11
+ solana_agent/factories/agent_factory.py,sha256=e7eDVMDWKoKCwm9vWY_KSF957QgWT1m06uXgmYRmq1o,7900
12
12
  solana_agent/interfaces/__init__.py,sha256=IQs1WIM1FeKP1-kY2FEfyhol_dB-I-VAe2rD6jrVF6k,355
13
13
  solana_agent/interfaces/client/client.py,sha256=CB8YuSsn-Lvinrb12huyIVaFpJqVDh8EHsHJi9SVXM4,1690
14
14
  solana_agent/interfaces/plugins/plugins.py,sha256=T8HPBsekmzVwfU_Rizp-vtzAeYkMlKMYD7U9d0Wjq9c,3338
@@ -29,7 +29,7 @@ solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9Oo
29
29
  solana_agent/services/agent.py,sha256=M1Aukr9xKGP9mL0jM_JqdRdWSqG4LxF0y0PDAzE_fpY,24608
30
30
  solana_agent/services/query.py,sha256=bhB6bZKWqsEf_fLXfsSC57q0CtmeDI6jUlxc9a0LGJw,11099
31
31
  solana_agent/services/routing.py,sha256=hC5t98KZPHty9kMX27KcuxcmZlwjm0g59uMkR8n7k_w,6818
32
- solana_agent-27.1.0.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
- solana_agent-27.1.0.dist-info/METADATA,sha256=e03o52DNgOqoKDsZfPZEb1fo-pT7oGoUCWWlhUkHjT0,20057
34
- solana_agent-27.1.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
- solana_agent-27.1.0.dist-info/RECORD,,
32
+ solana_agent-27.2.0.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
+ solana_agent-27.2.0.dist-info/METADATA,sha256=6LjVC0gu7_Lv9lkt35s8wv-Wl1TfHWebN9j_NDoxc74,19260
34
+ solana_agent-27.2.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
+ solana_agent-27.2.0.dist-info/RECORD,,