tsm_codegen_small_patch
Generate small code snippets or function-level patches for single functions, regex, SQL, scripts, or unit tests using a budget model, reducing token consumption on the main model.
Instructions
Generate small code snippets or function-level patches using a budget model. Scoped to single functions, regex, SQL, scripts, or unit test samples. NOT for multi-file or architectural designs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Description of what the code snippet should do | |
| language | No | Target programming language | |
| constraints | No | Additional constraints or requirements | |
| existing_code | No | Existing code context for the patch |