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 & { /** * @@@ */ readonly knowledgePiecesCount: number; }; type PreparedTasks = { /** * @@@ Sequence of tasks that are chained together to form a pipeline */ readonly tasksPrepared: ReadonlyArray; }; /** * @@@ * * @public exported from `@promptbook/core` */ export declare function prepareTasks(pipeline: PrepareTaskInput, tools: Pick, options: PrepareAndScrapeOptions): Promise; export {}; /** * TODO: [🧠] Add context to each task (if missing) * TODO: [🧠] What is better name `prepareTask` or `prepareTaskAndParameters` * TODO: [♨][main] !!! 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 */