"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatHistory = void 0;
const uuid_1 = require("uuid");
class ChatHistory {
    constructor() {
        this.history = [];
        this.sessionId = this.generateSessionId();
    }
    generateSessionId() {
        return (0, uuid_1.v4)();
    }
    getSessionId() {
        return this.sessionId;
    }
    addMessage(message, type) {
        let core_message = {
            role: type,
            content: message
        };
        this.history.push(core_message);
    }
    getHistory() {
        return this.history;
    }
}
exports.ChatHistory = ChatHistory;
