ChatMessage constructor

const ChatMessage({
  1. required String message,
  2. required bool isUser,
  3. bool isWaiting = false,
  4. DateTime? timestamp,
  5. String type = 'content',
  6. String? threadId,
  7. List<Map<String, dynamic>>? citations,
})

Implementation

const ChatMessage({
  required this.message,
  required this.isUser,
  this.isWaiting = false,
  this.timestamp,
  this.type =
      'content', // Default to content for user messages or direct adds
  this.threadId,
  this.citations,
});