pub struct ComplexityAnalyzer { /* private fields */ }Expand description
Analyzes conversation complexity
Implementations§
Source§impl ComplexityAnalyzer
impl ComplexityAnalyzer
pub fn new(config: ComplexityConfig) -> Self
Sourcepub fn analyze(messages: &[Message]) -> ComplexityLevel
pub fn analyze(messages: &[Message]) -> ComplexityLevel
Analyze conversation complexity
Sourcepub fn analyze_complexity(&self, messages: &[Message]) -> ComplexityLevel
pub fn analyze_complexity(&self, messages: &[Message]) -> ComplexityLevel
Calculate complexity score
Sourcepub fn complexity_description(level: ComplexityLevel) -> &'static str
pub fn complexity_description(level: ComplexityLevel) -> &'static str
Get complexity description
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComplexityAnalyzer
impl RefUnwindSafe for ComplexityAnalyzer
impl Send for ComplexityAnalyzer
impl Sync for ComplexityAnalyzer
impl Unpin for ComplexityAnalyzer
impl UnsafeUnpin for ComplexityAnalyzer
impl UnwindSafe for ComplexityAnalyzer
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