rlmesh::RunOptions
Class in rlmesh.hpp.
struct RunOptionsFields
- episodes
std::optional<uint64_t> episodes{} - seeds
OptionalList<int64_t> seeds{} - max_episode_steps
std::optional<uint64_t> max_episode_steps{} - max_episode
std::optional<Duration> max_episode{} - hooks
RunHooks* hooks = nullptr - instruction
std::optional<std::string> instruction{} - close_env
bool close_env = false - trust_entrypoints
std::optional<bool> trust_entrypoints{} - execution_horizon
uint32_t execution_horizon = 1 - prefetch_lead
uint64_t prefetch_lead = 0 - view
std::optional<View> view{} - workflow_edition
std::optional<std::string> workflow_edition{} - trial_index_base
uint64_t trial_index_base = 0 - cancel
std::optional<ext::CancelToken> cancel{}
Methods
- with_episodes()
RunOptions& with_episodes(std::optional<uint64_t> value) & - with_episodes()
RunOptions with_episodes(std::optional<uint64_t> value) && - with_seeds()
RunOptions& with_seeds(OptionalList<int64_t> value) & - with_seeds()
RunOptions with_seeds(OptionalList<int64_t> value) && - with_max_episode_steps()
RunOptions& with_max_episode_steps(std::optional<uint64_t> value) & - with_max_episode_steps()
RunOptions with_max_episode_steps(std::optional<uint64_t> value) && - with_max_episode()
RunOptions& with_max_episode(std::optional<Duration> value) & - with_max_episode()
RunOptions with_max_episode(std::optional<Duration> value) && - with_hooks()
RunOptions& with_hooks(RunHooks* value) & - with_hooks()
RunOptions with_hooks(RunHooks* value) && - with_instruction()
RunOptions& with_instruction(std::optional<std::string> value) & - with_instruction()
RunOptions with_instruction(std::optional<std::string> value) && - with_close_env()
RunOptions& with_close_env(bool value) & - with_close_env()
RunOptions with_close_env(bool value) && - with_trust_entrypoints()
RunOptions& with_trust_entrypoints(std::optional<bool> value) & - with_trust_entrypoints()
RunOptions with_trust_entrypoints(std::optional<bool> value) && - with_execution_horizon()
RunOptions& with_execution_horizon(uint32_t value) & - with_execution_horizon()
RunOptions with_execution_horizon(uint32_t value) && - with_prefetch_lead()
RunOptions& with_prefetch_lead(uint64_t value) & - with_prefetch_lead()
RunOptions with_prefetch_lead(uint64_t value) && - with_view()
RunOptions& with_view(std::optional<View> value) & - with_view()
RunOptions with_view(std::optional<View> value) && - with_workflow_edition()
RunOptions& with_workflow_edition(std::optional<std::string> value) & - with_workflow_edition()
RunOptions with_workflow_edition(std::optional<std::string> value) && - with_trial_index_base()
RunOptions& with_trial_index_base(uint64_t value) & - with_trial_index_base()
RunOptions with_trial_index_base(uint64_t value) && - with_cancel()
RunOptions& with_cancel(std::optional<ext::CancelToken> value) & - with_cancel()
RunOptions with_cancel(std::optional<ext::CancelToken> value) &&
episodes
field[source]std::optional<uint64_t> episodes{}seeds
field[source]OptionalList<int64_t> seeds{}max_episode_steps
field[source]std::optional<uint64_t> max_episode_steps{}max_episode
field[source]std::optional<Duration> max_episode{}hooks
field[source]RunHooks* hooks = nullptrinstruction
field[source]std::optional<std::string> instruction{}close_env
field[source]bool close_env = falsetrust_entrypoints
field[source]std::optional<bool> trust_entrypoints{}execution_horizon
field[source]uint32_t execution_horizon = 1prefetch_lead
field[source]uint64_t prefetch_lead = 0view
field[source]std::optional<View> view{}workflow_edition
field[source]std::optional<std::string> workflow_edition{}trial_index_base
field[source]uint64_t trial_index_base = 0cancel
field[source]std::optional<ext::CancelToken> cancel{}with_episodes
method[source]RunOptions& with_episodes(std::optional<uint64_t> value) &with_episodes
method[source]RunOptions with_episodes(std::optional<uint64_t> value) &&with_seeds
method[source]RunOptions& with_seeds(OptionalList<int64_t> value) &with_seeds
method[source]RunOptions with_seeds(OptionalList<int64_t> value) &&with_max_episode_steps
method[source]RunOptions& with_max_episode_steps(std::optional<uint64_t> value) &with_max_episode_steps
method[source]RunOptions with_max_episode_steps(std::optional<uint64_t> value) &&with_max_episode
method[source]RunOptions& with_max_episode(std::optional<Duration> value) &with_max_episode
method[source]RunOptions with_max_episode(std::optional<Duration> value) &&with_hooks
method[source]RunOptions& with_hooks(RunHooks* value) &with_hooks
method[source]RunOptions with_hooks(RunHooks* value) &&with_instruction
method[source]RunOptions& with_instruction(std::optional<std::string> value) &with_instruction
method[source]RunOptions with_instruction(std::optional<std::string> value) &&with_close_env
method[source]RunOptions& with_close_env(bool value) &with_close_env
method[source]RunOptions with_close_env(bool value) &&with_trust_entrypoints
method[source]RunOptions& with_trust_entrypoints(std::optional<bool> value) &with_trust_entrypoints
method[source]RunOptions with_trust_entrypoints(std::optional<bool> value) &&with_execution_horizon
method[source]RunOptions& with_execution_horizon(uint32_t value) &with_execution_horizon
method[source]RunOptions with_execution_horizon(uint32_t value) &&with_prefetch_lead
method[source]RunOptions& with_prefetch_lead(uint64_t value) &with_prefetch_lead
method[source]RunOptions with_prefetch_lead(uint64_t value) &&with_view
method[source]RunOptions& with_view(std::optional<View> value) &with_view
method[source]RunOptions with_view(std::optional<View> value) &&with_workflow_edition
method[source]RunOptions& with_workflow_edition(std::optional<std::string> value) &with_workflow_edition
method[source]RunOptions with_workflow_edition(std::optional<std::string> value) &&with_trial_index_base
method[source]RunOptions& with_trial_index_base(uint64_t value) &with_trial_index_base
method[source]RunOptions with_trial_index_base(uint64_t value) &&with_cancel
method[source]RunOptions& with_cancel(std::optional<ext::CancelToken> value) &with_cancel
method[source]RunOptions with_cancel(std::optional<ext::CancelToken> value) &&