diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d35ccaad..9c2664031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -630,6 +630,15 @@ Implicit formfactors - You don't need to specify the formfactor or input+output params explicitly. Implementing the formfactor interface is sufficient. - Fix in deep cloning of arrays +### In pre-release + +### `0.!!!.0` _(2024-12-)_ + +Parameter types to establish forseen [type system](https://github.com/webgptorg/book/tree/main/pips/pip-0002) + +- Move `expectations` and `format` from `Task` to `Parameter` +- Implicit formfactors - no need to explicitly define them, they are inferred from the pipeline interface + ## Drafts ### `0..0` _(2024--)_ diff --git a/src/pipeline/PipelineJson/CommonTaskJson.ts b/src/pipeline/PipelineJson/CommonTaskJson.ts index 338e50b09..fc58e4cdc 100644 --- a/src/pipeline/PipelineJson/CommonTaskJson.ts +++ b/src/pipeline/PipelineJson/CommonTaskJson.ts @@ -1,14 +1,16 @@ import type { ForeachJson } from '../../commands/FOREACH/ForeachJson'; import type { FormatCommand } from '../../commands/FORMAT/FormatCommand'; -import type { SectionType } from '../../types/SectionType'; -import type { string_javascript } from '../../types/typeAliases'; -import type { string_markdown } from '../../types/typeAliases'; -import type { string_markdown_text } from '../../types/typeAliases'; -import type { string_name } from '../../types/typeAliases'; -import type { string_parameter_name } from '../../types/typeAliases'; -import type { string_postprocessing_function_name } from '../../types/typeAliases'; -import type { string_prompt } from '../../types/typeAliases'; -import type { string_template } from '../../types/typeAliases'; +import { TaskType } from '../../types/TaskType'; +import type { + string_javascript, + string_markdown, + string_markdown_text, + string_name, + string_parameter_name, + string_postprocessing_function_name, + string_prompt, + string_template, +} from '../../types/typeAliases'; import type { Expectations } from './Expectations'; /** @@ -60,7 +62,7 @@ export type CommonTaskJson = { * Type of the execution * This determines if the task is send to LLM, user or some scripting evaluation */ - readonly taskType: SectionType; + readonly taskType: TaskType; /** * Content of the task with {placeholders} for parameters