pub struct Config {Show 13 fields
pub max_iterations: u32,
pub target_score: f64,
pub plateau_window: Option<usize>,
pub chain_of_thought: bool,
pub review_every: Option<u32>,
pub learn_threshold: Option<f64>,
pub token_budget: Option<u32>,
pub timeout: Option<Duration>,
pub adaptive: bool,
pub min_iterations: u32,
pub extend_on_progress: Option<u32>,
pub early_exit_stagnation: Option<u32>,
pub extract_lang: Option<String>,
}Expand description
Configuration for the refinement loop.
Fields§
§max_iterations: u32Maximum number of iterations.
target_score: f64Target score threshold (1.0 = perfect).
plateau_window: Option<usize>Stop if score doesn’t improve for this many iterations.
chain_of_thought: boolEnable chain of thought reasoning.
review_every: Option<u32>Review every N iterations (human-in-the-loop).
learn_threshold: Option<f64>Score threshold for learning (storing successful outputs).
token_budget: Option<u32>Maximum tokens to consume (stops when exceeded).
timeout: Option<Duration>Maximum wall-clock time (stops when exceeded).
adaptive: boolEnable adaptive iteration control.
min_iterations: u32Minimum iterations before early exit (for adaptive mode).
extend_on_progress: Option<u32>Extend by this many iterations if still improving (for adaptive mode).
early_exit_stagnation: Option<u32>Exit early if no improvement for this many iterations (for adaptive mode).
extract_lang: Option<String>Extract code blocks in this language before validation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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<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