UNPKG

@promptbook/azure-openai

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

15 lines (14 loc) 890 B
import type { ReadonlyDeep } from 'type-fest'; import type { TaskJson } from '../../pipeline/PipelineJson/TaskJson'; import type { string_markdown } from '../../types/typeAliases'; import type { string_parameter_value } from '../../types/typeAliases'; /** * Returns the context for a given task, typically used to provide additional information or variables * required for the execution of the task within a pipeline. The context is returned as a string value * that may include markdown formatting. * * @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object. * @returns The context as a string, formatted as markdown and parameter value. * @private internal utility of `createPipelineExecutor` */ export declare function getContextForTask(task: ReadonlyDeep<TaskJson>): Promise<string_parameter_value & string_markdown>;