generateResponse abstract method
Generates a response from the LLM based on the given prompt.
prompt - The input prompt to send to the model.
context - Optional list of context strings to prepend to the prompt.
Returns the generated text response.
Throws Exception if the request fails.
Implementation
Future<String> generateResponse(String prompt, {List<String>? context});