rlmesh.adapters.ObservationRoles

classfrom rlmesh.adapters import ObservationRoles[source]

The observation roles an environment declares, grouped by kind.

ObservationRoles(
    images: tuple[str, ...] = (),
    states: tuple[str, ...] = (),
    texts: tuple[str, ...] = (),
)

Returned by EnvTags.observation_roles and rlmesh.Session.observation_roles(). Each group lists role strings in declaration order; an env that declares no tags yields empty groups.

images

attribute[source]
images: tuple[str, ...]

Roles of ImageTag leaves.

states

attribute[source]
states: tuple[str, ...]

Roles of StateTag leaves and of non-skip Field slices inside a Split.

texts

attribute[source]
texts: tuple[str, ...]

Roles of TextTag leaves.