Sandbox

Domain: Tools & Function Calling

🎯 Motivation

A safe, isolated environment where code can run without affecting the main system. Essential for code interpreter tools.

πŸ“‹ Concrete Example

The code interpreter runs in a Docker container with no network access, limited CPU and memory. If the agent’s code crashes or has an infinite loop, only the sandbox is affected.

πŸ”— Analogy

A sandbox playground - kids can dig, build, and play freely. If they make a mess, it stays in the sandbox. The rest of the park is unaffected. Code sandboxes contain potential damage.