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

Function fallback

tests/lib/tools/test_runner_eager_tools.py:825–832  ·  view source on GitHub ↗

The block a refusal starts when it hands the reply to a fallback model.

()

Source from the content-addressed store, hash-verified

823
824
825def fallback() -> Block:
826 """The block a refusal starts when it hands the reply to a fallback model."""
827 return {
828 "type": "fallback",
829 "from": {"model": "claude-haiku-4-5"},
830 "to": {"model": "claude-opus-4-8"},
831 "trigger": {"type": "refusal", "category": None},
832 }
833
834
835def compaction() -> Block:

Calls

no outgoing calls

Tested by

no test coverage detected