ras_agent/application/
fallback_llm.rs1use ras_errors::AppError;
2
3#[must_use]
4pub fn should_switch_to_fallback(error: &AppError) -> bool {
5 matches!(
6 error,
7 AppError::LlmRateLimited(_)
8 | AppError::LlmAuthExpired(_)
9 | AppError::LlmProviderError(_)
10 | AppError::CdpTimeout(_)
11 | AppError::BrowserDisconnected(_)
12 )
13}