draft_code_patch
Generate a minimal unified diff for a low-risk code change using a Chinese LLM. Review and test the patch before applying.
Instructions
Ask a Chinese LLM provider to draft a minimal unified diff for a small code task. Use this only for low-risk changes, then inspect and test the patch before applying it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"files": "<files>"
},
"name": "draft_code_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The code change to draft. | |
| files | Yes | Relevant file paths and contents. Keep this list small. | |
| max_tokens | No | ||
| constraints | No | Extra implementation constraints. | |
| temperature | No |