Spaces:
Sleeping
Sleeping
API Reference
All endpoints are implemented in server/app.py.
Core Environment Endpoints
| Method | Path | Purpose |
|---|---|---|
POST |
/reset |
start a new episode (task, optional seed) |
POST |
/step |
multi-session step with action map |
POST |
/step_single |
single-session RL step (action) |
GET |
/state |
current environment snapshot |
GET |
/tools |
discover supported tool functions |
GET |
/health |
liveness check |
Tool Endpoints
POST /tool/evaluate_session- body:
{ "kwargs": { "session_id": "..." } }
- body:
POST /tool/take_action- body:
{ "kwargs": { "session_id": "...", "action": 1 } }
- body:
POST /tool/get_network_stats- body:
{ "kwargs": {} }
- body:
POST /tool/get_threat_intelligence- body:
{ "kwargs": {} }
- body:
Typical Loop
POST /resetGET /stateto list candidate sessionsPOST /tool/evaluate_sessionfor selected sessionsPOST /steporPOST /step_single- repeat until
done=true