diff --git a/examples/aws-agentcore/bot.py b/examples/aws-agentcore/bot.py index 33633ec70..51a3bee65 100644 --- a/examples/aws-agentcore/bot.py +++ b/examples/aws-agentcore/bot.py @@ -156,8 +156,12 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): runner = PipelineRunner(handle_sigint=runner_args.handle_sigint) + task_id = app.add_async_task("voice_agent") + await runner.run(task) + app.complete_async_task(task_id) + @app.entrypoint async def bot(payload, context):