solana-agent 17.0.4__py3-none-any.whl → 17.0.6__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.
- solana_agent/services/query.py +4 -27
- {solana_agent-17.0.4.dist-info → solana_agent-17.0.6.dist-info}/METADATA +31 -11
- {solana_agent-17.0.4.dist-info → solana_agent-17.0.6.dist-info}/RECORD +5 -5
- {solana_agent-17.0.4.dist-info → solana_agent-17.0.6.dist-info}/LICENSE +0 -0
- {solana_agent-17.0.4.dist-info → solana_agent-17.0.6.dist-info}/WHEEL +0 -0
solana_agent/services/query.py
CHANGED
@@ -94,32 +94,12 @@ class QueryService(QueryServiceInterface):
|
|
94
94
|
agent_name = await self.routing_service.route_query(user_text)
|
95
95
|
print(f"Routed to agent: {agent_name}")
|
96
96
|
|
97
|
-
#
|
98
|
-
# tool calls are properly executed and formatted for audio
|
97
|
+
# Generate response
|
99
98
|
if output_format == "audio":
|
100
|
-
# Use the agent service to generate the response
|
101
|
-
text_response = ""
|
102
|
-
|
103
|
-
# First, get complete text response
|
104
|
-
# Note: This is a separate call from the audio generation
|
105
|
-
temp_response = ""
|
106
|
-
async for chunk in self.agent_service.generate_response(
|
107
|
-
agent_name=agent_name,
|
108
|
-
user_id=user_id,
|
109
|
-
query=user_text,
|
110
|
-
memory_context=memory_context,
|
111
|
-
output_format="text"
|
112
|
-
):
|
113
|
-
temp_response += chunk
|
114
|
-
|
115
|
-
# Store the complete text for memory
|
116
|
-
text_response = temp_response
|
117
|
-
|
118
|
-
# Now generate audio from same request
|
119
99
|
async for audio_chunk in self.agent_service.generate_response(
|
120
100
|
agent_name=agent_name,
|
121
101
|
user_id=user_id,
|
122
|
-
query=
|
102
|
+
query=query,
|
123
103
|
memory_context=memory_context,
|
124
104
|
output_format="audio",
|
125
105
|
audio_voice=audio_voice,
|
@@ -129,15 +109,13 @@ class QueryService(QueryServiceInterface):
|
|
129
109
|
):
|
130
110
|
yield audio_chunk
|
131
111
|
|
132
|
-
|
133
|
-
if self.memory_provider and text_response:
|
112
|
+
if self.memory_provider:
|
134
113
|
await self._store_conversation(
|
135
114
|
user_id=user_id,
|
136
115
|
user_message=user_text,
|
137
|
-
assistant_message=
|
116
|
+
assistant_message=self.agent_service.last_text_response,
|
138
117
|
)
|
139
118
|
else:
|
140
|
-
# For text mode, we can collect the response and store it directly
|
141
119
|
full_text_response = ""
|
142
120
|
async for chunk in self.agent_service.generate_response(
|
143
121
|
agent_name=agent_name,
|
@@ -149,7 +127,6 @@ class QueryService(QueryServiceInterface):
|
|
149
127
|
yield chunk
|
150
128
|
full_text_response += chunk
|
151
129
|
|
152
|
-
# Store conversation in memory
|
153
130
|
if self.memory_provider and full_text_response:
|
154
131
|
await self._store_conversation(
|
155
132
|
user_id=user_id,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: solana-agent
|
3
|
-
Version: 17.0.
|
3
|
+
Version: 17.0.6
|
4
4
|
Summary: The Future of Work
|
5
5
|
License: MIT
|
6
6
|
Keywords: ai,openai,ai agents,agi
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.13
|
14
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
16
|
-
Requires-Dist: openai (>=1.68.
|
16
|
+
Requires-Dist: openai (>=1.68.2,<2.0.0)
|
17
17
|
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
|
18
18
|
Requires-Dist: pymongo (>=4.11.3,<5.0.0)
|
19
19
|
Requires-Dist: zep-cloud (>=2.7.0,<3.0.0)
|
@@ -32,13 +32,30 @@ Description-Content-Type: text/markdown
|
|
32
32
|
|
33
33
|

|
34
34
|
|
35
|
+
## Agentic IQ
|
36
|
+
|
37
|
+
Solana Agent is an AI Agent framework defined on five key dimensions:
|
38
|
+
|
39
|
+
* **Multi-Modal Intelligence:** Agents process both text and audio seamlessly. Users interact naturally through their preferred communication channel.
|
40
|
+
|
41
|
+
* **Episodic Memory:** Agents remember past conversations with users. This eliminates repetitive explanations and builds meaningful relationships.
|
42
|
+
|
43
|
+
* **Cognitive Routing:** Queries go to the most qualified agent automatically. Each specialist has domain-specific knowledge for optimal responses.
|
44
|
+
|
45
|
+
* **Value Alignment:** Every agent follows clear organizational values and ethics. This ensures consistent, principled responses aligned with human priorities.
|
46
|
+
|
47
|
+
* **Extensible Tooling:** Agents recognize when specialized tools are needed. They extend capabilities beyond conversation to take actions via Python package integration.
|
48
|
+
|
49
|
+
This approach creates AI Agents that are intelligent, contextually aware, and aligned with organizational values.
|
50
|
+
|
51
|
+
|
35
52
|
## Features
|
36
53
|
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
*
|
54
|
+
* Seamless text and audio streaming with real-time multi-modal processing
|
55
|
+
* Persistent memory that preserves context across all agent interactions
|
56
|
+
* Intelligent query routing to agents with optimal domain expertise
|
57
|
+
* Unified value system ensuring aligned, principled agent responses
|
58
|
+
* Powerful tool integration that extends capabilities using standard Python packages
|
42
59
|
|
43
60
|
## Stack
|
44
61
|
|
@@ -109,17 +126,20 @@ async for response in solana_agent.process("user123", "What are the latest AI de
|
|
109
126
|
```
|
110
127
|
|
111
128
|
## Models Used
|
112
|
-
*
|
113
|
-
*
|
114
|
-
*
|
115
|
-
* The model used for tts is `tts-1`
|
129
|
+
* `gpt-4o-mini`
|
130
|
+
* `gpt-4o-mini-transcribe`
|
131
|
+
* `tts-1`
|
116
132
|
|
117
133
|
## Solana Agent Kit
|
118
134
|
|
135
|
+
A collection of Solana Agent tools
|
136
|
+
|
119
137
|
[Solana Agent Kit](https://github.com/truemagic-coder/solana-agent-kit)
|
120
138
|
|
121
139
|
## Example App
|
122
140
|
|
141
|
+
A Solana Agent example app written in FastAPI and Next.js
|
142
|
+
|
123
143
|
[Solana Agent Example App](https://github.com/truemagic-coder/solana-agent-app)
|
124
144
|
|
125
145
|
## License
|
@@ -29,9 +29,9 @@ solana_agent/repositories/agent.py,sha256=e1rnsQiigkKwJNLKro86a3b6TBiky3GMfmCRc5
|
|
29
29
|
solana_agent/repositories/memory.py,sha256=GABGwaz00thjviHewLvb18NeKE8dkBROxy_stsiiWrE,4722
|
30
30
|
solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
|
31
31
|
solana_agent/services/agent.py,sha256=j0aI_BGaY5Nhkb9ga0r4BqI3qMKu5TOc4QPQsU3NHyQ,17000
|
32
|
-
solana_agent/services/query.py,sha256=
|
32
|
+
solana_agent/services/query.py,sha256=rm7XlTCcp5NeorIaLUdr7rdxtWCgg1Q1qe5YuI1bumo,11246
|
33
33
|
solana_agent/services/routing.py,sha256=TPJ2Pas4acE93QzMEV6ZP670OtTNrVEPa76fz6urEV4,4996
|
34
|
-
solana_agent-17.0.
|
35
|
-
solana_agent-17.0.
|
36
|
-
solana_agent-17.0.
|
37
|
-
solana_agent-17.0.
|
34
|
+
solana_agent-17.0.6.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
|
35
|
+
solana_agent-17.0.6.dist-info/METADATA,sha256=AONUV19nfoF85FcrwEw6X3wF0Ec8umKT78xrhCHpsYY,5862
|
36
|
+
solana_agent-17.0.6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
37
|
+
solana_agent-17.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|