Skip to main content

rlmesh_runtime/
lib.rs

1//! RLMesh single-session runtime driver.
2//!
3//! Shared `reset -> predict -> step` semantics for one ready model/environment
4//! session. Scheduling, endpoint pools, route fan-out, and cluster lifecycle
5//! live elsewhere.
6
7mod driver;
8pub mod hooks;
9pub mod spec;
10pub mod telemetry;
11
12mod episodes;
13mod state;
14
15pub use driver::{
16    RuntimeDriver, RuntimeEnv, RuntimeEnvReset, RuntimeEnvStep, RuntimeError, RuntimeModel,
17    RuntimeModelPrediction,
18};
19pub use hooks::{
20    ActionReceivedEvent, EnvConnectedEvent, EpisodeCompletedEvent, EpisodeStartedEvent, HookError,
21    LogEvent, LogLevel, ModelConnectedEvent, NoopRuntimeHooks, ObservationEmittedEvent,
22    RuntimeEnvContext, RuntimeHooks, SessionEndedEvent, SessionFailedEvent, SessionStartedEvent,
23    StepCompletedEvent, TelemetrySnapshotEvent,
24};
25pub use spec::{RuntimeLimits, RuntimeReport, RuntimeSessionSpec};
26
27/// Protocol types used by the runtime public API.
28///
29/// Runtime traits and hooks name generated `rlmesh_proto::*::v1` types directly.
30/// Re-exporting the crate gives implementors the version-correct path. Protocol
31/// regeneration or a major `prost`/`tonic` bump is therefore a runtime breaking
32/// change.
33pub use rlmesh_proto;