pub enum TaskComplexity {
Simple,
Medium,
Complex,
Critical,
}Expand description
Task complexity levels for cost-aware routing.
Each level implies a minimum ModelPricing::quality_tier when
selecting a model with Router::select_by_complexity.
Variants§
Simple
Simple tasks: formatting, renaming, simple refactors (tier >= 2).
Medium
Medium tasks: bug fixes, small features, code review (tier >= 3).
Complex
Complex tasks: architecture, multi-file refactors, complex algorithms (tier >= 4).
Critical
Critical tasks: security fixes, production issues, complex debugging (tier >= 5).
Implementations§
Source§impl TaskComplexity
impl TaskComplexity
Sourcepub fn min_quality_tier(self) -> u8
pub fn min_quality_tier(self) -> u8
Minimum ModelPricing::quality_tier required for this complexity.
Trait Implementations§
Source§impl Clone for TaskComplexity
impl Clone for TaskComplexity
impl Copy for TaskComplexity
Source§impl Debug for TaskComplexity
impl Debug for TaskComplexity
impl Eq for TaskComplexity
Source§impl Hash for TaskComplexity
impl Hash for TaskComplexity
Source§impl Ord for TaskComplexity
impl Ord for TaskComplexity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TaskComplexity
impl PartialEq for TaskComplexity
Source§impl PartialOrd for TaskComplexity
impl PartialOrd for TaskComplexity
impl StructuralPartialEq for TaskComplexity
Auto Trait Implementations§
impl Freeze for TaskComplexity
impl RefUnwindSafe for TaskComplexity
impl Send for TaskComplexity
impl Sync for TaskComplexity
impl Unpin for TaskComplexity
impl UnsafeUnpin for TaskComplexity
impl UnwindSafe for TaskComplexity
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