pub struct ResumeContext {
pub phase: PipelinePhase,
pub iteration: u32,
pub total_iterations: u32,
pub reviewer_pass: u32,
pub total_reviewer_passes: u32,
pub resume_count: u32,
pub rebase_state: RebaseState,
pub run_id: String,
pub prompt_history: Option<HashMap<String, String>>,
pub execution_history: Option<ExecutionHistory>,
}Expand description
Rich context about a resumed session for use in agent prompts.
This struct contains information that helps AI agents understand where they are in the pipeline when resuming from a checkpoint, enabling them to provide more contextual and appropriate responses.
Fields§
§phase: PipelinePhaseThe phase being resumed from
iteration: u32Current iteration number (for development)
total_iterations: u32Total iterations
reviewer_pass: u32Current reviewer pass
total_reviewer_passes: u32Total reviewer passes
resume_count: u32Number of times this session has been resumed
rebase_state: RebaseStateRebase state if applicable
run_id: StringRun ID for tracing
prompt_history: Option<HashMap<String, String>>Captured prompts from the original run for deterministic replay
execution_history: Option<ExecutionHistory>Execution history from the checkpoint (if available)
Implementations§
Source§impl ResumeContext
impl ResumeContext
Sourcepub fn phase_name(&self) -> String
pub fn phase_name(&self) -> String
Display name for the current phase.
Trait Implementations§
Source§impl Clone for ResumeContext
impl Clone for ResumeContext
Source§fn clone(&self) -> ResumeContext
fn clone(&self) -> ResumeContext
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 ResumeContext
impl Debug for ResumeContext
Source§impl PartialEq for ResumeContext
impl PartialEq for ResumeContext
impl Eq for ResumeContext
impl StructuralPartialEq for ResumeContext
Auto Trait Implementations§
impl Freeze for ResumeContext
impl RefUnwindSafe for ResumeContext
impl Send for ResumeContext
impl Sync for ResumeContext
impl Unpin for ResumeContext
impl UnwindSafe for ResumeContext
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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