This reference describes unreleased code on main; no release documents it yet.

rlmesh_episode_record_new

functionExperimental#include <rlmesh.h>[source]

Required strings cannot be NULL. Records copy values without adding validation beyond C representation. Child lists: NULL/0 = empty, NULL/nonzero or a NULL element is refused. _get returns a new owned snapshot; i >= len is ERR_INVALID_ARGUMENT. Scalars/lengths return zero on NULL. Optional reads return false for None. _to_dict returns an owned DICT; _repr returns owned UTF-8 bytes.

RLMeshStatus rlmesh_episode_record_new(
    int64_t index,
    const int64_t* seed,
    int64_t steps,
    double reward,
    bool terminated,
    bool truncated,
    const RLMeshEpisodeRecordOptions* options,
    RLMeshEpisodeRecord** out
)