cognitive-framework-mcp-server
Version:
MCP Server for Advanced Cognitive Framework - Provides sophisticated AI reasoning capabilities through standardized protocol
97 lines • 2.37 kB
TypeScript
/**
* Cognitive Reasoning Engine
* Core engine that applies the Advanced Cognitive Framework to process requests
*/
import { CognitiveFramework, CognitiveRequest, CognitiveResponse } from '../types/cognitive-framework.js';
export interface ReasoningSession {
id: string;
startTime: Date;
context: Record<string, any>;
cognitiveLoad: number;
biasChecks: string[];
confidenceHistory: number[];
workflowPath: string[];
}
export declare class CognitiveReasoningEngine {
private framework;
private cache;
private activeSessions;
constructor(framework: CognitiveFramework);
/**
* Process a cognitive request using the framework
*/
processRequest(request: CognitiveRequest): Promise<CognitiveResponse>;
/**
* Create a new reasoning session
*/
private createSession;
/**
* Apply meta-cognitive priming before processing
*/
private applyMetaCognitivePriming;
/**
* Select appropriate workflow based on request and options
*/
private selectWorkflow;
/**
* Execute the selected workflow
*/
private executeWorkflow;
/**
* Apply a cognitive principle
*/
private applyPrinciple;
/**
* Select relevant heuristics for the context
*/
private selectRelevantHeuristics;
/**
* Apply a cognitive heuristic
*/
private applyHeuristic;
/**
* Generate workflow-specific result
*/
private generateWorkflowResult;
/**
* Perform bias checking
*/
private performBiasChecking;
/**
* Calculate confidence level
*/
private calculateConfidence;
/**
* Generate alternative solutions
*/
private generateAlternatives;
/**
* Analyze contextual factors
*/
private analyzeContextualFactors;
/**
* Assess complexity of the request
*/
private assessComplexity;
/**
* Detect domain from request
*/
private detectDomain;
/**
* Identify uncertainty factors
*/
private identifyUncertaintyFactors;
/**
* Cleanup session resources
*/
private cleanupSession;
/**
* Get framework information
*/
getFrameworkInfo(): any;
/**
* Get cache statistics
*/
getCacheStats(): any;
}
//# sourceMappingURL=cognitive-reasoning-engine.d.ts.map