From 6938152db67947e09da37b7d2e3d649fa0b5a939 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Wed, 30 Apr 2025 15:15:49 -0400 Subject: [PATCH] [WIP] AWS Nova Sonic service - fix comment --- src/pipecat/services/aws_nova_sonic/context.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pipecat/services/aws_nova_sonic/context.py b/src/pipecat/services/aws_nova_sonic/context.py index 4b41b53b3..5d9bafec5 100644 --- a/src/pipecat/services/aws_nova_sonic/context.py +++ b/src/pipecat/services/aws_nova_sonic/context.py @@ -73,6 +73,7 @@ class AWSNovaSonicLLMContext(OpenAILLMContext): # Process remaining messages to fill out conversation history. # Nova Sonic supports "user" and "assistant" messages in history. + print(f"[pk] standard messages: {messages}") for message in messages: history_message = self.from_standard_message(message) if history_message: @@ -134,9 +135,9 @@ class AWSNovaSonicAssistantContextAggregator(OpenAIAssistantContextAggregator): async def handle_function_call_result(self, frame: FunctionCallResultFrame): await super().handle_function_call_result(frame) - # The standard function callback code path pushes the FunctionCallResultFrame from the llm itself, - # so we didn't have a chance to add the result to the openai realtime api context. Let's push a - # special frame to do that. + # The standard function callback code path pushes the FunctionCallResultFrame from the LLM + # itself, so we didn't have a chance to add the result to the AWS Nova Sonic server-side + # context. Let's push a special frame to do that. await self.push_frame( AWSNovaSonicFunctionCallResultFrame(result_frame=frame), FrameDirection.UPSTREAM )