The Los Angeles Angels, once again in need of a starting pitcher to slot near the top of their rotation, have agreed to a three-year contract with Tyler Anderson, sources told ESPN's Jeff Passan.

The deal, valued somewhere in the neighborhood of $39 million, was struck hours before Tuesday's deadline for players to decide whether to accept the qualifying offer.