donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
21 lines • 924 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetRunModeTool = void 0;
const Tool_1 = require("./Tool");
const ToolCallResult_1 = require("../models/ToolCallResult");
class SetRunModeTool extends Tool_1.Tool {
constructor() {
super(SetRunModeTool.NAME, `Set the run mode of this Donobu Flow, so that it can be controlled by Donobu (i.e. 'AUTONOMOUS' runMode),
or be controlled by the user (i.e. 'INSTRUCT' runMode).`, 'SetRunModeToolCoreParameters', 'SetRunModeToolGptParameters', true);
}
async call(context, parameters) {
context.metadata.runMode = parameters.runMode;
return ToolCallResult_1.ToolCallResult.successful();
}
async callFromGpt(context, parameters) {
return this.call(context, parameters);
}
}
exports.SetRunModeTool = SetRunModeTool;
SetRunModeTool.NAME = 'setRunMode';
//# sourceMappingURL=SetRunModeTool.js.map