cucumber-ai
Version:
Write automated tests using natural language
70 lines • 2.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agents = void 0;
const action_agent_1 = require("./action-agent");
const browser_agent_1 = require("./browser-agent");
const data_agent_1 = require("./data-agent");
const step_agent_1 = require("./step-agent");
const text_agent_1 = require("./text-agent");
const ui_agent_1 = require("./ui-agent");
class Agents {
constructor(context) {
this.started = false;
this.textAgent = new text_agent_1.TextAgent(context);
this.uiAgent = new ui_agent_1.UIAgent(context);
this.dataAgent = new data_agent_1.DataAgent(context);
this.browserAgent = new browser_agent_1.BrowserAgent(context);
this.actionAgent = new action_agent_1.ActionAgent(context);
this.conceptAgent = new action_agent_1.ConceptAgent(context);
this.stepAgent = new step_agent_1.StepAgent(context);
}
async start() {
if (this.started) {
return;
}
await this.textAgent.start();
await this.uiAgent.start();
await this.dataAgent.start();
await this.browserAgent.start();
await this.actionAgent.start();
await this.conceptAgent.start();
await this.stepAgent.start();
this.started = true;
}
async stop() {
if (!this.started) {
return;
}
await this.stepAgent.stop();
await this.conceptAgent.stop();
await this.actionAgent.stop();
await this.browserAgent.stop();
await this.dataAgent.stop();
await this.uiAgent.stop();
await this.textAgent.stop();
this.started = false;
}
getActionAgent() {
return this.actionAgent;
}
getBrowserAgent() {
return this.browserAgent;
}
getConceptAgent() {
return this.conceptAgent;
}
getDataAgent() {
return this.dataAgent;
}
getStepAgent() {
return this.stepAgent;
}
getTextAgent() {
return this.textAgent;
}
getUIAgent() {
return this.uiAgent;
}
}
exports.Agents = Agents;
//# sourceMappingURL=agents.js.map