rlmesh::with_context
Wrap a closure that takes the per-episode context as a policy.
fn with_context<F>(
f: F,
) -> WithContext<F> where F: FnMut(Value, &mut PredictContext<'_>) -> Result<Value> + Send + 'staticThis reference describes unreleased code on main; no release documents it yet.
Wrap a closure that takes the per-episode context as a policy.
fn with_context<F>(
f: F,
) -> WithContext<F> where F: FnMut(Value, &mut PredictContext<'_>) -> Result<Value> + Send + 'static