@promptbook/remote-client
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
34 lines (33 loc) • 1.55 kB
TypeScript
import type { ExecutionTools } from '../execution/ExecutionTools';
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
import type { TaskJson } from '../pipeline/PipelineJson/TaskJson';
import type { PrepareAndScrapeOptions } from './PrepareAndScrapeOptions';
type PrepareTaskInput = Pick<PipelineJson, 'tasks' | 'parameters'> & {
/**
* @@@
*/
readonly knowledgePiecesCount: number;
};
type PreparedTasks = {
/**
* @@@ Sequence of tasks that are chained together to form a pipeline
*/
readonly tasksPrepared: ReadonlyArray<TaskJson>;
};
/**
* @@@
*
* @public exported from `@promptbook/core`
*/
export declare function prepareTasks(pipeline: PrepareTaskInput, tools: Pick<ExecutionTools, 'llm' | 'fs' | 'scrapers'>, options: PrepareAndScrapeOptions): Promise<PreparedTasks>;
export {};
/**
* TODO: [😂] Adding knowledge should be convert to async high-level abstractions, simmilar thing with expectations to sync high-level abstractions
* TODO: [🧠] Add context to each task (if missing)
* TODO: [🧠] What is better name `prepareTask` or `prepareTaskAndParameters`
* TODO: [♨][main] !!3 Prepare index the examples and maybe tasks
* TODO: Write tests for `preparePipeline`
* TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
* TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
*/