UNPKG

@samchon/openapi

Version:

Universal OpenAPI to LLM function calling schemas. Transform any Swagger/OpenAPI document into type-safe schemas for OpenAI, Claude, Qwen, and more.

15 lines (14 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MapUtil = void 0; var MapUtil; (function (MapUtil) { MapUtil.take = (dict) => (key) => (generator) => { const oldbie = dict.get(key); if (oldbie) return oldbie; const value = generator(); dict.set(key, value); return value; }; })(MapUtil || (exports.MapUtil = MapUtil = {}));