pub enum InterruptKind {
HumanInTheLoop,
ApprovalRequired,
ToolCallWaiting,
Custom(String),
}Expand description
Kind of interrupt.
Variants§
HumanInTheLoop
Human-in-the-loop: waiting for user input.
ApprovalRequired
Approval required: waiting for external approval.
ToolCallWaiting
Tool call waiting: waiting for a blocking tool to complete.
Custom(String)
Custom interrupt kind.
Trait Implementations§
Source§impl Clone for InterruptKind
impl Clone for InterruptKind
Source§fn clone(&self) -> InterruptKind
fn clone(&self) -> InterruptKind
Returns a duplicate of the value. Read more
1.0.0 · 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 InterruptKind
impl Debug for InterruptKind
Source§impl<'de> Deserialize<'de> for InterruptKind
impl<'de> Deserialize<'de> for InterruptKind
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 InterruptKind
impl PartialEq for InterruptKind
Source§impl Serialize for InterruptKind
impl Serialize for InterruptKind
impl Eq for InterruptKind
impl StructuralPartialEq for InterruptKind
Auto Trait Implementations§
impl Freeze for InterruptKind
impl RefUnwindSafe for InterruptKind
impl Send for InterruptKind
impl Sync for InterruptKind
impl Unpin for InterruptKind
impl UnsafeUnpin for InterruptKind
impl UnwindSafe for InterruptKind
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