Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions jumanji/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def action_spec(self) -> specs.Spec:
"""Returns the action spec."""
return self._env.action_spec()

def reward_spec(self) -> specs.Array:
"""Returns the reward spec."""
return self._env.reward_spec()

def discount_spec(self) -> specs.BoundedArray:
"""Returns the discount spec."""
return self._env.discount_spec()

def render(self, state: State) -> Any:
"""Compute render frames during initialisation of the environment.

Expand Down