daggerai
Version:
A simple and powerful Typescript based agent framework to help businesses thrive in the AI Agent revolution.
26 lines • 704 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agent = void 0;
const helpers_1 = require("./helpers");
const prompts_1 = require("./prompts");
class Agent {
id;
role;
goal;
backstory;
constructor(params) {
this.id = params.id;
this.role = params.role;
this.goal = params.goal;
this.backstory = params.backstory;
}
getRolePlaying() {
return (0, helpers_1.interpolateVariablesIntoPrompt)(prompts_1.SQUAD_PROMPTS.rolePlaying, {
role: this.role,
backstory: this.backstory,
goal: this.goal,
});
}
}
exports.Agent = Agent;
//# sourceMappingURL=agent.js.map