Add LLMRunFrame to trigger an LLM response, replacing context_aggregator.user().get_context_frame()

This commit is contained in:
Paul Kompfner
2025-08-26 16:39:23 -04:00
parent e384ca949e
commit 189749b579
123 changed files with 331 additions and 163 deletions

View File

@@ -18,6 +18,7 @@ from pipecat.frames.frames import (
Frame,
FunctionCallInProgressFrame,
FunctionCallResultFrame,
LLMRunFrame,
StartFrame,
StartInterruptionFrame,
StopInterruptionFrame,
@@ -367,7 +368,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Client connected")
# Kick off the conversation.
messages.append({"role": "system", "content": "Please introduce yourself to the user."})
await task.queue_frames([context_aggregator.user().get_context_frame()])
await task.queue_frames([LLMRunFrame()])
@transport.event_handler("on_app_message")
async def on_app_message(transport, message):