Sandboxed code execution with language allowlists and SDK integration. Wraps praisonaiagents.tools.code.execute_code when available, falls back to safe simulation mode.
praisonaiagents.tools.code.execute_code
1. Code is submitted with a target language
2. The manager checks if the language is in the allowlist (default: python, javascript, bash)
3. If praisonaiagents is installed, delegates to execute_code for real execution
praisonaiagents
execute_code
4. Otherwise returns a simulation response with the code size
| Endpoint | Method | Description |
|----------|--------|-------------|
| /api/code/languages | GET | List supported languages |
/api/code/languages
| /api/code/execute | POST | Execute code in sandbox |
/api/code/execute