import 'package:electronic_assistant/data/bean/chat_item.dart';
import 'package:get/get.dart';

class ProgressingChatItem extends ChatItem {
  final RxString streamContent = "".obs;

  final RxBool isFinished = false.obs;

  final RxBool isFailed = false.obs;

  final RxString error = "".obs;

  ProgressingChatItem(
      {required super.id,
      required super.conversationId,
      required super.role,
      required super.content,
      required super.createTime});

  void append(String content) {
    streamContent.value += content;
  }
}
