pub type CustomFunction = Box<dyn Fn(&[Value], &Facts) -> Result<Value> + Send + Sync>;
Type for custom function implementations
pub struct CustomFunction(/* private fields */);