solana-agent 7.0.0__tar.gz → 8.0.1__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.1/PKG-INFO +248 -0
- solana_agent-8.0.1/README.md +217 -0
- {solana_agent-7.0.0 → solana_agent-8.0.1}/pyproject.toml +5 -5
- {solana_agent-7.0.0 → solana_agent-8.0.1}/solana_agent/ai.py +935 -68
- solana_agent-7.0.0/PKG-INFO +0 -178
- solana_agent-7.0.0/README.md +0 -147
- {solana_agent-7.0.0 → solana_agent-8.0.1}/LICENSE +0 -0
- {solana_agent-7.0.0 → solana_agent-8.0.1}/solana_agent/__init__.py +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: solana-agent
|
|
3
|
+
Version: 8.0.1
|
|
4
|
+
Summary: The first AGI framework
|
|
5
|
+
License: MIT
|
|
6
|
+
Keywords: ai,openai,ai agents,agi
|
|
7
|
+
Author: Bevan Hunt
|
|
8
|
+
Author-email: bevan@bevanhunt.com
|
|
9
|
+
Requires-Python: >=3.9,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
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
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Requires-Dist: ntplib (>=0.4.0,<0.5.0)
|
|
20
|
+
Requires-Dist: openai (>=1.65.3,<2.0.0)
|
|
21
|
+
Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
|
22
|
+
Requires-Dist: pinecone (>=6.0.1,<7.0.0)
|
|
23
|
+
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
|
24
|
+
Requires-Dist: pymongo (>=4.11.2,<5.0.0)
|
|
25
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
26
|
+
Requires-Dist: zep-cloud (>=2.5.0,<3.0.0)
|
|
27
|
+
Requires-Dist: zep-python (>=2.0.2,<3.0.0)
|
|
28
|
+
Project-URL: Repository, https://github.com/truemagic-coder/solana-agent
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# Solana Agent
|
|
32
|
+
|
|
33
|
+
[](https://pypi.org/project/solana-agent/)
|
|
34
|
+
[](https://opensource.org/licenses/MIT)
|
|
35
|
+
[](https://www.python.org/downloads/)
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
## Why Solana Agent?
|
|
40
|
+
|
|
41
|
+
Reinventing Organizational Structures Through AI
|
|
42
|
+
Solana Agent isn't just an AI framework—it's the foundation for reimagining how humans organize, collaborate, and create value together. Build organizations that transcend traditional hierarchies and unlock collective intelligence at scale.
|
|
43
|
+
|
|
44
|
+
### The Future of Work Starts Here:
|
|
45
|
+
|
|
46
|
+
- **Decentralized Decision Making:**
|
|
47
|
+
Enable distributed expertise through AI-human collaboration, removing bottlenecks and centralizing only the mission, not the authority.
|
|
48
|
+
|
|
49
|
+
- **Organization as Living Code:**
|
|
50
|
+
Define your organization's values, expertise boundaries, and operating principles in code, making structure transparent and adaptable.
|
|
51
|
+
|
|
52
|
+
- **Fluid Collaboration Networks:**
|
|
53
|
+
Replace rigid hierarchies with dynamic agent networks that form, collaborate, and dissolve based on real-time needs.
|
|
54
|
+
|
|
55
|
+
- **Knowledge as Collective Asset:**
|
|
56
|
+
Transform individual expertise into organizational intelligence through autonomous knowledge extraction and distribution.
|
|
57
|
+
|
|
58
|
+
- **Permissionless Value Creation:**
|
|
59
|
+
Let agents (both AI and human) contribute and innovate freely within guardrails defined by mission and values, not management layers.
|
|
60
|
+
|
|
61
|
+
## The Future of Work
|
|
62
|
+
|
|
63
|
+
Solana Agent enables a paradigm shift in how work gets done:
|
|
64
|
+
|
|
65
|
+
- **Beyond Human Resource Constraints:**
|
|
66
|
+
Scale knowledge work infinitely by combining specialized AI agents with human experts.
|
|
67
|
+
- **Continuous 24/7 Operations:**
|
|
68
|
+
Organizational functions that never sleep, never burn out, and continuously learn.
|
|
69
|
+
- **Task-Agent Fit Optimization:**
|
|
70
|
+
Matching work to the ideal agent (human or AI) based on real-time expertise mapping.
|
|
71
|
+
- **Ambient Organizational Intelligence:**
|
|
72
|
+
Collective knowledge that grows, refines, and distributes itself autonomously.
|
|
73
|
+
- **From Managers to Facilitators:**
|
|
74
|
+
Human roles shift from directing work to defining outcomes and improving agent capabilities.
|
|
75
|
+
- **Permissionless Contribution:**
|
|
76
|
+
Anyone can interact with and extend the organization through standardized interfaces.
|
|
77
|
+
|
|
78
|
+
## Organization as Code
|
|
79
|
+
|
|
80
|
+
With Solana Agent, your organizational design becomes explicit, observable, and iteratively improvable:
|
|
81
|
+
|
|
82
|
+
- **Declarative Organizational Structure:**
|
|
83
|
+
Define your entire organization's capabilities through agent specializations and interaction patterns.
|
|
84
|
+
- **Version-Controlled Operational Logic:**
|
|
85
|
+
Track organizational evolution and performance through code changes.
|
|
86
|
+
- **Mission Function:**
|
|
87
|
+
Encode organizational values and goals as executable functions that guide all agent decisions.
|
|
88
|
+
- **Rapid Organizational Experiments:**
|
|
89
|
+
Test new structures, policies, and collaborative patterns without disruptive reorganizations.
|
|
90
|
+
- **Transparency by Default:**
|
|
91
|
+
Make decision boundaries and expertise domains explicit in code rather than hidden in hierarchy.
|
|
92
|
+
- **Self-Documenting Operations:**
|
|
93
|
+
The organization continuously documents its own functions, decisions, and knowledge.
|
|
94
|
+
|
|
95
|
+
## Decentralized Organization
|
|
96
|
+
|
|
97
|
+
Solana Agent provides the infrastructure to build truly decentralized organizations:
|
|
98
|
+
|
|
99
|
+
- **Multi-Node Intelligence:**
|
|
100
|
+
Distribute cognitive load across specialized agents with no central controller.
|
|
101
|
+
- **Autonomous Coordination:**
|
|
102
|
+
Agents self-organize based on capabilities and availability without central dispatching.
|
|
103
|
+
- **Edge Decision Making:**
|
|
104
|
+
Push decisions to the agents closest to the information and expertise needed.
|
|
105
|
+
- **Resilient Architecture:**
|
|
106
|
+
No single point of failure in organizational knowledge or operational capacity.
|
|
107
|
+
- **Emergent Problem Solving:**
|
|
108
|
+
Solutions emerge from collaborative agent interactions rather than top-down directives.
|
|
109
|
+
- **Fractal Scaling:**
|
|
110
|
+
Add new domains of expertise by replicating the agent swarm pattern without hierarchical constraints.
|
|
111
|
+
|
|
112
|
+
## Complete Flat Organization
|
|
113
|
+
|
|
114
|
+
Eliminate management hierarchies while maintaining coordination and alignment:
|
|
115
|
+
|
|
116
|
+
- **Mission-Driven Alignment:**
|
|
117
|
+
All agents align through shared values and outcomes defined in the unified mission framework.
|
|
118
|
+
- **Peer-to-Peer Handoffs:**
|
|
119
|
+
Both AI and human agents coordinate as equals through standardized interfaces.
|
|
120
|
+
- **Expertise-Based Authority:**
|
|
121
|
+
Influence derives from demonstrable expertise rather than position.
|
|
122
|
+
- **Universal Access Protocol:**
|
|
123
|
+
Consistent interfaces for interacting with any part of the organization.
|
|
124
|
+
- **Transparent Contribution Tracking:**
|
|
125
|
+
Meritocratic recognition of value creation across the network.
|
|
126
|
+
- **Adaptive Resource Allocation:**
|
|
127
|
+
Direct resources to high-impact areas without bureaucratic approval chains.
|
|
128
|
+
|
|
129
|
+
## Technical Features
|
|
130
|
+
|
|
131
|
+
- **🗣️ Advanced Interaction Layer:**
|
|
132
|
+
Streaming text-based conversations with real-time thinking.
|
|
133
|
+
Voice-to-voice conversations with natural cadence.
|
|
134
|
+
Multi-turn context preservation and reasoning.
|
|
135
|
+
|
|
136
|
+
- **🤖 Multi-Agent Swarm Architecture:**
|
|
137
|
+
Dynamic specialized agent creation and coordination.
|
|
138
|
+
Intelligent routing based on query content and agent expertise.
|
|
139
|
+
Seamless handoffs with comprehensive context passing.
|
|
140
|
+
Shared memory and collective intelligence across the entire swarm.
|
|
141
|
+
|
|
142
|
+
- **👥 Human-AI Collaboration:**
|
|
143
|
+
Hybrid AI-human collaboration system with seamless handoffs.
|
|
144
|
+
Ticket management for complex or sensitive inquiries.
|
|
145
|
+
Multiple handoff patterns (AI↔human, human↔human).
|
|
146
|
+
In-chat command system for human agents to manage tickets.
|
|
147
|
+
Availability status management for human operators.
|
|
148
|
+
|
|
149
|
+
- **🧠 Distributed Intelligence Capabilities:**
|
|
150
|
+
Cross-domain knowledge integration from multiple sources.
|
|
151
|
+
Self-organizing information architecture.
|
|
152
|
+
Autonomous knowledge extraction and refinement.
|
|
153
|
+
Time-aware contextual responses.
|
|
154
|
+
Self-critical improvement systems.
|
|
155
|
+
|
|
156
|
+
- **🛡️ Governance Framework:**
|
|
157
|
+
Define organization-wide values and operating principles in code.
|
|
158
|
+
Consistent decision-making aligned with organizational priorities.
|
|
159
|
+
Privacy-preserving knowledge sharing with configurable controls.
|
|
160
|
+
Transparent insight extraction with review capabilities.
|
|
161
|
+
Performance analytics across the agent network.
|
|
162
|
+
|
|
163
|
+
## Implementation Technologies
|
|
164
|
+
|
|
165
|
+
Solana Agent leverages multiple technologies to enable these capabilities:
|
|
166
|
+
|
|
167
|
+
- **Knowledge Integration:**
|
|
168
|
+
Perplexity API, X/Twitter (Grok API), Zep memory, Pinecone vector search.
|
|
169
|
+
- **Collaborative Intelligence:**
|
|
170
|
+
Multi-agent swarm architecture with specialized expertise domains.
|
|
171
|
+
- **Human-AI Teaming:**
|
|
172
|
+
Integrated ticketing, notification systems, and real-time handoffs.
|
|
173
|
+
- **Organization Alignment:**
|
|
174
|
+
Unified mission framework, critic system, and collective memory.
|
|
175
|
+
|
|
176
|
+
## Installation
|
|
177
|
+
|
|
178
|
+
You can install Solana Agent using pip:
|
|
179
|
+
|
|
180
|
+
`pip install solana-agent`
|
|
181
|
+
|
|
182
|
+
## Documentation
|
|
183
|
+
|
|
184
|
+
Each public method has a docstring for real-time IDE hinting.
|
|
185
|
+
|
|
186
|
+
## Production Apps
|
|
187
|
+
|
|
188
|
+
- **CometHeart:**
|
|
189
|
+
AI Companion and Business Coach on mobile using voice-to-voice conversations.
|
|
190
|
+
|
|
191
|
+
## Example Setup
|
|
192
|
+
|
|
193
|
+
```python
|
|
194
|
+
# Create a decentralized organizational structure
|
|
195
|
+
from solana_agent import Swarm, AI, MongoDatabase
|
|
196
|
+
|
|
197
|
+
# Initialize the organizational database
|
|
198
|
+
db = MongoDatabase(db_url="mongodb://localhost:27017", db_name="organization_brain")
|
|
199
|
+
|
|
200
|
+
# Define the organization's mission and values
|
|
201
|
+
mission = """Our organization maximizes collective intelligence through
|
|
202
|
+
transparent collaboration between humans and AI. We value truth,
|
|
203
|
+
clarity, and continuous improvement in all interactions."""
|
|
204
|
+
|
|
205
|
+
# Create the organizational swarm
|
|
206
|
+
org = Swarm(
|
|
207
|
+
database=db,
|
|
208
|
+
directive=mission,
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
# Register AI expertise domains
|
|
212
|
+
org.register(
|
|
213
|
+
name="knowledge_worker",
|
|
214
|
+
agent=AI(
|
|
215
|
+
openai_api_key="key",
|
|
216
|
+
instructions="You are an expert in research and knowledge synthesis...",
|
|
217
|
+
database=db
|
|
218
|
+
),
|
|
219
|
+
specialization="Research, analysis, and knowledge synthesis"
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
org.register(
|
|
223
|
+
name="customer_interface",
|
|
224
|
+
agent=AI(
|
|
225
|
+
openai_api_key="key",
|
|
226
|
+
instructions="You handle customer inquiries with empathy and clarity...",
|
|
227
|
+
database=db
|
|
228
|
+
),
|
|
229
|
+
specialization="Customer interaction and support"
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
# Register human expertise domains
|
|
233
|
+
org.register_human_agent(
|
|
234
|
+
agent_id="human_expert_1",
|
|
235
|
+
name="Technical Specialist",
|
|
236
|
+
specialization="Advanced technical problem solving requiring human judgment",
|
|
237
|
+
notification_handler=email_notification
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
# Process work through the organization
|
|
241
|
+
async for response in org.process("user123", "How can we optimize our supply chain?"):
|
|
242
|
+
print(response, end="")
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## License
|
|
246
|
+
|
|
247
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
|
248
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Solana Agent
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/solana-agent/)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://www.python.org/downloads/)
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Why Solana Agent?
|
|
10
|
+
|
|
11
|
+
Reinventing Organizational Structures Through AI
|
|
12
|
+
Solana Agent isn't just an AI framework—it's the foundation for reimagining how humans organize, collaborate, and create value together. Build organizations that transcend traditional hierarchies and unlock collective intelligence at scale.
|
|
13
|
+
|
|
14
|
+
### The Future of Work Starts Here:
|
|
15
|
+
|
|
16
|
+
- **Decentralized Decision Making:**
|
|
17
|
+
Enable distributed expertise through AI-human collaboration, removing bottlenecks and centralizing only the mission, not the authority.
|
|
18
|
+
|
|
19
|
+
- **Organization as Living Code:**
|
|
20
|
+
Define your organization's values, expertise boundaries, and operating principles in code, making structure transparent and adaptable.
|
|
21
|
+
|
|
22
|
+
- **Fluid Collaboration Networks:**
|
|
23
|
+
Replace rigid hierarchies with dynamic agent networks that form, collaborate, and dissolve based on real-time needs.
|
|
24
|
+
|
|
25
|
+
- **Knowledge as Collective Asset:**
|
|
26
|
+
Transform individual expertise into organizational intelligence through autonomous knowledge extraction and distribution.
|
|
27
|
+
|
|
28
|
+
- **Permissionless Value Creation:**
|
|
29
|
+
Let agents (both AI and human) contribute and innovate freely within guardrails defined by mission and values, not management layers.
|
|
30
|
+
|
|
31
|
+
## The Future of Work
|
|
32
|
+
|
|
33
|
+
Solana Agent enables a paradigm shift in how work gets done:
|
|
34
|
+
|
|
35
|
+
- **Beyond Human Resource Constraints:**
|
|
36
|
+
Scale knowledge work infinitely by combining specialized AI agents with human experts.
|
|
37
|
+
- **Continuous 24/7 Operations:**
|
|
38
|
+
Organizational functions that never sleep, never burn out, and continuously learn.
|
|
39
|
+
- **Task-Agent Fit Optimization:**
|
|
40
|
+
Matching work to the ideal agent (human or AI) based on real-time expertise mapping.
|
|
41
|
+
- **Ambient Organizational Intelligence:**
|
|
42
|
+
Collective knowledge that grows, refines, and distributes itself autonomously.
|
|
43
|
+
- **From Managers to Facilitators:**
|
|
44
|
+
Human roles shift from directing work to defining outcomes and improving agent capabilities.
|
|
45
|
+
- **Permissionless Contribution:**
|
|
46
|
+
Anyone can interact with and extend the organization through standardized interfaces.
|
|
47
|
+
|
|
48
|
+
## Organization as Code
|
|
49
|
+
|
|
50
|
+
With Solana Agent, your organizational design becomes explicit, observable, and iteratively improvable:
|
|
51
|
+
|
|
52
|
+
- **Declarative Organizational Structure:**
|
|
53
|
+
Define your entire organization's capabilities through agent specializations and interaction patterns.
|
|
54
|
+
- **Version-Controlled Operational Logic:**
|
|
55
|
+
Track organizational evolution and performance through code changes.
|
|
56
|
+
- **Mission Function:**
|
|
57
|
+
Encode organizational values and goals as executable functions that guide all agent decisions.
|
|
58
|
+
- **Rapid Organizational Experiments:**
|
|
59
|
+
Test new structures, policies, and collaborative patterns without disruptive reorganizations.
|
|
60
|
+
- **Transparency by Default:**
|
|
61
|
+
Make decision boundaries and expertise domains explicit in code rather than hidden in hierarchy.
|
|
62
|
+
- **Self-Documenting Operations:**
|
|
63
|
+
The organization continuously documents its own functions, decisions, and knowledge.
|
|
64
|
+
|
|
65
|
+
## Decentralized Organization
|
|
66
|
+
|
|
67
|
+
Solana Agent provides the infrastructure to build truly decentralized organizations:
|
|
68
|
+
|
|
69
|
+
- **Multi-Node Intelligence:**
|
|
70
|
+
Distribute cognitive load across specialized agents with no central controller.
|
|
71
|
+
- **Autonomous Coordination:**
|
|
72
|
+
Agents self-organize based on capabilities and availability without central dispatching.
|
|
73
|
+
- **Edge Decision Making:**
|
|
74
|
+
Push decisions to the agents closest to the information and expertise needed.
|
|
75
|
+
- **Resilient Architecture:**
|
|
76
|
+
No single point of failure in organizational knowledge or operational capacity.
|
|
77
|
+
- **Emergent Problem Solving:**
|
|
78
|
+
Solutions emerge from collaborative agent interactions rather than top-down directives.
|
|
79
|
+
- **Fractal Scaling:**
|
|
80
|
+
Add new domains of expertise by replicating the agent swarm pattern without hierarchical constraints.
|
|
81
|
+
|
|
82
|
+
## Complete Flat Organization
|
|
83
|
+
|
|
84
|
+
Eliminate management hierarchies while maintaining coordination and alignment:
|
|
85
|
+
|
|
86
|
+
- **Mission-Driven Alignment:**
|
|
87
|
+
All agents align through shared values and outcomes defined in the unified mission framework.
|
|
88
|
+
- **Peer-to-Peer Handoffs:**
|
|
89
|
+
Both AI and human agents coordinate as equals through standardized interfaces.
|
|
90
|
+
- **Expertise-Based Authority:**
|
|
91
|
+
Influence derives from demonstrable expertise rather than position.
|
|
92
|
+
- **Universal Access Protocol:**
|
|
93
|
+
Consistent interfaces for interacting with any part of the organization.
|
|
94
|
+
- **Transparent Contribution Tracking:**
|
|
95
|
+
Meritocratic recognition of value creation across the network.
|
|
96
|
+
- **Adaptive Resource Allocation:**
|
|
97
|
+
Direct resources to high-impact areas without bureaucratic approval chains.
|
|
98
|
+
|
|
99
|
+
## Technical Features
|
|
100
|
+
|
|
101
|
+
- **🗣️ Advanced Interaction Layer:**
|
|
102
|
+
Streaming text-based conversations with real-time thinking.
|
|
103
|
+
Voice-to-voice conversations with natural cadence.
|
|
104
|
+
Multi-turn context preservation and reasoning.
|
|
105
|
+
|
|
106
|
+
- **🤖 Multi-Agent Swarm Architecture:**
|
|
107
|
+
Dynamic specialized agent creation and coordination.
|
|
108
|
+
Intelligent routing based on query content and agent expertise.
|
|
109
|
+
Seamless handoffs with comprehensive context passing.
|
|
110
|
+
Shared memory and collective intelligence across the entire swarm.
|
|
111
|
+
|
|
112
|
+
- **👥 Human-AI Collaboration:**
|
|
113
|
+
Hybrid AI-human collaboration system with seamless handoffs.
|
|
114
|
+
Ticket management for complex or sensitive inquiries.
|
|
115
|
+
Multiple handoff patterns (AI↔human, human↔human).
|
|
116
|
+
In-chat command system for human agents to manage tickets.
|
|
117
|
+
Availability status management for human operators.
|
|
118
|
+
|
|
119
|
+
- **🧠 Distributed Intelligence Capabilities:**
|
|
120
|
+
Cross-domain knowledge integration from multiple sources.
|
|
121
|
+
Self-organizing information architecture.
|
|
122
|
+
Autonomous knowledge extraction and refinement.
|
|
123
|
+
Time-aware contextual responses.
|
|
124
|
+
Self-critical improvement systems.
|
|
125
|
+
|
|
126
|
+
- **🛡️ Governance Framework:**
|
|
127
|
+
Define organization-wide values and operating principles in code.
|
|
128
|
+
Consistent decision-making aligned with organizational priorities.
|
|
129
|
+
Privacy-preserving knowledge sharing with configurable controls.
|
|
130
|
+
Transparent insight extraction with review capabilities.
|
|
131
|
+
Performance analytics across the agent network.
|
|
132
|
+
|
|
133
|
+
## Implementation Technologies
|
|
134
|
+
|
|
135
|
+
Solana Agent leverages multiple technologies to enable these capabilities:
|
|
136
|
+
|
|
137
|
+
- **Knowledge Integration:**
|
|
138
|
+
Perplexity API, X/Twitter (Grok API), Zep memory, Pinecone vector search.
|
|
139
|
+
- **Collaborative Intelligence:**
|
|
140
|
+
Multi-agent swarm architecture with specialized expertise domains.
|
|
141
|
+
- **Human-AI Teaming:**
|
|
142
|
+
Integrated ticketing, notification systems, and real-time handoffs.
|
|
143
|
+
- **Organization Alignment:**
|
|
144
|
+
Unified mission framework, critic system, and collective memory.
|
|
145
|
+
|
|
146
|
+
## Installation
|
|
147
|
+
|
|
148
|
+
You can install Solana Agent using pip:
|
|
149
|
+
|
|
150
|
+
`pip install solana-agent`
|
|
151
|
+
|
|
152
|
+
## Documentation
|
|
153
|
+
|
|
154
|
+
Each public method has a docstring for real-time IDE hinting.
|
|
155
|
+
|
|
156
|
+
## Production Apps
|
|
157
|
+
|
|
158
|
+
- **CometHeart:**
|
|
159
|
+
AI Companion and Business Coach on mobile using voice-to-voice conversations.
|
|
160
|
+
|
|
161
|
+
## Example Setup
|
|
162
|
+
|
|
163
|
+
```python
|
|
164
|
+
# Create a decentralized organizational structure
|
|
165
|
+
from solana_agent import Swarm, AI, MongoDatabase
|
|
166
|
+
|
|
167
|
+
# Initialize the organizational database
|
|
168
|
+
db = MongoDatabase(db_url="mongodb://localhost:27017", db_name="organization_brain")
|
|
169
|
+
|
|
170
|
+
# Define the organization's mission and values
|
|
171
|
+
mission = """Our organization maximizes collective intelligence through
|
|
172
|
+
transparent collaboration between humans and AI. We value truth,
|
|
173
|
+
clarity, and continuous improvement in all interactions."""
|
|
174
|
+
|
|
175
|
+
# Create the organizational swarm
|
|
176
|
+
org = Swarm(
|
|
177
|
+
database=db,
|
|
178
|
+
directive=mission,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
# Register AI expertise domains
|
|
182
|
+
org.register(
|
|
183
|
+
name="knowledge_worker",
|
|
184
|
+
agent=AI(
|
|
185
|
+
openai_api_key="key",
|
|
186
|
+
instructions="You are an expert in research and knowledge synthesis...",
|
|
187
|
+
database=db
|
|
188
|
+
),
|
|
189
|
+
specialization="Research, analysis, and knowledge synthesis"
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
org.register(
|
|
193
|
+
name="customer_interface",
|
|
194
|
+
agent=AI(
|
|
195
|
+
openai_api_key="key",
|
|
196
|
+
instructions="You handle customer inquiries with empathy and clarity...",
|
|
197
|
+
database=db
|
|
198
|
+
),
|
|
199
|
+
specialization="Customer interaction and support"
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
# Register human expertise domains
|
|
203
|
+
org.register_human_agent(
|
|
204
|
+
agent_id="human_expert_1",
|
|
205
|
+
name="Technical Specialist",
|
|
206
|
+
specialization="Advanced technical problem solving requiring human judgment",
|
|
207
|
+
notification_handler=email_notification
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
# Process work through the organization
|
|
211
|
+
async for response in org.process("user123", "How can we optimize our supply chain?"):
|
|
212
|
+
print(response, end="")
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## License
|
|
216
|
+
|
|
217
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "solana-agent"
|
|
3
|
-
version = "
|
|
3
|
+
version = "8.0.1"
|
|
4
4
|
description = "The first AGI framework"
|
|
5
5
|
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -18,10 +18,10 @@ 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.3"
|
|
22
22
|
pydantic = "^2.10.6"
|
|
23
|
-
pymongo = "^4.11.
|
|
24
|
-
zep-cloud = "^2.
|
|
23
|
+
pymongo = "^4.11.2"
|
|
24
|
+
zep-cloud = "^2.5.0"
|
|
25
25
|
zep-python = "^2.0.2"
|
|
26
26
|
requests = "^2.32.3"
|
|
27
27
|
pinecone = "^6.0.1"
|
|
@@ -29,7 +29,7 @@ pandas = "^2.2.3"
|
|
|
29
29
|
ntplib = "^0.4.0"
|
|
30
30
|
|
|
31
31
|
[tool.poetry.dev-dependencies]
|
|
32
|
-
pytest = "^8.3.
|
|
32
|
+
pytest = "^8.3.5"
|
|
33
33
|
pytest-cov = "^6.0.0"
|
|
34
34
|
pytest-asyncio = "^0.25.3"
|
|
35
35
|
|