pub struct OptimizeConfig {
pub max_iterations: u32,
pub candidates_per_iteration: u32,
pub use_llm_judge: bool,
pub budget: OptimizationBudget,
pub hook_policy: HookPolicy,
pub review_before_apply: bool,
pub quiet: bool,
pub candidate_timeout: Duration,
}Expand description
Configuration for a single optimization run.
Fields§
§max_iterations: u32§candidates_per_iteration: u32§use_llm_judge: bool§budget: OptimizationBudget§hook_policy: HookPolicy§review_before_apply: boolWhen true, the optimizer will print proposed changes and wait for confirmation before applying (Phase 4 review gate).
quiet: boolWhen true, suppress all human progress output (used for –json mode).
candidate_timeout: DurationTrait Implementations§
Source§impl Clone for OptimizeConfig
impl Clone for OptimizeConfig
Source§fn clone(&self) -> OptimizeConfig
fn clone(&self) -> OptimizeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizeConfig
impl Debug for OptimizeConfig
Source§impl<'de> Deserialize<'de> for OptimizeConfig
impl<'de> Deserialize<'de> for OptimizeConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptimizeConfig
impl RefUnwindSafe for OptimizeConfig
impl Send for OptimizeConfig
impl Sync for OptimizeConfig
impl Unpin for OptimizeConfig
impl UnsafeUnpin for OptimizeConfig
impl UnwindSafe for OptimizeConfig
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