kitt_score 0.1.0

Decision engine at the core of Project KITT — in-memory stateful matching with pluggable scoring backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Choose the winner among scored candidates.

pub mod default;

use crate::scoring::Candidate;

/// Choose the winning candidate index among scored candidates.
pub trait Decide: Send + Sync {
    /// Return the index of the chosen candidate, or None.
    fn decide(&self, candidates: &[Candidate]) -> Option<usize>;
}

pub use default::DefaultDecider;