pub struct EpisodeCompletedEvent {Show 17 fields
pub session_id: String,
pub route: RuntimeEnvContext,
pub episode_id: String,
pub episode_record_id: String,
pub episode_index: i64,
pub env_index: i32,
pub step_count: i64,
pub cumulative_reward: f64,
pub terminated: bool,
pub truncated: bool,
pub duration_ms: i64,
pub final_info: Option<MetaMap>,
pub success: Option<bool>,
pub seed: Option<i64>,
pub trial_index: Option<u64>,
pub predict_ms: Option<f64>,
pub step_ms: Option<f64>,
}Fields§
§session_id: String§route: RuntimeEnvContext§episode_id: String§episode_record_id: String§episode_index: i64§env_index: i32§step_count: i64§cumulative_reward: f64§terminated: bool§truncated: bool§duration_ms: i64§final_info: Option<MetaMap>§success: Option<bool>The env-reported task outcome from the final step’s info (is_success,
success, or task_success, first present wins; numbers coerce by
truthiness), the same value the episode summary carries, so a hook
never re-derives it. None when the env emits no such key.
seed: Option<i64>§trial_index: Option<u64>The trial ordinal this episode walked (trial_index_base + its
episode-start position); None only under NEXT_STEP autoreset, where
no ordinal is minted.
predict_ms: Option<f64>Per-step means over the episode of the predict and env-step wall time
(see StepCompletedEvent::predict_ms), in milliseconds; None for an
episode that completed before its first step.
step_ms: Option<f64>Trait Implementations§
Source§impl Clone for EpisodeCompletedEvent
impl Clone for EpisodeCompletedEvent
Source§impl Debug for EpisodeCompletedEvent
impl Debug for EpisodeCompletedEvent
Source§impl PartialEq for EpisodeCompletedEvent
impl PartialEq for EpisodeCompletedEvent
impl StructuralPartialEq for EpisodeCompletedEvent
Auto Trait Implementations§
impl Freeze for EpisodeCompletedEvent
impl RefUnwindSafe for EpisodeCompletedEvent
impl Send for EpisodeCompletedEvent
impl Sync for EpisodeCompletedEvent
impl Unpin for EpisodeCompletedEvent
impl UnsafeUnpin for EpisodeCompletedEvent
impl UnwindSafe for EpisodeCompletedEvent
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request