╭───────────────────────────────╮
│ 🚀 AGENT SANDBOX RUNTIME │
│ Self-Correcting AI Code Agent │
╰───────────────────────────────╯
📝 Task:
"Fetch data from https://api.example.com/users"
⚡ Attempt 1: Generating code...
╭───────────────────────────────── Generated Code ──────────────────────────────────╮
│ import requests │
│ response = requests.get("https://api.example.com/users") │
│ print(response.json()) │
╰───────────────────────────────────────────────────────────────────────────────────╯
Executing in Docker sandbox...
❌ ERROR:
ModuleNotFoundError: No module named 'requests'
🔍 Critic analyzing...
"The 'requests' library is not installed. Use 'httpx' which is built-in."
⚡ Attempt 2: Generating fixed code...
╭─────────────────────────────────── Fixed Code ────────────────────────────────────╮
│ import httpx │
│ response = httpx.get("https://api.example.com/users") │
│ print(response.json()) │
╰───────────────────────────────────────────────────────────────────────────────────╯
Executing in Docker sandbox...
✅ SUCCESS!
{"users": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]}
🎉 Completed
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Metric ┃ Value ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Attempts │ 2 │
│ Self-Corrections │ 1 │
│ Status │ ✅ Success │
└──────────────────┴────────────┘
The agent fixed its own bug automatically!