pub struct ReminderConfig {
pub enabled: bool,
pub todo_reminder_after_turns: usize,
pub repeated_action_threshold: usize,
pub tool_reminders: HashMap<String, Vec<ToolReminder>>,
}Expand description
Configuration for the reminder system.
Fields§
§enabled: boolEnable or disable the reminder system entirely.
todo_reminder_after_turns: usizeMinimum turns before showing the TodoWrite reminder.
repeated_action_threshold: usizeNumber of repeated actions before showing a warning.
tool_reminders: HashMap<String, Vec<ToolReminder>>Custom tool-specific reminders.
Implementations§
Source§impl ReminderConfig
impl ReminderConfig
Sourcepub const fn with_todo_reminder_turns(self, turns: usize) -> Self
pub const fn with_todo_reminder_turns(self, turns: usize) -> Self
Sets the number of turns before showing TodoWrite reminder.
Sourcepub const fn with_repeated_action_threshold(self, threshold: usize) -> Self
pub const fn with_repeated_action_threshold(self, threshold: usize) -> Self
Sets the threshold for repeated action warnings.
Sourcepub fn with_tool_reminder(
self,
tool_name: impl Into<String>,
reminder: ToolReminder,
) -> Self
pub fn with_tool_reminder( self, tool_name: impl Into<String>, reminder: ToolReminder, ) -> Self
Adds a custom reminder for a specific tool.
Trait Implementations§
Source§impl Clone for ReminderConfig
impl Clone for ReminderConfig
Source§fn clone(&self) -> ReminderConfig
fn clone(&self) -> ReminderConfig
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 ReminderConfig
impl Debug for ReminderConfig
Auto Trait Implementations§
impl Freeze for ReminderConfig
impl RefUnwindSafe for ReminderConfig
impl Send for ReminderConfig
impl Sync for ReminderConfig
impl Unpin for ReminderConfig
impl UnwindSafe for ReminderConfig
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