pub struct EpisodeSummary {
pub episode_index: i64,
pub env_index: i32,
pub seed: Option<i64>,
pub trial_index: Option<u64>,
pub step_count: i64,
pub cumulative_reward: f64,
pub terminated: bool,
pub truncated: bool,
pub duration_ms: i64,
pub success: Option<bool>,
pub predict_ms: Option<f64>,
pub step_ms: Option<f64>,
}Expand description
One completed episode’s summary, recorded in completion order across all
lanes. The pull counterpart of the episode_completed hook event, so a
caller without hooks (e.g. the in-process run_local loop) still gets
per-episode results on the report.
Fields§
§episode_index: i641-based slot ordinal within the session, in completion order.
env_index: i32The vector lane the episode ran on (0 for a single env).
seed: Option<i64>The explicit seed this episode was reset with (episode_seeds /
base_seed derivation), None for an unseeded or autoreset-rolled one.
trial_index: Option<u64>The trial ordinal this episode walked (trial_index_base + its
episode-start position). Minted for every driver-owned reset whether or
not the env declared the reset option, so a coverage audit can read the
sweep off the report either way; None only under NEXT_STEP autoreset,
where the env restarts its own lanes and no ordinal is minted.
step_count: i64§cumulative_reward: f64§terminated: bool§truncated: bool§duration_ms: i64§success: Option<bool>Env-reported task outcome from the final step’s info (Gymnasium’s
is_success / success, or task_success); None when the env emits
no such signal.
predict_ms: Option<f64>Per-step means over the episode of the predict and env-step wall time,
in milliseconds (the same accounting as the step_completed hook
event); None for an episode that completed before its first step.
step_ms: Option<f64>Trait Implementations§
Source§impl Clone for EpisodeSummary
impl Clone for EpisodeSummary
Source§impl Debug for EpisodeSummary
impl Debug for EpisodeSummary
Source§impl PartialEq for EpisodeSummary
impl PartialEq for EpisodeSummary
impl StructuralPartialEq for EpisodeSummary
Auto Trait Implementations§
impl Freeze for EpisodeSummary
impl RefUnwindSafe for EpisodeSummary
impl Send for EpisodeSummary
impl Sync for EpisodeSummary
impl Unpin for EpisodeSummary
impl UnsafeUnpin for EpisodeSummary
impl UnwindSafe for EpisodeSummary
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