#[non_exhaustive]pub enum ActivationReason {
EntryPoint,
Edge {
from: String,
},
ConditionalEdge {
from: String,
},
Resume,
Retry {
attempt: u32,
},
}Expand description
Why a node was activated in a particular superstep.
Tracks the causal chain of execution. Useful standalone:
- Debugging: trace execution flow through the graph
- HITL: show humans WHY a node will run (“activated by edge from chat”)
- Streaming: emit activation events as they happen
The optional matrix layer also uses activation patterns as training data to learn which routing paths lead to convergence.
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.
EntryPoint
First nodes activated from START edges.
Edge
Activated by a fixed edge from a completed node.
ConditionalEdge
Activated by a conditional edge (router selected this node).
Resume
Resumed after an interrupt (human-in-the-loop).
Retry
Re-executed after a retryable failure.
Trait Implementations§
Source§impl Clone for ActivationReason
impl Clone for ActivationReason
Source§fn clone(&self) -> ActivationReason
fn clone(&self) -> ActivationReason
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 ActivationReason
impl Debug for ActivationReason
Source§impl<'de> Deserialize<'de> for ActivationReason
impl<'de> Deserialize<'de> for ActivationReason
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
Auto Trait Implementations§
impl Freeze for ActivationReason
impl RefUnwindSafe for ActivationReason
impl Send for ActivationReason
impl Sync for ActivationReason
impl Unpin for ActivationReason
impl UnsafeUnpin for ActivationReason
impl UnwindSafe for ActivationReason
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