Recommended Integration Loop
- Receive user request.
- Create or reuse a runtime.
- Execute generated code or terminal commands.
- Read outputs/files.
- Return a summarized answer.
- Clean up runtime resources.
Example
Production Guidance
- Always use cleanup in
finallyblocks. - Keep API keys in environment variables.
- Use SSH only when an operator needs direct shell access.
Code Execution
Run Python and JavaScript in isolated runtimes
Terminal Execution
Run shell commands and CLI tooling