这是indexloc提供的服务,不要输入任何密码

OpenIntent not executed with Visual Intelligence

I'm building a new feature with Visual Intelligence framework. My implementation for IndexedEntity and IntentValueQuery worked as expected and I can see a list of objects in visual search result. However, my OpenIntent doesn't work. When I tap on the object, I got a message on screen "Sorry somethinf went wrong ...". and the breakpoint in perform() is never triggered. Things I've tried:

  1. I added @MainActor before perform(), this didn't change anything
  2. I set static let openAppWhenRun: Bool = true and static var supportedModes: IntentModes = [.foreground(.immediate)], still nothing
  3. I created a different intent for the see more button at the end of feed. This AppIntent with schema: .visualIntelligence.semanticContentSearch worked, perform() is executed

iPad Pro (M4) has A.I. that can communicate an idea with you.

It would be helpful to see a small reproducible as a small buildable test project focused on these intents to understand what's happening with your project.

— Ed Ford,  DTS Engineer

OpenIntent not executed with Visual Intelligence
 
 
Q