struct FindMovie: AppIntent {
   static let title: LocalizedStringResource = "Find Movie"
   static let description = IntentDescription("Finds a movie by title.")
   
   static let supportedModes: IntentModes = .background

   @Parameter(title: "Movie")
   var movie: MovieEntity

   func perform() async throws -> some IntentResult & ProvidesDialog {
      .result(dialog: IntentDialog("The movie is \(movie.title)"))
   }
}
struct TestIntentsShortcuts: AppShortcutsProvider {
   static var appShortcuts: [AppShortcut] {
      AppShortcut(
         intent: FindMovie(),
         phrases: [
            "Show me a movie in \(.applicationName)"
         ],
         shortTitle: LocalizedStringResource("Show Movies"),
         systemImageName: "magnifyingglass.circle"
      )
   }
}