struct ShowMovie: AppIntent {
   static let title: LocalizedStringResource = "Show Movie"
   static let description = IntentDescription("Shows your favorite movie.")

   static let supportedModes: IntentModes = .background

   @MainActor
   func perform() async throws -> some IntentResult & ProvidesDialog {
      let message = "Your favorite movie is Rambo!"
      return .result(
         dialog: IntentDialog(stringLiteral: message)
      )
   }
}