Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ fallbacks.py
File
fallbacks.py
examples/fallbacks.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#!/usr/bin/env -S uv run python
2
from
anthropic
import
Anthropic, BetaFallbackState, BetaRefusalFallbackMiddleware
3
from
anthropic.types.beta
import
BetaMessageParam
4
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected