Spaces:
Sleeping
Sleeping
Download debug_env/models.py from VanshGoel1/debug-env: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/models.py
- Command line
-
hf download hf://spaces/VanshGoel1/debug-env/debug_env/models.py
-
curl -L -o models.py https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/models.py
687 Bytes
| from openenv.core.env_server.types import Action, Observation | |
| from pydantic import Field | |
| class DebugAction(Action): | |
| tool: str = Field( | |
| ..., | |
| description=( | |
| "Tool to use. Debug tasks: run_tests, read_file, edit_file, list_files. " | |
| "Incident tasks (SRE): query_logs, curl_endpoint, execute_sql, " | |
| "restart_service, read_file, edit_file, list_files." | |
| ), | |
| ) | |
| args: dict = Field(default_factory=dict, description="Arguments for the tool") | |
| class DebugObservation(Observation): | |
| pass_rate: float = Field(default=0.0, description="Test pass rate (0 to 1)") | |
| logs: str = Field(default="", description="Test output logs") |