loopkeel 0.1.0

A resilient CLI orchestrator for agentic work loops
1
2
3
4
5
6
7
use crate::loop_engine::state::{LoopState, LoopStatus};

pub fn reached(state: &LoopState, max_iterations: u64, success: bool) -> bool {
    state.iteration >= max_iterations
        || success
        || matches!(state.status, LoopStatus::Completed | LoopStatus::Stopped)
}