Spaces:
Sleeping
Sleeping
Download models.py from dr4g0n369/BugHuntEnvironment: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/dr4g0n369/BugHuntEnvironment/resolve/main/models.py
- Command line
-
hf download hf://spaces/dr4g0n369/BugHuntEnvironment/models.py
-
curl -L -o models.py https://huggingface.co/spaces/dr4g0n369/BugHuntEnvironment/resolve/main/models.py
647 Bytes
| from typing import Optional | |
| from openenv.core.env_server.types import Action, Observation | |
| from pydantic import Field | |
| class BugHunterAction(Action): | |
| method: str = Field(..., description="HTTP Method (GET, POST)") | |
| path: str = Field(..., description="URL path (e.g. /api/users)") | |
| body: Optional[str] = Field(default=None, description="Request body for POST requests (JSON string)") | |
| class BugHunterObservation(Observation): | |
| status_code: int = Field(..., description="HTTP Status Code") | |
| body: str = Field(..., description="HTTP Response Body") | |
| hint: str = Field(default="", description="Contextual hint for partial progress") | |