mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Remove dead codes for flushing model audio when generation completes
LlmResponse so far doesn't expose generation_complete signal, removing the dead codes. Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 855835802
This commit is contained in:
committed by
Copybara-Service
parent
277084e313
commit
1bedffe457
@@ -974,13 +974,8 @@ class BaseLlmFlow(ABC):
|
||||
flush_user_audio=True,
|
||||
flush_model_audio=True,
|
||||
)
|
||||
elif getattr(llm_response, 'generation_complete', False):
|
||||
# model generation complete so we can flush model audio
|
||||
return await self.audio_cache_manager.flush_caches(
|
||||
invocation_context,
|
||||
flush_user_audio=False,
|
||||
flush_model_audio=True,
|
||||
)
|
||||
# TODO: Once generation_complete is surfaced on LlmResponse, we can flush
|
||||
# model audio here (flush_user_audio=False, flush_model_audio=True).
|
||||
return []
|
||||
|
||||
async def _run_and_handle_error(
|
||||
|
||||
Reference in New Issue
Block a user