Method EndEpisode EndEpisode() Sets the done flag to true and resets the agent. Declaration public void EndEpisode() Remarks This should be used when the episode can no longer continue, such as when the Agent reaches the goal or fails at the task. See Also OnEpisodeBegin() EpisodeInterrupted()