LLMConfigureOutputFrame: allow configuring LLM output

This commit is contained in:
Aleix Conchillo Flaqué
2025-08-26 14:01:48 -07:00
parent 5803936838
commit 16f57be72c
4 changed files with 39 additions and 1 deletions

View File

@@ -607,6 +607,21 @@ class LLMEnablePromptCachingFrame(DataFrame):
enable: bool
@dataclass
class LLMConfigureOutputFrame(DataFrame):
"""Frame to configure LLM output.
This frame is used to configure how the LLM produces output. For example, it
can tell the LLM to generate tokens that should be added to the context but
not spoken by the TTS service (if one is present in the pipeline).
Parameters:
skip_tts: Whether LLM tokens should skip the TTS service (if any).
"""
skip_tts: bool
@dataclass
class TTSSpeakFrame(DataFrame):
"""Frame containing text that should be spoken by TTS.