Spaces:
Sleeping
Sleeping
File size: 995 Bytes
2f8e591 | 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 | name: sql-debug-env
version: "1.0.0"
description: >
An environment where an AI agent debugs and fixes broken SQL queries
against an in-memory SQLite database. Real-world data analyst task.
author: "OpenENV Contributor"
tasks:
- name: fix-syntax
difficulty: easy
description: Fix a SQL query with a simple syntax error (missing comma between column names).
- name: fix-logic
difficulty: medium
description: Fix a query with wrong JOIN type (INNER→LEFT) and incorrect date filter (>→>=).
- name: fix-and-optimize
difficulty: hard
description: Fix a multi-step correlated subquery (wrong alias + missing GROUP BY); bonus for CTE rewrite.
action_space:
type: text
description: A SQL query string submitted by the agent as its fix attempt.
observation_space:
schema_str: string
task_description: string
broken_query: string
last_error: string or null
last_output: string or null
step_number: integer
episode:
max_steps: 8
reset_on_done: true
|