The Buffalo Bills have agreed to hire Sean McDermott as head coach.

McDermott most recently was defensive coordinator of the Carolina Panthers.

McDermott was one of four coaches to interview for the Bills' vacancy, along with interim coach Anthony Lynn, Arizona Cardinals offensive coordinator Harold Goodwin and Seattle Seahawks defensive coordinator Kris Richard.

In recent days, sources said McDermott had received encouraging answers to his questions about the team's front-office structure and how it would work day-to-day if he took the job.