sravaniamere commited on
Commit
e5d6640
·
1 Parent(s): 6464bfb

fix state endpoint, author, and init exports

Browse files
Files changed (4) hide show
  1. main +0 -0
  2. openenv.yaml +1 -1
  3. server.py +0 -1
  4. sql_env/__init__.py +4 -1
main ADDED
File without changes
openenv.yaml CHANGED
@@ -4,7 +4,7 @@ description: >
4
  An OpenEnv RL environment where an AI agent fixes broken SQL queries.
5
  Simulates a real developer task: identifying and correcting SQL syntax
6
  and logical errors across easy, medium, and hard difficulty levels.
7
- author: your-username
8
  tags:
9
  - openenv
10
  - sql
 
4
  An OpenEnv RL environment where an AI agent fixes broken SQL queries.
5
  Simulates a real developer task: identifying and correcting SQL syntax
6
  and logical errors across easy, medium, and hard difficulty levels.
7
+ author: SyncShift
8
  tags:
9
  - openenv
10
  - sql
server.py CHANGED
@@ -86,7 +86,6 @@ async def step(request: StepRequest):
86
  raise HTTPException(status_code=400, detail=str(e))
87
 
88
 
89
- @app.get("/state")
90
  @app.post("/state")
91
  async def state():
92
  """Return current environment state."""
 
86
  raise HTTPException(status_code=400, detail=str(e))
87
 
88
 
 
89
  @app.post("/state")
90
  async def state():
91
  """Return current environment state."""
sql_env/__init__.py CHANGED
@@ -1,5 +1,6 @@
1
  from sql_env.env import SQLCorrectionEnv
2
  from sql_env.models import SQLObservation, SQLAction, SQLReward, SQLTask, StepResult
 
3
 
4
  __all__ = [
5
  "SQLCorrectionEnv",
@@ -8,4 +9,6 @@ __all__ = [
8
  "SQLReward",
9
  "SQLTask",
10
  "StepResult",
11
- ]
 
 
 
1
  from sql_env.env import SQLCorrectionEnv
2
  from sql_env.models import SQLObservation, SQLAction, SQLReward, SQLTask, StepResult
3
+ from sql_env.tasks import ALL_TASKS, TASK_SETS
4
 
5
  __all__ = [
6
  "SQLCorrectionEnv",
 
9
  "SQLReward",
10
  "SQLTask",
11
  "StepResult",
12
+ "ALL_TASKS",
13
+ "TASK_SETS",
14
+ ]