UNPKG

@promptbook/gemini

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

18 lines (17 loc) 813 B
import type { UserInterfaceTools } from '../../execution/UserInterfaceTools'; import type { UserInterfaceToolsPromptDialogOptions } from '../../execution/UserInterfaceTools'; import type { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions'; /** * Delagates 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>; }