Skip to main content

decide

Function decide 

pub async fn decide(
    model: &dyn DecisionModel,
    sop: &Sop,
    spec: &SopDecisionSpec,
    event: &SopEvent,
) -> SopDecision
Expand description

Ask model about event for sop and resolve the answer against the SOP’s [decision] spec. Never errors: every model failure resolves to the spec’s fail-closed outcome with the failure in rationale.