UNPKG

@promptbook/remote-server

Version:

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

27 lines (26 loc) 1.06 kB
import type { Expectations } from '../../pipeline/PipelineJson/Expectations'; /** * Function checkExpectations will check if the expectations on given value are met * * Note: There are two similar functions: * - `checkExpectations` which throws an error if the expectations are not met * - `isPassingExpectations` which returns a boolean * * @throws {ExpectError} if the expectations are not met * @returns {void} Nothing * * @private internal function of `createPipelineExecutor` */ export declare function checkExpectations(expectations: Expectations, value: string): void; /** * Function checkExpectations will check if the expectations on given value are met * * Note: There are two similar functions: * - `checkExpectations` which throws an error if the expectations are not met * - `isPassingExpectations` which returns a boolean * * @returns {boolean} True if the expectations are met * * @public exported from `@promptbook/core` */ export declare function isPassingExpectations(expectations: Expectations, value: string): boolean;