llama_infill
Generate code completions that fill in missing sections between a given prefix and suffix, enabling efficient code generation within existing code context.
Instructions
Code completion with prefix and suffix context (fill-in-middle)
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": {
"input_prefix": "<input_prefix>",
"input_suffix": "<input_suffix>"
},
"name": "llama_infill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_prefix | Yes | Code before cursor | |
| input_suffix | Yes | Code after cursor | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature (0-2) | |
| stop | No | Stop sequences |