Enum Class GenerationState

java.lang.Object
java.lang.Enum<GenerationState>
io.jmix.aichat.component.messagelist.GenerationState
All Implemented Interfaces:
Serializable, Comparable<GenerationState>, Constable

public enum GenerationState extends Enum<GenerationState>
Generation state of an AiMessageList as a whole.
  • IDLE — no active generation; all messages are complete.
  • GENERATING — a response is being produced; the last assistant message is the active (generating) one.
  • ERROR — the last generation failed; the list shows the error banner with a retry action.
  • Enum Constant Details

    • IDLE

      public static final GenerationState IDLE
      No active generation; all messages are complete.
    • GENERATING

      public static final GenerationState GENERATING
      A response is being produced; the last assistant message is the active (generating) one.
    • ERROR

      public static final GenerationState ERROR
      The last generation failed; the list shows the error banner with a retry action.
  • Method Details

    • values

      public static GenerationState[] 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 GenerationState 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