UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

22 lines 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandleBrowserDialogTool = void 0; const Tool_1 = require("./Tool"); /** * A no-op tool that exists just to record the decisioning around browser alert * dialogs/confirmations. See DonobuFlow#onDialog for details. */ class HandleBrowserDialogTool extends Tool_1.Tool { constructor() { super(HandleBrowserDialogTool.NAME, 'Handle a browser Window:confirm() or Window:prompt().', 'HandleBrowserDialogToolCoreParameters', 'HandleBrowserDialogToolGptParameters'); } async call(context, parameters) { return this.call(context, parameters); } async callFromGpt(context, parameters) { return this.call(context, parameters); } } exports.HandleBrowserDialogTool = HandleBrowserDialogTool; HandleBrowserDialogTool.NAME = 'handleBrowserDialog'; //# sourceMappingURL=HandleBrowserDialogTool.js.map