From 19f344e41a1246d1742ecc2807ec461a7ee260db Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Thu, 20 Nov 2025 11:04:35 -0500 Subject: [PATCH] Amazon Bedrock AgentCore exploration, cont'd --- examples/aws-agentcore/bot.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/aws-agentcore/bot.py b/examples/aws-agentcore/bot.py index 51a3bee65..d7d09cf1d 100644 --- a/examples/aws-agentcore/bot.py +++ b/examples/aws-agentcore/bot.py @@ -162,10 +162,18 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): app.complete_async_task(task_id) + return {"status": "success"} + + +async def bot(runner_args: RunnerArguments): + """Bot entry point for running locally and on Pipecat Cloud.""" + transport = await create_transport(runner_args, transport_params) + await run_bot(transport, runner_args) + @app.entrypoint -async def bot(payload, context): - """Main bot entry point compatible with AWS Bedrock AgentCore Runtime.""" +async def agentcore_bot(payload, context): + """Bot entry point for running on Amazon Bedrock AgentCore Runtime.""" room_url = payload.get("roomUrl") transport = await create_transport( DailyRunnerArguments(room_url=room_url),