Fix Code
fix_codeSubmit broken code with compiler errors or review comments to receive a corrected version addressing all reported issues. Review the fix before accepting.
Instructions
Fix bugs in code based on errors or review feedback.
Provide the broken code along with compiler/runtime errors and/or reviewer comments. The local model will return a corrected version that addresses all reported issues.
IMPORTANT: Always review the returned fix before accepting it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code that contains bugs or issues. | |
| errors | No | Compiler errors, runtime exceptions, or test failure output. Paste the exact error messages. | |
| language | Yes | Programming language of the code. | |
| max_tokens | No | Max tokens override. | |
| temperature | No | Temperature override. | |
| review_comments | No | Code review feedback describing what's wrong and what needs to change. Be specific about the issues. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The generated artefact (code, tests, documentation). None on failure. | |
| error | No | Human-readable error message. None on success. | |
| success | Yes | Whether the generation completed successfully. | |
| metadata | No | Auxiliary data: token usage, elapsed time, quality warnings, etc. |