@promptbook/remote-client
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
38 lines (37 loc) • 1.42 kB
TypeScript
import { ReadonlyDeep } from 'type-fest';
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
import type { Parameters } from '../types/typeAliases';
import type { AbstractTaskResult } from './AbstractTaskResult';
import type { ExecutionReportJson } from './execution-report/ExecutionReportJson';
import type { Usage } from './Usage';
/**
* @@@
*
* Note: [🚉] This is fully serializable as JSON
*/
export type PipelineExecutorResult = AbstractTaskResult & {
/**
* Result parameters of the execution
*
* Note: If the execution was not successful, there are only some of the result parameters
*/
readonly outputParameters: Readonly<Parameters>;
/**
* Added usage of whole execution, detailed usage is available in `executionReport`
*/
readonly usage: ReadonlyDeep<Usage>;
/**
* The report of the execution with all details
*/
readonly executionReport: ReadonlyDeep<ExecutionReportJson>;
/**
* The prepared pipeline that was used for the execution
*
* Note: If you called `createPipelineExecutor` with fully prepared pipeline, this is the same object as this pipeline
* If you passed not fully prepared pipeline, this is same pipeline but fully prepared
*/
readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
};
/**
* TODO: [🧠] Should this file be in /execution or /types folder?
*/