Sources: Troy Williams agrees to two-year deal with Knicks

Knicks forward Troy Williams dunks during the second half on Sunday in a loss to the Raptors. (AP)

The New York Knicks and forward Troy Williams have agreed to a two-year contract, league sources told Yahoo Sports.

Williams’ deal will be guaranteed for the remainder of this season and includes partial guarantees for next season, league sources said.

Play Tourney Pick’em | Play against Draymond Green | Print bracket | What you need to know

Williams, an athletic 6-foot-7 wing, has averaged 8.1 points and 2.9 rebounds in 13.9 minutes per game in eight appearances for the Knicks. His second 10-day contract with the team expired on Monday, and the Knicks worked with Williams’ agent, Stephen Pina, to finalize a deal to keep the 23-year-old from entering the offseason as a free agent.

Williams is in his second NBA season after going undrafted in 2016 out of Indiana. He joined the Knicks after being released by the Houston Rockets to create roster space for Joe Johnson.

More from Yahoo Sports:

Did a Lakers usher really not recognize Jack Nicholson?
How the NCAA’s mistake could lead to historic tourney upset
Heartbreaking photo shows sad side of March Madness
Short deal for QB Cousins could go long way for elite NFL platyers