Enum Class SessionOutcome

java.lang.Object
java.lang.Enum<SessionOutcome>
com.tnsai.session.SessionOutcome
All Implemented Interfaces:
Serializable, Comparable<SessionOutcome>, Constable

public enum SessionOutcome extends Enum<SessionOutcome>
Outcome of an agent session.
Author:
TnsAI Team
  • Enum Constant Details

    • SUCCESS

      public static final SessionOutcome SUCCESS
      Session completed successfully.
    • FAILED

      public static final SessionOutcome FAILED
      Session failed with an error.
    • CANCELLED

      public static final SessionOutcome CANCELLED
      Session was cancelled by the user.
    • TIMEOUT

      public static final SessionOutcome TIMEOUT
      Session timed out.
    • MAX_ITERATIONS

      public static final SessionOutcome MAX_ITERATIONS
      Session exceeded maximum iterations.
    • IN_PROGRESS

      public static final SessionOutcome IN_PROGRESS
      Session is still in progress.
    • UNKNOWN

      public static final SessionOutcome UNKNOWN
      Session outcome is unknown.
  • Method Details

    • values

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