pub struct CompactConfig {
pub enabled_in_daemon: bool,
pub max_days_per_run: u32,
pub extractive_model: String,
pub abstractive_model: String,
pub ollama_endpoint: String,
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§extractive_model: String§abstractive_model: String§ollama_endpoint: String§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 = synthesize from legacy extractive_model + ollama_endpoint.
abstractive_backend: Option<BackendConfig>Per-stage backend override for abstractive summarization.
None = synthesize from legacy abstractive_model + ollama_endpoint.
Implementations§
Source§impl CompactConfig
impl CompactConfig
Sourcepub fn synthesize_extractive_backend(&self) -> BackendConfig
pub fn synthesize_extractive_backend(&self) -> BackendConfig
Returns the effective backend for the extractive stage.
Per-stage extractive_backend override wins; otherwise synthesize
from legacy fields into an Ollama BackendConfig.
CompactConfig has no per-stage timeout field, so synthesis bakes
the conservative 120s default — matching the previously-hardcoded
Duration::from_secs(120) at the call sites (byte-identical to
the pre-trait OllamaClient construction).
Sourcepub fn synthesize_abstractive_backend(&self) -> BackendConfig
pub fn synthesize_abstractive_backend(&self) -> BackendConfig
Returns the effective backend for the abstractive stage.
See synthesize_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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more