In that sentence, “hmm” is an example of a filled pause (also called a hesitation marker), which is a type of discourse marker used to show hesitation while thinking of what to say next.