@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
26 lines (25 loc) • 1.45 kB
TypeScript
import type { ExecutionTools } from '../execution/ExecutionTools';
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
import type { PipelineString } from '../pipeline/PipelineString';
import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
/**
* 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 tools - Tools for the preparation and scraping - if not provided together with `llm`, the preparation will be skipped
* @param options - Options and tools for the compilation
* @returns {Promptbook} compiled in JSON format (.bookc)
* @throws {ParseError} if the promptbook string is not valid
* @public exported from `@promptbook/core`
*/
export declare function compilePipeline(pipelineString: PipelineString, tools?: Pick<ExecutionTools, 'llm' | 'fs' | 'scrapers'>, options?: PrepareAndScrapeOptions): Promise<PipelineJson>;
/**
* TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
* TODO: [🧠] Should be in generated JSON file GENERATOR_WARNING
*/