isTranscriptMessage function

bool isTranscriptMessage(
  1. Map<String, dynamic> entry
)

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';
}