Contents

thread

Declaration

var thread: some AssistantSchemas.Entity { get }

Overview

To integrate your app’s functionality with Siri and Apple Intelligence, you use Swift macros that generate additional properties and add protocol conformance for your app entity implementation.

For general information about app intent domains, see doc:Integrating-actions-with-siri-and-apple-intelligence.

The following example shows an app entity that conforms to the mail.thread schema:


@AppEntity(schema: .mail.thread)
struct MailThreadEntity: AppEntity {
struct MailThreadEntityQuery: EntityQuery {
func entities(for identifiers: [MailThreadEntity.ID]) async throws -> [MailThreadEntity] { [] }
}
static let defaultQuery = MailThreadEntityQuery()
var displayRepresentation: DisplayRepresentation { "Unimplemented" }

let id = UUID()


}