solana-agent 20.1.4__py3-none-any.whl → 21.0.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.
@@ -118,11 +118,12 @@ class SolanaAgent(SolanaAgentInterface):
118
118
  user_id, page_num, page_size, sort_order
119
119
  )
120
120
 
121
- def register_tool(self, tool: Tool) -> bool:
121
+ def register_tool(self, agent_name: str, tool: Tool) -> bool:
122
122
  """
123
123
  Register a tool with the agent system.
124
124
 
125
125
  Args:
126
+ agent_name: Name of the agent to register the tool with
126
127
  tool: Tool instance to register
127
128
 
128
129
  Returns:
@@ -131,8 +132,6 @@ class SolanaAgent(SolanaAgentInterface):
131
132
  success = self.query_service.agent_service.tool_registry.register_tool(
132
133
  tool)
133
134
  if success:
134
- agents = self.query_service.agent_service.get_all_ai_agents()
135
- for agent_name in agents:
136
- self.query_service.agent_service.assign_tool_for_agent(
137
- agent_name, tool.name)
135
+ self.query_service.agent_service.assign_tool_for_agent(
136
+ agent_name, tool.name)
138
137
  return success
@@ -38,6 +38,6 @@ class SolanaAgent(ABC):
38
38
  pass
39
39
 
40
40
  @abstractmethod
41
- def register_tool(self, tool: Tool) -> bool:
41
+ def register_tool(self, agent_name: str, tool: Tool) -> bool:
42
42
  """Register a tool in the registry."""
43
43
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 20.1.4
3
+ Version: 21.0.0
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -40,7 +40,8 @@ Description-Content-Type: text/markdown
40
40
  Build your AI business in three lines of code!
41
41
 
42
42
  ## Why?
43
- * Three lines of code required
43
+ * Three lines of code setup
44
+ * Multi-Agent Swarm
44
45
  * Multi-Modal Streaming
45
46
  * Conversational Memory & History
46
47
  * Intelligent Routing
@@ -54,15 +55,17 @@ Build your AI business in three lines of code!
54
55
 
55
56
  ## Features
56
57
 
58
+ * Easy three lines of code setup
59
+ * Designed for a multi-agent swarm
57
60
  * Seamless text and audio streaming with real-time multi-modal processing
58
61
  * Persistent memory that preserves context across all agent interactions
59
62
  * Streamlined message history for all agent interactions
60
63
  * Intelligent query routing to agents with optimal domain expertise or your own custom routing
61
64
  * Unified value system ensuring brand-aligned agent responses
62
- * Powerful tool integration using standard Python packages and/or inline classes
65
+ * Powerful tool integration using standard Python packages and/or inline tools
63
66
  * Assigned tools are utilized by agents automatically and effectively
64
67
  * Simple business definition using JSON
65
- * Ability to access any MCP server via a URL
68
+ * Ability to access any MCP server via URL
66
69
 
67
70
  ## Stack
68
71
 
@@ -79,46 +82,6 @@ You can install Solana Agent using pip:
79
82
 
80
83
  ## Usage
81
84
 
82
- ### Business Alignment Config - Optional
83
-
84
- ```python
85
- config = {
86
- "business": {
87
- "mission": "To provide users with a one-stop shop for their queries.",
88
- "values": {
89
- "Friendliness": "Users must be treated fairly, openly, and with friendliness.",
90
- "Ethical": "Agents must use a strong ethical framework in their interactions with users.",
91
- },
92
- "goals": [
93
- "Empower users with great answers to their queries.",
94
- ],
95
- "voice": "The voice of the brand is that of a research business."
96
- },
97
- }
98
- ```
99
-
100
- ### Conversational History Config - Optional
101
-
102
- ```python
103
- config = {
104
- "mongo": {
105
- "connection_string": "mongodb://localhost:27017",
106
- "database": "solana_agent"
107
- },
108
- }
109
- ```
110
-
111
- ### Conversational Memory Config - Optional
112
-
113
- ```python
114
- config = {
115
- "zep": {
116
- "api_key": "your-zep-api-key",
117
- "base_url": "your-zep-base-url", # not applicable if using Zep Cloud
118
- },
119
- }
120
- ```
121
-
122
85
  ### Text/Text Streaming
123
86
 
124
87
  ```python
@@ -239,13 +202,55 @@ async for response in solana_agent.process("user123", audio_content, audio_input
239
202
  print(response, end="")
240
203
  ```
241
204
 
242
- ### Plugins
205
+ ## Optional Feature Configs
206
+
207
+ ### Business Alignment
208
+
209
+ ```python
210
+ config = {
211
+ "business": {
212
+ "mission": "To provide users with a one-stop shop for their queries.",
213
+ "values": {
214
+ "Friendliness": "Users must be treated fairly, openly, and with friendliness.",
215
+ "Ethical": "Agents must use a strong ethical framework in their interactions with users.",
216
+ },
217
+ "goals": [
218
+ "Empower users with great answers to their queries.",
219
+ ],
220
+ "voice": "The voice of the brand is that of a research business."
221
+ },
222
+ }
223
+ ```
224
+
225
+ ### Conversational History
226
+
227
+ ```python
228
+ config = {
229
+ "mongo": {
230
+ "connection_string": "mongodb://localhost:27017",
231
+ "database": "solana_agent"
232
+ },
233
+ }
234
+ ```
235
+
236
+ ### Conversational Memory
237
+
238
+ ```python
239
+ config = {
240
+ "zep": {
241
+ "api_key": "your-zep-api-key",
242
+ "base_url": "your-zep-base-url", # not applicable if using Zep Cloud
243
+ },
244
+ }
245
+ ```
246
+
247
+ ## Plugins
243
248
 
244
249
  Plugins like Solana Agent Kit (sakit) integrate automatically with Solana Agent.
245
250
 
246
251
  `pip install sakit`
247
252
 
248
- #### Internet Search
253
+ ### Internet Search
249
254
  ```python
250
255
  from solana_agent import SolanaAgent
251
256
 
@@ -281,7 +286,7 @@ async for response in solana_agent.process("user123", "What are the latest AI de
281
286
  print(response, end="")
282
287
  ```
283
288
 
284
- #### MCP
289
+ ### MCP
285
290
  ```python
286
291
  from solana_agent import SolanaAgent
287
292
 
@@ -321,6 +326,8 @@ async for response in solana_agent.process("user123", "What are the latest AI de
321
326
 
322
327
  To create a plugin like Solana Agent Kit - read the [code](https://github.com/truemagic-coder/solana-agent-kit)
323
328
 
329
+ ## Advanced
330
+
324
331
  ### Custom Inline Tools
325
332
 
326
333
  ```python
@@ -395,7 +402,7 @@ solana_agent = SolanaAgent(config=config)
395
402
 
396
403
  test_tool = TestTool()
397
404
 
398
- solana_agent.register_tool(test_tool)
405
+ solana_agent.register_tool("customer_support", test_tool)
399
406
 
400
407
  async for response in solana_agent.process("user123", "What are the latest AI developments?"):
401
408
  print(response, end="")
@@ -3,14 +3,14 @@ solana_agent/adapters/__init__.py,sha256=tiEEuuy0NF3ngc_tGEcRTt71zVI58v3dYY9RvMr
3
3
  solana_agent/adapters/llm_adapter.py,sha256=3_7whVsPSJdlzBVUBlV7RBRCCo2dMXNmlACIrCoQxQ4,5426
4
4
  solana_agent/adapters/mongodb_adapter.py,sha256=qqEFbY_v1XGyFXBmwd5HSXSSHnA9wWo-Hm1vGEyIG0k,2718
5
5
  solana_agent/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- solana_agent/client/solana_agent.py,sha256=4xXPNNcULMEIx-V-_zu2IH0tlPjQU2ZzkIqZFuxAJHY,5206
6
+ solana_agent/client/solana_agent.py,sha256=dmrSBHyH7czn6qvitqA9iiHwUiDHtvWyz2Ok6paoJdw,5171
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
11
  solana_agent/factories/agent_factory.py,sha256=c5TgZpDZ6m_q8F-Bv36Rl4dXq5yWNvAN2q9Nq_PtqqM,5547
12
12
  solana_agent/interfaces/__init__.py,sha256=IQs1WIM1FeKP1-kY2FEfyhol_dB-I-VAe2rD6jrVF6k,355
13
- solana_agent/interfaces/client/client.py,sha256=c9n5uF7UzwqCTU-jFz-33eq9TRyora_A5UbO4-EYlJU,1503
13
+ solana_agent/interfaces/client/client.py,sha256=TIfuO206gIm7nqBopcSCLl8oR_mPuLfN4EV-yywmU18,1520
14
14
  solana_agent/interfaces/plugins/plugins.py,sha256=T8HPBsekmzVwfU_Rizp-vtzAeYkMlKMYD7U9d0Wjq9c,3338
15
15
  solana_agent/interfaces/providers/data_storage.py,sha256=NqGeFvAzhz9rr-liLPRNCGjooB2EIhe-EVsMmX__b0M,1658
16
16
  solana_agent/interfaces/providers/llm.py,sha256=f58kDrvESBfIr2XoZJ-VVa8vL56qyuhkZaRnZ2mx8l4,1509
@@ -29,7 +29,7 @@ solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9Oo
29
29
  solana_agent/services/agent.py,sha256=MdSPIC81JNuP2hfzXNGWOnRfe7OxwYHgDVZAphVCCo8,16450
30
30
  solana_agent/services/query.py,sha256=QduAeiltFTwNDlAbC_emu544U4XGNioj-OauRGt9HSY,11070
31
31
  solana_agent/services/routing.py,sha256=PMCSG5m3uLMaHMj3dxNvNfcFZaeaDi7kMr7AEBCzwDE,6499
32
- solana_agent-20.1.4.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
- solana_agent-20.1.4.dist-info/METADATA,sha256=fnqm3cRwxnmHdvW2-2H1Xlg5n-h10Tzyh3rKE3G7VnI,15083
34
- solana_agent-20.1.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
35
- solana_agent-20.1.4.dist-info/RECORD,,
32
+ solana_agent-21.0.0.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
+ solana_agent-21.0.0.dist-info/METADATA,sha256=k-idmj9YmU_lhJXaViBwZ563tl68Cl7Rp0b5rGvLHXM,15170
34
+ solana_agent-21.0.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
35
+ solana_agent-21.0.0.dist-info/RECORD,,