The 49ers agreed to a one-year contract with veteran CB Isaac Yiadom, his agent announced on Wednesday.