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
14
//! Convenience dispatch enum for channel adapters that receive a single wire event and route it to one of the three specific event types.

use crate::event::{action_ingest::ActionIngest, state_update::StateUpdate, trigger::Trigger};

/// Convenience enum for channel adapters that deserialize a single wire event
/// and dispatch.
pub enum Event<'a, T> {
    /// A state-update event that overwrites the prior state for its kind.
    Update(StateUpdate<'a>),
    /// An action-registration event.
    Register(ActionIngest<'a, T>),
    /// A trigger event that initiates scoring.
    Trigger(Trigger<'a>),
}