pub enum SubagentState {
Pending {
registered_at_ms: u64,
},
Active {
started_at_ms: u64,
},
Completed {
finished_at_ms: u64,
response: String,
},
Failed {
finished_at_ms: u64,
error: String,
},
Cancelled {
finished_at_ms: u64,
},
}Expand description
One subagent’s lifecycle state.
Order matters — is_terminal() returns true for the last three
variants.
Variants§
Pending
Spawn registered, background task not yet running the agent.
Active
Agent is currently executing.
Completed
Agent finished successfully.
Fields
Failed
Agent run failed.
Fields
Cancelled
Agent run was cancelled.
Implementations§
Source§impl SubagentState
impl SubagentState
Trait Implementations§
Source§impl Clone for SubagentState
impl Clone for SubagentState
Source§fn clone(&self) -> SubagentState
fn clone(&self) -> SubagentState
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 moreAuto Trait Implementations§
impl Freeze for SubagentState
impl RefUnwindSafe for SubagentState
impl Send for SubagentState
impl Sync for SubagentState
impl Unpin for SubagentState
impl UnsafeUnpin for SubagentState
impl UnwindSafe for SubagentState
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