pub struct PhaseContext<'a> {
pub config: &'a Config,
pub registry: &'a AgentRegistry,
pub logger: &'a Logger,
pub colors: &'a Colors,
pub timer: &'a mut Timer,
pub stats: &'a mut Stats,
pub developer_agent: &'a str,
pub reviewer_agent: &'a str,
pub review_guidelines: Option<&'a ReviewGuidelines>,
pub template_context: &'a TemplateContext,
}Expand description
Shared context for all pipeline phases.
This struct holds references to all the shared state that phases need to access. It is passed by mutable reference to each phase function.
Fields§
§config: &'a ConfigConfiguration settings for the pipeline.
registry: &'a AgentRegistryAgent registry for looking up agent configurations.
logger: &'a LoggerLogger for output and diagnostics.
colors: &'a ColorsTerminal color configuration.
timer: &'a mut TimerTimer for tracking elapsed time.
stats: &'a mut StatsStatistics for tracking pipeline progress.
developer_agent: &'a strName of the developer agent.
reviewer_agent: &'a strName of the reviewer agent.
review_guidelines: Option<&'a ReviewGuidelines>Review guidelines based on detected project stack.
template_context: &'a TemplateContextTemplate context for loading user templates.
Auto Trait Implementations§
impl<'a> Freeze for PhaseContext<'a>
impl<'a> !RefUnwindSafe for PhaseContext<'a>
impl<'a> Send for PhaseContext<'a>
impl<'a> Sync for PhaseContext<'a>
impl<'a> Unpin for PhaseContext<'a>
impl<'a> !UnwindSafe for PhaseContext<'a>
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