Hollywood directors have reached a four-year tentative contract agreement with studios and streaming services.