isEmpty property

bool get isEmpty

Whether the conversation is empty (no user/assistant messages).

Implementation

bool get isEmpty => _messages.where((m) => m.role != AIRole.system).isEmpty;