create-ai-chat-context-experimental
Version:
Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).
47 lines • 1.39 kB
TypeScript
/**
* This file is part of create-ai-chat-context-experimental.
* Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
* See LICENSE file for details.
*/
/**
* Agent Router - Distributes content to appropriate .aicf files
*
* This routes different types of content to specialized .aicf files
* instead of dumping everything into conversations.aicf
*/
export interface RoutedContent {
targetFile: string;
content: unknown;
contentType: string;
chunkId: string;
timestamp: string;
}
export interface TokenAllocationStrategy {
[key: string]: number;
}
export declare class AgentRouter {
private routes;
private chunkTracker;
constructor();
/**
* Route content to appropriate .aicf file based on content type
*/
routeContent(contentType: string, content: unknown, chunkId: string): RoutedContent | null;
/**
* Analyze conversation content and classify it
*/
classifyContent(conversationData: unknown): string[];
/**
* Generate content hash for deduplication
*/
private hashContent;
/**
* Get file allocation strategy for better token distribution
*/
getTokenAllocationStrategy(): TokenAllocationStrategy;
/**
* Reset chunk tracker (useful for testing)
*/
resetChunkTracker(): void;
}
//# sourceMappingURL=AgentRouter.d.ts.map