Ruff format debug

This commit is contained in:
Pete
2025-07-29 17:48:11 -04:00
parent 8ca06e5887
commit 2af3b6329d
2 changed files with 6 additions and 6 deletions

View File

@@ -1074,12 +1074,12 @@ class InputImageRawFrame(SystemFrame, ImageRawFrame):
return f"{self.name}(pts: {pts}, source: {self.transport_source}, size: {self.size}, format: {self.format})"
@dataclass
@dataclass
class InputTextRawFrame(SystemFrame, TextFrame):
"""Raw text input frame from transport.
Text input usually coming from user typing or programmatic text injection
that should be sent to LLM services as input, similar to how InputAudioRawFrame
that should be sent to LLM services as input, similar to how InputAudioRawFrame
and InputImageRawFrame represent user audio and video input.
"""

View File

@@ -970,15 +970,15 @@ class GeminiMultimodalLiveLLMService(LLMService):
async def _send_user_text(self, text: str):
"""Send user text via Gemini Live API's realtime input stream.
This method sends text through the realtimeInput stream (via TextInputMessage)
rather than the clientContent stream. This ensures text input is synchronized
with audio and video inputs, preventing temporal misalignment that can occur
when different modalities are processed through separate API pathways.
After sending the text, we signal turn completion to trigger a model response
for text-only interactions.
Args:
text: The text to send as user input.
"""