chore: Update comments about why we can return upon flushing audio caches

Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com>
PiperOrigin-RevId: 855788674
This commit is contained in:
Xiang (Sean) Zhou
2026-01-13 10:37:28 -08:00
committed by Copybara-Service
parent a5f0d333d7
commit f668a5de44
@@ -633,6 +633,12 @@ class BaseLlmFlow(ABC):
for event in flushed_events:
yield event
if flushed_events:
# NOTE below return is O.K. for now, because currently we only flush
# events on interrupted or turn_complete. turn_complete is a pure
# control event and interrupted is not with content but those content
# is ignorable because model is already interrupted. If we have other
# case to flush events in the future that are not pure control events,
# we should not return here.
return
# Builds the event.