diff --git a/src/strands/models/bedrock.py b/src/strands/models/bedrock.py index 4a48d7229..4540b4c0e 100644 --- a/src/strands/models/bedrock.py +++ b/src/strands/models/bedrock.py @@ -835,6 +835,9 @@ def _stream( if "contentBlockStart" in chunk and chunk["contentBlockStart"].get("start", {}).get("toolUse"): has_tool_use = True + if "contentBlockDelta" in chunk and chunk["contentBlockDelta"].get("delta", {}).get("toolUse"): + has_tool_use = True + # Fix stopReason for streaming responses that contain tool use if ( has_tool_use