@ai2070/l0
Version:
L0: The Missing Reliability Substrate for AI
8 lines • 1.16 kB
TypeScript
import type { PipelineStep, PipelineOptions, PipelineResult, StepContext, Pipeline } from "./types/pipeline";
export declare function pipe<TInput = any, TOutput = any>(steps: PipelineStep[], input: TInput, options?: PipelineOptions): Promise<PipelineResult<TOutput>>;
export declare function createPipeline<TInput = any, TOutput = any>(steps: PipelineStep[], options?: PipelineOptions): Pipeline<TInput, TOutput>;
export declare function createStep<TInput = string>(name: string, promptFn: (input: TInput) => string, streamFactory: (prompt: string) => any): PipelineStep<TInput, string>;
export declare function chainPipelines<TInput = any, TOutput = any>(...pipelines: Pipeline[]): Pipeline<TInput, TOutput>;
export declare function parallelPipelines<TInput = any, TOutput = any>(pipelines: Pipeline[], input: TInput, combiner: (results: PipelineResult[]) => TOutput): Promise<TOutput>;
export declare function createBranchStep<TInput = any>(name: string, condition: (input: TInput, context: StepContext) => boolean | Promise<boolean>, ifTrue: PipelineStep<TInput>, ifFalse: PipelineStep<TInput>): PipelineStep<TInput>;
//# sourceMappingURL=pipeline.d.ts.map