"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConversationHistoryModel = void 0;
class ConversationHistoryModel {
    constructor() {
        this.conversationHistory = [];
    }
    appendAIMessage({ content, tokenLength }) {
        this.conversationHistory.push({ key: "ai", content, tokenLength });
    }
    appendUserMessage({ content, tokenLength }) {
        this.conversationHistory.push({ key: "user", content, tokenLength });
    }
    getConversationHistory() {
        const deepCopy = JSON.parse(JSON.stringify(this.conversationHistory));
        return deepCopy;
    }
    resetConversationHistory() {
        this.conversationHistory = [];
    }
}
exports.ConversationHistoryModel = ConversationHistoryModel;
