UNPKG

hugbot

Version:

Chatbot maker for HuggingFace Inference API and other AI API providers and backends.

14 lines 401 B
/** * Bot storage container. Maps bot id's to their builder functions. * The bot is instantiated during retieval with get() method. */ export const BotStorage = () => { const store = new Map(); const put = (id, fn) => { store.set(id, fn); return { put, get }; }; const get = (id) => store.get(id)(); return { put, get }; }; //# sourceMappingURL=botStorage.js.map