pub struct ComplexityDetector { /* private fields */ }Expand description
Detects task complexity and determines if Think More should be auto-enabled
Implementations§
Source§impl ComplexityDetector
impl ComplexityDetector
Sourcepub fn new(threshold: ComplexityLevel) -> Self
pub fn new(threshold: ComplexityLevel) -> Self
Create a new complexity detector with a specific threshold
Sourcepub fn default_threshold() -> Self
pub fn default_threshold() -> Self
Create a detector with default threshold (Complex)
Sourcepub fn detect_complexity(&self, task_description: &str) -> ComplexityLevel
pub fn detect_complexity(&self, task_description: &str) -> ComplexityLevel
Detect complexity from task description
Sourcepub fn calculate_complexity_score(&self, task_description: &str) -> f32
pub fn calculate_complexity_score(&self, task_description: &str) -> f32
Calculate a complexity score based on various factors
Sourcepub fn should_auto_enable(&self, complexity: ComplexityLevel) -> bool
pub fn should_auto_enable(&self, complexity: ComplexityLevel) -> bool
Check if Think More should be auto-enabled for a given complexity
Sourcepub fn set_threshold(&mut self, threshold: ComplexityLevel)
pub fn set_threshold(&mut self, threshold: ComplexityLevel)
Set the complexity threshold
Sourcepub fn get_threshold(&self) -> ComplexityLevel
pub fn get_threshold(&self) -> ComplexityLevel
Get the current threshold
Sourcepub fn analyze_task(&self, task_description: &str) -> ComplexityAnalysis
pub fn analyze_task(&self, task_description: &str) -> ComplexityAnalysis
Analyze task and return detailed complexity analysis
Trait Implementations§
Source§impl Clone for ComplexityDetector
impl Clone for ComplexityDetector
Source§fn clone(&self) -> ComplexityDetector
fn clone(&self) -> ComplexityDetector
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 ComplexityDetector
impl Debug for ComplexityDetector
Auto Trait Implementations§
impl Freeze for ComplexityDetector
impl RefUnwindSafe for ComplexityDetector
impl Send for ComplexityDetector
impl Sync for ComplexityDetector
impl Unpin for ComplexityDetector
impl UnwindSafe for ComplexityDetector
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