pub struct CompactConfig {
pub enabled_in_daemon: bool,
pub max_days_per_run: u32,
pub max_extractive_spans: u32,
pub max_abstractive_words: u32,
pub chunk_tokens: u32,
pub history_retain: u32,
pub daemon_cron: String,
pub extractive_backend: Option<BackendConfig>,
pub abstractive_backend: Option<BackendConfig>,
}Fields§
§enabled_in_daemon: bool§max_days_per_run: u32§max_extractive_spans: u32§max_abstractive_words: u32§chunk_tokens: u32§history_retain: u32§daemon_cron: String§extractive_backend: Option<BackendConfig>Per-stage backend override for extractive summarization.
None = inherit the smart slot (config.llm).
abstractive_backend: Option<BackendConfig>Per-stage backend override for abstractive summarization.
None = inherit the smart slot (config.llm).
Implementations§
Source§impl CompactConfig
impl CompactConfig
Sourcepub fn effective_extractive_backend(&self, llm: &LlmConfig) -> BackendConfig
pub fn effective_extractive_backend(&self, llm: &LlmConfig) -> BackendConfig
Effective backend for the extractive stage. Override wins; otherwise inherit the smart slot. CompactConfig has no per-stage timeout field, so inheritance bakes the same conservative 120s the fabricated Ollama config used.
Sourcepub fn effective_abstractive_backend(&self, llm: &LlmConfig) -> BackendConfig
pub fn effective_abstractive_backend(&self, llm: &LlmConfig) -> BackendConfig
Effective backend for the abstractive stage. See
effective_extractive_backend for the timeout rationale.
Trait Implementations§
Source§impl Clone for CompactConfig
impl Clone for CompactConfig
Source§fn clone(&self) -> CompactConfig
fn clone(&self) -> CompactConfig
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 CompactConfig
impl Debug for CompactConfig
Source§impl Default for CompactConfig
impl Default for CompactConfig
Source§impl<'de> Deserialize<'de> for CompactConfig
impl<'de> Deserialize<'de> for CompactConfig
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 CompactConfig
impl RefUnwindSafe for CompactConfig
impl Send for CompactConfig
impl Sync for CompactConfig
impl Unpin for CompactConfig
impl UnsafeUnpin for CompactConfig
impl UnwindSafe for CompactConfig
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