#[non_exhaustive]pub enum InterruptionKind {
Custom,
ApprovalPending {
tool_use_id: String,
},
ScheduledPause {
phase: InterruptionPhase,
node: String,
},
}Expand description
Why a dispatch paused. SDK variants carry typed structured data
the resumer needs to thread the decision back; operator-defined
pauses surface as Self::Custom with arbitrary payload.
non_exhaustive so post-1.0 SDK variants ship as MINOR; operator
match sites should always carry a fall-through _ => arm for
future-proofing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Custom
Operator-defined pause. The associated payload on
Error::Interrupted carries whatever the tool, node, or
layer surfaced. Default kind for crate::interrupt.
ApprovalPending
A tool-dispatch approval is pending. The agent runtime’s
ApprovalLayer raises this kind when an Approver returns
ApprovalDecision::AwaitExternal. Resume via
entelix_graph::Command::ApproveTool { tool_use_id, decision }
— the SDK threads the decision to the resumed dispatch.
Fields
ScheduledPause
A graph-scheduled pause point fired
(StateGraph::interrupt_before / interrupt_after). The
phase and node together identify which node the pause
fired around — the resumer reads them to surface
"paused before <node-name>" / "paused after <node-name>"
without inspecting the payload’s free-form structure.
Fields
phase: InterruptionPhaseWhether the pause fired before or after the node ran.
Trait Implementations§
Source§impl Clone for InterruptionKind
impl Clone for InterruptionKind
Source§fn clone(&self) -> InterruptionKind
fn clone(&self) -> InterruptionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InterruptionKind
impl Debug for InterruptionKind
Source§impl<'de> Deserialize<'de> for InterruptionKind
impl<'de> Deserialize<'de> for InterruptionKind
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>,
Source§impl PartialEq for InterruptionKind
impl PartialEq for InterruptionKind
Source§fn eq(&self, other: &InterruptionKind) -> bool
fn eq(&self, other: &InterruptionKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for InterruptionKind
impl Serialize for InterruptionKind
impl Eq for InterruptionKind
impl StructuralPartialEq for InterruptionKind
Auto Trait Implementations§
impl Freeze for InterruptionKind
impl RefUnwindSafe for InterruptionKind
impl Send for InterruptionKind
impl Sync for InterruptionKind
impl Unpin for InterruptionKind
impl UnsafeUnpin for InterruptionKind
impl UnwindSafe for InterruptionKind
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
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
key and return true if they are equal.