#[non_exhaustive]pub enum SubagentStatus {
Aborted,
Running,
Finished {
result: Option<Value>,
},
Suspended {
result: Option<Value>,
interrupt_ids: Vec<String>,
},
Failed {
message: String,
code: Option<String>,
},
}Expand description
Where a subagent invocation stands.
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.
Aborted
The enclosing run stopped without confirming this invocation’s outcome.
Running
Announced and not yet closed.
Finished
Closed with a success outcome — or with none, the legacy reading.
Suspended
Closed because the run paused on interrupts the subagent raised. The
same id may be announced again by the run that resumes it, and that
arrives as SubagentChangeKind::Resumed rather than as a second
subagent.
Fields
Failed
Closed by SUBAGENT_ERROR.
Trait Implementations§
Source§impl Clone for SubagentStatus
impl Clone for SubagentStatus
Source§impl Debug for SubagentStatus
impl Debug for SubagentStatus
Source§impl<'de> Deserialize<'de> for SubagentStatus
impl<'de> Deserialize<'de> for SubagentStatus
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 SubagentStatus
impl PartialEq for SubagentStatus
Source§impl Serialize for SubagentStatus
impl Serialize for SubagentStatus
impl StructuralPartialEq for SubagentStatus
Auto Trait Implementations§
impl Freeze for SubagentStatus
impl RefUnwindSafe for SubagentStatus
impl Send for SubagentStatus
impl Sync for SubagentStatus
impl Unpin for SubagentStatus
impl UnsafeUnpin for SubagentStatus
impl UnwindSafe for SubagentStatus
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