Spaces:
Sleeping
Sleeping
Update openenv.yaml
Browse files- openenv.yaml +111 -50
openenv.yaml
CHANGED
|
@@ -1,50 +1,111 @@
|
|
| 1 |
-
spec_version: 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 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
spec_version: 1
|
| 2 |
+
|
| 3 |
+
name: sql_sandbox
|
| 4 |
+
|
| 5 |
+
type: space
|
| 6 |
+
|
| 7 |
+
runtime: fastapi
|
| 8 |
+
|
| 9 |
+
app: server.app:app
|
| 10 |
+
|
| 11 |
+
port: 7860
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
title: Sql Action Agent
|
| 16 |
+
emoji: 🚀
|
| 17 |
+
colorFrom: blue
|
| 18 |
+
colorTo: indigo
|
| 19 |
+
sdk: docker
|
| 20 |
+
app_port: 7860
|
| 21 |
+
tags:
|
| 22 |
+
- openenv
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
description: >
|
| 27 |
+
|
| 28 |
+
SQL/Data Cleaning Sandbox - a real-world OpenEnv environment where AI agents
|
| 29 |
+
|
| 30 |
+
clean messy databases via SQL and Python. Three tasks from easy to hard with
|
| 31 |
+
|
| 32 |
+
partial-progress grading (0.0-1.0).
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
reward_range: [0.0, 1.0]
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
tasks:
|
| 41 |
+
|
| 42 |
+
- id: easy
|
| 43 |
+
|
| 44 |
+
name: Data Triage
|
| 45 |
+
|
| 46 |
+
difficulty: easy
|
| 47 |
+
|
| 48 |
+
description: Find the total revenue from sales for January 2024.
|
| 49 |
+
|
| 50 |
+
- id: medium
|
| 51 |
+
|
| 52 |
+
name: Data Cleaning
|
| 53 |
+
|
| 54 |
+
difficulty: medium
|
| 55 |
+
|
| 56 |
+
description: Fix duplicate emails, null ages, and case inconsistencies in the users table.
|
| 57 |
+
|
| 58 |
+
- id: hard
|
| 59 |
+
|
| 60 |
+
name: Schema Migration
|
| 61 |
+
|
| 62 |
+
difficulty: hard
|
| 63 |
+
|
| 64 |
+
description: Normalize a flat orders table into customers + orders with foreign keys.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
action_space:
|
| 69 |
+
|
| 70 |
+
type: object
|
| 71 |
+
|
| 72 |
+
properties:
|
| 73 |
+
|
| 74 |
+
tool:
|
| 75 |
+
|
| 76 |
+
type: string
|
| 77 |
+
|
| 78 |
+
enum: [sql, python]
|
| 79 |
+
|
| 80 |
+
command:
|
| 81 |
+
|
| 82 |
+
type: string
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
observation_space:
|
| 87 |
+
|
| 88 |
+
type: object
|
| 89 |
+
|
| 90 |
+
properties:
|
| 91 |
+
|
| 92 |
+
output:
|
| 93 |
+
|
| 94 |
+
type: string
|
| 95 |
+
|
| 96 |
+
error:
|
| 97 |
+
|
| 98 |
+
type: string
|
| 99 |
+
|
| 100 |
+
current_step:
|
| 101 |
+
|
| 102 |
+
type: integer
|
| 103 |
+
|
| 104 |
+
max_steps:
|
| 105 |
+
|
| 106 |
+
type: integer
|
| 107 |
+
|
| 108 |
+
task_description:
|
| 109 |
+
|
| 110 |
+
type: string
|
| 111 |
+
|