@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
23 lines (22 loc) • 966 B
TypeScript
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';
import type { UserInterfaceTools } from '../../execution/UserInterfaceTools';
import type { UserInterfaceToolsPromptDialogOptions } from '../../execution/UserInterfaceTools';
/**
* Wrapper around `window.prompt` synchronous function that interacts with the user via browser prompt
*
* Warning: It is used for testing and mocking
* **NOT intended to use in the production** due to its synchronous nature.
*
* @public exported from `@promptbook/browser`
*/
export declare class SimplePromptInterfaceTools implements UserInterfaceTools {
protected readonly options: CommonToolsOptions;
constructor(options?: CommonToolsOptions);
/**
* Trigger window.prompt dialog
*/
promptDialog(options: UserInterfaceToolsPromptDialogOptions): Promise<string>;
}
/**
* Note: [🔵] Code in this file should never be published outside of `@promptbook/browser`
*/