UNPKG

llm-json-fix

Version:

Fix malformed JSON outputs from Large Language Models (LLMs)

16 lines (15 loc) 1.1 kB
"use strict"; /** * LLM JSON Fix - A library for fixing malformed JSON outputs from LLMs * * @packageDocumentation */ Object.defineProperty(exports, "__esModule", { value: true }); exports.BufferLimitExceededError = exports.AmbiguousRepairError = exports.UnrepairableJSONError = exports.LLMJSONFixError = exports.fixLLMJson = void 0; const jsonFix_1 = require("./regular/jsonFix"); Object.defineProperty(exports, "fixLLMJson", { enumerable: true, get: function () { return jsonFix_1.fixLLMJson; } }); const errors_1 = require("./utils/errors"); Object.defineProperty(exports, "LLMJSONFixError", { enumerable: true, get: function () { return errors_1.LLMJSONFixError; } }); Object.defineProperty(exports, "UnrepairableJSONError", { enumerable: true, get: function () { return errors_1.UnrepairableJSONError; } }); Object.defineProperty(exports, "AmbiguousRepairError", { enumerable: true, get: function () { return errors_1.AmbiguousRepairError; } }); Object.defineProperty(exports, "BufferLimitExceededError", { enumerable: true, get: function () { return errors_1.BufferLimitExceededError; } });