root@studio:~$ cd
Tracing route… ///
Tracing route… ///
Best-effort parse of an incomplete/streaming JSON prefix , closes open strings, arrays, and objects so you get a usable value at every step. Never throws on truncation.
Best-effort parse of an incomplete/streaming JSON prefix , closes open strings, arrays, and objects so you get a usable value at every step. Never throws on truncation.
$ npm install congeal@azghr/decantParse Server-Sent Events from a streamed LLM response , cross-chunk safe, spec-correct, transport-agnostic, zero deps.
@azghr/extricateExtract the first (or every) valid JSON value embedded in text or markdown fences from an LLM reply. Locates and parses; does not repair.
@azghr/foreshortenTrim a chat message array to fit a token/size budget , keep the system prompt, pin the most recent turns, never split a message.