Processing code
LLMs are very capable of generating and processing code. Here are a couple of patterns to consider when using them for code generation.
Generating code
A key challenge with generating code is that models have a tendency to add a lot of helping text, while you might only want the code. A technique that helps is to structure the output to separate instructions and code.