generateContent method
STATEFUL batch: stage the whole list into THIS chat, then generate once.
Implementation
Future<ChatMessage> generateContent(List<ChatMessage> prompt) {
return genaiLock.protect(() async {
await _stage(prompt);
return _foldToChatMessage();
});
}