Guillermo Heredia agrees to deal with Pirates

Tampa Bay Rays' Guillermo Heredia (54) walks back to the dugout after striking out during the third inning of a baseball game against the Detroit Tigers Friday, Aug. 16, 2019, in St. Petersburg, Fla. (AP)

PITTSBURGH (AP) — Outfielder Guillermo Heredia agreed Thursday to a one-year contract with the Pittsburgh Pirates.

Heredia, who turns 29 on Jan. 31, hit .225 with five homers and 20 RBIs in 231 plate appearances last season for the Tampa Bay Rays, who declined to offer him a contract by the Dec. 2 deadline and allowed him to become a free agent. He was acquired by the Rays from Seattle after the 2018 season.

Heredia has a .240 average with 17 homers and 75 RBIs in four major league seasons with the Mariners and Rays.

To clear a roster spot, Pittsburgh designated infielder Pablo Reyes for assignment.