pub trait DecisionBackend {
// Required method
fn evaluate(&self, context: &StructuredContext) -> DecisionBackendResult;
// Provided method
fn evaluate_model_input(&self, input: &ModelInput) -> DecisionBackendResult { ... }
}Expand description
Common backend interface: receive a context and return a decision result.
Rule-based, local evaluator, cloud LLM, and fallback backends all implement this trait.