TaskStatus enum

The status of an MCP task.

Inheritance
Available extensions

Values

working → const TaskStatus

The task is still running.

const TaskStatus('working')
completed → const TaskStatus

The task finished successfully.

const TaskStatus('completed')
failed → const TaskStatus

The task finished with an error.

const TaskStatus('failed')
cancelled → const TaskStatus

The task was cancelled before completion.

const TaskStatus('cancelled')
inputRequired → const TaskStatus

The task is paused pending additional input.

const TaskStatus('input_required')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The wire value sent over JSON-RPC.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

to(String str) TaskStatus
Looks up the TaskStatus whose wire value equals str.

Constants

values → const List<TaskStatus>
A constant List of the values in this enum, in order of their declaration.