retort-js
Version:
Intuitive, production-ready prompt chaining in Javascript
10 lines (9 loc) • 480 B
TypeScript
import { RetortScriptImport } from "./conversation";
import { Retort } from "./retort";
import { ChatFunction } from "./retort";
export type RetortRunOptions = {
shouldSaveToLog?: boolean;
shouldUseCache?: boolean;
};
export type RetortRunnable<T> = Promise<RetortScriptImport<T>> | Retort<T> | RetortScriptImport<T> | ChatFunction<T>;
export declare function run<T>(promiseOrRetortOrChatFunction: RetortRunnable<T>, params?: any, options?: RetortRunOptions): Promise<T>;