CodeIDE / src /agent /runner.js
FrederickSundeep's picture
commit initial 09-12-2025 001
3589760
raw
history blame
224 Bytes
// src/agent/runner.js
import { api } from "../apiClient";
export async function runCode(code, filename = "main.py") {
const res = await api.post("/execute", { code, filename });
return res.data; // { output, error }
}