@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
16 lines (15 loc) • 897 B
TypeScript
import type { ReadonlyDeep } from 'type-fest';
import type { TaskJson } from '../../pipeline/PipelineJson/TaskJson';
import type { string_markdown } from '../../types/string_markdown';
import type { string_parameter_value } from '../../types/string_name';
/**
* 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>;