Enum Class ChatIntent

java.lang.Object
java.lang.Enum<ChatIntent>
org.codelibs.fess.llm.ChatIntent
All Implemented Interfaces:
Serializable, Comparable<ChatIntent>, Constable

public enum ChatIntent extends Enum<ChatIntent>
Represents the intent type detected from a user's chat message.
  • Enum Constant Details

    • SUMMARY

      public static final ChatIntent SUMMARY
      User wants a summary of a specific document
    • FAQ

      public static final ChatIntent FAQ
      User is asking a FAQ-type question
    • UNCLEAR

      public static final ChatIntent UNCLEAR
      Intent is unclear - need to ask user for clarification
  • Method Details

    • values

      public static ChatIntent[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ChatIntent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the string value of this intent.
      Returns:
      the intent value
    • fromValue

      public static ChatIntent fromValue(String value)
      Parses a string value to ChatIntent enum.
      Parameters:
      value - the string value to parse
      Returns:
      the corresponding ChatIntent, defaults to UNCLEAR if not found