cerebras_instruct
Generate code with detailed instructions and documentation. Produces typed interfaces and specs from precise prompts and optional context files.
Instructions
Instruction-following code generation using Cerebras zai-glm-4.7 (355B params, reasoning_format:hidden). Instruction-tuned model for precise instruction following, documentation-heavy code, typed interfaces, and detailed specs.
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": {
"file_path": "<file_path>",
"prompt": "<prompt>"
},
"name": "cerebras_instruct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | REQUIRED: Detailed code generation instructions. Include method signatures, data structures, error handling requirements, and integration details. | |
| file_path | Yes | REQUIRED: Absolute path to the file to create or modify. | |
| max_tokens | No | OPTIONAL: Maximum tokens in the response. | |
| temperature | No | OPTIONAL: Sampling temperature (default 0.1). | |
| context_files | No | OPTIONAL: Array of file paths to read as context for the generation. |