// index.tsimport 'dotenv/config'import { Sandbox } from 'ppio-sandbox/code-interpreter'// The .env file should be located in the project root directory// dotenv/config will automatically look for .env in the current working directory// Or // You can set the environment variable in the command line// export PPIO_API_KEY=sk_***const sandbox = await Sandbox.create()const execution = await sandbox.runCode('print("hello world")')console.log(execution.logs)const files = await sandbox.files.list('/tmp')console.log(files)// 不再使用时,关闭沙箱await sandbox.kill()