async fn run<F>( state: &AppState, caller: Option<&Caller>, action: &'static str, named: String, op: F, ) -> Responsewhere F: FnOnce(&AppState, &str) -> Result<(Value, String), Refusal> + Send + 'static,
Run op as the calling agent, and record the outcome under it.
op