AppleIntents.Delegated (apple_intents v0.1.0)

Copy Markdown View Source

First-class delegation for intent handlers.

Compose with AppleIntents.Intent to set delegated_task/0 and require_approval?/0 without boilerplate:

defmodule MyApp.PhotoIntent do
  use AppleIntents.Intent, intent: "OrganizePhotos"
  use AppleIntents.Delegated, task: "organize_photos", require_approval: true
end

When delegated_task/0 is non-nil, AppleIntents.Router routes work through AppleIntents.Orchestration instead of calling handle/2.