CodeDark Environment Server

OpenEnv-compatible multi-turn data analytics environment for RL agent training.

25
Tasks
750K
Bank Rows
500K
Road Rows
5
Tools

API Endpoints

GET /health - Health check
POST /reset - Reset for new episode
POST /step - Execute action
GET /state - Current state
GET /metadata - Environment info
GET /schema - Type schemas
GET /docs - Interactive API docs

Quick Start

import requests

BASE = "https://albert-einstein-09-codedark.hf.space"

# Reset for new task
obs = requests.post(f"{BASE}/reset").json()
print(f"Task: {obs['question']}")

# Run Python code
obs = requests.post(f"{BASE}/step", json={
    "tool": "run_python",
    "args": "<code>result = df.shape</code>"
}).json()
print(f"Result: {obs['stdout']}")

# Submit answer
obs = requests.post(f"{BASE}/step", json={
    "tool": "submit_answer",
    "args": "<answer>42.5</answer>"
}).json()
print(f"Reward: {obs['reward']}")
        

Tools

Links

Interactive API Docs | GitHub | Leaderboard