Skip to main content

rlmesh_runtime/
lib.rs

1//! RLMesh single-session runtime driver.
2//!
3//! This crate owns the shared `reset -> predict -> step` execution semantics
4//! for one ready environment/model session. It deliberately does not own
5//! managed route fan-out, endpoint pooling, workload expansion, scheduling, or
6//! cluster lifecycle.
7
8mod driver;
9pub mod hooks;
10pub mod spec;
11
12mod episodes;
13mod route;
14mod state;
15mod timing;
16
17pub use driver::{
18    RuntimeDriver, RuntimeEnv, RuntimeEnvReset, RuntimeEnvStep, RuntimeError, RuntimeModel,
19    RuntimeModelPrediction,
20};
21pub use hooks::{
22    ActionReceivedEvent, EnvConnectedEvent, EpisodeCompletedEvent, EpisodeStartedEvent, HookError,
23    LogEvent, LogLevel, ModelConnectedEvent, NoopRuntimeHooks, ObservationEmittedEvent,
24    RuntimeHookChain, RuntimeHooks, RuntimeRouteContext, SessionEndedEvent, SessionFailedEvent,
25    SessionStartedEvent, StepCompletedEvent, TelemetrySummaryEvent, TelemetryWindowEvent,
26    TimingSummary,
27};
28pub use spec::{RuntimeLimits, RuntimeReport, RuntimeSessionSpec};