Class AiQuestion

java.lang.Object
org.netxms.client.ai.AiQuestion

public class AiQuestion extends Object
AI agent question for user interaction
  • Constructor Details

    • AiQuestion

      public AiQuestion(NXCPMessage msg)
      Create question object from NXCP message.
      Parameters:
      msg - NXCP message
  • Method Details

    • getId

      public long getId()
      Get question ID.
      Returns:
      question ID
    • getChatId

      public int getChatId()
      Get chat ID this question belongs to.
      Returns:
      chat ID
    • isMultipleChoice

      public boolean isMultipleChoice()
      Check if this is a multiple choice question.
      Returns:
      true if multiple choice, false if binary confirmation
    • getConfirmationType

      public AiQuestion.ConfirmationType getConfirmationType()
      Get confirmation type for binary questions.
      Returns:
      confirmation type
    • getPositiveLabel

      public String getPositiveLabel()
      Get positive button label based on confirmation type.
      Returns:
      positive button label
    • getNegativeLabel

      public String getNegativeLabel()
      Get negative button label based on confirmation type.
      Returns:
      negative button label
    • getText

      public String getText()
      Get question text.
      Returns:
      question text
    • getContext

      public String getContext()
      Get additional context for the question (e.g., command to be approved).
      Returns:
      context string, may be empty
    • getOptions

      public List<String> getOptions()
      Get options for multiple choice questions.
      Returns:
      list of options, empty for binary questions
    • getTimeoutSeconds

      public int getTimeoutSeconds()
      Get remaining timeout in seconds.
      Returns:
      timeout in seconds