UNPKG

@promptbook/gemini

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

14 lines (13 loc) 653 B
import type { PipelineExecutorResult } from './PipelineExecutorResult'; /** * Asserts that the execution of a Promptbook is successful * * @param executionResult - The partial result of the Promptbook execution * @throws {PipelineExecutionError} If the execution is not successful or if multiple errors occurred * @public exported from `@promptbook/core` */ export declare function assertsExecutionSuccessful(executionResult: Pick<PipelineExecutorResult, 'isSuccessful' | 'errors'>): void; /** * TODO: [🐚] This function should be removed OR changed OR be completely rewritten * TODO: [🧠] Can this return type be better typed than void */