mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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:
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.
|
||||
|
||||
Reference in New Issue
Block a user