ray.rllib.env.env_runner.EnvRunner.get_spaces#

abstract EnvRunner.get_spaces() Dict[str, Tuple[gymnasium.Space, gymnasium.Space]][source]#

Returns a dict mapping ModuleIDs to 2-tuples of obs- and action space.

The returned dict might also contain an extra key __env__, which maps to a 2-tuple of the bare Env’s observation- and action spaces.