pub struct HarvestCfg {
pub auto_gate: bool,
pub llm: String,
pub min_events: usize,
pub min_user_turns: usize,
pub min_duration_secs: i64,
pub idle_minutes: i64,
pub max_llm_calls_per_day: u32,
pub max_extract_input_tokens: usize,
pub session_start_hint: bool,
pub similarity_merge_threshold: f32,
}Expand description
Harvest gate + token-budget defenses (spec §3.2, §3.7).
Fields§
§auto_gate: boolRun the heuristic gate automatically (from mur session gc / mur out).
llm: String“local-first” | “cloud” | “off” — W1/W2 only persist this; LLM wiring lands with v2 P5a.
min_events: usizeGate thresholds — a session must clear at least one of these (see harvest::gate).
min_user_turns: usize§min_duration_secs: i64§idle_minutes: i64A session is considered ended when its last event is older than this.
max_llm_calls_per_day: u32§3.7 hard caps (persisted now; enforced when the LLM extract path lands in v2 P5a).
max_extract_input_tokens: usize§session_start_hint: bool§3.8 tier-1: one-line pending-proposals hint at SessionStart.
similarity_merge_threshold: f32Step-skeleton Jaccard similarity at/above which a proposal becomes a merge suggestion.
Trait Implementations§
Source§impl Clone for HarvestCfg
impl Clone for HarvestCfg
Source§fn clone(&self) -> HarvestCfg
fn clone(&self) -> HarvestCfg
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 HarvestCfg
impl Debug for HarvestCfg
Source§impl Default for HarvestCfg
impl Default for HarvestCfg
Source§impl<'de> Deserialize<'de> for HarvestCfg
impl<'de> Deserialize<'de> for HarvestCfg
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 HarvestCfg
impl RefUnwindSafe for HarvestCfg
impl Send for HarvestCfg
impl Sync for HarvestCfg
impl Unpin for HarvestCfg
impl UnsafeUnpin for HarvestCfg
impl UnwindSafe for HarvestCfg
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