SAN FRANCISCO -- Right-handed reliever Santiago Casilla and the San Francisco Giants have agreed to a $15 million, three-year contract.