@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
26 lines (25 loc) • 950 B
TypeScript
import type { Promisable } from 'type-fest';
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
import type { Prompt } from '../types/Prompt';
import type { string_pipeline_url } from '../types/typeAliases';
/**
* Collection that groups together pipelines, knowledge, personas, tools and actions
*/
export type PipelineCollection = {
/**
* Gets all pipelines in the collection
*/
listPipelines(): Promisable<ReadonlyArray<string_pipeline_url>>;
/**
* Gets pipeline by its URL
*
* Note: This is not a direct fetching from the URL, but a lookup in the collection
*/
getPipelineByUrl(url: string_pipeline_url): Promisable<PipelineJson>;
/**
* Checks whether given prompt was defined in any pipeline in the collection
*
* @deprecated Make better mechanism for skimming the remote server
*/
isResponsibleForPrompt(prompt: Prompt): Promisable<boolean>;
};