adpa-enterprise-framework-automation
Version:
Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe
20 lines • 927 B
JavaScript
import { KeyrolesandneedsTemplate } from './KeyrolesandneedsTemplate.js';
import { getAIProcessor } from '../../ai/AIProcessor.js';
export class KeyrolesandneedsProcessor {
aiProcessor = getAIProcessor();
async process(context) {
const template = new KeyrolesandneedsTemplate();
const prompt = template.buildPrompt(context);
const messages = [
{ role: "system", content: 'You are an expert business analyst and requirements engineer specializing in stakeholder analysis and role-based system design.' },
{ role: "user", content: prompt }
];
const aiResponse = await this.aiProcessor.makeAICall(messages);
const content = typeof aiResponse === 'string' ? aiResponse : aiResponse.content;
return {
title: 'Key Roles and Needs Analysis',
content
};
}
}
//# sourceMappingURL=KeyrolesandneedsProcessor.js.map