These docs describe unreleased changes on main. See the latest release.

rlmesh.adapters.tag

functionfrom rlmesh.adapters import tag[source]

Merge env tags into env.metadata (under ENV_METADATA_KEY) and return it.

tag(env: EnvT, tags: EnvTags, *, validate: bool = True) -> EnvT

With validate=True (default), check the tags against the env’s observation/action spaces via the native join, raising AdapterResolutionError if a role or width cannot be reconciled.