Handbook
`fallback_chain`
fallback_chain([lambda: step1(), step2(), ...]) where each step returns Result[T, E]. Returns the first Ok. If all steps are Err, returns the last error. If the list is empty, returns Err(ConfigFailure("empty…
fallback_chain
fallback_chain([lambda: step1(), step2(), ...]) where each step returns Result[T, E]. Returns the first Ok. If all steps are Err, returns the last error. If the list is empty, returns Err(ConfigFailure("empty fallback_chain")).
Use with lambdas wrapping chat_with_json_mode_then_plain vs alternate prompts, or multiple run_task variants.