Table of Contents

Class TimeLimitOptions

Namespace
Gym.Wrappers
Assembly
Gym.dll

The keyword arguments of TimeLimit<TObs, TAct>'s constructor as a typed record (DR-34), generated from the constructor so it cannot drift from it. A property that is set becomes a keyword argument by its Python name; one left unset is not passed, so make keeps the registered spec's value and the constructor its default.

public sealed record TimeLimitOptions : IGymOptions, IEquatable<TimeLimitOptions>
Inheritance
TimeLimitOptions
Implements
Inherited Members
Extension Methods

Properties

MaxEpisodeSteps

The step at which the episode is truncated (elapsed >= max_episode_steps). Typed as nullable so that a spec's None reaches Gymnasium's check, as TimeLimit(env, max_episode_steps=None) does. The max_episode_steps keyword argument, passed on only once set.

public long? MaxEpisodeSteps { get; init; }

Property Value

long?

Methods

ToKwargs()

The set properties as keyword arguments by Python name, in constructor order.

public Info ToKwargs()

Returns

Info

A new dict the caller owns.