Execute the code that your model writes and receive stdout, stderr, and the exit code
Send the code that your model writes to the execute endpoint, together with its language and a timeout. Runtime returns stdout, stderr, and the exit code, then destroys the container.
Impact
Runtime creates the sandbox, enforces the timeout, and removes the container for each snippet, so the only sandbox code in your AI feature is one API call.