pub struct MultiAgentResult {
pub observations: Vec<Vec<f32>>,
pub rewards: Vec<f32>,
pub terminated: Vec<bool>,
pub truncated: Vec<bool>,
pub info: HashMap<String, String>,
}Expand description
Result of a multi-agent environment step.
Contains per-agent observations, rewards, and termination flags.
Fields§
§observations: Vec<Vec<f32>>Observations for each agent.
rewards: Vec<f32>Rewards for each agent.
terminated: Vec<bool>Terminal states for each agent (true = episode ended naturally, e.g. agent died or goal reached). GAE zeroes the value-function bootstrap across these transitions.
truncated: Vec<bool>Truncation flags for each agent (true = episode ended due to a time limit or external reset, not a terminal state). GAE keeps the value-function bootstrap across these transitions because the trajectory was still “alive” in the value sense. Follows the gym/gymnasium convention.
info: HashMap<String, String>Additional information (shared across all agents).
Implementations§
Trait Implementations§
Source§impl Clone for MultiAgentResult
impl Clone for MultiAgentResult
Source§fn clone(&self) -> MultiAgentResult
fn clone(&self) -> MultiAgentResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiAgentResult
impl RefUnwindSafe for MultiAgentResult
impl Send for MultiAgentResult
impl Sync for MultiAgentResult
impl Unpin for MultiAgentResult
impl UnsafeUnpin for MultiAgentResult
impl UnwindSafe for MultiAgentResult
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more