SwiftprotocolSiriInferenceFlow

protocol SiriInferenceFlow.EntityResolutionStrategy

Members 9

  1. associatedtypeassociatedtype Entity
  2. funcmethod descriptor for chooseEntity(fromEntitiesToDisambiguate: [A.Entity], nlIntent: SiriOntology.NLIntent) -> A.Entity?
  3. funcmethod descriptor for extractConfirmationStatus(from: SiriOntology.NLIntent) -> Bool
  4. funcmethod descriptor for extractEntity(from: SiriOntology.NLIntent?) -> A.Entity?
  5. funcmethod descriptor for getCommandUtterance(for: A.Entity, disambiguationListIndex: Int) -> String
  6. funcmethod descriptor for getCommandUtterance(for: A.Entity, confirmationStatus: Bool) -> String
  7. funcmethod descriptor for makeNLContextUpdate(from: [SiriKitFlow.TemplatingResult]) -> SiriKitFlow.NLContextUpdate
  8. funcmethod descriptor for setResolvedEntity(on: INIntent, with: A.Entity) -> INIntent?
  9. funcmethod descriptor for shouldResolve(for: SiriOntology.NLIntent) -> Bool
protocol EntityResolutionStrategy {
    associatedtype Entity

    func shouldResolve(for: SiriOntology.NLIntent) -> Swift.Bool
    func extractEntity(from: SiriOntology.NLIntent?) -> Self.Entity?
    func extractConfirmationStatus(from: SiriOntology.NLIntent) -> Swift.Bool
    func chooseEntity(fromEntitiesToDisambiguate: [Self.Entity], nlIntent: SiriOntology.NLIntent) -> Self.Entity?
    func getCommandUtterance(for: Self.Entity, disambiguationListIndex: Swift.Int) -> Swift.String
    func getCommandUtterance(for: Self.Entity, confirmationStatus: Swift.Bool) -> Swift.String
    func makeNLContextUpdate(from: [SiriKitFlow.TemplatingResult]) -> SiriKitFlow.NLContextUpdate
    func setResolvedEntity(on: __C.INIntent, with: Self.Entity) -> __C.INIntent?
}