@abox-dev/code-interpreter
v0.2.1
Published
AgentBox Code Interpreter - Stateful code execution
Maintainers
Readme
@abox-dev/code-interpreter
Stateful Python, JavaScript, and TypeScript execution in an AgentBox sandbox.
npm install @abox-dev/code-interpreterCreate an API key using the API key guide and set AGENTBOX_API_KEY.
import { Sandbox } from '@abox-dev/code-interpreter'
const sandbox = await Sandbox.create()
try {
const execution = await sandbox.runCode('x = 1; x += 1; x')
console.log(execution.text)
} finally {
await sandbox.kill()
}See the Code Interpreter guide and API reference.
