Interface IntentResult


public interface IntentResult
Represents the result of an intent recognition process. This interface provides methods to retrieve information about the identified intent, its confidence score, and whether it corresponds to a menu option.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the name of the recognized intent.
    double
    Retrieves the confidence score of the recognized intent.
    boolean
    Checks if the recognized intent corresponds to a menu option.
  • Method Details

    • getIntent

      String getIntent()
      Retrieves the name of the recognized intent.
      Returns:
      A String representing the name of the intent.
    • getScore

      double getScore()
      Retrieves the confidence score of the recognized intent. The score typically ranges from 0.0 to 1.0, where a higher value indicates greater confidence.
      Returns:
      A double representing the confidence score.
    • isMenuOption

      boolean isMenuOption()
      Checks if the recognized intent corresponds to a menu option.
      Returns:
      true if the intent is a menu option, false otherwise.