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 ProvidesDialog & ShowsSnippetIntent {
      .result(
         dialog: IntentDialog("Movie:"),
         snippetIntent: FavoriteIntent(movie: $movie)
      )
   }
}