UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

22 lines (21 loc) 929 B
import type { SetRequired } from 'type-fest'; import type { string_formfactor_name } from '../../formfactors/_common/string_formfactor_name'; import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; import type { NonEmptyReadonlyArray } from '../../types/NonEmptyArray'; /** * Internal cache for the `getBookTemplates` function, storing retrieved pipelines. * * @singleton * * @private internal cache of `getBookTemplate` */ export declare let pipelines: Array<SetRequired<PipelineJson, 'pipelineUrl'>> | null; /** * Retrieves a collection of Promptbook templates. * * @param formfactorName - optional filter for FORMFACTOR - get only pipelines for this formfactor * @returns list of pipelines * * @public exported from `@promptbook/templates` */ export declare function getBookTemplates(formfactorName?: string_formfactor_name): NonEmptyReadonlyArray<SetRequired<PipelineJson, 'pipelineUrl'>>;