Class IntentTrigger

    • Method Detail

      • fromPhrase

        public static IntentTrigger fromPhrase​(String simplePhrase)
        Creates an instance of a intent trigger from simple phrase.
        Parameters:
        simplePhrase - The simple phrase.
        Returns:
        A IntentTrigger instance.
      • fromModel

        public static IntentTrigger fromModel​(SafeHandle modelHandle)
        Creates an instance of a intent trigger from LanguageUnderstandingModel.
        Parameters:
        modelHandle - The model handle.
        Returns:
        A IntentTrigger instance.
      • fromModel

        public static IntentTrigger fromModel​(SafeHandle modelHandle,
                                              String intentName)
        Creates an instance of a intent trigger from LanguageUnderstandingModel.
        Parameters:
        modelHandle - The model handle.
        intentName - The intent name.
        Returns:
        A IntentTrigger instance.
      • close

        public void close()
        Closes the intent trigger.
        Specified by:
        close in interface AutoCloseable
      • getImpl

        public SafeHandle getImpl()
        INTERNAL
        Returns:
        a handle to the Trigger