isTranscriptMessage function
Check if an entry is a transcript message (user, assistant, attachment, system).
Implementation
bool isTranscriptMessage(Map<String, dynamic> entry) {
final type = entry['type'];
return type == 'user' ||
type == 'assistant' ||
type == 'attachment' ||
type == 'system';
}