solana-agent 8.0.3__tar.gz → 10.0.0__tar.gz
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-8.0.3 → solana_agent-10.0.0}/PKG-INFO +159 -60
- {solana_agent-8.0.3 → solana_agent-10.0.0}/README.md +155 -57
- {solana_agent-8.0.3 → solana_agent-10.0.0}/pyproject.toml +5 -3
- solana_agent-10.0.0/solana_agent/ai.py +5215 -0
- solana_agent-8.0.3/solana_agent/ai.py +0 -2997
- {solana_agent-8.0.3 → solana_agent-10.0.0}/LICENSE +0 -0
- {solana_agent-8.0.3 → solana_agent-10.0.0}/solana_agent/__init__.py +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: solana-agent
|
3
|
-
Version:
|
4
|
-
Summary: The
|
3
|
+
Version: 10.0.0
|
4
|
+
Summary: The Future of Work
|
5
5
|
License: MIT
|
6
6
|
Keywords: ai,openai,ai agents,agi
|
7
7
|
Author: Bevan Hunt
|
@@ -17,11 +17,12 @@ Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
19
19
|
Requires-Dist: ntplib (>=0.4.0,<0.5.0)
|
20
|
-
Requires-Dist: openai (>=1.65.
|
20
|
+
Requires-Dist: openai (>=1.65.5,<2.0.0)
|
21
21
|
Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
22
22
|
Requires-Dist: pinecone (>=6.0.1,<7.0.0)
|
23
23
|
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
24
24
|
Requires-Dist: pymongo (>=4.11.2,<5.0.0)
|
25
|
+
Requires-Dist: qdrant-client (>=1.13.3,<2.0.0)
|
25
26
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
26
27
|
Requires-Dist: zep-cloud (>=2.5.0,<3.0.0)
|
27
28
|
Requires-Dist: zep-python (>=2.0.2,<3.0.0)
|
@@ -33,6 +34,8 @@ Description-Content-Type: text/markdown
|
|
33
34
|
[](https://pypi.org/project/solana-agent/)
|
34
35
|
[](https://opensource.org/licenses/MIT)
|
35
36
|
[](https://www.python.org/downloads/)
|
37
|
+
[](https://codecov.io/gh/truemagic-coder/solana-agent)
|
38
|
+
[](https://github.com/truemagic-coder/solana-agent/actions/workflows/test.yml)
|
36
39
|
|
37
40
|

|
38
41
|
|
@@ -144,17 +147,20 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
144
147
|
Identify trends invisible to individual actors through network-wide analysis.
|
145
148
|
- **Failure-Embracing Architecture:**
|
146
149
|
Convert mistakes into learning opportunities through systematic analysis.
|
150
|
+
- **Performance-Based Optimization:**
|
151
|
+
Route tasks to agents with highest satisfaction scores through NPS feedback integration.
|
152
|
+
- **Continuous Quality Assessment:**
|
153
|
+
Monitor interaction quality through automated satisfaction surveys and impact metrics.
|
147
154
|
|
148
155
|
## Technical Features
|
149
156
|
|
150
157
|
- **🗣️ Advanced Interaction Layer:**
|
151
158
|
Streaming text-based conversations with real-time thinking.
|
152
|
-
Voice-to-voice conversations with natural cadence.
|
153
159
|
Multi-turn context preservation and reasoning.
|
154
160
|
|
155
161
|
- **🤖 Multi-Agent Swarm Architecture:**
|
156
162
|
Dynamic specialized agent creation and coordination.
|
157
|
-
Intelligent routing based on query content and
|
163
|
+
Intelligent routing based on query content, agent expertise, and performance metrics.
|
158
164
|
Seamless handoffs with comprehensive context passing.
|
159
165
|
Shared memory and collective intelligence across the entire swarm.
|
160
166
|
|
@@ -163,7 +169,8 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
163
169
|
Ticket management for complex or sensitive inquiries.
|
164
170
|
Multiple handoff patterns (AI↔human, human↔human).
|
165
171
|
In-chat command system for human agents to manage tickets.
|
166
|
-
Availability status management
|
172
|
+
Availability status management with automatic timeout detection.
|
173
|
+
Direct agent-to-agent communication for real-time consultation.
|
167
174
|
|
168
175
|
- **🧠 Distributed Intelligence Capabilities:**
|
169
176
|
Cross-domain knowledge integration from multiple sources.
|
@@ -172,6 +179,32 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
172
179
|
Time-aware contextual responses.
|
173
180
|
Self-critical improvement systems.
|
174
181
|
|
182
|
+
- **🎫 Comprehensive Ticket System:**
|
183
|
+
Universal ticket tracking for all interactions (AI-to-AI and AI-to-human).
|
184
|
+
Structured resolution assessment with confidence scoring.
|
185
|
+
Automatic ticket lifecycle management with AI-driven resolution.
|
186
|
+
Intelligent handoffs maintaining ticket context across agents.
|
187
|
+
Command-line interface for human ticket management.
|
188
|
+
Metrics and analytics on resolution quality and time.
|
189
|
+
Proactive reminders for pending human-assigned tickets.
|
190
|
+
Auto-reassignment system for stalled tickets.
|
191
|
+
Human agent activity tracking and status management.
|
192
|
+
|
193
|
+
- **📊 Performance Optimization Framework:**
|
194
|
+
Integrated Net Promoter Score (NPS) system for interaction quality measurement.
|
195
|
+
Automatic satisfaction surveys after ticket resolution.
|
196
|
+
Performance-weighted agent routing based on satisfaction scores.
|
197
|
+
Continuous quality monitoring and feedback loops.
|
198
|
+
Simple rating submission for users with optional feedback.
|
199
|
+
Agent performance analytics and trend identification.
|
200
|
+
|
201
|
+
- **📋 Task Planning System:**
|
202
|
+
Automated complexity assessment for incoming tasks.
|
203
|
+
Task decomposition into subtasks with dependencies.
|
204
|
+
Intelligent workload distribution based on agent capacity.
|
205
|
+
Visual progress tracking with completion estimates.
|
206
|
+
Prioritization based on urgency, importance, and dependencies.
|
207
|
+
|
175
208
|
- **🛡️ Governance Framework:**
|
176
209
|
Define organization-wide values and operating principles in code.
|
177
210
|
Consistent decision-making aligned with organizational priorities.
|
@@ -179,18 +212,64 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
179
212
|
Transparent insight extraction with review capabilities.
|
180
213
|
Performance analytics across the agent network.
|
181
214
|
|
215
|
+
- **🔍 Project Simulation Framework:**
|
216
|
+
Data-driven project feasibility assessment using historical performance.
|
217
|
+
Intelligent timeline estimation based on similar past projects.
|
218
|
+
Risk analysis with probability and impact scoring.
|
219
|
+
Resource requirement prediction and availability matching.
|
220
|
+
System load analysis to prevent overcommitment.
|
221
|
+
Comprehensive recommendation engine with contextual insights.
|
222
|
+
Historical satisfaction trend analysis for similar work.
|
223
|
+
|
224
|
+
- **✅ Human Approval Workflow:**
|
225
|
+
Configurable approval requirements for complex projects.
|
226
|
+
Simple queries bypass approval for efficient handling.
|
227
|
+
Data-driven approval process with simulation results.
|
228
|
+
Multi-approver support with role-based authorization.
|
229
|
+
Project lifecycle tracking from submission to approval/rejection.
|
230
|
+
Transparent decision documentation with comments and rationale.
|
231
|
+
|
232
|
+
- **🔔 Notification System:**
|
233
|
+
Multi-channel notifications for human agents.
|
234
|
+
Approval request routing to authorized approvers.
|
235
|
+
Configurable notification handlers for different channels.
|
236
|
+
Real-time and asynchronous communication support.
|
237
|
+
Status tracking for notification delivery and response.
|
238
|
+
|
239
|
+
- **🏢 Multi-tenant Platform Architecture:**
|
240
|
+
Complete tenant isolation with separate databases and storage.
|
241
|
+
Tenant-specific configuration overrides with inheritance from global defaults.
|
242
|
+
Support for both Qdrant and Pinecone vector databases.
|
243
|
+
Per-tenant agent specialization and customization.
|
244
|
+
Centralized management through tenant registry.
|
245
|
+
Resource sharing with tenant-level permissions.
|
246
|
+
Standardized interfaces across all tenants.
|
247
|
+
Efficient multi-tenant scaling with shared infrastructure.
|
248
|
+
|
249
|
+
- **🔌 Plugin System:**
|
250
|
+
Extensible architecture with dynamic tool loading capabilities.
|
251
|
+
Isolated plugin environments with dependency management.
|
252
|
+
Tool registry for AI agent capability extension.
|
253
|
+
Permission-based tool access for security and control.
|
254
|
+
Standard interface for third-party integrations.
|
255
|
+
Built-in internet search capabilities via Perplexity API.
|
256
|
+
Seamless AI agent interaction with external services.
|
257
|
+
Runtime tool discovery without code modification.
|
258
|
+
|
182
259
|
## Implementation Technologies
|
183
260
|
|
184
261
|
Solana Agent leverages multiple technologies to enable these capabilities:
|
185
262
|
|
186
263
|
- **Knowledge Integration:**
|
187
|
-
|
264
|
+
Zep memory and Pinecone or Qdrant vector search.
|
188
265
|
- **Collaborative Intelligence:**
|
189
266
|
Multi-agent swarm architecture with specialized expertise domains.
|
190
267
|
- **Human-AI Teaming:**
|
191
268
|
Integrated ticketing, notification systems, and real-time handoffs.
|
192
269
|
- **Organization Alignment:**
|
193
270
|
Unified mission framework, critic system, and collective memory.
|
271
|
+
- **External Integration:**
|
272
|
+
Plugin system for extensible tool capabilities and API connections.
|
194
273
|
|
195
274
|
## Installation
|
196
275
|
|
@@ -202,65 +281,85 @@ You can install Solana Agent using pip:
|
|
202
281
|
|
203
282
|
Each public method has a docstring for real-time IDE hinting.
|
204
283
|
|
205
|
-
## Production Apps
|
206
|
-
|
207
|
-
- **CometHeart:**
|
208
|
-
AI Companion and Business Coach on mobile using voice-to-voice conversations.
|
209
|
-
|
210
284
|
## Example Setup
|
211
285
|
|
212
286
|
```python
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
287
|
+
from solana_agent import SolanaAgent
|
288
|
+
|
289
|
+
# Define configuration with plugins
|
290
|
+
config = {
|
291
|
+
"organization": {
|
292
|
+
"mission_statement": "To revolutionize knowledge work through AI-human collaboration that puts people first.",
|
293
|
+
"values": {
|
294
|
+
"Human-Centered": "Always prioritize human well-being and augmentation over replacement.",
|
295
|
+
"Transparency": "Provide clear explanations for decisions and never hide information.",
|
296
|
+
"Collective Intelligence": "Value diverse perspectives and combine human and AI strengths.",
|
297
|
+
"Continuous Learning": "Embrace feedback and continuously improve based on experience."
|
298
|
+
},
|
299
|
+
"goals": [
|
300
|
+
"Enable human experts to focus on high-value creative work",
|
301
|
+
"Reduce administrative overhead through intelligent automation",
|
302
|
+
"Create seamless knowledge flow across the organization"
|
303
|
+
],
|
304
|
+
"guidance": "When making decisions, prioritize long-term user success over short-term efficiency."
|
305
|
+
},
|
306
|
+
"mongo": {
|
307
|
+
"connection_string": "mongodb://localhost:27017",
|
308
|
+
"database": "solana_agent"
|
309
|
+
},
|
310
|
+
"openai": {
|
311
|
+
"api_key": "your-openai-key",
|
312
|
+
"default_model": "gpt-4o-mini"
|
313
|
+
},
|
314
|
+
"pinecone": {
|
315
|
+
"api_key": "your-pinecone-key",
|
316
|
+
"index": "your-index"
|
317
|
+
},
|
318
|
+
"plugins_dir": "plugins",
|
319
|
+
"ai_agents": [
|
320
|
+
{
|
321
|
+
"name": "research_specialist",
|
322
|
+
"instructions": "You are an expert researcher who synthesizes complex information clearly.",
|
323
|
+
"specialization": "Research and knowledge synthesis",
|
324
|
+
"model": "o3-mini",
|
325
|
+
"tools": ["search_internet"]
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"name": "customer_support",
|
329
|
+
"instructions": "You provide friendly, helpful customer support responses.",
|
330
|
+
"specialization": "Customer inquiries",
|
331
|
+
"model": "gpt-4o-mini"
|
332
|
+
}
|
333
|
+
],
|
334
|
+
"human_agents": [
|
335
|
+
{
|
336
|
+
"agent_id": "expert_dev",
|
337
|
+
"name": "Senior Developer",
|
338
|
+
"specialization": "Complex technical issues"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"agent_id": "support_lead",
|
342
|
+
"name": "Support Team Lead",
|
343
|
+
"specialization": "Escalated customer issues"
|
344
|
+
}
|
345
|
+
],
|
346
|
+
"api_keys": {
|
347
|
+
"perplexity": "your-perplexity-key" # For internet search plugin
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
# Create agent with configuration
|
352
|
+
solana_agent = SolanaAgent(config=config)
|
353
|
+
|
354
|
+
# Process a query that can use tools
|
355
|
+
async for response in solana_agent.process("user123", "What are the latest AI developments?"):
|
261
356
|
print(response, end="")
|
262
357
|
```
|
263
358
|
|
359
|
+
## Example App
|
360
|
+
|
361
|
+
[Solana Agent Example App](https://github.com/truemagic-coder/solana-agent-app)
|
362
|
+
|
264
363
|
## License
|
265
364
|
|
266
365
|
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -3,6 +3,8 @@
|
|
3
3
|
[](https://pypi.org/project/solana-agent/)
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
5
5
|
[](https://www.python.org/downloads/)
|
6
|
+
[](https://codecov.io/gh/truemagic-coder/solana-agent)
|
7
|
+
[](https://github.com/truemagic-coder/solana-agent/actions/workflows/test.yml)
|
6
8
|
|
7
9
|

|
8
10
|
|
@@ -114,17 +116,20 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
114
116
|
Identify trends invisible to individual actors through network-wide analysis.
|
115
117
|
- **Failure-Embracing Architecture:**
|
116
118
|
Convert mistakes into learning opportunities through systematic analysis.
|
119
|
+
- **Performance-Based Optimization:**
|
120
|
+
Route tasks to agents with highest satisfaction scores through NPS feedback integration.
|
121
|
+
- **Continuous Quality Assessment:**
|
122
|
+
Monitor interaction quality through automated satisfaction surveys and impact metrics.
|
117
123
|
|
118
124
|
## Technical Features
|
119
125
|
|
120
126
|
- **🗣️ Advanced Interaction Layer:**
|
121
127
|
Streaming text-based conversations with real-time thinking.
|
122
|
-
Voice-to-voice conversations with natural cadence.
|
123
128
|
Multi-turn context preservation and reasoning.
|
124
129
|
|
125
130
|
- **🤖 Multi-Agent Swarm Architecture:**
|
126
131
|
Dynamic specialized agent creation and coordination.
|
127
|
-
Intelligent routing based on query content and
|
132
|
+
Intelligent routing based on query content, agent expertise, and performance metrics.
|
128
133
|
Seamless handoffs with comprehensive context passing.
|
129
134
|
Shared memory and collective intelligence across the entire swarm.
|
130
135
|
|
@@ -133,7 +138,8 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
133
138
|
Ticket management for complex or sensitive inquiries.
|
134
139
|
Multiple handoff patterns (AI↔human, human↔human).
|
135
140
|
In-chat command system for human agents to manage tickets.
|
136
|
-
Availability status management
|
141
|
+
Availability status management with automatic timeout detection.
|
142
|
+
Direct agent-to-agent communication for real-time consultation.
|
137
143
|
|
138
144
|
- **🧠 Distributed Intelligence Capabilities:**
|
139
145
|
Cross-domain knowledge integration from multiple sources.
|
@@ -142,6 +148,32 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
142
148
|
Time-aware contextual responses.
|
143
149
|
Self-critical improvement systems.
|
144
150
|
|
151
|
+
- **🎫 Comprehensive Ticket System:**
|
152
|
+
Universal ticket tracking for all interactions (AI-to-AI and AI-to-human).
|
153
|
+
Structured resolution assessment with confidence scoring.
|
154
|
+
Automatic ticket lifecycle management with AI-driven resolution.
|
155
|
+
Intelligent handoffs maintaining ticket context across agents.
|
156
|
+
Command-line interface for human ticket management.
|
157
|
+
Metrics and analytics on resolution quality and time.
|
158
|
+
Proactive reminders for pending human-assigned tickets.
|
159
|
+
Auto-reassignment system for stalled tickets.
|
160
|
+
Human agent activity tracking and status management.
|
161
|
+
|
162
|
+
- **📊 Performance Optimization Framework:**
|
163
|
+
Integrated Net Promoter Score (NPS) system for interaction quality measurement.
|
164
|
+
Automatic satisfaction surveys after ticket resolution.
|
165
|
+
Performance-weighted agent routing based on satisfaction scores.
|
166
|
+
Continuous quality monitoring and feedback loops.
|
167
|
+
Simple rating submission for users with optional feedback.
|
168
|
+
Agent performance analytics and trend identification.
|
169
|
+
|
170
|
+
- **📋 Task Planning System:**
|
171
|
+
Automated complexity assessment for incoming tasks.
|
172
|
+
Task decomposition into subtasks with dependencies.
|
173
|
+
Intelligent workload distribution based on agent capacity.
|
174
|
+
Visual progress tracking with completion estimates.
|
175
|
+
Prioritization based on urgency, importance, and dependencies.
|
176
|
+
|
145
177
|
- **🛡️ Governance Framework:**
|
146
178
|
Define organization-wide values and operating principles in code.
|
147
179
|
Consistent decision-making aligned with organizational priorities.
|
@@ -149,18 +181,64 @@ Solana Agent transforms organizations into living systems that continuously lear
|
|
149
181
|
Transparent insight extraction with review capabilities.
|
150
182
|
Performance analytics across the agent network.
|
151
183
|
|
184
|
+
- **🔍 Project Simulation Framework:**
|
185
|
+
Data-driven project feasibility assessment using historical performance.
|
186
|
+
Intelligent timeline estimation based on similar past projects.
|
187
|
+
Risk analysis with probability and impact scoring.
|
188
|
+
Resource requirement prediction and availability matching.
|
189
|
+
System load analysis to prevent overcommitment.
|
190
|
+
Comprehensive recommendation engine with contextual insights.
|
191
|
+
Historical satisfaction trend analysis for similar work.
|
192
|
+
|
193
|
+
- **✅ Human Approval Workflow:**
|
194
|
+
Configurable approval requirements for complex projects.
|
195
|
+
Simple queries bypass approval for efficient handling.
|
196
|
+
Data-driven approval process with simulation results.
|
197
|
+
Multi-approver support with role-based authorization.
|
198
|
+
Project lifecycle tracking from submission to approval/rejection.
|
199
|
+
Transparent decision documentation with comments and rationale.
|
200
|
+
|
201
|
+
- **🔔 Notification System:**
|
202
|
+
Multi-channel notifications for human agents.
|
203
|
+
Approval request routing to authorized approvers.
|
204
|
+
Configurable notification handlers for different channels.
|
205
|
+
Real-time and asynchronous communication support.
|
206
|
+
Status tracking for notification delivery and response.
|
207
|
+
|
208
|
+
- **🏢 Multi-tenant Platform Architecture:**
|
209
|
+
Complete tenant isolation with separate databases and storage.
|
210
|
+
Tenant-specific configuration overrides with inheritance from global defaults.
|
211
|
+
Support for both Qdrant and Pinecone vector databases.
|
212
|
+
Per-tenant agent specialization and customization.
|
213
|
+
Centralized management through tenant registry.
|
214
|
+
Resource sharing with tenant-level permissions.
|
215
|
+
Standardized interfaces across all tenants.
|
216
|
+
Efficient multi-tenant scaling with shared infrastructure.
|
217
|
+
|
218
|
+
- **🔌 Plugin System:**
|
219
|
+
Extensible architecture with dynamic tool loading capabilities.
|
220
|
+
Isolated plugin environments with dependency management.
|
221
|
+
Tool registry for AI agent capability extension.
|
222
|
+
Permission-based tool access for security and control.
|
223
|
+
Standard interface for third-party integrations.
|
224
|
+
Built-in internet search capabilities via Perplexity API.
|
225
|
+
Seamless AI agent interaction with external services.
|
226
|
+
Runtime tool discovery without code modification.
|
227
|
+
|
152
228
|
## Implementation Technologies
|
153
229
|
|
154
230
|
Solana Agent leverages multiple technologies to enable these capabilities:
|
155
231
|
|
156
232
|
- **Knowledge Integration:**
|
157
|
-
|
233
|
+
Zep memory and Pinecone or Qdrant vector search.
|
158
234
|
- **Collaborative Intelligence:**
|
159
235
|
Multi-agent swarm architecture with specialized expertise domains.
|
160
236
|
- **Human-AI Teaming:**
|
161
237
|
Integrated ticketing, notification systems, and real-time handoffs.
|
162
238
|
- **Organization Alignment:**
|
163
239
|
Unified mission framework, critic system, and collective memory.
|
240
|
+
- **External Integration:**
|
241
|
+
Plugin system for extensible tool capabilities and API connections.
|
164
242
|
|
165
243
|
## Installation
|
166
244
|
|
@@ -172,65 +250,85 @@ You can install Solana Agent using pip:
|
|
172
250
|
|
173
251
|
Each public method has a docstring for real-time IDE hinting.
|
174
252
|
|
175
|
-
## Production Apps
|
176
|
-
|
177
|
-
- **CometHeart:**
|
178
|
-
AI Companion and Business Coach on mobile using voice-to-voice conversations.
|
179
|
-
|
180
253
|
## Example Setup
|
181
254
|
|
182
255
|
```python
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
256
|
+
from solana_agent import SolanaAgent
|
257
|
+
|
258
|
+
# Define configuration with plugins
|
259
|
+
config = {
|
260
|
+
"organization": {
|
261
|
+
"mission_statement": "To revolutionize knowledge work through AI-human collaboration that puts people first.",
|
262
|
+
"values": {
|
263
|
+
"Human-Centered": "Always prioritize human well-being and augmentation over replacement.",
|
264
|
+
"Transparency": "Provide clear explanations for decisions and never hide information.",
|
265
|
+
"Collective Intelligence": "Value diverse perspectives and combine human and AI strengths.",
|
266
|
+
"Continuous Learning": "Embrace feedback and continuously improve based on experience."
|
267
|
+
},
|
268
|
+
"goals": [
|
269
|
+
"Enable human experts to focus on high-value creative work",
|
270
|
+
"Reduce administrative overhead through intelligent automation",
|
271
|
+
"Create seamless knowledge flow across the organization"
|
272
|
+
],
|
273
|
+
"guidance": "When making decisions, prioritize long-term user success over short-term efficiency."
|
274
|
+
},
|
275
|
+
"mongo": {
|
276
|
+
"connection_string": "mongodb://localhost:27017",
|
277
|
+
"database": "solana_agent"
|
278
|
+
},
|
279
|
+
"openai": {
|
280
|
+
"api_key": "your-openai-key",
|
281
|
+
"default_model": "gpt-4o-mini"
|
282
|
+
},
|
283
|
+
"pinecone": {
|
284
|
+
"api_key": "your-pinecone-key",
|
285
|
+
"index": "your-index"
|
286
|
+
},
|
287
|
+
"plugins_dir": "plugins",
|
288
|
+
"ai_agents": [
|
289
|
+
{
|
290
|
+
"name": "research_specialist",
|
291
|
+
"instructions": "You are an expert researcher who synthesizes complex information clearly.",
|
292
|
+
"specialization": "Research and knowledge synthesis",
|
293
|
+
"model": "o3-mini",
|
294
|
+
"tools": ["search_internet"]
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"name": "customer_support",
|
298
|
+
"instructions": "You provide friendly, helpful customer support responses.",
|
299
|
+
"specialization": "Customer inquiries",
|
300
|
+
"model": "gpt-4o-mini"
|
301
|
+
}
|
302
|
+
],
|
303
|
+
"human_agents": [
|
304
|
+
{
|
305
|
+
"agent_id": "expert_dev",
|
306
|
+
"name": "Senior Developer",
|
307
|
+
"specialization": "Complex technical issues"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"agent_id": "support_lead",
|
311
|
+
"name": "Support Team Lead",
|
312
|
+
"specialization": "Escalated customer issues"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"api_keys": {
|
316
|
+
"perplexity": "your-perplexity-key" # For internet search plugin
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
# Create agent with configuration
|
321
|
+
solana_agent = SolanaAgent(config=config)
|
322
|
+
|
323
|
+
# Process a query that can use tools
|
324
|
+
async for response in solana_agent.process("user123", "What are the latest AI developments?"):
|
231
325
|
print(response, end="")
|
232
326
|
```
|
233
327
|
|
328
|
+
## Example App
|
329
|
+
|
330
|
+
[Solana Agent Example App](https://github.com/truemagic-coder/solana-agent-app)
|
331
|
+
|
234
332
|
## License
|
235
333
|
|
236
334
|
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "solana-agent"
|
3
|
-
version = "
|
4
|
-
description = "The
|
3
|
+
version = "10.0.0"
|
4
|
+
description = "The Future of Work"
|
5
5
|
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
|
6
6
|
license = "MIT"
|
7
7
|
readme = "README.md"
|
@@ -18,7 +18,7 @@ python_paths = [".", "tests"]
|
|
18
18
|
|
19
19
|
[tool.poetry.dependencies]
|
20
20
|
python = ">=3.9,<4.0"
|
21
|
-
openai = "^1.65.
|
21
|
+
openai = "^1.65.5"
|
22
22
|
pydantic = "^2.10.6"
|
23
23
|
pymongo = "^4.11.2"
|
24
24
|
zep-cloud = "^2.5.0"
|
@@ -27,11 +27,13 @@ requests = "^2.32.3"
|
|
27
27
|
pinecone = "^6.0.1"
|
28
28
|
pandas = "^2.2.3"
|
29
29
|
ntplib = "^0.4.0"
|
30
|
+
qdrant-client = "^1.13.3"
|
30
31
|
|
31
32
|
[tool.poetry.dev-dependencies]
|
32
33
|
pytest = "^8.3.5"
|
33
34
|
pytest-cov = "^6.0.0"
|
34
35
|
pytest-asyncio = "^0.25.3"
|
36
|
+
uv = "^0.6.5"
|
35
37
|
|
36
38
|
[build-system]
|
37
39
|
requires = ["poetry-core>=1.0.0"]
|