extract_function
Extract a named function into a standalone program with its imports and helpers, then run it in the sandbox. Uses AST for Python, best-effort for other languages.
Instructions
Extract a named function (with its imports + referenced helpers) into a standalone program and run it in the sandbox.
python3 gets exact ast extraction; other languages best-effort block
extraction (pass call to execute non-python). Returns the extracted
program and per-input runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call | No | ||
| code | Yes | ||
| language | Yes | ||
| test_inputs | No | ||
| function_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||