pub struct OptimizerConfig {
pub max_iterations: u32,
pub target_threshold: f64,
pub output_path: PathBuf,
}Expand description
Configuration for the prompt optimization loop.
Fields§
§max_iterations: u32Maximum number of optimization iterations (default: 5).
target_threshold: f64Target evaluation score threshold (default: 0.9). Optimization stops early if this score is reached.
output_path: PathBufPath to write the best-performing instructions.
Trait Implementations§
Source§impl Clone for OptimizerConfig
impl Clone for OptimizerConfig
Source§impl Debug for OptimizerConfig
impl Debug for OptimizerConfig
Auto Trait Implementations§
impl Forget for OptimizerConfig
impl Freeze for OptimizerConfig
impl Move for OptimizerConfig
impl RefUnwindSafe for OptimizerConfig
impl Send for OptimizerConfigwhere
RawVecInner: Send,
impl Sync for OptimizerConfigwhere
RawVecInner: Sync,
impl Unpin for OptimizerConfig
impl UnsafeUnpin for OptimizerConfig
impl UnwindSafe for OptimizerConfigwhere
RawVecInner: UnwindSafe,
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