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)
|
runner = PipelineRunner(handle_sigint=runner_args.handle_sigint)
|
||||||
|
|
||||||
|
task_id = app.add_async_task("voice_agent")
|
||||||
|
|
||||||
await runner.run(task)
|
await runner.run(task)
|
||||||
|
|
||||||
|
app.complete_async_task(task_id)
|
||||||
|
|
||||||
|
|
||||||
@app.entrypoint
|
@app.entrypoint
|
||||||
async def bot(payload, context):
|
async def bot(payload, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user