sanjithp-dev commited on
Commit
0af44f8
Β·
verified Β·
1 Parent(s): ed5c547

Create openenv.yaml

Browse files
Files changed (1) hide show
  1. openenv.yaml +56 -0
openenv.yaml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ─────────────────────────────────────────────────────────────────────────────
2
+ # openenv.yaml β€” Disaster Grid Environment Metadata
3
+ # Conforms to the OpenEnv 1.0 specification
4
+ # ─────────────────────────────────────────────────────────────────────────────
5
+
6
+ name: disaster-grid-env
7
+ version: "1.0.0"
8
+ description: >
9
+ A 5x5 fully-observable grid simulation where an RL agent (Llama-3 trained via GRPO)
10
+ acts as an Autonomous Emergency Manager. The agent must manage its energy
11
+ to navigate and repair decaying city sectors before critical failure.
12
+
13
+ author: "Sanjith & Varsha"
14
+ license: MIT
15
+
16
+ # ── interface ─────────────────────────────────────────────────────────────────
17
+ interface:
18
+ # This tells the framework exactly where our Python class lives!
19
+ step: "src.disaster_grid.environment.CityGrid.step"
20
+ reset: "src.disaster_grid.environment.CityGrid.reset"
21
+
22
+ # ── observation space (From our models.py) ────────────────────────────────────
23
+ observation_space:
24
+ type: object
25
+ fields:
26
+ step_number: {type: integer}
27
+ agent_position: {type: integer, description: "Index 0-24"}
28
+ agent_energy: {type: integer, description: "Scale 0-100"}
29
+ current_sector_health: {type: integer}
30
+ critical_sectors:
31
+ type: array
32
+ items: {type: integer}
33
+ average_city_health: {type: number, format: float}
34
+
35
+ # ── action space (From our models.py) ─────────────────────────────────────────
36
+ action_space:
37
+ type: object
38
+ fields:
39
+ action: {type: string, enum: [MOVE_N, MOVE_S, MOVE_E, MOVE_W, REPAIR, RECHARGE, WAIT]}
40
+ reasoning: {type: string, description: "Chain of thought explanation"}
41
+
42
+ # ── runtime ───────────────────────────────────────────────────────────────────
43
+ runtime:
44
+ python: "3.10"
45
+ entrypoint: "app.py"
46
+ port: 7860
47
+ framework: fastapi
48
+
49
+ # ── tags ──────────────────────────────────────────────────────────────────────
50
+ tags:
51
+ - disaster-management
52
+ - grid-world
53
+ - reinforcement-learning
54
+ - grpo
55
+ - llama-3
56
+ - huggingface-spaces