Merge pull request #2732 from pipecat-ai/pk/update-voicemail-detector-to-use-llm-context

Update `VoicemailDetector` to use universal `LLMContext`
This commit is contained in:
Aleix Conchillo Flaqué
2025-09-24 11:04:42 -07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,8 @@ from pipecat.frames.frames import (
UserStoppedSpeakingFrame,
)
from pipecat.pipeline.parallel_pipeline import ParallelPipeline
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.processors.aggregators.llm_context import LLMContext
from pipecat.processors.aggregators.llm_response_universal import LLMContextAggregatorPair
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor, FrameProcessorSetup
from pipecat.services.llm_service import LLMService
from pipecat.sync.base_notifier import BaseNotifier
@@ -614,8 +615,8 @@ VOICEMAIL SYSTEM (respond "VOICEMAIL"):
]
# Create the LLM context and aggregators for conversation management
self._context = OpenAILLMContext(self._messages)
self._context_aggregator = llm.create_context_aggregator(self._context)
self._context = LLMContext(self._messages)
self._context_aggregator = LLMContextAggregatorPair(self._context)
# Create notification system for coordinating between components
self._gate_notifier = EventNotifier() # Signals classification completion