pub struct EngineConfig {
pub model: String,
pub max_tokens: u32,
pub max_turns: u32,
pub thinking: bool,
pub cache_static: bool,
pub fallback_models: Vec<String>,
pub tool_failure_budget: u32,
pub context_window: u64,
pub fast_model: Option<String>,
pub compaction_reset: bool,
pub show_context_pct: bool,
pub evict_threshold_tokens: u64,
}Fields§
§model: String§max_tokens: u32§max_turns: u32§thinking: bool§cache_static: bool§fallback_models: Vec<String>Availability-only fallback models (≤3 total — RELIABILITY.md).
tool_failure_budget: u32Consecutive failures of one tool before the turn stops.
context_window: u64Model context window in tokens; compaction triggers at 80% (M2).
fast_model: Option<String>Housekeeping model (compaction summarize); defaults to model.
compaction_reset: boolReset-mode compaction (M4/#9): the continuation gets the preserved prefix + digest only, no verbatim tail — a fresh slate rather than a summarized-then-refilling window. Default false = M2 in-place behavior.
show_context_pct: boolInclude context_used% in the MOIM turn-context block (M4/#9).
Default true = M2 behavior; false to avoid inducing context anxiety.
evict_threshold_tokens: u64Evict a successful tool result larger than this (estimated tokens) to a
masked blob, leaving a head preview + read pointer (T4). 0 disables.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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