Amazon Bedrock AgentCore exploration, cont'd
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user