pub struct ThinkingClock { /* private fields */ }Expand description
State for the thinking clock tick loop.
Implementations§
Source§impl ThinkingClock
impl ThinkingClock
Sourcepub fn new(config: ThinkingClockConfig) -> Self
pub fn new(config: ThinkingClockConfig) -> Self
Create a new thinking clock.
Sourcepub fn ambient_model(&self) -> Option<&str>
pub fn ambient_model(&self) -> Option<&str>
Get the ambient model ID.
Sourcepub fn escalation_model(&self) -> Option<&str>
pub fn escalation_model(&self) -> Option<&str>
Get the escalation model ID.
Sourcepub fn ambient_prompt(&self) -> &str
pub fn ambient_prompt(&self) -> &str
Get the ambient prompt.
Sourcepub fn ambient_max_tokens(&self) -> u32
pub fn ambient_max_tokens(&self) -> u32
Get max tokens for ambient check.
Sourcepub fn process_response(
&self,
response: &str,
duration_ms: u64,
) -> AmbientCheckResult
pub fn process_response( &self, response: &str, duration_ms: u64, ) -> AmbientCheckResult
Process an ambient model response.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if the thinking clock is enabled.
Sourcepub fn tick_count(&self) -> u64
pub fn tick_count(&self) -> u64
Get the current tick count.
Auto Trait Implementations§
impl Freeze for ThinkingClock
impl RefUnwindSafe for ThinkingClock
impl Send for ThinkingClock
impl Sync for ThinkingClock
impl Unpin for ThinkingClock
impl UnsafeUnpin for ThinkingClock
impl UnwindSafe for ThinkingClock
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