Fallback Chains (Stable)

Define an ordered list of models/providers. On error or policy match, advance to the next. Pseudocode:

// let chain = FallbackChain::new()
//     .primary("gpt-4o")
//     .on_timeout("claude-3-haiku")
//     .always("mistral-medium");
// let client = AiClientBuilder::new(Provider::OpenAI).fallback(chain).build()?;

First success short-circuits the chain. Combine with racing for tail latency reduction.

Build: 3de64ed · 2025-09-09T12:50:59.631Z · v0.21