// One machine per run. Commands are steps.const sandbox = await step.sandbox.create("create-sandbox",{name: `analyst-${runId}`,vcpu: 1,memoryMb: 1024,},);const result = await sandbox.commands.run("run-code",["python3", "-c", code],);
Code interpreter
Run AI-generated code
If you ask a question, and your agent writes Python to answer it, that script needs a machine. Each question gets its own sandbox: upload the file, run the code, and the output comes back as the next step.
Read the docs