This reference describes unreleased code on main; no release documents it yet.

rlmesh::ModelOptions

structPreviewuse rlmesh::ModelOptions;[source]

Options for Model::new.

struct ModelOptions

spec

field[source]
spec: Option<SpecArg>

Replaces Policy::spec; None keeps the policy’s.

on_episode_end

field[source]
on_episode_end: Option<Box<dyn FnMut(&str) -> Result<()> + Send>>

on_close

field[source]
on_close: Option<Box<dyn FnOnce() -> Result<()> + Send>>

Replaces Policy::close.

trust_entrypoints

field[source]
trust_entrypoints: bool

Allow module:callable custom-input entrypoints in the spec.

Trait implementations

  • impl Default for ModelOptions
  • impl Debug for ModelOptions