UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

20 lines (19 loc) 856 B
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>; }