generateContentFromText method
Generates a response from the backend with the provided text represented Content.
prompt The text to be converted into a single piece of Content to send to the model.
Returns a GenerateContentResponse after some delay. Function should be called within a
async function to properly manage concurrency.
Implementation
Future<GenerateContentResponse> generateContentFromText(String prompt) async {
return generateContent([content(init: (builder){
builder.text(prompt);
})]);
}