Download source/models.py from naklitechie/openenv-null-control: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/datasets/naklitechie/openenv-null-control/resolve/main/source/models.py
- Command line
-
hf download hf://datasets/naklitechie/openenv-null-control/source/models.py
-
curl -L -o models.py https://huggingface.co/datasets/naklitechie/openenv-null-control/resolve/main/source/models.py
667 Bytes
| """Action and observation types for the null-control environment.""" | |
| from typing import Any | |
| from openenv.core.env_server.types import Action, Observation | |
| from pydantic import ConfigDict, Field | |
| class NullAction(Action): | |
| """Any reply ends the episode. Extra keys are accepted so no reply is a schema error.""" | |
| model_config = ConfigDict(extra="allow") | |
| answer: Any = Field(default="", description="Ignored, any JSON value. Any action ends the episode.") | |
| class NullObservation(Observation): | |
| """Short text prompt; reward and done come from the base Observation.""" | |
| prompt: str = Field(default="", description="Instruction shown to the policy") | |