#[non_exhaustive]pub enum SubagentStatus {
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.
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§fn clone(&self) -> SubagentStatus
fn clone(&self) -> SubagentStatus
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 SubagentStatus
impl Debug for SubagentStatus
Source§impl PartialEq for SubagentStatus
impl PartialEq for SubagentStatus
Source§fn eq(&self, other: &SubagentStatus) -> bool
fn eq(&self, other: &SubagentStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.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