UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

22 lines (21 loc) 1.08 kB
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson'; import type { PipelineString } from '../pipeline/PipelineString'; import type { RemoteClientOptions } from '../remote-server/types/RemoteClientOptions'; /** * Compile pipeline from string (markdown) format to JSON format * * @see https://github.com/webgptorg/promptbook/discussions/196 * * 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) * @param options - Configuration of the remote server * @returns {Promptbook} compiled in JSON format (.bookc) * @throws {ParseError} if the promptbook string is not valid * @public exported from `@promptbook/remote-client` */ export declare function compilePipelineOnRemoteServer<TCustomOptions = undefined>(pipelineString: PipelineString, options: RemoteClientOptions<TCustomOptions>): Promise<PipelineJson>; /** * TODO: [🐚] Do not return `Promise<PipelineJson>` But `PreparationTask` */