Skip to main content

OutcomeEngineContract

Trait OutcomeEngineContract 

Source
pub trait OutcomeEngineContract {
    // Required methods
    fn observe(&mut self, event: LearningEvent);
    fn predict_outcome(&self, task_profile: &TaskProfileV1) -> f64;
}
Expand description

Extension point for Enterprise outcome engines such as AdaptiveOutcomeEngine.

Required Methods§

Source

fn observe(&mut self, event: LearningEvent)

Record an observed outcome for a prior decision.

Source

fn predict_outcome(&self, task_profile: &TaskProfileV1) -> f64

Estimate an outcome score for a task profile in the inclusive 0.0..=1.0 range.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§