UNPKG

genai

Version:

Universal Generative AI (GenAI) Settings for GenAI applications

20 lines (19 loc) 647 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const lodash_1 = __importDefault(require("lodash")); class GenAIObject { constructor() { this.id = this.createID(); } // return a deep dopy of the object using lodash deepclone and type the return type as the current object copy() { return lodash_1.default.cloneDeep(this); } createID() { return lodash_1.default.uniqueId(); } } exports.default = GenAIObject;