pub struct Interruption {
pub call: ToolCall,
pub reason: String,
pub kind: InterruptKind,
pub digest: Option<String>,
}Expand description
Why the run paused.
Fields§
§call: ToolCallThe call waiting for a decision. It has not run. In a parent paused
for a child (Pending::child) this is the child’s call, at whatever
depth it is waiting, so the approver is shown what would really run.
reason: String§kind: InterruptKindWho the interruption waits for. State saved before kinds existed
reads as InterruptKind::Untrusted.
digest: Option<String>A keyed digest binding an answer to exactly this question: the
run, the call (id, tool, canonical arguments), the hook that asked
and a nonce. Resolution::Approve is honored only for the call it
was given for, and only once; see crate::Agent::resume. None
in state saved before digests existed (an approval of it is judged
again from the first hook).
Trait Implementations§
Source§impl Clone for Interruption
impl Clone for Interruption
Source§fn clone(&self) -> Interruption
fn clone(&self) -> Interruption
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 Interruption
impl Debug for Interruption
Source§impl<'de> Deserialize<'de> for Interruption
impl<'de> Deserialize<'de> for Interruption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Interruption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Interruption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Interruption
impl PartialEq for Interruption
Source§impl Serialize for Interruption
impl Serialize for Interruption
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Interruption
Auto Trait Implementations§
impl Forget for Interruption
impl Freeze for Interruptionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<EffectKey>: Freeze,
PhantomData<String>: Freeze,
*const ApprovalCard is !null: Freeze,
PhantomData<ApprovalCard>: Freeze,
impl Move for Interruption
impl RefUnwindSafe for Interruption
impl Send for Interruption
impl Sync for Interruption
impl Unpin for Interruption
impl UnsafeUnpin for Interruptionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<EffectKey>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ApprovalCard is !null: UnsafeUnpin,
PhantomData<ApprovalCard>: UnsafeUnpin,
impl UnwindSafe for Interruptionwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<ApprovalCard>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more