Spaces:
Sleeping
Sleeping
File size: 950 Bytes
2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 ba52031 2058884 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # debug_env — Python Package
This directory is the `debug_env` Python package. See the [root README](../README.md) for full documentation.
## Package Contents
| Module | Description |
|--------|-------------|
| `models.py` | `DebugAction`, `DebugObservation` Pydantic models |
| `client.py` | `DebugEnv` HTTP/WebSocket client |
| `server/` | FastAPI server — the benchmark environment |
| `tasks/` | Task source files (task1–task9) |
| `rl/` | GRPO training utilities (dataset, rollout) |
## Quick usage
```python
from debug_env import DebugAction, DebugObservation
from debug_env.client import DebugEnvClient
client = DebugEnvClient(base_url="http://localhost:8000")
obs = client.reset(task="task1")
result = client.step(DebugAction(tool="list_files", args={}))
```
## Running the server
```bash
# From repo root
uv run server
```
Server exposes `GET /health`, `POST /reset`, `POST /step`, `GET /tasks`, `POST /mcp`, `/web`, `/docs`.
|