pub fn is_api_timeout_error(error: &AgentError) -> bool
Check if an error is an API connection timeout.