sniki28 commited on
Commit
f91dadc
·
verified ·
1 Parent(s): 5a887d8

Upload openenv.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. openenv.yaml +23 -0
openenv.yaml CHANGED
@@ -102,6 +102,29 @@ tasks:
102
  allowed_actions: [approve, warn, remove, ban_temporary, ban_permanent, escalate]
103
  scoring: "Action score (50%) + context-aware bonus (30%) + violation type (20%)."
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  entry_point: app:app
106
  framework: fastapi
107
  python_version: "3.10"
 
102
  allowed_actions: [approve, warn, remove, ban_temporary, ban_permanent, escalate]
103
  scoring: "Action score (50%) + context-aware bonus (30%) + violation type (20%)."
104
 
105
+ endpoints:
106
+ - method: GET
107
+ path: /health
108
+ description: Liveness check — returns 200 when server is ready
109
+ - method: GET
110
+ path: /tasks
111
+ description: List all available tasks with metadata
112
+ - method: POST
113
+ path: /reset
114
+ query_params:
115
+ task_id: {type: string, default: task_easy, enum: [task_easy, task_medium, task_hard]}
116
+ response_model: Observation
117
+ description: Start a new episode; returns first Observation
118
+ - method: POST
119
+ path: /step
120
+ request_body: Action
121
+ response_model: StepResult
122
+ description: Submit moderation action for current post; returns StepResult
123
+ - method: GET
124
+ path: /state
125
+ response_model: EnvironmentState
126
+ description: Full snapshot of current environment state
127
+
128
  entry_point: app:app
129
  framework: fastapi
130
  python_version: "3.10"