File size: 1,253 Bytes
df97e68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
# Frontend Workflow

The frontend is React-based, backend-driven, and served directly by FastAPI.

## Access

- UI: `/ui`
- Assets: `/ui/assets/*`
- API namespace: `/api/*`

## What Is Visible in UI

1. OpenEnv API execution (`reset` / `step` / `state` / `grade`)
2. Heuristic baseline agent runs (`/api/autostep`, `/api/benchmark`)
3. Trained RL model execution (Phase 2/3 checkpoints via `/api/rl/run`)
4. Trained RL evaluation across tasks (`/api/rl/evaluate`)
5. Script-level workflow visibility for:
   - `baseline_openai.py`
   - `inference.py`

## Frontend API Surface

- Core:
  - `GET /api/health`
  - `GET /api/tasks`
  - `GET /api/agents`
  - `POST /api/reset`
  - `POST /api/step`
  - `POST /api/state`
  - `POST /api/grade`
  - `GET /api/sessions`
  - `DELETE /api/sessions/{session_id}`
- Baseline execution:
  - `POST /api/autostep`
  - `POST /api/benchmark`
- Workflow visibility:
  - `GET /api/workflows/components`
  - `POST /api/workflows/run`
- RL visibility/execution:
  - `GET /api/rl/models`
  - `POST /api/rl/run`
  - `POST /api/rl/evaluate`

## Deployment Notes

- No Node.js build is required for serving the current frontend.
- Backend startup remains `app.main:app`.
- Frontend does not call external LLM providers directly.