MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / beta_headers

Function beta_headers

tests/lib/test_refusal_fallback.py:104–106  ·  view source on GitHub ↗
(respx_mock: MockRouter)

Source from the content-addressed store, hash-verified

102
103
104def beta_headers(respx_mock: MockRouter) -> list[str | None]:
105 calls = cast("list[MockRequestCall]", respx_mock.calls)
106 return [call.request.headers.get("anthropic-beta") for call in calls]
107
108
109class TestRefusalFallback:

Calls 1

getMethod · 0.45

Tested by

no test coverage detected