From eb957dc52f32200bd9a84d3fccad17b8866052bd Mon Sep 17 00:00:00 2001 From: Gui Ruggiero Date: Tue, 5 May 2026 19:01:12 -0700 Subject: [PATCH 1/3] Refactor Nova Sonic model client configuration Signed-off-by: Gui Ruggiero --- .../02-strands-ws/websocket/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py b/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py index 8646cddc8..7bcaec516 100644 --- a/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py +++ b/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py @@ -189,12 +189,12 @@ def _create_model(config: dict, effective_gateway_arns: list, api_key: str = Non # Nova Sonic if model_id.startswith("amazon.nova"): return BidiNovaSonicModel( - region=config.get("region", "us-east-1"), + client_config={"region": config.get("region", "us-east-1")}, model_id=model_id, provider_config={ "audio": { - "input_sample_rate": config["input_sample_rate"], - "output_sample_rate": config["output_sample_rate"], + "input_rate": config["input_sample_rate"], + "output_rate": config["output_sample_rate"], "voice": config["voice"], } }, From a70fdf51124df2823478c116832480503329a3b5 Mon Sep 17 00:00:00 2001 From: Gui Ruggiero Date: Tue, 5 May 2026 19:07:02 -0700 Subject: [PATCH 2/3] Add Gui Ruggiero to the contributors list --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index a4cfaddae..1460dc751 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -115,3 +115,4 @@ - Anant Murarka (anantmu) - Cristiano Scandura (scandura) - palbiren +- Gui Ruggiero (guiruggiero) From 7f8282c7ebb86dfbce1f6a7acf2ba902be982eb1 Mon Sep 17 00:00:00 2001 From: Gui Ruggiero Date: Tue, 5 May 2026 19:33:45 -0700 Subject: [PATCH 3/3] Refactor import statement for BidiNovaSonicModel --- .../02-strands-ws/websocket/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py b/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py index 7bcaec516..7b25e7ca6 100644 --- a/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py +++ b/01-tutorials/01-AgentCore-runtime/06-bi-directional-streaming/02-strands-ws/websocket/agent.py @@ -5,7 +5,7 @@ from fastapi import WebSocket, WebSocketDisconnect from strands.experimental.bidi.agent import BidiAgent -from strands.experimental.bidi.models.nova_sonic import BidiNovaSonicModel +from strands.experimental.bidi.models import BidiNovaSonicModel logger = logging.getLogger(__name__)