execute_python_code
Run Python code with symbolic engines like SymPy and Z3 to verify math, logic, and code analysis deterministically.
Instructions
Executes Python code in a subprocess with restricted environment variables. Note: This runs with server privileges; ensure inputs are trusted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Python code to execute. | |
| background | No | Execute asynchronously in the background and return a tracking job_id. Set to True for heavy logic verifications. |