Enum Class ReActStatus

java.lang.Object
java.lang.Enum<ReActStatus>
com.tnsai.reasoning.react.ReActStatus
All Implemented Interfaces:
Serializable, Comparable<ReActStatus>, Constable

public enum ReActStatus extends Enum<ReActStatus>
Status of a ReAct execution.
  • Enum Constant Details

    • SUCCESS

      public static final ReActStatus SUCCESS
      Completed successfully with a final answer.
    • MAX_STEPS_REACHED

      public static final ReActStatus MAX_STEPS_REACHED
      Reached maximum steps without a final answer.
    • STOPPED

      public static final ReActStatus STOPPED
      Stopped by a stop condition.
    • TIMEOUT

      public static final ReActStatus TIMEOUT
      Execution timed out.
    • ERROR

      public static final ReActStatus ERROR
      An error occurred during execution.
  • Method Details

    • values

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