pub enum TaskState {
Submitted,
Working,
Completed,
Failed,
Cancelled,
InputRequired,
}Expand description
Variants§
Submitted
The task has been received by the agent and is queued for execution.
Working
The task is currently being executed. This is the only “in-flight” state; every other state is terminal or blocking.
Completed
The task finished successfully. The
task’s artifacts list is the output.
Failed
The task failed. The status.message
field, if present, explains why.
Cancelled
The task was cancelled by the client
(a CancelTask request) or by the
agent. The state is terminal; a
cancelled task cannot be resumed.
InputRequired
The task is blocked on user input.
The status.message field, if
present, is the agent’s question.
Trait Implementations§
impl Copy for TaskState
Source§impl<'de> Deserialize<'de> for TaskState
impl<'de> Deserialize<'de> for TaskState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskState
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnsafeUnpin for TaskState
impl UnwindSafe for TaskState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more