sandbox

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Sandbox example — runs code in an isolated WASM sandbox.

This example demonstrates two ways to use the sandbox:

  1. Direct — create a WasmProvider, compile & run Go code
  2. 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL