UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

28 lines (27 loc) 1.01 kB
import type { PipelineJson } from '../PipelineJson/PipelineJson'; import type { PipelineInterface } from './PipelineInterface'; /** * Options for the `isPipelineImplementingInterface` function. * * @see https://github.com/webgptorg/promptbook/discussions/171 */ export type IsPipelineImplementingInterfaceOptions = { /** * @param pipeline The pipeline to check. */ pipeline: PipelineJson; /** * @param pipelineInterface The interface to check against. */ pipelineInterface: PipelineInterface; }; /** * Checks if a given pipeline satisfies the requirements of a specified pipeline interface. * * @deprecated https://github.com/webgptorg/promptbook/pull/186 * @see https://github.com/webgptorg/promptbook/discussions/171 * @returns `true` if the pipeline implements the interface, `false` otherwise. * * @public exported from `@promptbook/core` */ export declare function isPipelineImplementingInterface(options: IsPipelineImplementingInterfaceOptions): boolean;