@promptbook/gemini
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
30 lines (29 loc) • 1.25 kB
TypeScript
import type { Expectations } from '../../pipeline/PipelineJson/Expectations';
/**
* Function checkExpectations will check if the expectations on given value are met
*
* Note: There are two simmilar 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 simmilar 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;
/**
* TODO: [💝] Unite object for expecting amount and format
* TODO: [🧠][🤠] This should be part of `TextFormatDefinition`
* Note: [💝] and [🤠] are interconnected together
*/