solana-agent 17.0.4__py3-none-any.whl → 17.0.5__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.
@@ -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
- # For audio mode, we need to carefully handle the response to make sure
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=user_text,
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
- # Store conversation in memory
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=text_response
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.4
3
+ Version: 17.0.5
4
4
  Summary: The Future of Work
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -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=_RHcT7LDvaVhgie96--l7N4ktEtL6UDtgk1_2t25PtQ,12305
32
+ solana_agent/services/query.py,sha256=rm7XlTCcp5NeorIaLUdr7rdxtWCgg1Q1qe5YuI1bumo,11246
33
33
  solana_agent/services/routing.py,sha256=TPJ2Pas4acE93QzMEV6ZP670OtTNrVEPa76fz6urEV4,4996
34
- solana_agent-17.0.4.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
- solana_agent-17.0.4.dist-info/METADATA,sha256=_QLt1zJUJQ-wBy6qYBycjZ6w8bxvcpdwYrxbr2vZWZk,4888
36
- solana_agent-17.0.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
- solana_agent-17.0.4.dist-info/RECORD,,
34
+ solana_agent-17.0.5.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
+ solana_agent-17.0.5.dist-info/METADATA,sha256=2sWznTyIgbXcjARY3RqHl_8y_4FeG3TmF1jYhf-wQxw,4888
36
+ solana_agent-17.0.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
+ solana_agent-17.0.5.dist-info/RECORD,,