UNPKG

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

24 lines 1.08 kB
/** * Migration Helper Processor * Utility class to handle common AI operations in the migration layer */ import { ChatMessage } from "./types.js"; export declare class MigrationHelperProcessor { /** * Creates standard message array for AI calls * * @param {string} systemPrompt - System prompt defining the AI's role * @param {string} userPrompt - The main prompt content to send * @returns {ChatMessage[]} Formatted chat message array */ static createMessages(systemPrompt: string, userPrompt: string): ChatMessage[]; /** * Generic handler for AI function calls with proper error handling * * @param {Function} operation - Async function that makes the actual AI call * @param {string} operationName - Name of the operation for logging and metrics * @returns {Promise<string|null>} AI-generated content or null if operation fails */ static handleAICall(operation: () => Promise<string | null>, operationName: string): Promise<string | null>; } //# sourceMappingURL=MigrationHelperProcessor.d.ts.map