-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
Description
When reading the Env implementation and the documentation, it's unclear if ObsType should be a single observation or a list of observations.
The EnvStepOutput type have a field observations (plural) typed ObsType:
SkyRL/skyrl-gym/skyrl_gym/core.py
Line 13 in b1107ed
| observations: ObsType |
At the same time, the
step method documents that it returns observation (singular): SkyRL/skyrl-gym/skyrl_gym/core.py
Line 45 in b1107ed
| observation (ObsType): The resulting observation after executing the action. |
In the BaseTextEnv implementation Env is initialised with ObsType being a str:
| class BaseTextEnv(Env[str, str]): |
But the
step methods return List[Dict[str, str]] in the observations field: | observations: List[Dict[str, str]] # OpenAI API Messages Format |
I'd be happy to provide a PR to unify these types and documentation, but I'm not sure what ObsType should contain.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels