Enum Class AskUserVariant

java.lang.Object
java.lang.Enum<AskUserVariant>
com.github.copilot.rpc.AskUserVariant
All Implemented Interfaces:
Serializable, Comparable<AskUserVariant>, Constable

public enum AskUserVariant extends Enum<AskUserVariant>
Selects how the built-in ask_user tool collects user input.
  • Enum Constant Details

    • LEGACY

      public static final AskUserVariant LEGACY
      Uses the legacy question-and-answer experience.
    • ELICITATION

      public static final AskUserVariant ELICITATION
      Uses structured elicitation to collect user input.
  • Method Details

    • values

      public static AskUserVariant[] 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 AskUserVariant 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 wire-format value.
      Returns:
      the value used in JSON serialization
    • fromValue

      public static AskUserVariant fromValue(String value)
      Creates an AskUserVariant from its wire-format value.
      Parameters:
      value - the wire-format value
      Returns:
      the matching variant, or null when value is null
      Throws:
      IllegalArgumentException - if the value is not legacy or elicitation