solana-agent 8.1.0__py3-none-any.whl → 11.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.
@@ -1,29 +1,27 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 8.1.0
3
+ Version: 11.0.0
4
4
  Summary: The Future of Work
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
7
7
  Author: Bevan Hunt
8
8
  Author-email: bevan@bevanhunt.com
9
- Requires-Python: >=3.9,<4.0
9
+ Requires-Python: >=3.12,<4.0
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
12
  Classifier: Programming Language :: Python :: 3.12
16
13
  Classifier: Programming Language :: Python :: 3.13
17
14
  Classifier: Programming Language :: Python :: 3 :: Only
18
15
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
16
  Requires-Dist: ntplib (>=0.4.0,<0.5.0)
20
- Requires-Dist: openai (>=1.65.3,<2.0.0)
17
+ Requires-Dist: openai (>=1.66.1,<2.0.0)
21
18
  Requires-Dist: pandas (>=2.2.3,<3.0.0)
22
19
  Requires-Dist: pinecone (>=6.0.1,<7.0.0)
23
20
  Requires-Dist: pydantic (>=2.10.6,<3.0.0)
24
21
  Requires-Dist: pymongo (>=4.11.2,<5.0.0)
22
+ Requires-Dist: qdrant-client (>=1.13.3,<2.0.0)
25
23
  Requires-Dist: requests (>=2.32.3,<3.0.0)
26
- Requires-Dist: zep-cloud (>=2.5.0,<3.0.0)
24
+ Requires-Dist: zep-cloud (>=2.6.1,<3.0.0)
27
25
  Requires-Dist: zep-python (>=2.0.2,<3.0.0)
28
26
  Project-URL: Repository, https://github.com/truemagic-coder/solana-agent
29
27
  Description-Content-Type: text/markdown
@@ -32,7 +30,9 @@ Description-Content-Type: text/markdown
32
30
 
33
31
  [![PyPI - Version](https://img.shields.io/pypi/v/solana-agent)](https://pypi.org/project/solana-agent/)
34
32
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
35
- [![Python 3.9+](https://img.shields.io/badge/python-3.9+-orange.svg)](https://www.python.org/downloads/)
33
+ [![Python 3.12+](https://img.shields.io/badge/python-3.12+-orange.svg)](https://www.python.org/downloads/)
34
+ [![codecov](https://img.shields.io/codecov/c/github/truemagic-coder/solana-agent/main.svg)](https://codecov.io/gh/truemagic-coder/solana-agent)
35
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/truemagic-coder/solana-agent/test.yml?branch=main)](https://github.com/truemagic-coder/solana-agent/actions/workflows/test.yml)
36
36
 
37
37
  ![Solana Agent Logo](https://dl.walletbubbles.com/solana-agent-logo.png?width=200)
38
38
 
@@ -144,17 +144,20 @@ Solana Agent transforms organizations into living systems that continuously lear
144
144
  Identify trends invisible to individual actors through network-wide analysis.
145
145
  - **Failure-Embracing Architecture:**
146
146
  Convert mistakes into learning opportunities through systematic analysis.
147
+ - **Performance-Based Optimization:**
148
+ Route tasks to agents with highest satisfaction scores through NPS feedback integration.
149
+ - **Continuous Quality Assessment:**
150
+ Monitor interaction quality through automated satisfaction surveys and impact metrics.
147
151
 
148
152
  ## Technical Features
149
153
 
150
154
  - **🗣️ Advanced Interaction Layer:**
151
155
  Streaming text-based conversations with real-time thinking.
152
- Voice-to-voice conversations with natural cadence.
153
156
  Multi-turn context preservation and reasoning.
154
157
 
155
158
  - **🤖 Multi-Agent Swarm Architecture:**
156
159
  Dynamic specialized agent creation and coordination.
157
- Intelligent routing based on query content and agent expertise.
160
+ Intelligent routing based on query content, agent expertise, and performance metrics.
158
161
  Seamless handoffs with comprehensive context passing.
159
162
  Shared memory and collective intelligence across the entire swarm.
160
163
 
@@ -163,7 +166,8 @@ Solana Agent transforms organizations into living systems that continuously lear
163
166
  Ticket management for complex or sensitive inquiries.
164
167
  Multiple handoff patterns (AI↔human, human↔human).
165
168
  In-chat command system for human agents to manage tickets.
166
- Availability status management for human operators.
169
+ Availability status management with automatic timeout detection.
170
+ Direct agent-to-agent communication for real-time consultation.
167
171
 
168
172
  - **🧠 Distributed Intelligence Capabilities:**
169
173
  Cross-domain knowledge integration from multiple sources.
@@ -178,7 +182,25 @@ Solana Agent transforms organizations into living systems that continuously lear
178
182
  Automatic ticket lifecycle management with AI-driven resolution.
179
183
  Intelligent handoffs maintaining ticket context across agents.
180
184
  Command-line interface for human ticket management.
181
- Metrics and analytics on resolution quality and time.
185
+ Metrics and analytics on resolution quality and time.
186
+ Proactive reminders for pending human-assigned tickets.
187
+ Auto-reassignment system for stalled tickets.
188
+ Human agent activity tracking and status management.
189
+
190
+ - **📊 Performance Optimization Framework:**
191
+ Integrated Net Promoter Score (NPS) system for interaction quality measurement.
192
+ Automatic satisfaction surveys after ticket resolution.
193
+ Performance-weighted agent routing based on satisfaction scores.
194
+ Continuous quality monitoring and feedback loops.
195
+ Simple rating submission for users with optional feedback.
196
+ Agent performance analytics and trend identification.
197
+
198
+ - **📋 Task Planning System:**
199
+ Automated complexity assessment for incoming tasks.
200
+ Task decomposition into subtasks with dependencies.
201
+ Intelligent workload distribution based on agent capacity.
202
+ Visual progress tracking with completion estimates.
203
+ Prioritization based on urgency, importance, and dependencies.
182
204
 
183
205
  - **🛡️ Governance Framework:**
184
206
  Define organization-wide values and operating principles in code.
@@ -187,18 +209,64 @@ Solana Agent transforms organizations into living systems that continuously lear
187
209
  Transparent insight extraction with review capabilities.
188
210
  Performance analytics across the agent network.
189
211
 
212
+ - **🔍 Project Simulation Framework:**
213
+ Data-driven project feasibility assessment using historical performance.
214
+ Intelligent timeline estimation based on similar past projects.
215
+ Risk analysis with probability and impact scoring.
216
+ Resource requirement prediction and availability matching.
217
+ System load analysis to prevent overcommitment.
218
+ Comprehensive recommendation engine with contextual insights.
219
+ Historical satisfaction trend analysis for similar work.
220
+
221
+ - **✅ Human Approval Workflow:**
222
+ Configurable approval requirements for complex projects.
223
+ Simple queries bypass approval for efficient handling.
224
+ Data-driven approval process with simulation results.
225
+ Multi-approver support with role-based authorization.
226
+ Project lifecycle tracking from submission to approval/rejection.
227
+ Transparent decision documentation with comments and rationale.
228
+
229
+ - **🔔 Notification System:**
230
+ Multi-channel notifications for human agents.
231
+ Approval request routing to authorized approvers.
232
+ Configurable notification handlers for different channels.
233
+ Real-time and asynchronous communication support.
234
+ Status tracking for notification delivery and response.
235
+
236
+ - **🏢 Multi-tenant Platform Architecture:**
237
+ Complete tenant isolation with separate databases and storage.
238
+ Tenant-specific configuration overrides with inheritance from global defaults.
239
+ Support for both Qdrant and Pinecone vector databases.
240
+ Per-tenant agent specialization and customization.
241
+ Centralized management through tenant registry.
242
+ Resource sharing with tenant-level permissions.
243
+ Standardized interfaces across all tenants.
244
+ Efficient multi-tenant scaling with shared infrastructure.
245
+
246
+ - **🔌 Standard Python Plugin System:**
247
+ Extensible architecture using Python's native package ecosystem.
248
+ PyPI-compatible plugin distribution with standard dependency management.
249
+ Entry point registration (`solana_agent.plugins`) for seamless discovery.
250
+ Tool registry for AI agent capability extension.
251
+ Permission-based tool access for security and control.
252
+ Clean interface for third-party integrations through standard Python APIs.
253
+ Built-in internet search capabilities via Perplexity API.
254
+ Runtime tool discovery without service restarts.
255
+
190
256
  ## Implementation Technologies
191
257
 
192
258
  Solana Agent leverages multiple technologies to enable these capabilities:
193
259
 
194
260
  - **Knowledge Integration:**
195
- Perplexity API, X/Twitter (Grok API), Zep memory, Pinecone vector search.
261
+ Zep memory and Pinecone or Qdrant vector search.
196
262
  - **Collaborative Intelligence:**
197
263
  Multi-agent swarm architecture with specialized expertise domains.
198
264
  - **Human-AI Teaming:**
199
265
  Integrated ticketing, notification systems, and real-time handoffs.
200
266
  - **Organization Alignment:**
201
267
  Unified mission framework, critic system, and collective memory.
268
+ - **External Integration:**
269
+ Plugin system for extensible tool capabilities and API connections.
202
270
 
203
271
  ## Installation
204
272
 
@@ -210,65 +278,134 @@ You can install Solana Agent using pip:
210
278
 
211
279
  Each public method has a docstring for real-time IDE hinting.
212
280
 
213
- ## Production Apps
281
+ ## Example App
214
282
 
215
- - **CometHeart:**
216
- AI Companion and Business Coach on mobile using voice-to-voice conversations.
283
+ ```python
284
+ from solana_agent import SolanaAgent
285
+
286
+ # Define configuration with plugins
287
+ config = {
288
+ "organization": {
289
+ "mission_statement": "To revolutionize knowledge work through AI-human collaboration that puts people first.",
290
+ "values": {
291
+ "Human-Centered": "Always prioritize human well-being and augmentation over replacement.",
292
+ "Transparency": "Provide clear explanations for decisions and never hide information.",
293
+ "Collective Intelligence": "Value diverse perspectives and combine human and AI strengths.",
294
+ "Continuous Learning": "Embrace feedback and continuously improve based on experience."
295
+ },
296
+ "goals": [
297
+ "Enable human experts to focus on high-value creative work",
298
+ "Reduce administrative overhead through intelligent automation",
299
+ "Create seamless knowledge flow across the organization"
300
+ ],
301
+ "guidance": "When making decisions, prioritize long-term user success over short-term efficiency."
302
+ },
303
+ "mongo": {
304
+ "connection_string": "mongodb://localhost:27017",
305
+ "database": "solana_agent"
306
+ },
307
+ "openai": {
308
+ "api_key": "your-openai-key",
309
+ "default_model": "gpt-4o-mini"
310
+ },
311
+ "pinecone": {
312
+ "api_key": "your-pinecone-key",
313
+ "index": "your-index"
314
+ },
315
+ "plugins_dir": "plugins",
316
+ "ai_agents": [
317
+ {
318
+ "name": "research_specialist",
319
+ "instructions": "You are an expert researcher who synthesizes complex information clearly.",
320
+ "specialization": "Research and knowledge synthesis",
321
+ "model": "o3-mini",
322
+ "tools": ["search_internet"]
323
+ },
324
+ {
325
+ "name": "customer_support",
326
+ "instructions": "You provide friendly, helpful customer support responses.",
327
+ "specialization": "Customer inquiries",
328
+ "model": "gpt-4o-mini"
329
+ }
330
+ ],
331
+ "human_agents": [
332
+ {
333
+ "agent_id": "expert_dev",
334
+ "name": "Senior Developer",
335
+ "specialization": "Complex technical issues"
336
+ },
337
+ {
338
+ "agent_id": "support_lead",
339
+ "name": "Support Team Lead",
340
+ "specialization": "Escalated customer issues"
341
+ }
342
+ ],
343
+ "api_keys": {
344
+ "perplexity": "your-perplexity-key" # For internet search plugin
345
+ }
346
+ }
347
+
348
+ # Create agent with configuration
349
+ solana_agent = SolanaAgent(config=config)
350
+
351
+ # Process a query that can use tools
352
+ async for response in solana_agent.process("user123", "What are the latest AI developments?"):
353
+ print(response, end="")
354
+ ```
217
355
 
218
- ## Example Setup
356
+ ## Example Plugin
357
+
358
+ `my_plugin/plugin.py`
219
359
 
220
360
  ```python
221
- # Create a decentralized organizational structure
222
- from solana_agent import Swarm, AI, MongoDatabase
223
-
224
- # Initialize the organizational database
225
- db = MongoDatabase(db_url="mongodb://localhost:27017", db_name="organization_brain")
226
-
227
- # Define the organization's mission and values
228
- mission = """Our organization maximizes collective intelligence through
229
- transparent collaboration between humans and AI. We value truth,
230
- clarity, and continuous improvement in all interactions."""
231
-
232
- # Create the organizational swarm
233
- org = Swarm(
234
- database=db,
235
- directive=mission,
236
- )
237
-
238
- # Register AI expertise domains
239
- org.register(
240
- name="knowledge_worker",
241
- agent=AI(
242
- openai_api_key="key",
243
- instructions="You are an expert in research and knowledge synthesis...",
244
- database=db
245
- ),
246
- specialization="Research, analysis, and knowledge synthesis"
247
- )
248
-
249
- org.register(
250
- name="customer_interface",
251
- agent=AI(
252
- openai_api_key="key",
253
- instructions="You handle customer inquiries with empathy and clarity...",
254
- database=db
255
- ),
256
- specialization="Customer interaction and support"
257
- )
258
-
259
- # Register human expertise domains
260
- org.register_human_agent(
261
- agent_id="human_expert_1",
262
- name="Technical Specialist",
263
- specialization="Advanced technical problem solving requiring human judgment",
264
- notification_handler=email_notification
265
- )
266
-
267
- # Process work through the organization
268
- async for response in org.process("user123", "How can we optimize our supply chain?"):
269
- print(response, end="")
361
+ from solana_agent import Tool
362
+
363
+ class MyCustomTool(Tool):
364
+ @property
365
+ def name(self) -> str:
366
+ return "my_custom_tool"
367
+
368
+ @property
369
+ def description(self) -> str:
370
+ return "Does something amazing"
371
+
372
+ @property
373
+ def parameters_schema(self) -> dict:
374
+ return {
375
+ "type": "object",
376
+ "properties": {
377
+ "parameter1": {"type": "string", "description": "First parameter"}
378
+ }
379
+ }
380
+
381
+ def execute(self, **kwargs) -> dict:
382
+ # Tool implementation here
383
+ return {"result": "success", "data": "Something amazing"}
384
+
385
+ class SolanaPlugin:
386
+ def get_tools(self):
387
+ return [MyCustomTool()]
270
388
  ```
271
389
 
390
+ `pyproject.toml`
391
+
392
+ ```toml
393
+ [build-system]
394
+ requires = ["setuptools>=42", "wheel"]
395
+ build-backend = "setuptools.build_meta"
396
+
397
+ [project]
398
+ name = "my-solana-plugin"
399
+ version = "0.1.0"
400
+
401
+ [project.entry-points."solana_agent.plugins"]
402
+ my_plugin = "my_plugin.plugin:SolanaPlugin"
403
+ ```
404
+
405
+ ## Example App
406
+
407
+ [Solana Agent Example App](https://github.com/truemagic-coder/solana-agent-app)
408
+
272
409
  ## License
273
410
 
274
411
  This project is licensed under the MIT License - see the LICENSE file for details.
@@ -0,0 +1,6 @@
1
+ solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
+ solana_agent/ai.py,sha256=XM_bqGz5XLga5SEaKIgSD8_H09DbB6_ir7Tt1tbuJFw,188008
3
+ solana_agent-11.0.0.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
+ solana_agent-11.0.0.dist-info/METADATA,sha256=Ufhql8QGmSGdcQeu5FnFMmnd8qhgVEFDOFb5amIFlQY,17761
5
+ solana_agent-11.0.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
+ solana_agent-11.0.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
- solana_agent/ai.py,sha256=wgNWzJU0AJf8ZL71D-phXau7jz7DIhJjSErEQ39_QyE,129937
3
- solana_agent-8.1.0.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
- solana_agent-8.1.0.dist-info/METADATA,sha256=QrXQirdpnwlihF4CUqvESiAQIVkcrKqRkEUqJm6VFX0,11701
5
- solana_agent-8.1.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
- solana_agent-8.1.0.dist-info/RECORD,,