pub struct ComplexityScorer { /* private fields */ }Expand description
Complexity scorer for task difficulty assessment
Implementations§
Source§impl ComplexityScorer
impl ComplexityScorer
Sourcepub fn new(provider: Arc<dyn Provider>, model_id: impl Into<String>) -> Self
pub fn new(provider: Arc<dyn Provider>, model_id: impl Into<String>) -> Self
Create a new complexity scorer
Sourcepub async fn score(&self, task_description: &str) -> Option<ComplexityResult>
pub async fn score(&self, task_description: &str) -> Option<ComplexityResult>
Score the complexity of a task description
Returns a score from 0.0 (trivial) to 1.0 (very complex). Returns None if scoring fails, allowing fallback to default.
Sourcepub fn score_heuristic(&self, task_description: &str) -> ComplexityResult
pub fn score_heuristic(&self, task_description: &str) -> ComplexityResult
Score complexity synchronously (for use in sync contexts) Uses heuristics instead of LLM for speed.
Auto Trait Implementations§
impl Freeze for ComplexityScorer
impl !RefUnwindSafe for ComplexityScorer
impl Send for ComplexityScorer
impl Sync for ComplexityScorer
impl Unpin for ComplexityScorer
impl UnsafeUnpin for ComplexityScorer
impl !UnwindSafe for ComplexityScorer
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