The Twins have agreed to a contract with free-agent infielder/outfielder Marwin Gonzalez, reports Jon Heyman of the MLB Network (via Twitter). Dan Hayes of The Athletic first connected the two sides yesterday, reporting that they’d discussed a potential three-year pact (though details of today’s agreement are not yet clear). Gonzalez is represented by the Boras Corporation.

Gonzalez, who’ll turn 30 in three weeks, emerged as one of the game’s most versatile utility pieces over the past two seasons and played a major role in Houston’s 2017 World Series championship. The switch-hitter’s terrific .303/.377/.530 batting line from that season regressed to .247/.324/.409 this past season, but it’s worth noting that his 2018 results were weighted down by a sluggish start to the year. Gonzalez carried a .612 OPS into the month of June and then rebounded to the tune of a .266/.343/.462 slash line, clubbing a dozen of his 16 home runs through the season’s final four months. Overall, he’s posted a healthy .274/.349/.467 line with 39 homers, 59 doubles and three triples over his past 1067 plate appearances.

Known as much for his defensive versatility as anything else — agent Scott Boras dubbed him “Swiss G” early in the offseason — Gonzalez logged 150-plus innings at first base, second base, shortstop and in left field last year. He’s logged significant innings at all four infield spots over the past two seasons and has tallied more than 1000 innings in left field as well. He’s drawn plus marks for that work in left (+7 Defensive Runs Saved, +5.5 Ultimate Zone Rating, +2 Outs Above Average) and has generally drawn solid marks for his glovework at first base, second base and third base in recent years (with defensive metrics being less fond of his defense at shortstop).