Skip to main content

reset_options_for

Function reset_options_for 

Source
pub fn reset_options_for(
    contract: &EnvContract,
    option_key: &str,
    trials: &[u64],
) -> Option<MetaMap>
Expand description

The ResetRequest.options map delivering trials under option_key — the trial-index key the session’s edition governs (EditionDefaults::trial_index_option_key, mirrored for env-side callers by TRIAL_INDEX_OPTION) — or None when there are no trials or the env never declared the key.

A single lane sends the bare integer; a multi-lane reset sends the list, in the same lane order as seeds and episode_ids.