@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
21 lines (20 loc) • 1.04 kB
TypeScript
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
import type { PipelineString } from '../pipeline/PipelineString';
/**
* Compile pipeline from string (markdown) format to JSON format synchronously
*
* Note: There are 3 similar functions:
* - `compilePipeline` **(preferred)** - which properly compiles the promptbook and uses embedding for external knowledge
* - `parsePipeline` - use only if you need to compile promptbook synchronously and it contains NO external knowledge
* - `preparePipeline` - just one step in the compilation process
*
* Note: This function does not validate logic of the pipeline only the parsing
* Note: This function acts as compilation process
*
* @param pipelineString {Promptbook} in string markdown format (.book.md)
* @returns {Promptbook} compiled in JSON format (.bookc)
* @throws {ParseError} if the promptbook string is not valid
*
* @public exported from `@promptbook/core`
*/
export declare function parsePipeline(pipelineString: PipelineString): PipelineJson;