TaskState

Defines the lifecycle states of a Task.

This enum represents all possible states a task can be in during its lifecycle, from initial submission through various processing states to final completion or termination.

See also

Entries

Link copied to clipboard
@SerialName(value = "submitted")
SUBMITTED

Task has been received and queued for processing.

Link copied to clipboard
@SerialName(value = "working")
WORKING

Task is currently being processed by the agent.

Link copied to clipboard
@SerialName(value = "input-required")
INPUT_REQUIRED

Task is waiting for additional input from the client to continue processing.

Link copied to clipboard
@SerialName(value = "completed")
COMPLETED

Task has been completed successfully.

Link copied to clipboard
@SerialName(value = "canceled")
CANCELED

Task has been canceled by the client or system.

Link copied to clipboard
@SerialName(value = "failed")
FAILED

Task has failed due to an error during processing.

Link copied to clipboard
@SerialName(value = "rejected")
REJECTED

Task has been rejected due to policy, capacity, or other constraints.

Link copied to clipboard
@SerialName(value = "auth-required")
AUTH_REQUIRED

Task requires additional authentication before it can proceed.

Link copied to clipboard
@SerialName(value = "unknown")
UNKNOWN

Task state is unknown or cannot be determined.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): TaskState

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.