Ai is the je form of the verb avoir in the present tense.
So:
In this sentence, j'ai une carie literally means I have a cavity.
It can mean both, depending on context. French present tense often covers both the simple present and the present progressive.
So La dentiste dit... can mean:
In most normal translations here, The dentist says that I have a cavity is the most natural choice.