solana-agent 17.1.9__py3-none-any.whl → 17.1.10__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.
@@ -291,23 +291,28 @@ class AgentService(AgentServiceInterface):
291
291
  summary_system_prompt = self.get_agent_system_prompt(agent_name) + \
292
292
  "\n DO NOT make any tool calls or return JSON. Present ALL facts and maintain ALL details from the source material."
293
293
 
294
+ # Collect all processed text first
295
+ processed_text = ""
294
296
  async for processed_chunk in self.llm_provider.generate_text(
295
297
  prompt=process_prompt,
296
298
  system_prompt=summary_system_prompt,
297
299
  ):
298
- # Add to complete response
299
- complete_text_response += processed_chunk
300
-
301
- # Output response based on format
302
- if output_format == "audio":
303
- async for audio_chunk in self.llm_provider.tts(
304
- text=processed_chunk,
305
- voice=audio_voice,
306
- response_format=audio_output_format
307
- ):
308
- yield audio_chunk
309
- else:
300
+ processed_text += processed_chunk
301
+ # For text output, yield chunks as they come
302
+ if output_format == "text":
310
303
  yield processed_chunk
304
+
305
+ # Add to complete response
306
+ complete_text_response += processed_text
307
+
308
+ # For audio output, process the complete text
309
+ if output_format == "audio":
310
+ async for audio_chunk in self.llm_provider.tts(
311
+ text=processed_text,
312
+ voice=audio_voice,
313
+ response_format=audio_output_format
314
+ ):
315
+ yield audio_chunk
311
316
  else:
312
317
  # For non-tool JSON, still capture the text
313
318
  complete_text_response += json_buffer
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 17.1.9
3
+ Version: 17.1.10
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -26,10 +26,10 @@ solana_agent/plugins/tools/auto_tool.py,sha256=Z3CcOzwdXpzciH-5yphhd9qt1b9owTxhw
26
26
  solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
27
27
  solana_agent/repositories/memory.py,sha256=cDGoRz8FEkjwCE7j0XvA03-NL0TyROAt4_uwx288Th0,4790
28
28
  solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
29
- solana_agent/services/agent.py,sha256=K3_DB02VRjPKa4z-ik-1sz9fYGBWGwLjFvQugJKxonw,19295
29
+ solana_agent/services/agent.py,sha256=fHE5deFvIREDY-99QDxG_JtiHBcYB5ontvKvi5I3oF8,19542
30
30
  solana_agent/services/query.py,sha256=qXrvzAyMqESdF8QD3xYaz2vyfR7ndLpsh2TahYQ-LYg,10414
31
31
  solana_agent/services/routing.py,sha256=IPvBicgTYXqQ8iIRaatCsBGQVsOBGdAkq2i6U8hZlOY,6479
32
- solana_agent-17.1.9.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
- solana_agent-17.1.9.dist-info/METADATA,sha256=Svsmh7LG38ajUZRlTRlyaelmdXiF_LAQT1BslL0ESrM,4692
34
- solana_agent-17.1.9.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
35
- solana_agent-17.1.9.dist-info/RECORD,,
32
+ solana_agent-17.1.10.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
+ solana_agent-17.1.10.dist-info/METADATA,sha256=EWDPkKhVIo-z3nbbcYO5FHQwoSVAsMU5MZyhXbGE8f8,4693
34
+ solana_agent-17.1.10.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
35
+ solana_agent-17.1.10.dist-info/RECORD,,