nemo_gym.registry
nemo_gym.registry
Registry of co-located environments under environments/<name>/.
An environment is a directory environments/<name>/ whose config.yaml wires together a
resources server, an agent, and datasets (and references a model server). This module maps an
environment’s short <name> to its config so it can be enumerated by name — the foundation for
gym list environments. Resolving a name to a config path for running is handled by the CLI’s
generic --environment asset selector, so this module is intentionally discovery-only.
Discovery only reads config files; it never resolves interpolations or starts servers, so it is safe to call even when secrets/API keys referenced by a config are not set in the environment.
Module Contents
Classes
Functions
Data
API
A discovered environment: its name, where it lives, and lightweight metadata.
Best-effort (description, domain) from the config’s resources_servers entry.
Reads without resolving interpolations or missing values so a config that references an unset key (e.g. an API key) still yields metadata instead of raising.
Map environment name -> :class:EnvironmentEntry for every <name>/config.yaml.
The name is the directory name. Returns an empty dict if the directory is missing.