Force specific MFA factor during step-up

I have users that have sms and email MFA factors enabled. We have functionality that needs to require user step-up before they can do it. For some specific cases we want to force a particular MFA factor, email or sms.

How can we specify the particular factor type (email, sms, etc.) given that we’re passing in a provider of any or guardian?