aicf-core
Version:
Universal AI Context Format (AICF) - Enterprise-grade AI memory infrastructure with 95.5% compression and zero semantic loss
69 lines • 1.66 kB
TypeScript
/**
* SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (c) 2025 Dennis van Leeuwen
*
* Agent Router - Distributes content to appropriate .aicf files
*/
export interface RouteResult {
targetFile: string;
content: unknown;
contentType: string;
chunkId: string;
timestamp: string;
}
export interface TokenAllocation {
[key: string]: number;
}
/**
* Routes content to specialized .aicf files
*/
export declare class AgentRouter {
private readonly routes;
private readonly chunkTracker;
constructor();
/**
* Route content to appropriate .aicf file
*/
routeContent(contentType: string, content: unknown, chunkId: string): RouteResult | null;
/**
* Classify conversation content
*/
classifyContent(conversationData: unknown): string[];
/**
* Get token allocation strategy
*/
getTokenAllocationStrategy(): TokenAllocation;
/**
* Generate content hash for deduplication
*/
private hashContent;
/**
* Simple hash function
*/
private simpleHash;
/**
* Convert content to string
*/
private stringify;
/**
* Check if content contains decision keywords
*/
private containsDecision;
/**
* Check if content contains technical keywords
*/
private containsTechnical;
/**
* Check if content contains task keywords
*/
private containsTask;
/**
* Check if content contains issue keywords
*/
private containsIssue;
/**
* Check if content contains design keywords
*/
private containsDesign;
}
//# sourceMappingURL=agent-router.d.ts.map