Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

260 B
Raw Blame
export function stringifyJsonDocument(value, replacer, space) {
    const text = JSON.stringify(value, replacer, space);
    if (typeof text !== "string") {
        throw new TypeError("value is not representable as a JSON document");
    }
    return text;
}