rlmesh::adapters::AdapterBase
An authored adapter protocol with no-op observe and reset hooks by default.
trait AdapterBaseRequired methods
Provided methods
transform_obs
required method[source]fn transform_obs(&mut self, raw_obs: Value) -> Result<Value>Transform an environment observation into model input.
transform_action
required method[source]fn transform_action(&mut self, raw_action: Value) -> Result<Value>Transform model output into an environment action.
observe
provided method[source]fn observe(&mut self, raw_obs: Value) -> Result<()>Record an observation for stateful transforms.
reset
provided method[source]fn reset(&mut self) -> Result<()>Reset stateful transforms for a new episode.
explain
provided method[source]fn explain(&self) -> Result<String>Describe the resolved transformation plan.
wrap_predict
provided method[source]fn wrap_predict<F>(
self,
predict_fn: F,
) -> WrappedPredict<Self, F> where Self: Sized, F: FnMut(Value) -> Result<Value> + Send + 'staticWrap a predict function with observation and action transforms.