Download openenv/alertforge_env/models.py from openenvforge/3ambench: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/openenvforge/3ambench/resolve/main/openenv/alertforge_env/models.py
- Command line
-
hf download hf://datasets/openenvforge/3ambench/openenv/alertforge_env/models.py
-
curl -L -o models.py https://huggingface.co/datasets/openenvforge/3ambench/resolve/main/openenv/alertforge_env/models.py
1.12 kB
| """Typed OpenEnv contracts. State carries no answers, checks or scores (OpenEnv gotcha G5).""" | |
| from __future__ import annotations | |
| from typing import Literal, Optional | |
| from pydantic import ConfigDict | |
| from openenv.core.env_server.types import Action, Observation, State | |
| class AlertForgeAction(Action): | |
| model_config = ConfigDict(extra="forbid") | |
| tool: Literal["list_files", "read_file", "write_file", "replace_in_file", "run_checks", "route_test", "submit"] | |
| path: Optional[str] = None # relative to monitoring/ | |
| content: Optional[str] = None # write_file | |
| old: Optional[str] = None # replace_in_file (must match exactly once) | |
| new: Optional[str] = None | |
| labels: Optional[dict[str, str]] = None # route_test | |
| class AlertForgeObservation(Observation): | |
| output: str = "" | |
| ok: bool = True | |
| step: int = 0 | |
| steps_left: int = 0 | |
| task_id: str = "" | |
| instruction: str = "" # filled on reset only | |
| class AlertForgeState(State): | |
| task_id: str = "" | |
| tier: str = "" | |
| workflow: str = "" | |
| split: str = "train" | |
| submitted: bool = False | |