pub struct InterruptContext {
pub phase: PipelinePhase,
pub iteration: u32,
pub total_iterations: u32,
pub reviewer_pass: u32,
pub total_reviewer_passes: u32,
pub run_context: RunContext,
pub execution_history: ExecutionHistory,
pub prompt_history: HashMap<String, String>,
}Expand description
Context needed to save a checkpoint when interrupted.
This structure holds references to all the state needed to create a checkpoint when the user interrupts the pipeline with Ctrl+C.
Fields§
§phase: PipelinePhaseCurrent pipeline phase
iteration: u32Current iteration number
total_iterations: u32Total iterations configured
reviewer_pass: u32Current reviewer pass number
total_reviewer_passes: u32Total reviewer passes configured
run_context: RunContextRun context for tracking execution lineage
execution_history: ExecutionHistoryExecution history tracking
prompt_history: HashMap<String, String>Prompt history for deterministic resume
Auto Trait Implementations§
impl Freeze for InterruptContext
impl RefUnwindSafe for InterruptContext
impl Send for InterruptContext
impl Sync for InterruptContext
impl Unpin for InterruptContext
impl UnwindSafe for InterruptContext
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> 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