UNPKG

@promptbook/browser

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

15 lines (14 loc) 552 B
import type { Promisable } from 'type-fest'; import type { CommonToolsOptions } from '../../execution/CommonToolsOptions'; import type { UserInterfaceToolsPromptDialogOptions } from '../../execution/UserInterfaceTools'; /** * Options for `CallbackInterfaceTools` * * @public exported from `@promptbook/core` */ export type CallbackInterfaceToolsOptions = CommonToolsOptions & { /** * The callback function to be called when promptDialog is called */ callback(prompt: UserInterfaceToolsPromptDialogOptions): Promisable<string>; };