pub struct Scorer { /* private fields */ }Expand description
Scorer for message preservation decisions.
Implementations§
Source§impl Scorer
impl Scorer
Sourcepub fn new_rule_only() -> Self
pub fn new_rule_only() -> Self
Create a new scorer without AI assistance.
Sourcepub fn new_with_ai(fast_model: Box<dyn Provider>) -> Self
pub fn new_with_ai(fast_model: Box<dyn Provider>) -> Self
Create a new scorer with AI assistance.
Sourcepub async fn score_all(
&self,
messages: &[Message],
weights: &PhaseWeights,
deps: &DependencyGraph,
ai_mode: AiCompressionMode,
) -> Result<Vec<ScoredMessage>>
pub async fn score_all( &self, messages: &[Message], weights: &PhaseWeights, deps: &DependencyGraph, ai_mode: AiCompressionMode, ) -> Result<Vec<ScoredMessage>>
Score all messages.
Auto Trait Implementations§
impl Freeze for Scorer
impl !RefUnwindSafe for Scorer
impl Send for Scorer
impl Sync for Scorer
impl Unpin for Scorer
impl UnsafeUnpin for Scorer
impl !UnwindSafe for Scorer
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