#[non_exhaustive]pub enum ToolProgressStatus {
Started,
Running,
Completed,
Failed,
}Expand description
Status transition of one named phase inside a tool dispatch.
Phases form a state machine per (tool_use_id, phase) pair —
Started opens the phase, optional Running updates flow while
the phase is in progress, and exactly one terminal Completed or
Failed closes it. Sinks may flatten or drop intermediate
Running updates; the contract is per-tool-author.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Started
The phase has begun. The first transition emitted for a phase.
Running
The phase is still running. Intermediate progress (percent complete, item count, partial result count) flows here.
Completed
The phase finished successfully. Terminal transition.
Failed
The phase finished with a failure. Terminal transition. The
tool may still return its own error through Tool::execute.
Trait Implementations§
Source§impl Clone for ToolProgressStatus
impl Clone for ToolProgressStatus
Source§fn clone(&self) -> ToolProgressStatus
fn clone(&self) -> ToolProgressStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolProgressStatus
impl Debug for ToolProgressStatus
Source§impl<'de> Deserialize<'de> for ToolProgressStatus
impl<'de> Deserialize<'de> for ToolProgressStatus
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
Source§impl PartialEq for ToolProgressStatus
impl PartialEq for ToolProgressStatus
Source§fn eq(&self, other: &ToolProgressStatus) -> bool
fn eq(&self, other: &ToolProgressStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolProgressStatus
impl Serialize for ToolProgressStatus
impl Eq for ToolProgressStatus
impl StructuralPartialEq for ToolProgressStatus
Auto Trait Implementations§
impl Freeze for ToolProgressStatus
impl RefUnwindSafe for ToolProgressStatus
impl Send for ToolProgressStatus
impl Sync for ToolProgressStatus
impl Unpin for ToolProgressStatus
impl UnsafeUnpin for ToolProgressStatus
impl UnwindSafe for ToolProgressStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.