1use crate::MetaMap;
2use crate::spaces::SpaceValue;
3
4#[derive(Debug, Clone, PartialEq, Default)]
5pub struct ResetRequest {
6 pub seed: Option<i64>,
7 pub options: Option<MetaMap>,
8 pub timeout_ms: i64,
9}
10
11#[derive(Debug, Clone, PartialEq, Default)]
12pub struct StepRequest {
13 pub action: Option<SpaceValue>,
14 pub timeout_ms: i64,
15}
16
17#[derive(Debug, Clone, PartialEq, Eq, Default)]
18pub struct CloseRequest {
19 pub wait_for_episodes: bool,
20}
21
22#[derive(Debug, Clone, PartialEq, Default)]
23pub struct ResetResult {
24 pub observation: Option<SpaceValue>,
25 pub info: Option<MetaMap>,
26 pub episode_id: Option<String>,
27}
28
29#[derive(Debug, Clone, PartialEq, Default)]
30pub struct StepResult {
31 pub observation: Option<SpaceValue>,
32 pub reward: f64,
33 pub terminated: bool,
34 pub truncated: bool,
35 pub info: Option<MetaMap>,
36}
37
38#[derive(Debug, Clone, PartialEq, Eq, Default)]
39pub struct CloseResult;