UNPKG

codecrucible-synth

Version:

Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability

53 lines 2.02 kB
/** * Problem Solver Agent - Uses Living Spiral methodology for complex problem solving * Integrates with the existing UnifiedAgent system */ import { UnifiedAgent } from '../agent.js'; import { logger } from '../logger.js'; export class ProblemSolverAgent extends UnifiedAgent { constructor(modelClient, performanceMonitor) { super(modelClient, performanceMonitor); } async processRequest(input) { logger.info('🧩 Problem Solver Agent processing request'); const request = { id: `problem-${Date.now()}`, input, type: 'problem-solving', mode: 'quality', // Use quality mode for complex problem solving }; // Use the sophisticated Living Spiral methodology through UnifiedAgent const response = await this.execute(request); // Enhance with problem-solving specific analysis if (response.success && response.result) { const enhancedResult = await this.enhanceProblemSolution(input, response.result); return { ...response, result: enhancedResult, }; } return response; } async enhanceProblemSolution(originalProblem, solution) { // Add problem-solving specific enhancements return { ...solution, problemAnalysis: { originalProblem, solutionApproach: 'Living Spiral methodology with multi-voice council', confidence: 'High - uses sophisticated agent architecture', nextSteps: [ 'Review proposed solution', 'Test implementation approach', 'Iterate based on feedback', ], }, metadata: { ...(solution.metadata || {}), agentType: 'problem-solver', methodology: 'living-spiral', }, }; } } //# sourceMappingURL=problem-solver-agent.js.map