Documentation
¶
Overview ¶
Sandbox example — runs code in an isolated WASM sandbox.
This example demonstrates two ways to use the sandbox:
- Direct — create a WasmProvider, compile & run Go code
- Agent — configure SandboxType, let the agent route CodeInterpreterTool
Prerequisites:
- Go toolchain (for WASM compilation: GOOS=wasip1 GOARCH=wasm)
Usage:
go run main.go # Use Docker sandbox instead: SANDBOX_TYPE=docker go run main.go
Click to show internal directories.
Click to hide internal directories.