The Brooklyn Nets are taking a flier on former No. 1 overall pick Anthony Bennett.

The two sides reached an agreement on a two-year contract that will be worth the veteran's minimum, sources confirmed Thursday.

The Nets worked out Bennett, who has gotten into much better shape, at a veteran mini-camp early in the offseason and came away impressed.

Bennett was a member of the Canadian national team that lost to France in the finals of the recent Olympic qualifying tournament in the Philippines. Bennett averaged 6.8 points and 5 rebounds in four games.

Bennett, 23, taken with the top pick in 2013, has never lived up to his draft status. In parts of three seasons with the Cleveland Cavaliers, Minnesota Timberwolves and Toronto Raptors, he holds career averages of 4.2 points and 3.1 rebounds.

But rebuilding Brooklyn, which is coming off a 21-61 season and does not have total control over its own first-round pick until 2019, needs to find diamonds in the rough.

The Nets are hoping that coach Kenny Atkinson's strong track record for developing players translates into helping Bennett turn his career around.

The Nets also reached a one-year contract agreement with veteran guard Randy Foye, a source confirmed.

Foye, 32, appeared in 81 games last season between the Denver Nuggets and Oklahoma City Thunder. The Vertical earlier reported the deal.

Brooklyn now has 15 players under contract.

After their offer sheets to restricted free agents Allen Crabbe and Tyler Johnson were matched by Portland and Miami, the Nets signed Greivis Vasquez, Luis Scola, Joe Harris, Bennett and Foye to short-term deals, maintaining salary cap flexibility in the process.