LLMAssistantAggregatorParams: copy to llm_response_universal

This commit is contained in:
Aleix Conchillo Flaqué
2025-12-18 10:58:40 -08:00
parent dff6b5402a
commit a9cca0b934
9 changed files with 14 additions and 11 deletions

View File

@@ -57,9 +57,6 @@ from pipecat.processors.aggregators.llm_context import (
LLMSpecificMessage,
NotGiven,
)
from pipecat.processors.aggregators.llm_response import (
LLMAssistantAggregatorParams,
)
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.turns.bot.base_bot_turn_start_strategy import BaseBotTurnStartStrategy
from pipecat.turns.user.base_user_turn_start_strategy import BaseUserTurnStartStrategy
@@ -82,6 +79,20 @@ class LLMUserAggregatorParams:
enable_user_speaking_frames: bool = True
@dataclass
class LLMAssistantAggregatorParams:
"""Parameters for configuring LLM assistant aggregation behavior.
Parameters:
expect_stripped_words: Whether to expect and handle stripped words
in text frames by adding spaces between tokens. This parameter is
ignored when used with the newer LLMAssistantAggregator, which
handles word spacing automatically.
"""
expect_stripped_words: bool = True
class LLMContextAggregator(FrameProcessor):
"""Base LLM aggregator that uses an LLMContext for conversation storage.

View File

@@ -47,7 +47,6 @@ from pipecat.frames.frames import (
)
from pipecat.processors.aggregators.llm_context import (
LLMContext,
LLMContextMessage,
LLMSpecificMessage,
)
from pipecat.processors.aggregators.llm_response import (