@promptbook/fake-llm
Advanced tools
Comparing version 0.81.0-8 to 0.81.0-9
@@ -146,2 +146,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { string_reserved_parameter_name } from '../types/typeAliases'; | ||
@@ -411,2 +412,3 @@ import type { ReservedParameters } from '../types/typeAliases'; | ||
export type { Parameters }; | ||
export type { InputParameters }; | ||
export type { string_reserved_parameter_name }; | ||
@@ -413,0 +415,0 @@ export type { ReservedParameters }; |
import type { Promisable, ReadonlyDeep } from 'type-fest'; | ||
import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; | ||
import type { TaskProgress } from '../../types/TaskProgress'; | ||
import type { Parameters } from '../../types/typeAliases'; | ||
import type { InputParameters } from '../../types/typeAliases'; | ||
import type { PipelineExecutorResult } from '../PipelineExecutorResult'; | ||
@@ -16,3 +16,3 @@ import type { CreatePipelineExecutorOptions } from './00-CreatePipelineExecutorOptions'; | ||
*/ | ||
readonly inputParameters: Readonly<Parameters>; | ||
readonly inputParameters: Readonly<InputParameters>; | ||
/** | ||
@@ -19,0 +19,0 @@ * @@@ |
import type { Promisable } from 'type-fest'; | ||
import type { TaskProgress } from '../types/TaskProgress'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { PipelineExecutorResult } from './PipelineExecutorResult'; | ||
@@ -14,3 +14,3 @@ /** | ||
export type PipelineExecutor = { | ||
(inputParameters: Parameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>; | ||
(inputParameters: InputParameters, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<PipelineExecutorResult>; | ||
}; | ||
@@ -17,0 +17,0 @@ /** |
import type { TupleToUnion } from 'type-fest'; | ||
import { RESERVED_PARAMETER_NAMES } from '../constants'; | ||
import type { really_unknown } from '../utils/organization/really_unknown'; | ||
/** | ||
@@ -111,2 +112,9 @@ * Semantic helper | ||
/** | ||
* Parameters to pass to execution of the pipeline | ||
* | ||
* Note: [π] This should be fully serializable as JSON | ||
* @see https://ptbk.io/parameters | ||
*/ | ||
export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>; | ||
/** | ||
* Semantic helper | ||
@@ -113,0 +121,0 @@ * Unique identifier of reserved parameter |
import { Promisable } from 'type-fest'; | ||
import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult'; | ||
import type { TaskProgress } from '../types/TaskProgress'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { InputParameters } from '../types/typeAliases'; | ||
import type { string_pipeline_url } from '../types/typeAliases'; | ||
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
run(book: string_pipeline_url, inputParameters: Parameters, onProgress?: ((taskProgress: TaskProgress) => Promisable<void>) | undefined): Promise<PipelineExecutorResult>; | ||
execute(book: string_pipeline_url, inputParameters: InputParameters, onProgress?: ((taskProgress: TaskProgress) => Promisable<void>) | undefined): Promise<PipelineExecutorResult>; | ||
}; | ||
@@ -18,0 +18,0 @@ /** |
{ | ||
"name": "@promptbook/fake-llm", | ||
"version": "0.81.0-8", | ||
"version": "0.81.0-9", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -57,3 +57,3 @@ "--note-0": " <- [π]", | ||
"peerDependencies": { | ||
"@promptbook/core": "0.81.0-8" | ||
"@promptbook/core": "0.81.0-9" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
892511
16880