When two appropriately selected and tolerated antiseizure medication schedules have not achieved sustained seizure freedom, the epilepsy team may consider whether the person meets the definition of drug-resistant epilepsy. That does not automatically mean surgery or any particular treatment.
It is a reason to ask what more specialized evaluation could clarify and which options are reasonable in the individual situation. The next step may involve a change in medication, additional testing, dietary therapy, neurostimulation, surgery or another approach.