@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
11 lines (10 loc) • 491 B
TypeScript
import type { string_json } from '../../../types/string_markdown';
/**
* Stringify the PipelineJson with proper formatting
*
* Note: [0] It can be used for more JSON types like whole collection of pipelines, single knowledge piece, etc.
* Note: In contrast to JSON.stringify, this function ensures that **embedding index** is on single line
*
* @public exported from `@promptbook/editable`
*/
export declare function stringifyPipelineJson<TType>(pipeline: TType): string_json<TType>;