@promptbook/gemini
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
16 lines (15 loc) • 721 B
TypeScript
import type { ReadonlyDeep } from 'type-fest';
import type { TaskJson } from '../../pipeline/PipelineJson/TaskJson';
import type { string_parameter_name } from '../../types/typeAliases';
/**
* Parses the task and returns the set of all used parameters
*
* @param task the task with used parameters
* @returns the set of parameter names
* @throws {ParseError} if the script is invalid
* @public exported from `@promptbook/utils`
*/
export declare function extractParameterNamesFromTask(task: ReadonlyDeep<Pick<TaskJson, 'title' | 'description' | 'taskType' | 'content' | 'preparedContent' | 'jokerParameterNames' | 'foreach'>>): Set<string_parameter_name>;
/**
* TODO: [🔣] If script require contentLanguage
*/