Skip to main content

Crate rlmesh_runtime

Crate rlmesh_runtime 

Source
Expand description

RLMesh single-session runtime driver.

Shared reset -> predict -> step semantics for one ready model/environment session. Scheduling, endpoint pools, route fan-out, and cluster lifecycle live elsewhere.

Re-exports§

pub use hooks::ActionReceivedEvent;
pub use hooks::EnvConnectedEvent;
pub use hooks::EpisodeCompletedEvent;
pub use hooks::EpisodeStartedEvent;
pub use hooks::HookError;
pub use hooks::LogEvent;
pub use hooks::LogLevel;
pub use hooks::ModelConnectedEvent;
pub use hooks::NoopRuntimeHooks;
pub use hooks::ObservationEmittedEvent;
pub use hooks::RuntimeEnvContext;
pub use hooks::RuntimeHooks;
pub use hooks::SessionEndedEvent;
pub use hooks::SessionFailedEvent;
pub use hooks::SessionStartedEvent;
pub use hooks::StepCompletedEvent;
pub use hooks::TelemetrySnapshotEvent;
pub use spec::RuntimeLimits;
pub use spec::RuntimeReport;
pub use spec::RuntimeSessionSpec;
pub use rlmesh_proto;

Modules§

hooks
Runtime hook events and the observer trait the driver fans them out to.
spec
The runtime session spec, its limits, and the report a finished run returns.
telemetry
Telemetry — windowed/session aggregation of per-op metrics.

Structs§

RuntimeDriver
Drives one ready model/env session through its reset -> predict -> step loop. Inert until a run* method is awaited.
RuntimeEnvReset
The env’s reset reply plus the endpoint-local op duration the peer stamped.
RuntimeEnvStep
The env’s step reply plus the endpoint-local op duration the peer stamped.
RuntimeModelPrediction
The model’s predict reply plus the endpoint-local op duration the peer stamped.

Enums§

RuntimeError

Traits§

RuntimeEnv
The environment side of a route: reset and step over the wire, plus close.
RuntimeModel
The model side of a route: predict, plus the per-episode adapter-state lifecycle (evict on episode end, release at session end).