Enum Class TaskState

java.lang.Object
java.lang.Enum<TaskState>
dev.tachyonmcp.api.server.features.tasks.TaskState
All Implemented Interfaces:
Serializable, Comparable<TaskState>, Constable

public enum TaskState extends Enum<TaskState>
Task lifecycle states — superset of MCP 2025-11-25 + A2A.

Wire mapping (only the MCP-5 states are visible on the wire):

   SUBMITTED      → "working"      (internal pre-state, never exposed)
   REJECTED       → "failed"
   AUTH_REQUIRED  → "failed"       (interrupted, mapped as failure)
   WORKING        → "working"
   INPUT_REQUIRED → "input-required"
   COMPLETED      → "completed"
   FAILED         → "failed"
   CANCELLED      → "cancelled"
   UNKNOWN        → error          (not sent on wire)
 

See SEP-1686 and A2A Task State

  • Enum Constant Details

    • SUBMITTED

      public static final TaskState SUBMITTED
    • REJECTED

      public static final TaskState REJECTED
    • AUTH_REQUIRED

      public static final TaskState AUTH_REQUIRED
      Indicates that authentication is required to proceed. This is an interrupted state.
    • WORKING

      public static final TaskState WORKING
    • INPUT_REQUIRED

      public static final TaskState INPUT_REQUIRED
    • COMPLETED

      public static final TaskState COMPLETED
    • FAILED

      public static final TaskState FAILED
    • CANCELLED

      public static final TaskState CANCELLED
    • UNKNOWN

      public static final TaskState UNKNOWN
  • Method Details

    • values

      public static TaskState[] 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 TaskState 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
    • canTransitionTo

      public boolean canTransitionTo(TaskState target)
    • isTerminal

      public boolean isTerminal()
    • isActive

      public boolean isActive()