File size: 1,055 Bytes
dead589
7952f32
 
 
dead589
 
8c2ed14
dead589
 
 
 
7952f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
---
title: GraphForge OpenEnv
emoji: 🧱
colorFrom: indigo
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
---

# GraphForge — OpenEnv server

Live deployment of the GraphForge environment for the Meta PyTorch OpenEnv
Hackathon. The server hosts the OpenEnv-compliant `/reset`, `/step`, `/state`
endpoints over HTTP. Anything that speaks the OpenEnv client protocol (or
plain JSON) can drive episodes.

See the main project repo for the architecture overview, training notebook,
plots, and writeup.

## Endpoints

```
POST /reset             → GraphForgeObservation
POST /step  { ... }     → { observation, reward, done }
GET  /state             → GraphForgeState
GET  /healthz
```

## Quick smoke test

```bash
EID=$(curl -s -X POST $SPACE_URL/reset | python3 -c "import sys,json; print(json.load(sys.stdin)['episode_id'])")
curl -s -X POST $SPACE_URL/step -H 'content-type: application/json' \
  -d '{"kind": "add_module", "payload": {"name": "validators", "responsibility": "validation"}}' \
  | python3 -m json.tool
```