pub struct ThinkingClockConfig {
pub enabled: bool,
pub interval_secs: u64,
pub ambient_model: Option<String>,
pub escalation_model: Option<String>,
pub ambient_prompt: String,
pub ambient_max_tokens: u32,
pub escalation_triggers: Vec<String>,
pub verbose_logging: bool,
}Expand description
Configuration for the Thinking Clock.
Fields§
§enabled: boolWhether the thinking clock is enabled.
interval_secs: u64Interval in seconds between ticks (default: 300 = 5 minutes).
ambient_model: Option<String>Model ID for the cheap/ambient check (e.g., “ollama/llama3.2:3b”). If not set, uses the cheapest available model from the registry.
escalation_model: Option<String>Model ID for escalation (primary model). If not set, uses the active model.
ambient_prompt: StringSystem prompt for the ambient check.
ambient_max_tokens: u32Maximum tokens for the ambient check (keep low to stay cheap).
escalation_triggers: Vec<String>Keywords/phrases that trigger escalation from the ambient model’s response (e.g., [“ESCALATE”, “ACTION_NEEDED”]).
verbose_logging: boolWhether to log ambient check results (even when no action taken).
Trait Implementations§
Source§impl Clone for ThinkingClockConfig
impl Clone for ThinkingClockConfig
Source§fn clone(&self) -> ThinkingClockConfig
fn clone(&self) -> ThinkingClockConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ThinkingClockConfig
impl Debug for ThinkingClockConfig
Source§impl Default for ThinkingClockConfig
impl Default for ThinkingClockConfig
Source§impl<'de> Deserialize<'de> for ThinkingClockConfig
impl<'de> Deserialize<'de> for ThinkingClockConfig
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 ThinkingClockConfig
impl RefUnwindSafe for ThinkingClockConfig
impl Send for ThinkingClockConfig
impl Sync for ThinkingClockConfig
impl Unpin for ThinkingClockConfig
impl UnsafeUnpin for ThinkingClockConfig
impl UnwindSafe for ThinkingClockConfig
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