Quarterback Brock Purdy and the San Francisco 49ers have agreed to a $265 million extension, with $181 million in total guarantees.