Interface IRecordConstructorArgs
Marks a wrapper that records its constructor arguments, so its Spec
can describe it completely and make can re-create it from an EnvSpec. A
wrapper that does not implement it is recorded with kwargs=None, which make cannot re-create.
public interface IRecordConstructorArgs
- Extension Methods
Remarks
Gymnasium's RecordConstructorArgs mix-in holds the arguments itself; a C# interface cannot, so implementers
keep them in a property set from their constructor with Record(IEnumerable<KeyValuePair<string, object?>>, bool), which does the
deep copy. Reference: gymnasium/utils/record_constructor.py.
Properties
SavedKwargs
The recorded arguments by parameter name in Python spelling (max_episode_steps), Python's
_saved_kwargs. Set once per constructor; in a class hierarchy the most derived constructor's record is the
one kept (see Record(IEnumerable<KeyValuePair<string, object?>>, bool)).
[PyName("_saved_kwargs")]
Info SavedKwargs { get; }