@myea/aem-mcp-handler
Version:
Advanced AEM MCP request handler with intelligent search, multi-locale support, and comprehensive content management capabilities
25 lines (24 loc) • 655 B
TypeScript
import { Router } from 'express';
declare const router: Router;
export type ChatMessage = {
role: 'system' | 'user' | 'assistant' | 'function' | 'tool';
content: string;
name?: string;
function_call?: {
name: string;
arguments: string;
};
tool_calls?: Array<{
id: string;
type: 'function';
function: {
name: string;
arguments: string;
};
}>;
};
/**
* Simple universal chat message handler - delegates all functionality to MCP
*/
export declare function handleChatMessage(message: string, history: ChatMessage[]): Promise<string>;
export default router;