ray.rllib.env.single_agent_episode.SingleAgentEpisode.add_env_reset#

SingleAgentEpisode.add_env_reset(observation: gymnasium.core.ObsType, infos: Dict | None = None) None[source]#

Adds the initial data (after an env.reset()) to the episode.

This data consists of initial observations and initial infos.

Parameters:
  • observation – The initial observation returned by env.reset().

  • infos – An (optional) info dict returned by env.reset().