pub struct RecallTiming {
pub last_recall_topic: Option<String>,
pub message_count_since_recall: usize,
}Expand description
Tracks when proactive recall should be triggered.
Fields§
§last_recall_topic: Option<String>Last topic that triggered a recall.
message_count_since_recall: usizeMessages since last recall.
Implementations§
Source§impl RecallTiming
impl RecallTiming
Sourcepub fn new() -> RecallTiming
pub fn new() -> RecallTiming
Create a new timing tracker.
Sourcepub fn should_recall(&mut self, query: &str) -> bool
pub fn should_recall(&mut self, query: &str) -> bool
Check if proactive recall should fire for the given query.
Triggers on:
- Session first message (count == 0)
- Topic change (after at least 3 messages)
- Periodic (every 10 messages)
Trait Implementations§
Source§impl Clone for RecallTiming
impl Clone for RecallTiming
Source§fn clone(&self) -> RecallTiming
fn clone(&self) -> RecallTiming
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 RecallTiming
impl Debug for RecallTiming
Source§impl Default for RecallTiming
impl Default for RecallTiming
Source§fn default() -> RecallTiming
fn default() -> RecallTiming
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecallTiming
impl RefUnwindSafe for RecallTiming
impl Send for RecallTiming
impl Sync for RecallTiming
impl Unpin for RecallTiming
impl UnsafeUnpin for RecallTiming
impl UnwindSafe for RecallTiming
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