gymnasia 3.0.5

OpenAI Gymnasium environments in pure Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// The result of a single environment step.
#[derive(Clone, Debug, PartialEq)]
#[must_use]
pub struct StepResult<O> {
    /// The observation produced after the action was applied.
    pub observation: O,
    /// The scalar reward earned by the action.
    pub reward: f64,
    /// Whether the episode reached a terminal state.
    pub terminated: bool,
    /// Whether the episode was cut short (e.g. time limit).
    pub truncated: bool,
}