pub struct CycleConfig {
pub enabled: bool,
pub threshold_tokens: usize,
pub briefing_max_tokens: usize,
pub per_model: HashMap<String, ModelCycleConfig>,
}Expand description
Top-level cycle configuration.
Fields§
§enabled: boolWhether checkpoint-restart cycles are enabled. Defaults to true.
threshold_tokens: usizeDefault token threshold; per-model overrides take precedence when present.
briefing_max_tokens: usizeDefault briefing cap; per-model overrides take precedence when present.
per_model: HashMap<String, ModelCycleConfig>Per-model overrides keyed by model identifier (e.g. deepseek-v4-pro).
Implementations§
Source§impl CycleConfig
impl CycleConfig
Sourcepub fn threshold_for(&self, model: &str) -> usize
pub fn threshold_for(&self, model: &str) -> usize
Resolve the threshold for a given model (per-model override > default).
Sourcepub fn briefing_max_for(&self, model: &str) -> usize
pub fn briefing_max_for(&self, model: &str) -> usize
Resolve the briefing-token cap for a given model.
Trait Implementations§
Source§impl Clone for CycleConfig
impl Clone for CycleConfig
Source§fn clone(&self) -> CycleConfig
fn clone(&self) -> CycleConfig
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 CycleConfig
impl Debug for CycleConfig
Source§impl Default for CycleConfig
impl Default for CycleConfig
Source§impl<'de> Deserialize<'de> for CycleConfig
impl<'de> Deserialize<'de> for CycleConfig
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
impl Eq for CycleConfig
Source§impl PartialEq for CycleConfig
impl PartialEq for CycleConfig
Source§fn eq(&self, other: &CycleConfig) -> bool
fn eq(&self, other: &CycleConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CycleConfig
impl Serialize for CycleConfig
impl StructuralPartialEq for CycleConfig
Auto Trait Implementations§
impl Freeze for CycleConfig
impl RefUnwindSafe for CycleConfig
impl Send for CycleConfig
impl Sync for CycleConfig
impl Unpin for CycleConfig
impl UnsafeUnpin for CycleConfig
impl UnwindSafe for CycleConfig
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