UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

24 lines (23 loc) 772 B
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; import type { TaskJson } from '../../pipeline/PipelineJson/TaskJson'; import type { string_href } from '../../types/string_href'; /** * Additional options for rendering Mermaid graph */ export type renderPipelineMermaidOptions = { /** * Callback for creating from task graph node */ linkTask?(task: TaskJson): { href: string_href; title: string; } | null; }; /** * Creates a Mermaid graph based on the promptbook * * Note: The result is not wrapped in a Markdown code block * * @public exported from `@promptbook/utils` */ export declare function renderPromptbookMermaid(pipelineJson: PipelineJson, options?: renderPipelineMermaidOptions): string;