Siri Intent: 'Siri, count for '

Hi, I’m developing an app, which just like Clock App, uses multiple counters.

I want to speak Siri commands, such as “Siri, count for one hour”. ‘count’ is the alternative app name.

My AppIntent has a parameter, and Siri understands if I say “Siri, count” and asks for duration in a separate step. It runs fine, but I can’t figure out how to run the command with the duration specified upfront, without any subsequent questions from Siri.

Clock App has this functionality, so it can be done.

    //title
    //perform()
    
    @Parameter(title: "Duration")
    var minutes: Measurement<UnitDuration>
}

I have a struct ShortcutsProvider: AppShortcutsProvider, phrases accept only parameters of type AppEnum or AppEntity.

Siri Intent: 'Siri, count for '
 
 
Q