dojo.actions

This module contains all actions that can be executed by environments.

@dataclass
class BaseAction(typing.Generic[~Observation]):

Base action class for all environments.

Parameters
  • agent: The agent executing the action.
def encode(self, obs: ~Observation) -> dict[str, typing.Any]:

Encode the action in a purely numerical dictionary format.

Parameters
  • obs: The observation from the environment.
Raises
  • NotImplementedError: Must be implemented by subclass.