pub struct AutoFixEngine { /* private fields */ }Expand description
Auto-fix engine that uses AI models to analyze and repair failed steps.
Implementations§
Source§impl AutoFixEngine
impl AutoFixEngine
pub fn new(router: Arc<ModelRouter>) -> Self
Sourcepub async fn analyze_and_fix(
&self,
step_name: &str,
action: &str,
error_output: &str,
max_attempts: u32,
) -> Result<FixResult>
pub async fn analyze_and_fix( &self, step_name: &str, action: &str, error_output: &str, max_attempts: u32, ) -> Result<FixResult>
Attempt to auto-fix a failed step.
- Send error to Thinking model for analysis
- Send analysis to Coding model for fix generation
- Return the fix command for re-execution
Auto Trait Implementations§
impl Freeze for AutoFixEngine
impl !RefUnwindSafe for AutoFixEngine
impl Send for AutoFixEngine
impl Sync for AutoFixEngine
impl Unpin for AutoFixEngine
impl UnsafeUnpin for AutoFixEngine
impl !UnwindSafe for AutoFixEngine
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