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 & ShowsSnippetView {
      .result(
         dialog: IntentDialog("The movie is \(movie.title)"),
         view: MovieView(movie: movie)
      )
   }
}