pub struct StepCompletedEvent {Show 13 fields
pub session_id: String,
pub route: RuntimeEnvContext,
pub episode_id: String,
pub episode_record_id: String,
pub step: i64,
pub env_index: i32,
pub rewards: Vec<f64>,
pub infos: Option<MetaMap>,
pub terminated: Vec<bool>,
pub truncated: Vec<bool>,
pub autoreset_roll: Vec<bool>,
pub predict_ms: f64,
pub step_ms: f64,
}Fields§
§session_id: String§route: RuntimeEnvContext§episode_id: String§episode_record_id: String§step: i64§env_index: i32§rewards: Vec<f64>§infos: Option<MetaMap>§terminated: Vec<bool>Per lane, aligned with rewards: whether this step ended the lane’s
episode in a terminal state / by truncation (env-reported or a runtime
cap), known at the step itself, so a hook never waits for the
episode_completed event to learn how a step ended.
truncated: Vec<bool>§autoreset_roll: Vec<bool>Per lane, aligned with rewards: true where this response is the
lane’s NEXT_STEP autoreset roll – the new episode’s reset observation,
still attributed to the ended id, not a step of any episode. Lanes roll
independently, so the other lanes’ entries are real steps. infos is
None when any lane rolled.
predict_ms: f64Wall time, in milliseconds, of the predict(s) that landed since the group’s previous step – zero for a step served from chunk replay, and under prefetch the next chunk’s predict, attributed to the step it landed on – and of this step’s env round trip. Every lane of the group experienced both.
step_ms: f64Trait Implementations§
Source§impl Clone for StepCompletedEvent
impl Clone for StepCompletedEvent
Source§impl Debug for StepCompletedEvent
impl Debug for StepCompletedEvent
Source§impl PartialEq for StepCompletedEvent
impl PartialEq for StepCompletedEvent
impl StructuralPartialEq for StepCompletedEvent
Auto Trait Implementations§
impl Freeze for StepCompletedEvent
impl RefUnwindSafe for StepCompletedEvent
impl Send for StepCompletedEvent
impl Sync for StepCompletedEvent
impl Unpin for StepCompletedEvent
impl UnsafeUnpin for StepCompletedEvent
impl UnwindSafe for StepCompletedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request