UNPKG

@promptbook/gemini

Version:

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

52 lines (51 loc) โ€ข 1.52 kB
import type { Promisable, ReadonlyDeep, WritableDeep } from 'type-fest'; import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; import type { TaskJson } from '../../pipeline/PipelineJson/TaskJson'; import type { TaskProgress } from '../../types/TaskProgress'; import type { Parameters } from '../../types/typeAliases'; import type { ExecutionReportJson } from '../execution-report/ExecutionReportJson'; import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorOptions'; /** * @@@ * * @private internal type of `executeTask` */ type executeSingleTaskOptions = Required<CreatePipelineExecutorOptions> & { /** * @@@ */ readonly currentTask: ReadonlyDeep<TaskJson>; /** * @@@ */ readonly preparedPipeline: ReadonlyDeep<PipelineJson>; /** * @@@ */ readonly parametersToPass: Readonly<Parameters>; /** * @@@ */ readonly onProgress: (taskProgress: TaskProgress) => Promisable<void>; /** * @@@ */ readonly $executionReport: WritableDeep<ExecutionReportJson>; /** * @@@ */ readonly pipelineIdentification: string; }; /** * @@@ * * @private internal utility of `createPipelineExecutor` */ export declare function executeTask(options: executeSingleTaskOptions): Promise<Readonly<Parameters>>; export {}; /** * TODO: [๐Ÿคนโ€โ™‚๏ธ] */ /** * TODO: [๐Ÿš] Change onProgress to object that represents the running execution, can be subscribed via RxJS to and also awaited */