pub enum PlanningEvent {
PhaseStarted,
PhaseCompleted,
PromptPrepared {
iteration: u32,
},
AgentInvoked {
iteration: u32,
},
PlanXmlExtracted {
iteration: u32,
},
PlanXmlMissing {
iteration: u32,
attempt: u32,
},
PlanXmlValidated {
iteration: u32,
valid: bool,
markdown: Option<String>,
},
PlanMarkdownWritten {
iteration: u32,
},
PlanXmlArchived {
iteration: u32,
},
PlanXmlCleaned {
iteration: u32,
},
GenerationCompleted {
iteration: u32,
valid: bool,
},
OutputValidationFailed {
iteration: u32,
attempt: u32,
},
}Expand description
Planning phase events.
Events related to plan generation and validation within the Planning phase. The planning phase generates a plan for the current development iteration.
§State Transitions
PhaseStarted: Sets phase to PlanningGenerationCompleted(valid=true): Transitions to DevelopmentGenerationCompleted(valid=false): Stays in Planning for retryPhaseCompleted: Transitions to Development
Variants§
PhaseStarted
Planning phase has started.
PhaseCompleted
Planning phase completed, ready to proceed.
PromptPrepared
Planning prompt prepared for an iteration.
AgentInvoked
Planning agent invoked for an iteration.
PlanXmlExtracted
Planning XML extracted for an iteration.
PlanXmlMissing
Planning XML missing for an iteration.
Fields
PlanXmlValidated
Planning XML validated for an iteration.
Fields
PlanMarkdownWritten
Planning markdown written for an iteration.
PlanXmlArchived
Planning XML archived for an iteration.
PlanXmlCleaned
Planning XML cleaned before invoking the planning agent.
GenerationCompleted
Plan generation completed with validation result.
Fields
OutputValidationFailed
Output validation failed (missing/empty or otherwise invalid plan output).
Emitted when planning output cannot be validated. The reducer decides whether to retry (same agent) or switch agents based on the attempt count.
Trait Implementations§
Source§impl Clone for PlanningEvent
impl Clone for PlanningEvent
Source§fn clone(&self) -> PlanningEvent
fn clone(&self) -> PlanningEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlanningEvent
impl Debug for PlanningEvent
Source§impl<'de> Deserialize<'de> for PlanningEvent
impl<'de> Deserialize<'de> for PlanningEvent
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>,
Auto Trait Implementations§
impl Freeze for PlanningEvent
impl RefUnwindSafe for PlanningEvent
impl Send for PlanningEvent
impl Sync for PlanningEvent
impl Unpin for PlanningEvent
impl UnwindSafe for PlanningEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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