ras-agent 2.4.0

Agent step loop, history, plan, rerun orchestration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ras_errors::AppError;

#[must_use]
pub fn should_switch_to_fallback(error: &AppError) -> bool {
    matches!(
        error,
        AppError::LlmRateLimited(_)
            | AppError::LlmAuthExpired(_)
            | AppError::LlmProviderError(_)
            | AppError::CdpTimeout(_)
            | AppError::BrowserDisconnected(_)
    )
}