From ecd519df6ea271d56e314f1e3c6ea442f639e8fe Mon Sep 17 00:00:00 2001 From: Patrick Gray Date: Mon, 1 Dec 2025 21:25:33 -0500 Subject: [PATCH] fix agent send dict to event construction --- src/strands/experimental/bidi/agent/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/strands/experimental/bidi/agent/agent.py b/src/strands/experimental/bidi/agent/agent.py index 84e0e1e4f..360dfe707 100644 --- a/src/strands/experimental/bidi/agent/agent.py +++ b/src/strands/experimental/bidi/agent/agent.py @@ -261,6 +261,7 @@ async def send(self, input_data: BidiAgentInput | dict[str, Any]) -> None: elif isinstance(input_data, dict) and "type" in input_data: input_type = input_data["type"] + input_data = {key: value for key, value in input_data.items() if key != "type"} if input_type == "bidi_text_input": input_event = BidiTextInputEvent(**input_data) elif input_type == "bidi_audio_input":