pub struct ComplexityResult {
pub score: f32,
pub confidence: f32,
pub used_local_llm: bool,
}Expand description
Result of complexity scoring
Fields§
§score: f32Complexity score (0.0 = trivial, 1.0 = very complex)
confidence: f32Confidence in the score (0.0 - 1.0)
used_local_llm: boolWhether LLM was used (vs default)
Implementations§
Source§impl ComplexityResult
impl ComplexityResult
Sourcepub fn default_complexity() -> Self
pub fn default_complexity() -> Self
Create a default complexity result (fallback)
Sourcepub fn from_local(score: f32, confidence: f32) -> Self
pub fn from_local(score: f32, confidence: f32) -> Self
Create a result from LLM scoring
Trait Implementations§
Source§impl Clone for ComplexityResult
impl Clone for ComplexityResult
Source§fn clone(&self) -> ComplexityResult
fn clone(&self) -> ComplexityResult
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 moreAuto Trait Implementations§
impl Freeze for ComplexityResult
impl RefUnwindSafe for ComplexityResult
impl Send for ComplexityResult
impl Sync for ComplexityResult
impl Unpin for ComplexityResult
impl UnsafeUnpin for ComplexityResult
impl UnwindSafe for ComplexityResult
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