@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
18 lines (17 loc) • 813 B
TypeScript
import type { UserInterfaceTools } from '../../execution/UserInterfaceTools';
import type { UserInterfaceToolsPromptDialogOptions } from '../../execution/UserInterfaceTools';
import type { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions';
/**
* Delegates the user interaction to a async callback function
* You need to provide your own implementation of this callback function and its bind to UI.
*
* @public exported from `@promptbook/core`
*/
export declare class CallbackInterfaceTools implements UserInterfaceTools {
protected readonly options: CallbackInterfaceToolsOptions;
constructor(options: CallbackInterfaceToolsOptions);
/**
* Trigger the custom callback function
*/
promptDialog(options: UserInterfaceToolsPromptDialogOptions): Promise<string>;
}