@hashbrownai/core
Version:
Runtime helpers for Hashbrown AI
20 lines • 833 B
TypeScript
/**
* Skillet is an LLM-optimized streaming JSON Parser - perfectly suited for streaming hot and fresh JSON.
*
* Portions of this code are derived from partial-json (MIT License) (https://github.com/promplate/partial-json-parser-js).
* See the LICENSE file in the project root for full license text.
*
* @license MIT
* @author LiveLoveApp, LLC
* @see https://github.com/liveloveapp/hashbrown
* @see https://github.com/promplate/partial-json-parser-js
*/
import * as s from '../schema/base';
declare class PartialJSON extends Error {
}
declare class MalformedJSON extends Error {
}
declare function parseJSON(jsonString: string, schema: s.HashbrownType, assumeFinishedMessage: boolean): any;
declare const parse: typeof parseJSON;
export { parse, parseJSON, PartialJSON, MalformedJSON };
//# sourceMappingURL=parser.d.ts.map