CustomEnv is the bridge between the CLI and your own code. It
loads a project’s env.json and exposes the standard Gym 5-tuple loop, so you
can run the exact same phase-aware mission with your own policy or VLA and emit
the same fine-tune records the CLI does.
It lives in the CLI package:
Drive a mission
Constructor
Methods
The
info dict from reset() / step() carries the current goal_prompt, phase
index, and predicate state: everything your policy needs to act per phase.
Related config types in cadenzalabs.customenv: EnvConfig, Phase,
FineTuneConfig, and EnvConfigError (raised on an invalid env.json).