@ziro-agent/sandbox-e2b
v0.2.7
Published
E2B code-interpreter adapter for ZiroAgent `SandboxAdapter` (RFC 0013).
Downloads
447
Readme
@ziro-agent/sandbox-e2b
Maps an E2B code interpreter sandbox to ZiroAgent SandboxAdapter for use with createCodeInterpreterTool() from @ziro-agent/tools.
Install
pnpm add @ziro-agent/sandbox-e2b @e2b/code-interpreter @ziro-agent/coreSet E2B_API_KEY in your environment.
Usage
import { Sandbox } from '@e2b/code-interpreter';
import { createCodeInterpreterTool } from '@ziro-agent/tools';
import { createE2bSandboxAdapter } from '@ziro-agent/sandbox-e2b';
const e2b = await Sandbox.create();
const sandbox = createE2bSandboxAdapter({ sandbox: e2b });
const codeInterpreter = createCodeInterpreterTool({ sandbox });