generate_code
Generate new code from natural-language instructions using a local Ollama model. Optionally provide a context file to guide style and API usage.
Instructions
Generate new code from a natural-language instruction using the local Ollama model.
Pass context_file (a server-side path) instead of pasting an existing
file's contents to give the model style/API context without spending
your own context window on it. Set think=False for faster, simpler
generations; leave think=True for anything non-trivial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| think | No | ||
| language | No | ||
| instruction | Yes | ||
| context_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |