execute_python_code
Execute Python code for deterministic verification of math, logic, and code analysis using symbolic engines like SymPy and Z3.
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. |