UNPKG

donobu

Version:

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

18 lines 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tool = void 0; const VerbConverter_1 = require("../utils/VerbConverter"); const JsonUtils_1 = require("../utils/JsonUtils"); /** Represents a tool call to be invoked by a DonobuFlow. */ class Tool { constructor(name, description, parametersTypeNameForNonGptSchema, parametersTypeNameForGptSchema, requiresGpt = false) { this.name = name; this.description = description; this.inputSchema = JsonUtils_1.JsonUtils.getJsonSchemaFromTypeName(parametersTypeNameForNonGptSchema); this.inputSchemaForGpt = JsonUtils_1.JsonUtils.getJsonSchemaFromTypeName(parametersTypeNameForGptSchema); this.requiresGpt = requiresGpt; this.controlPanelMessage = VerbConverter_1.VerbConverter.toPresentTenseAction(this.name); } } exports.Tool = Tool; //# sourceMappingURL=Tool.js.map