package com.huimv.employment.integration.kb;

/**
 * 会话落库场景：SSE 收集结果。
 */
public class ConsoleChatCollectResult {

    private final String assistantText;
    private final boolean completed;
    /** 未转发的最后一条终端 SSE 原始行，可为 null */
    private final String heldTerminalLine;

    public ConsoleChatCollectResult(String assistantText, boolean completed, String heldTerminalLine) {
        this.assistantText = assistantText == null ? "" : assistantText;
        this.completed = completed;
        this.heldTerminalLine = heldTerminalLine;
    }

    public String getAssistantText() {
        return assistantText;
    }

    public boolean isCompleted() {
        return completed;
    }

    public String getHeldTerminalLine() {
        return heldTerminalLine;
    }
}
