@promptbook/cli 0.69.0-4 → 0.69.0-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/esm/index.es.js +166 -113
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +1 -1
  4. package/esm/typings/src/_packages/types.index.d.ts +2 -2
  5. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +5 -3
  6. package/esm/typings/src/execution/createPipelineExecutor/{CreatePipelineExecutorOptions.d.ts → 00-CreatePipelineExecutorOptions.d.ts} +1 -1
  7. package/esm/typings/src/execution/createPipelineExecutor/{CreatePipelineExecutorSettings.d.ts → 00-CreatePipelineExecutorSettings.d.ts} +4 -4
  8. package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +10 -0
  9. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +55 -0
  10. package/esm/typings/src/execution/createPipelineExecutor/20-executeTemplate.d.ts +62 -0
  11. package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatCell.d.ts +30 -0
  12. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempt.d.ts +30 -0
  13. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +28 -2
  14. package/esm/typings/src/execution/createPipelineExecutor/getContextForTemplate.d.ts +3 -1
  15. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTemplate.d.ts +20 -2
  16. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTemplate.d.ts +24 -2
  17. package/esm/typings/src/execution/createPipelineExecutor/getSamplesForTemplate.d.ts +3 -1
  18. package/package.json +1 -1
  19. package/umd/index.umd.js +166 -113
  20. package/umd/index.umd.js.map +1 -1
  21. package/esm/typings/src/execution/createPipelineExecutor/createPipelineExecutor.d.ts +0 -24
  22. package/esm/typings/src/execution/createPipelineExecutor/executeSingleTemplate.d.ts +0 -27
@@ -1,24 +0,0 @@
1
- import type { PipelineExecutor } from '../PipelineExecutor';
2
- import type { CreatePipelineExecutorOptions } from './CreatePipelineExecutorOptions';
3
- /**
4
- * Creates executor function from pipeline and execution tools.
5
- *
6
- * @returns The executor function
7
- * @throws {PipelineLogicError} on logical error in the pipeline
8
- * @public exported from `@promptbook/core`
9
- */
10
- export declare function createPipelineExecutor(options: CreatePipelineExecutorOptions): PipelineExecutor;
11
- /**
12
- * TODO: [🤹‍♂️] Make some smarter system for limiting concurrent executions MAX_PARALLEL_TOTAL, MAX_PARALLEL_PER_LLM
13
- * TODO: !!! Identify not only pipeline BUT exact template ${block(pipelineIdentification)}
14
- * TODO: Use isVerbose here (not only pass to `preparePipeline`)
15
- * TODO: [🧠][🌳] Use here `countTotalUsage` and put preparation and prepared pipiline to report
16
- * TODO: [🪂] Use maxParallelCount here (not only pass to `preparePipeline`)
17
- * TODO: [♈] Probbably move expectations from templates to parameters
18
- * TODO: [🧠] When not meet expectations in DIALOG_TEMPLATE, make some way to tell the user
19
- * TODO: [👧] Strongly type the executors to avoid need of remove nullables whtn noUncheckedIndexedAccess in tsconfig.json
20
- * Note: CreatePipelineExecutorOptions are just connected to PipelineExecutor so do not extract to types folder
21
- * TODO: [🧠][🍸] transparent = (report intermediate parameters) / opaque execution = (report only output parameters) progress reporting mode
22
- * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
23
- * TODO: [🧠][💷] `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result BUT maybe NOT to preserve pure JSON object
24
- */
@@ -1,27 +0,0 @@
1
- import { Promisable, ReadonlyDeep } from 'type-fest';
2
- import type { ExecutionReportJson } from '../../types/execution-report/ExecutionReportJson';
3
- import type { ExecutionTools } from '../ExecutionTools';
4
- import { MultipleLlmExecutionTools } from '../../llm-providers/multiple/MultipleLlmExecutionTools';
5
- import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
6
- import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
7
- import type { TaskProgress } from '../../types/TaskProgress';
8
- import type { Parameters } from '../../types/typeAliases';
9
- type executeSingleTemplateOptions = {
10
- currentTemplate: ReadonlyDeep<TemplateJson>;
11
- preparedPipeline: ReadonlyDeep<PipelineJson>;
12
- parametersToPass: Readonly<Parameters>;
13
- tools: Omit<ExecutionTools, 'llm'>;
14
- llmTools: MultipleLlmExecutionTools;
15
- onProgress: (taskProgress: TaskProgress) => Promisable<void>;
16
- maxExecutionAttempts: number;
17
- $executionReport: ExecutionReportJson;
18
- pipelineIdentification: string;
19
- };
20
- /**
21
- * @private @@@
22
- */
23
- export declare function executeSingleTemplate(options: executeSingleTemplateOptions): Promise<Readonly<Parameters>>;
24
- export {};
25
- /**
26
- * TODO: [🤹‍♂️]
27
- */