I then take the response and validate that it can be compiled, if so it gets compiled at runtime, however if there are issues I re-try (up to 3 times) and send a new prompt to ChatGPT which includes the exception message to avoid getting the same error again.