Skip to main content

Module interrupt

Module interrupt 

Source
Expand description

Human-in-the-loop interrupts and their persisted state.

A hook or tool raises an Interrupt; the agent stops with StopReason::Interrupt; the caller resumes it with InterruptResponseContent blocks, and the raiser then receives the response. The interrupt state stored under interrupts in an agent snapshot is crate-internal.

Structs§

Interrupt
An interrupt that pauses agent execution for human input (Interrupt).
InterruptError
One or more unanswered interrupts as an error (InterruptError).

Enums§

InterruptSource
Where an interrupt was raised (InterruptSource).