Spaces:
Sleeping
Sleeping
Download models.py from spoutop/mastermind-env: direct link, hf CLI and curl.
- Browser
- Download file 707 Bytes
-
https://huggingface.co/spaces/spoutop/mastermind-env/resolve/main/models.py
- Command line
-
hf download hf://spaces/spoutop/mastermind-env/models.py
-
curl -L -o models.py https://huggingface.co/spaces/spoutop/mastermind-env/resolve/main/models.py
707 Bytes
| from typing import List | |
| from pydantic import Field | |
| from openenv.core.env_server.types import Action, Observation | |
| class TriageAction(Action): | |
| action: str | |
| target: str = "" | |
| class TriageObservation(Observation): | |
| task: str = "medium" | |
| scenario_id: str = "" | |
| logs: List[str] = Field(default_factory=list) | |
| findings: List[str] = Field(default_factory=list) | |
| actions_taken: List[str] = Field(default_factory=list) | |
| steps_used: int = 0 | |
| max_steps: int = 8 | |
| incident_resolved: bool = False | |
| required_actions: List[str] = Field(default_factory=list) | |
| completed_actions: List[str] = Field(default_factory=list) | |
| remaining_actions: List[str] = Field(default_factory=list) | |