pub struct ActionReceivedEvent {
pub session_id: String,
pub route: RuntimeEnvContext,
pub episode_id: String,
pub episode_record_id: String,
pub episode_ids: Vec<String>,
pub episode_record_ids: Vec<String>,
pub step: i64,
pub env_index: i32,
pub action_space: Arc<SpaceSpec>,
pub action: Option<Vec<Bytes>>,
pub raw_action: Option<Vec<Bytes>>,
}Fields§
§session_id: String§route: RuntimeEnvContext§episode_id: String§episode_record_id: String§episode_ids: Vec<String>§episode_record_ids: Vec<String>§step: i64§env_index: i32§action_space: Arc<SpaceSpec>Shared so the per-step, per-hook event fan-out clones an Arc pointer
rather than deep-copying the action space spec on every step. Types
action: when the relay policy converted it into a new layout, this is
the converted space and raw_action keeps the contract’s.
action: Option<Vec<Bytes>>Opaque per-leaf wire bytes; the relay is content-blind (§13).
To persist as a single artifact, use rlmesh-grpc’s
wire::leaves_to_blob — plain concatenation loses the leaf
boundaries, which cannot be recovered for variable-length leaves.
raw_action: Option<Vec<Bytes>>The model’s action before transform_action ran; equals action when no
transform changed it.
Trait Implementations§
Source§impl Clone for ActionReceivedEvent
impl Clone for ActionReceivedEvent
Source§impl Debug for ActionReceivedEvent
impl Debug for ActionReceivedEvent
Source§impl PartialEq for ActionReceivedEvent
impl PartialEq for ActionReceivedEvent
impl StructuralPartialEq for ActionReceivedEvent
Auto Trait Implementations§
impl Freeze for ActionReceivedEvent
impl RefUnwindSafe for ActionReceivedEvent
impl Send for ActionReceivedEvent
impl Sync for ActionReceivedEvent
impl Unpin for ActionReceivedEvent
impl UnsafeUnpin for ActionReceivedEvent
impl UnwindSafe for ActionReceivedEvent
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