LLMAssistantContextAggregator should push BotStoppedSpeakingFrames

This commit is contained in:
Mark Backman
2025-04-01 23:35:09 -04:00
parent 23f3285a7d
commit b85bd91d08
2 changed files with 10 additions and 1 deletions

View File

@@ -149,7 +149,8 @@ class BaseLLMResponseAggregator(FrameProcessor):
@abstractmethod
def reset(self):
"""Reset the internals of this aggregator. This should not modify the
internal messages."""
internal messages.
"""
pass
@abstractmethod
@@ -446,6 +447,7 @@ class LLMAssistantContextAggregator(LLMContextResponseAggregator):
await self._handle_user_image_frame(frame)
elif isinstance(frame, BotStoppedSpeakingFrame):
await self.push_aggregation()
await self.push_frame(frame, direction)
else:
await self.push_frame(frame, direction)