UNPKG

donobu

Version:

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

31 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SummarizeLearningsTool = void 0; const Logger_1 = require("../utils/Logger"); const Tool_1 = require("./Tool"); /** * Tool for summarizing learnings made over the course of the flow. */ class SummarizeLearningsTool extends Tool_1.Tool { constructor() { super(SummarizeLearningsTool.NAME, 'Summarize the learnings made over the course of the Donobu flow.', 'SummarizeLearningsToolCoreParameters', 'SummarizeLearningsToolGptParameters'); } async call(_context, _parameters) { Logger_1.appLogger.warn(`${this.name} tool is being run without a GPT even though it makes no sense to do so!`); return { isSuccessful: true, forLlm: '', metadata: null, }; } async callFromGpt(_context, parameters) { return { isSuccessful: true, forLlm: parameters.summary, metadata: null, }; } } exports.SummarizeLearningsTool = SummarizeLearningsTool; SummarizeLearningsTool.NAME = 'summarizeLearnings'; //# sourceMappingURL=SummarizeLearningsTool.js.map