test(bedrock): expect client interleaved-thinking beta to reach Bedrock Invoke alongside the safeguards beta

This commit is contained in:
Aswath Ram A Srinivasan 2026-10-22 12:33:55 -05:00
parent 8a4eb7b0f9
commit 17f8ca4260

View file

@ -1702,7 +1702,8 @@ async def test_anthropic_messages_forwards_safeguards_and_dangerous_tool_use_bet
)
assert captured["body"]["safeguards"] == safeguards
assert captured["body"]["anthropic_beta"] == ["dangerous-tool-use-2026-09-03"]
client_betas = set(filter(None, client_headers.get("anthropic-beta", "").split(",")))
assert sorted(captured["body"]["anthropic_beta"]) == sorted(client_betas | {"dangerous-tool-use-2026-09-03"})
assert response["safeguard_results"] == safeguard_results