Free agent left-hander Wandy Peralta is in agreement with the San Diego Padres on a four-year, $16.5 million contract, sources confirmed to ESPN on Wednesday.

The deal includes three player opt-outs, sources told ESPN, confirming multiple reports.

The deal is pending a physical.