Consume InterimTranscriptionFrame and TranslationFrame in LLMUserAggregator

These frames were falling through to the else branch and being pushed
downstream, unlike TranscriptionFrame which is explicitly consumed.
This aligns with how the assistant aggregator already filters them.
This commit is contained in:
Mark Backman
2026-02-24 20:51:41 -05:00
parent 9890b93d08
commit 69d916ca51
2 changed files with 44 additions and 0 deletions

View File

@@ -461,6 +461,10 @@ class LLMUserAggregator(LLMContextAggregator):
await self.push_frame(frame, direction)
elif isinstance(frame, TranscriptionFrame):
await self._handle_transcription(frame)
elif isinstance(frame, (InterimTranscriptionFrame, TranslationFrame)):
# Interim transcriptions and translations are consumed here
# and not pushed downstream, same as final TranscriptionFrame.
pass
elif isinstance(frame, LLMRunFrame):
await self._handle_llm_run(frame)
elif isinstance(frame, LLMMessagesAppendFrame):