fix_code
Diagnose and fix bugs in code using error messages or symptoms. Provide code or file path for automated correction.
Instructions
Diagnose and fix a bug in code, given an optional error message or symptom.
Provide exactly one of code or file_path. Include error_message
(a stack trace, test failure, or description of wrong behavior) whenever
you have one -- it substantially improves fix quality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| think | No | ||
| file_path | No | ||
| error_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |