pub struct ContinuationState {
pub previous_status: Option<DevelopmentStatus>,
pub previous_summary: Option<String>,
pub previous_files_changed: Option<Vec<String>>,
pub previous_next_steps: Option<String>,
pub continuation_attempt: u32,
}Expand description
Continuation state for development iterations.
Tracks context from previous attempts within the same iteration to enable continuation-aware prompting when status is “partial” or “failed”.
§When Fields Are Populated
previous_status: Set when DevelopmentIterationContinuationTriggered event firesprevious_summary: Set when DevelopmentIterationContinuationTriggered event firesprevious_files_changed: Set when DevelopmentIterationContinuationTriggered event firesprevious_next_steps: Set when DevelopmentIterationContinuationTriggered event firescontinuation_attempt: Incremented on each continuation within same iteration
§Reset Triggers
The continuation state is reset (cleared) when:
- A new iteration starts (DevelopmentIterationStarted event)
- Status becomes “completed” (ContinuationSucceeded event)
- Phase transitions away from Development
Fields§
§previous_status: Option<DevelopmentStatus>Status from the previous attempt (“partial” or “failed”).
previous_summary: Option<String>Summary of what was accomplished in the previous attempt.
previous_files_changed: Option<Vec<String>>Files changed in the previous attempt.
previous_next_steps: Option<String>Agent’s recommended next steps from the previous attempt.
continuation_attempt: u32Current continuation attempt number (0 = first attempt, 1+ = continuation).
Implementations§
Source§impl ContinuationState
impl ContinuationState
Sourcepub fn is_continuation(&self) -> bool
pub fn is_continuation(&self) -> bool
Check if this is a continuation attempt (not the first attempt).
Sourcepub fn trigger_continuation(
&self,
status: DevelopmentStatus,
summary: String,
files_changed: Option<Vec<String>>,
next_steps: Option<String>,
) -> Self
pub fn trigger_continuation( &self, status: DevelopmentStatus, summary: String, files_changed: Option<Vec<String>>, next_steps: Option<String>, ) -> Self
Trigger a continuation with context from the previous attempt.
Trait Implementations§
Source§impl Clone for ContinuationState
impl Clone for ContinuationState
Source§fn clone(&self) -> ContinuationState
fn clone(&self) -> ContinuationState
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 ContinuationState
impl Debug for ContinuationState
Source§impl Default for ContinuationState
impl Default for ContinuationState
Source§fn default() -> ContinuationState
fn default() -> ContinuationState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContinuationState
impl<'de> Deserialize<'de> for ContinuationState
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 ContinuationState
impl PartialEq for ContinuationState
Source§impl Serialize for ContinuationState
impl Serialize for ContinuationState
impl Eq for ContinuationState
impl StructuralPartialEq for ContinuationState
Auto Trait Implementations§
impl Freeze for ContinuationState
impl RefUnwindSafe for ContinuationState
impl Send for ContinuationState
impl Sync for ContinuationState
impl Unpin for ContinuationState
impl UnwindSafe for ContinuationState
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