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§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<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 Interruption
impl PartialEq for Interruption
Source§impl Serialize for Interruption
impl Serialize for Interruption
impl StructuralPartialEq for Interruption
Auto Trait Implementations§
impl Forget for Interruption
impl Freeze for Interruption
impl Move for Interruption
impl RefUnwindSafe for Interruption
impl Send for Interruption
impl Sync for Interruption
impl Unpin for Interruption
impl UnsafeUnpin for Interruption
impl UnwindSafe for Interruption
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