package com.backendsys.modules.ai.chat.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class ChatSseMessage {

    private String history_code;
    private String content;
    private String content_type;    // (LOADING-加载中, SEARCH-搜索, REPLY-回复, REPLY-回复, REPLY_ABORT-回复中止, THINK-思考, THINK_ABORT-思考中止)
    private Long duration;

    public ChatSseMessage(String contentType, String content) {
        this.content = content;
        this.content_type = contentType;
    }

    public ChatSseMessage(String contentType, String content, Long duration) {
        this.content = content;
        this.content_type = contentType;
        this.duration = duration;
    }

    public ChatSseMessage(String contentType, String content, Long duration, String history_code) {
        this.content = content;
        this.content_type = contentType;
        this.duration = duration;
        this.history_code = history_code;
    }

}
