enum ChatRole { user, assistant }

class ChatMessage {
  ChatRole role;
  String text;
  bool isFinal;
  final DateTime createdAt;

  ChatMessage({
    required this.role,
    required this.text,
    this.isFinal = false,
    DateTime? createdAt,
  }) : createdAt = createdAt ?? DateTime.now();
}
